Ver Mensaje Individual
  #8 (permalink)  
Antiguo 30/12/2014, 10:57
Mental
 
Fecha de Ingreso: noviembre-2005
Mensajes: 146
Antigüedad: 18 años, 5 meses
Puntos: 1
Respuesta: boton submit y evento

Cita:
<form method="POST" action="">
<table>
<tr>
<td>
Id del presupuesto:
</td>
<td>
<input type="text" class="in" name="txtidp" readonly="readonly" value="<?php echo $var0 ?>";/></td>
</tr>
<tr>
<td>
Fecha del presupuesto:
</td>
<td>
<!--Este input tiene el evento onclick para introducir la fecha del sistema si no tiene valor el campo-->
<input type="date" id="i1" class="in" name="txtfpr" readonly="readonly" value="<?php echo $var1?>" onclick="add_fecha()"/>
</td>
</tr>
<tr>
<td>
Presupuesto número:
</td>
<td>
<input type="text" class="in" name="txtpre" readonly="readonly" value="<?php echo $var2 ?>"/></td>
</tr>
<tr>
<td>
Apellidos:
</td>
<td>
<select type= "" class="tx" disabled= "disabled" name="txtape" value="">
<option value= ""><?php echo $var3 ?></option>
<?php
while ($fila=mysql_fetch_row($resultape))
{
echo "<option value='".$fila['0']."'>".$fila['1']."</option>";
}
?>
</select>
</td>
</tr>
<tr>
<td>
Nº usuarios:
</td>
<td>
<input type="text" class="in" name="txtusu" readonly="readonly" value="<?php echo $var4 ?>"/>
</td>
</tr>
<tr>
<td>
Inicio del evento:
</td>
<td>
<!--Fecha de inicio del evento-->
<input type="date" class="in" name="txtini" readonly="readonly" value="<?php echo $var5 ?>"/>
</td>
</tr>
<tr>
<td>
Fin del evento:
</td>
<td>
<!--Fecha final del evento-->
<input type="date" class="in" name="txtfin" readonly="readonly" value="<?php echo $var6 ?>"/>
</td>
</tr>
<tr>
<td>
Duracion:
</td>
<td>
<!--Fecha final del evento-->
<input type="text" class="in" name="txtdia" readonly="readonly" value="<?php echo $var7 ?>"/>
</td>
</tr>
<tr>
<td>
Horas:
</td>
<td>
<!--Horas estimadas-->
<input type="text" class="in" name="txthor" readonly="readonly" value="<?php echo $var8 ?>"/>
</td>
</tr>


<tr>
<td>
Depósito confirmado:
</td>
<td>
<!--Fecha de entrada del depósito en el banco-->
<input type="checkbox" class="in" name="txtdep" readonly="readonly" value="<?php echo $var9 ?>"/>
</td>
</tr>
<tr>
<td>
Fecha depósito:
</td>
<td>
<!--Fecha de entrada del depósito en el banco-->
<input type="date" class="in" name="txtfde" readonly="readonly" value="<?php echo $var10 ?>"/>
</td>
</tr>
<tr>
<td>
Depósito entregado:
</td>
<td>
<!--Depósito entregado-->
<input type="real" class="in" name="txtidp" readonly="readonly" value="<?php echo $var11 ?>" />
</td>
</tr>
<tr>
<td>
Total:
</td>
<td>
<!--Importe de los servicios requeridos-->
<input type="real" class="in" name="txtvpr" readonly="readonly" value="<?php echo $var12 ?>" />
</td>
</tr>
<tr>
<td>
Coste servicios:
</td>
<td>
<!--Coste de los servicios requeridos-->
<input type="real" class="in" name="txtcos" readonly="readonly" value="<?php echo $var13 ?>" />
</td>
</tr>
<tr>
<td>
Resultado:
</td>
<td>
<!--Importe de los servicios requeridos-->
<input type="real" class="in" name="txtres" readonly="readonly" value="<?php echo $var14 ?>" />
</td>
</tr>
<tr>
<td>
Fecha de factura:
</td>
<td>
<!--Importe de los servicios requeridos-->
<input type="date" class="in" name="txtfac" readonly="readonly" value="<?php echo $var15 ?>"/>
</td>
</tr>
<tr>
<td>
Número de factura:
</td>
<td>
<input type="text" class="in" name="txtffa" readonly="readonly" value="<?php echo $var16 ?>" />
</td>
</tr>
<tr>
<td>
Servicios:
</td>
<td>
<input type="text" class="in" name="txtser" readonly="readonly" value="<?php echo $var17 ?>" />
</td>
</tr>
<tr>
<td>
Observaciones:
</td>
<td>
<textarea name="txtobs" cols=40 rows=3 value="<?php echo $var18 ?>">

</textarea>
</td>
</tr>

</table>
<input type="submit" name="btn1" value="Primero"/>
<input type="submit" name="btn1" value="Anterior"/>
<input type="text" class="vis" name="txtvariable" value="<?php echo $cont ?>"/>
<input type="submit" name="btn1" value="Siguiente"/>
<input type="submit" name="btn1" value="Ultimo"/>
<?php echo "<font size=2> de ".$totreg."</font>";?>
<p></p>

<!--<tr>
<td colspan="2" align="left">-->
<div>
<input type="submit" name="btn1" value="Nuevo"/>
<input type="button" name="btn1" value="Modificar" onclick="modificar()"/>
<input type="submit" name="btn1" value="Buscar"/>
<input type="submit" name="btn1" value="Eliminar"/>
<input type="submit" id="pinchable" name="btn2" value="Aceptar"/>
<input type="reset" name="btn2" value="Cancelar" onclick="cancelar()"/>

</div>
<!--</td>
</tr>-->
</form>

</body>
</html>