perfiles.php parte 2 Código PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Perfiles</title>
</head>
<body>
<div id="buscar">
<form id="formbusqueda" name="formbusqueda" method="get" action="perfiles.php">
<label>
POSICION
<select name="busqueda" id="busqueda" style=" font-size:14px; font-family: Arial, Helvetica, sans-serif; border-radius:7px; border-color:#666;">
<option selected="selected">Seleccione una posicion</option>
<option value="PORTERO">PORTERO</option>
<option value="DEFENSA">DEFENSA</option>
<option value="MEDIO">MEDIO</option>
<option value="DELANTERO">DELANTERO</option>
</select>
Ó NOMBRE:
</label>
<label>
<input type="text" name="busqueda2" id="busqueda2" size="32" placeholder="Escriba el nombre" style=" font-size:14px; font-family: Arial, Helvetica, sans-serif; border-radius:7px; border-color:#666;" />
<br />
<br />
<input type="submit" name="enviar" id="enviar" value="BUSCAR" />
</label>
<br />
</form>
<?php if (array_key_exists('busqueda', $_GET) && $totalRows_mostrar_datos == 0){?>
</strong></strong></strong></strong></strong></strong></strong> <span style="color: #F00">No se encontraron datos</span></strong>
<?php } //Este pedazo de codigo sirve para mostrar un mensaje de que no se encontraron resultados?>
</div>
<div id="apDiv2">
<form id="formperfiles" name="formperfiles" method="post" action="pdf_send.php" enctype="multipart/form-data" target="_blank">
<?php do { ?>
<table width="588" height="407" border="1" bordercolor="#333333">
<tr>
<td height="23" colspan="3" bgcolor="#666666" style="text-align: center"><label>
<input name="nombre" type="text" id="nombre" class="transparente" style="text-align:center; border:0px; font-size:20px; font-family: 'Arial Black', Gadget, sans-serif; color:#FFF" value="<?php echo $row_mostrar_datos['nombre']; ?> <?php echo $row_mostrar_datos['ap_pat']; ?> <?php echo $row_mostrar_datos['ap_mat']; ?>" size="50" readonly="readonly" />
</label></td>
</tr>
<tr>
<td width="206" rowspan="9" style="text-align: center;"><img src="imagenes/imagenes_jugadores/<?php echo $row_mostrar_datos['imagen']; ?>" width="206" height="206" /></td>
<td width="109" rowspan="4" style="text-align: center" background="imagenes/jersey_3.png"><input name="numero" type="text" id="numero" class="transparente" style="text-align:center; border:0px; font-size:30px; font-family: 'Arial Black', Gadget, sans-serif; color: #FFF" value="<?php echo $row_mostrar_datos['numero']; ?>" size="3" maxlength="3" /></td>
<td width="251" style="border:0px"><input name="edad" class="transparente" type="text" id="edad" style="text-align:center; border:0px; font-size:15px; font-family: 'Arial Black', Gadget, sans-serif; color: #000" value="<?php echo $row_mostrar_datos['edad']; ?>" size="3" maxlength="3" readonly="readonly" />
<span style="font-family: Arial, Helvetica, sans-serif; font-size: 18px; color: #666;">Años</span></td>
</tr>
<tr>
<td style="border:0px">
<input name="altura" type="text" id="altura" class="transparente" style="text-align:center; border:0px; font-size:15px; font-family: 'Arial Black', Gadget, sans-serif; color: #000" value="<?php echo $row_mostrar_datos['altura']; ?>" size="3" maxlength="3" readonly="readonly" />
<span style="font-weight: bold; font-family: Arial, Helvetica, sans-serif; font-size: 18px; color: #666;">m. </span></td>
</tr>
<tr>
<td style="border:0px">
<input name="peso" type="text" id="peso" class="transparente" style="text-align:center; border:0px; font-size:15px; font-family: 'Arial Black', Gadget, sans-serif; color: #000" value="<?php echo $row_mostrar_datos['peso']; ?>" size="3" maxlength="3" readonly="readonly" />
<span style="font-family: Arial, Helvetica, sans-serif; font-size: 18px; font-weight: bold; color: #666;">Kg.</span></td>
</tr>
<tr>
<td style="border:0px">
<span style="font-family: Arial, Helvetica, sans-serif; font-weight: bold; color: #666;">Pais:</span>
<input name="nacionalidad" type="text" id="nacionalidad" class="transparente" style="border:0px; font-size:15px; font-family: 'Arial Black', Gadget, sans-serif; color: #000" value="<?php echo $row_mostrar_datos['nacionalidad']; ?>" readonly="readonly" />
</td>
</tr>
<tr>
<td colspan="2" style="border:0px">
<label></label>
<span style="text-align: left"><span style="font-family: Arial, Helvetica, sans-serif; font-weight: bold; color: #666;">Posición:</span><span>
<label>
<input name="posicion" type="text" class="transparente" id="posicion" style="border:0px; font-size:15px; font-family: 'Arial Black', Gadget, sans-serif; color: #000" value="<?php echo $row_mostrar_datos['posicion']; ?>" readonly="readonly" />
</label>
</span></span></td>
</tr>
<tr>
<td colspan="2" style="border:0px"> <span style="font-weight: bold; font-family: Arial, Helvetica, sans-serif; color: #666;">Apodo:</span>
<input name="apodo" type="text" id="apodo" class="transparente" style="border:0px; font-size:15px; font-family: 'Arial Black', Gadget, sans-serif; color: #000" value="<?php echo $row_mostrar_datos['apodo']; ?>" readonly="readonly" />
</td>
</tr>
<tr>
<td colspan="2" style="border:0px"><span style="font-family: Arial, Helvetica, sans-serif; font-weight: bold; color: #666;">Habilidad:</span> <input name="habilidad" type="text" class="transparente" id="habilidad" style="border:0px; font-size:15px; font-family: 'Arial Black', Gadget, sans-serif; color: #000" value="<?php echo $row_mostrar_datos['habilidad']; ?>" readonly="readonly" /></td>
</tr>
<tr>
<td colspan="2" style="font-family: Arial, Helvetica, sans-serif; font-weight: bold; border:0px; color: #666;">Comentarios:</td>
</tr>
<tr>
<td colspan="2"><textarea name="comentarios" cols="40" rows="3" readonly="readonly" class="transparente" id="comentarios" style="border:0px; font-size:15px; font-family: 'Arial Black', Gadget, sans-serif; color: #000"><?php echo $row_mostrar_datos['comentarios']; ?></textarea></td>
</tr>
<tr>
<td colspan="3" bgcolor="#333333"><label>
<input type="submit" name="generar" id="generar" value="GENERAR PDF" />
</label> </td>
</tr>
</table>
<?php } while ($row_mostrar_datos = mysql_fetch_assoc($mostrar_datos)); ?>
</form>
</div>
<div id="marco" class="CuadroBlanco"></div>
<div id="titulo">PERFILES DE JUGADORES</div>
<div id="paginacion">
<table width="200" border="0">
<tr>
<td colspan="2" style="text-align:center"><?php
// Recordset Navigator by Felixone.it
$fx_start = 0;
$fx_numOfPages = ceil($totalRows_mostrar_datos/$maxRows_mostrar_datos);
if ($fx_numOfPages > 1) {
echo "Resultados <select name=\"navmenu\" onChange=\"javascript: if (options[selectedIndex].value) window.location.href = (options[selectedIndex].value)\">\n";
while ($fx_start < $fx_numOfPages) {
$fx_preStr = "";
if ($fx_start != $pageNum_mostrar_datos) { // fx navbar
$fx_preStr = $currentPage."?pageNum_mostrar_datos=".$fx_start.$queryString_mostrar_datos;
}
$selected = $fx_preStr == "" ? " selected" : "";
// set mode ordinal
$fx_total = $fx_numOfPages;
echo "<option value=\"".$fx_preStr."\"".$selected.">".($fx_start+1)."</option>\n";
$fx_start++;
}
echo "</select> de $fx_total\n";
}
?></td>
</tr>
<tr>
<td style="text-align:center"><a href="<?php printf("%s?pageNum_mostrar_datos=%d%s", $currentPage, max(0, $pageNum_mostrar_datos - 1), $queryString_mostrar_datos); ?>">Anterior</a></td>
<td style="text-align:center"><a href="<?php printf("%s?pageNum_mostrar_datos=%d%s", $currentPage, min($totalPages_mostrar_datos, $pageNum_mostrar_datos + 1), $queryString_mostrar_datos); ?>">Siguiente</a></td>
</tr>
</table>
</div>
</body>
</html>
<?php
mysql_free_result($mostrar_datos);
?>