CÓDIGO DEL BOTÓN LUPA:
Código PHP:
Ver original<form name="form1" method="post" action="ges_obras_busqueda.php">
<table border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#0066FF">
<center>
<input type="image" id="lupa" name="Submit" src="http://localhost/app_p_contratante/images/lupa.png">
<input type="hidden" id="lupa" name="ini" value="1">
</center>
<tr>
<td width="25%" class="primeralineaizquierda">Código
del expediente:</td>
<? if ($ini=="0") { ?>
<td width="75%">
<input name="codigo" type="text" id="codigo" size="8" maxlength="8">
</td>
<? } else { ?>
<td width="75%">
<input name="codigo" type="text" id="codigo" size="8" maxlength="8" value="<? echo $codigo; ?>">
</td>
<? } ?>
</tr>
<tr>
<td class="primeralineaizquierda">Expediente:</td>
<? if ($ini=="0") { ?>
<td>
<input name="expediente" type="text" id="expediente" size="50" maxlength="50">
</td>
<? } else { ?>
<td>
<input name="expediente" type="text" id="expediente" size="50" maxlength="50" value="<? echo $expediente; ?>">
</td>
<? } ?>
</tr>
<tr>
<td class="primeralineaizquierda"><strong>Estado:</strong></td>
<td>
<select name="estado">
<option selected>
<?
$consulta0 = "Select * from estado order by cod_estado";
do
{
if ($lafila0["estado"]==$estado) { ?>
<option selected value="<? echo $lafila0["estado"] ?>"> <? echo $lafila0["estado"];
} else { ?>
<option value="<? echo $lafila0["estado"] ?>"> <? echo $lafila0["estado"]; } ?>
</option>
<? }
</select>
</td>
</tr>
<tr>
<td class="primeralineaizquierda">Fecha de Publicación (dd/mm/aaaa):</td>
<? if ($ini=="0") { ?>
<td>
<input name="fecha_publi" type="text" id="fecha_publi" size="10" maxlength="10"/>
</td>
<? } else { ?>
<td>
<input type="text" name="fecha_publi" size="10" maxlength="10"/><?escribe_formulario_fecha_vacio("fecha_publi","form1");?>
</td>
<? } ?>
</tr>
</table>
</form>
si no escribo muestrame todos los registros, si escribo capturame el valor y muestra el registro.
Lo mismo pero con el check. click en el muestrame el registro con $codigo y archivos correspondientes....
Uf que estrés... lo veo imposible...
Muchas gracias por tu tiempo.