" . substr($my_sentence,$pos,strlen($word_to_highlight)) . "" . substr($my_sentence, $pos+strlen($word_to_highlight), strlen($my_sentence)-$pos-strlen($word_to_highlight)+1); } else { return $my_sentence; } } else { return $my_sentence; } } function formatear ($valor) { $cadena = ""; switch ($valor) { case ($valor<10): $cadena = "000".$valor; break; case ($valor<100): $cadena = "00".$valor; break; case ($valor<1000): $cadena = "0".$valor; break; default: $cadena = $valor; break; } return($cadena); } function etiqueta ($param) { global $lang; switch ($param) { case "titulo": return($lang['title']); break; case "autor": return($lang['author']); break; case "editorial": return($lang['publisher']); break; default: return($param); break; } } $nompage = "index.php"; $nompageiud = "detail.php"; if (isset($_GET["ipagesize"])) { $ipagesize = $_GET["ipagesize"]; } else { $ipagesize = 10; } if (isset($_REQUEST["titulo"])) { $titulo = $_REQUEST["titulo"]; } else { $titulo = ""; } if (isset($_REQUEST["autor"])) { $autor = $_REQUEST["autor"]; } else { $autor= ""; } if (isset($_REQUEST["editorial"])) { $editorial = $_REQUEST["editorial"]; } else { $editorial= ""; } ?>
 
    
  : :
     
$value) { if ($key!="boton" and $key!="page" and $key!="ipagesize") { if (isset($value) and $value!="") { $str_param = $str_param . "&". $key . "=" . urlencode($value); } } } echo $lang['no_records_per_pagina'] . ": "; if ($ipagesize==10) { echo "[10] , "; } else { echo "[10] , "; } if ($ipagesize==20) { echo "[20] , "; } else { echo "[20] , "; } if ($ipagesize==50) { echo "[50] , "; } else { echo "[50] , "; } if ($ipagesize==100) { echo "[100] , "; } else { echo "[100] , "; } if ($ipagesize==200) { echo "[200]"; } else { echo "[200]"; } } ?>  "; } else { echo " "; } if ($ipagecurrent < 11) { echo " "; } else { echo " "; } if ($ipagecurrent ==1) { echo " "; } else { echo " "; } echo formatear($ipagecurrent) . ' ' . $lang['of'] . ' ' . formatear($total_paginas) . " " ; if ($ipagecurrent == $total_paginas) { echo " "; } else { echo " "; } if ($ipagecurrent > ($total_paginas-10)) { echo " "; } else { echo " "; } if ($ipagecurrent == $total_paginas) { echo " "; } else { echo "Última "; } } // $total_paginas >0 ?>
  " . $lang['of'] . " " . $num_total_registros; ?> "; if ($titulo!="") { echo etiqueta ("titulo") . " "; } if ($autor!="") { echo etiqueta ("autor") . " "; } if ($editorial!="") { echo etiqueta ("editorial") . " "; } echo ""; } // Fin de IF del filtro echo " "; if ($strsort !="") { if ($sort=="asc") { echo $lang['order_az_by'] . " " . etiqueta($field) . ""; } else { echo $lang['order_za_by'] . " " . etiqueta($field) . ""; } } ?>
$value) { if ($key!="boton" and $key!="field" and $key!="sort" and $key!="page" and $key!="ipagesize") { if (isset($value) and $value!="") { $str_param2 = $str_param2 . "&". $key . "=" . urlencode($value); } } } $query = $query . $strsort . " limit " . $inicio . "," . $ipagesize; $campos[0]= "titulo"; $campos[1]= "autor"; $campos[2]= "editorial"; for ($i=0;$i<=2; $i++){ if ($i==0) { $anchura = "50%"; } else { $anchura = "25%"; } echo ""; } // for ?> "; for ($i=0;$i<=2; $i++){ echo ""; echo ""; } // fin del while } mysql_close($link); ?>
"; if ($field == $campos[$i]) { if ($sort=="asc") { echo ""; echo "\"Asc\""; } else { echo ""; echo "\"Desc\""; } } else { echo ""; } echo etiqueta($campos[$i]). "
 "; switch ($campos[$i]) { case "titulo": echo " "; echo "EJEMPLAR' class='thickbox'>"; echo " " . dohighlight($fila->TITULO, $titulo) . ""; break; case "autor": echo " " . dohighlight($fila->AUTOR, $autor); break; case "editorial": echo " " . dohighlight($fila->EDITORIAL, $editorial); break; } // fin del switch } // fin del for echo "