-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcrearPresupuestoForm.php
executable file
·84 lines (84 loc) · 4.13 KB
/
crearPresupuestoForm.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<?php
include('session.php');
include('head.html');
include('menu.php');
?>
<script type="text/javascript" src="js/validacion.js"></script>
<script type="text/javascript" src="js/autocompletar_articulos.js"></script>
<h2>Crear Presupuesto</h2>
<div id="crear">
<form name="form" action="crearPresupuestoFormExecute.php" method="post"
title="Permite Crear un Presupuesto" onsubmit="/*return false;*/return validarVacio(this);">
<fieldset id="Presupuesto" >
<legend align="center">Datos del Cliente</legend>
<br />
<label for="Nombre">Nombre: </label><input type="text" id="Nombre" name="Nombre"
onfocus="limpiar(this);" size="40" value="<?php echo $cliente->getNombre();?>" />
<br /><br />
<label for="Cedula">Cedula o RIF:</label><input type="text" id="Nacionalidad" name="Nacionalidad" onfocus="limpiar(this);" size="1" onkeypress="return permite(event , 'car')" value="<?php echo $n;?>" readonly="true" /><input type="text" id="Cedula" name="Cedula"
onfocus="limpiar(this);" size="9" value="<?php echo $cedula;?>" readonly="true" />
<label for="Telefono">Telefono: </label><input type="text" id="Telefono" name="Telefono"
onfocus="limpiar(this);" size="10" value="<?php echo $cliente->getTelefono();?>" />
<br /><br />
<label for="Direccion">Direccion: </label><input type="text" id="Direccion"
name="Direccion" onfocus="limpiar(this);" size="40" value="<?php echo $cliente->getDireccion();?>" />
<br /><br />
<label for="Correo">Email: </label><input type="text" id="Correo" name="Correo"
onfocus="limpiar(this);" size="40" value="<?php echo $cliente->getCorreo();?>" />
<br />
<br />
</fieldset>
<fieldset>
<legend align="center">Datos del Pedido</legend>
<label for="productos">
Productos</label>
<input type="button" value="Borrar Todos" onclick="removeall();" style="float:right;" />
<br />
<table id="table" >
<tr class="first">
<td>Cantidad </td>
<td>Nombre </td>
<td>Precio Unitario </td>
<td>Total </td>
</tr>
<tr id="1" >
<td><input type="text" id="cantidad" style="width:24px;"
name="cantidad" value="0" size="1" onfocus="limpiar(this);"
onkeypress="return permite(event , 'num');"</td></td>
<td>
<label for="Nombre">Nombre: </label><input type="text" id="NombreP"
name="NombreP" autocomplete="off" onfocus="limpiar(this);" size="21" />
<div id="sugerencias" class="autocomplete"></div>
</td>
<td><label for="Precio">Precio: </label><input type="text" id="Precio" style="width:24px;"
name="Precio" autocomplete="off" onfocus="limpiar(this);" size="1" value="0" /></td>
<td><input type="button" value="Agregar" onclick="agregar();" />
</td>
</tr>
</table>
</table>
<table align="right" style="width:30%;">
<tr>
<td class="bold">Total</td>
<td id="total" class="bold">0</td>
</tr>
</table>
<br />
<br />
<label for="Detalles">Detalles de Diseño y Produccion </label><br />
<textarea id="Detalles" name="Detalles" cols="60" rows="5" onfocus="limpiar(this);
limpiarT(this);">Aqui se agregan los detalles del pedido.</textarea>
<br />
<br />
<input type="submit" value="Presupuestar" onclick="clickEnviar();" />
<input type="button" value="Cancelar" onclick="ir('facturacion.php');" />
</fieldset>
</form>
</div>
</div>
<?php
include('menuFacturacion.php');
include('foot.html');
// debo poder incluir productos, con sus cantidades, y mostrar el precio unitario de ese producto, fecha de entrega, y un textarea, para Detalles de Diseño y Produccion
?>