|    
			
				24/09/2010, 15:38
			
			
			  | 
  |   |  |  |  Fecha de Ingreso: septiembre-2010 
						Mensajes: 30
					 Antigüedad: 15 años, 1 mes Puntos: 0 |  | 
  |  Respuesta: Operaciones senciillas Formulario  
  <?php$mensaje="";
 require_once('clases/funciones.php');
 $miSocios = new Socios();
 $clientes=$miSocios->regresadatoscliente();
 $row;
 $bancos=$miSocios->regresabancos();
 $row;
 
 $loginFormAction= $_SERVER['PHP_SELF'];
 $misfunciones  = new bancos();
 if(isset($_POST['fecha']))
 {
 $idbanco = $misfunciones->regresaIdBanco($_POST['nombanco']);
 }
 
 $loginFormAction= $_SERVER['PHP_SELF'];
 $misfunciones  = new bancos();
 if(isset($_POST['fecha']))
 {
 $row = $misfunciones->regresaIdCliente($_POST['nombrecliente']);
 
 
 $misfunciones->cxcobrar($_POST['recibodinero'],$row['idcliente'],$idbanco['idbanco'],$_POST['fecha'],$_POST['factura'],$_POST['importe'],$_POST['iva'],$_POST['total'],$_POST['cobrado'],$_POST['saldo']);
 $mensaje="Registro Guardado";
 }
 ?>
 function vacio(q) {
 for ( i = 0; i < q.length; i++ ) {
 if ( q.charAt(i) != " " ) {
 return true
 }
 }
 return false
 }
 <script>
 function sumatotal(){
 sumatotal = document.form.importes.value + document.form.ivas.value;
 document.form.total.value = sumatotal;
 }
 
 </script>
 <title>Ctas. X Cobrar</title>
 
 <!-- Contents -->
 <meta http-equiv="Content-Type" content="text/html; charset=-???-" />
 <meta http-equiv="Content-Language" content="-???-" />
 <meta http-equiv="last-modified" content="28/07/2010 11:39:25" />
 <meta http-equiv="Content-Type-Script" content="text/javascript" />
 <meta name="description" content="Control de Egresos e Ingresos" />
 <meta name="keywords" content="" />
 <!-- imCustomHead -->
 <meta http-equiv="Expires" content="0" />
 <meta name="Resource-Type" content="document" />
 <meta name="Distribution" content="global" />
 <meta name="Robots" content="index, follow" />
 <meta name="Revisit-After" content="21 days" />
 <meta name="Rating" content="general" />
 <!-- Others -->
 <meta name="Generator" content="Incomedia WebSite X5 Evolution 8.0.11 - www.websitex5.com" />
 <meta http-equiv="ImageToolbar" content="False" />
 <meta name="MSSmartTagsPreventParsing" content="True" />
 
 <!-- Parent -->
 <link rel="sitemap" href="imsitemap.html" title="-???-" />
 <!-- Res -->
 <script type="text/javascript" src="res/x5engine.js"></script>
 <link rel="stylesheet" type="text/css" href="res/styles.css" media="screen, print" />
 <link rel="stylesheet" type="text/css" href="res/template.css" media="screen" />
 <link rel="stylesheet" type="text/css" href="res/print.css" media="print" />
 <!--[if lt IE 7]><link rel="stylesheet" type="text/css" href="res/iebehavior.css" media="screen" /><![endif]-->
 <link rel="stylesheet" type="text/css" href="res/p001.css" media="screen, print" />
 <link rel="stylesheet" type="text/css" href="res/handheld.css" media="handheld" />
 <link rel="alternate stylesheet" title="-???-" type="text/css" href="res/accessibility.css" media="screen" />
 
 <style type="text/css">
 <!--
 .Estilo1 {font-size: medium}
 -->
 </style>
 </head>
 <body>
 <div id="imSite">
 <div id="imHeader">
 <h1>GM-Control</h1>
 </div>
 <div class="imInvisible">
 <hr />
 <a href="#imGoToCont" title="-???-">-???-</a>
 </div>
 <div id="imBody">
 <div id="imMenuMain">
 
 <!-- Page START -->
 <h2>Captura Ingresos.</h2>
 <p>
 <h2>TIPO DE DOCUMENTO</h2>
 <form id="form1" method="post" action="<?php echo $loginFormAction;?>">
 <table width="669" height="38" border="0">
 <tr>
 <td width="115"> </td>
 <td width="183"><label>
 <input name="recibodinero" type="radio" value="0" />
 </label>
 <span class="Estilo1">RECIBO DINERO</span></td>
 <td width="297"><label>
 <input name="recibodinero" type="radio" value="1" />
 </label>
 <span class="Estilo1">RECIBO HONORARIOS</span></td>
 <td width="56"> </td>
 </tr>
 </table>
 <table width="668" height="33" border="0">
 <tr>
 <td width="162"> </td>
 <td width="69"><span class="imLockLabel Estilo1 Estilo1 Estilo1 Estilo1">CLIENTE:</span></td>
 <td width="406">
 <p>
 <label>
 <?php
 echo "<select name=\"nombrecliente\">";
 while($row=mysql_fetch_array($clientes))
 {
 echo "<option >".$row['nomcliente']."</option>";
 }
 echo "</select>";
 ?>
 </label>
 </p>
 </td>
 <td width="13"> </td>
 </tr>
 </table>
 <table width="668" height="33" border="0">
 <tr>
 <td width="163"> </td>
 <td width="70"><span class="imLockLabel Estilo1 Estilo1 Estilo1 Estilo1">BANCO:</span></td>
 <td width="356"><p>
 <label>
 <?php
 echo "<select name=\"nombanco\">";
 while($row=mysql_fetch_array($bancos))
 {
 echo "<option >".$row['nombrebanco']."</option>";
 }
 echo "</select>";
 ?>
 </label>
 </p></td>
 <td width="61"> </td>
 </tr>
 </table>
 <p> </p>
 <table width="667" height="44" border="0">
 <tr>
 <td width="121"> </td>
 <td width="54"><span class="imLockLabel Estilo1 Estilo1 Estilo1 Estilo1">FECHA:</span></td>
 <td width="141"><input name="fecha" type="text" size="20" id="fechas" /></td>
 <td width="75"><span class="imLockLabel Estilo1 Estilo1 Estilo1 Estilo1">FACTURA:</span></td>
 <td width="140"><input name="factura" type="text" size="20" id="facturas"/></td>
 <td width="110"> </td>
 </tr>
 </table>
 <table width="667" height="44" border="0">
 <tr>
 <td width="141"> </td>
 <td width="71"><span class="imLockLabel Estilo1 Estilo1 Estilo1 Estilo1">IMPORTE:</span></td>
 <td width="141"><input name="importe" type="text" size="20" id="importes" /></td>
 <td width="40"><span class="imLockLabel Estilo1 Estilo1 Estilo1 Estilo1">IVA:</span></td>
 <td width="233"><input name="iva" type="text" size="20" id="ivas" onblur"sumatotal();" /></td>
 <td width="15"> </td>
 </tr>
 </table>
 <table width="669" height="34" border="0">
 <tr>
 <td width="98" height="30"> </td>
 <td width="217"><span class="imLockLabel Estilo1 Estilo1 Estilo1 Estilo1">TOTAL:
 <input name="total" type="text" size="20" disabled="true" id="total" />
 </span></td>
 <td width="340"><span class="imLockLabel Estilo1 Estilo1 Estilo1 Estilo1">COBRADO:
 <input name="cobrado" type="text" size="20" id="cobrado"/>
 </span></td>
 </tr>
 </table>
 <table width="669" height="33" border="0">
 <tr>
 <td width="347"> </td>
 <td width="55"><span class="imLockLabel Estilo1 Estilo1 Estilo1 Estilo1">SALDO:</span></td>
 <td width="253"><span class="imLockLabel Estilo1 Estilo1 Estilo1 Estilo1">
 <input name="saldo" type="text" size="20" disabled="true" id="saldos" />
 </span></td>
 </tr>
 </table>
 <p> </p>
 <p> 	</p>
 <table width="664" height="34" border="0">
 <tr>
 <td width="244"> </td>
 <td width="114">
 <p>
 <label>
 <input type="submit" name="button2" id="button2" value="Guardar" />
 </label>
 </p>
 </td>
 <td width="194">
 <p>
 <label>
 <input type="submit" name="button" id="button" value="Cancelar" />
 </label>
 </p>
 </td>
 <td width="94"> </td>
 </tr>
 </table>
 </form>
 <script language="JavaScript" type="text/javascript">
 var frmvalidator = new Validator("form1");
 frmvalidator.addValidation("recibodinero","selone_  radio","Elija Honorarios o dinero");
 frmvalidator.addValidation("fecha","req","Por favor ingrese fecha");
 frmvalidator.addValidation("factura","req","Por favor ingrese factura");
 frmvalidator.addValidation("importe","req","Por favor ingrese importe");
 frmvalidator.addValidation("iva","req","Por favor ingrese iva");
 frmvalidator.addValidation("total","req","Por favor ingrese total");
 frmvalidator.addValidation("cobrado","req","Por favor ingrese lo cobrado");
 frmvalidator.addValidation("saldo","req","Por favor ingrese saldo");
 
 </script>
 <p> </p>
 <p>
 <!-- Page END -->
 </p>
 <p id="imFooterSiteMap"><a href="index.php" title="">Inicio</a> | <a href="ctas_x_cobrar.php" title="">Captura</a> | <a href="movimientos.php" title="">Consulta</a> | <a href="clientes.php" title="">Catalogos</a> | <a href="cuentas_por_cobrar.php" title="">Reportes</a> | <a href="imsitemap.php" title="-???-">-???-</a></p>
 </div>
 <div id="imMenuSub">
 <hr class="imHidden" />
 <p class="imHidden">-???-</p>
 <ul>
 <li class="imMenuSubCur">Ctas. X Cobrar <span class="imHidden"> ←</span></li>
 <li><a href="ctas_x_pagar.php" title="">Ctas. X Pagar</a></li>
 </ul>
 </div>
     |