| $sql="select SQL_CACHE * from fotos where fecha>=’$rango’ and caption like ‘%$iden%’ ORDER BY fecha DESC, hora DESC, foto_id DESC”;$result = mysql_query($sql);$cont = mysql_num_rows($result);if ($cont==0)echo “No existen fotos que coincidan con el criterio de búsqueda dado”;else{ $notas = array();while($this = mysql_fetch_array($result)){ array_push($notas, $this);}if(($mas+1)==$indices and $mas)$salto=$cont;else{/* desde aqui quite el 10 */if (ceil($cont/12)<2)$salto=$cont;else$salto=12+($mas*12);} ?> “; $peso=filesize(“/respaldo/web/notimex/publico/admon/fotos/fuentes/$dato[0]”); $peso=ceil($peso/1024);if ($peso > 0){?> | } else {?> | } if (!fmod($i+1,6)) echo " “; echo ” “;}//for ($p=0+($mas*12);$p<$salto;$p++) echo "“;if (!$indices)$indices= ceil($cont/12);if ($indices<11){$hasta=$indices;if (($mas+1)==$indices)$quita=1;}else{$hasta=11+$mas;if ($hasta>$indices){$hasta=$hasta-($hasta-$indices);if(($mas+1)==$indices)$quita=1;}}?> 21){$otro++;if ($mas>11)$otro=$hasta-21;}else{$otro–;if ($otro<0 or $mas<11)$otro=0;else$otro=$mas-12;}?> | Anterior | }for ($j=1+$otro;$j<$hasta+1;$j++){?> if(($mas+1)==$j) echo "“.$j.”“; else {if(($mas+1)!=$j)?> echo $j; }if(($mas+1)!=$j)?> | }if (!$mas)$mas=1;else{if (!$quita)$mas=$mas+1;else$mas=$mas-1;}if (!$quita){?> Siguiente | }?> | }?> | |