Ver Mensaje Individual
  #7 (permalink)  
Antiguo 06/10/2005, 07:19
higi
 
Fecha de Ingreso: agosto-2005
Mensajes: 192
Antigüedad: 18 años, 8 meses
Puntos: 0
Y otro...

Código PHP:
//Consulta que muestra los datos del Comprobate                                                 
    if($boton1 == "Consulta")
     {
        $sql1 = ("select c.numdoc,c.vrbase,c.codcuenta,c.detacontab,c.debito,c.credito,c.indcucontab,c.nitcontab,c.idcont,
               d.descripuser,d.numdoc,d.planilla
               from documentocp d, contabilizacioncp c
               where  d.numdoc = $numdoc && c.numdoc = d.numdoc");         
     $respu1 = mysql_query($sql1); 
     $res1 = mysql_num_rows($respu1); 
     
     for($i=0;$i<$res1;$i++) //Mostramos los datos de la consulta
         {
         $data1 = mysql_fetch_object($respu1); //Realiso dos hidden llamados identificacion y password para 
                                             //que me guarde los valores y asi pasarlo a los demas formularios.  
         ?>
  <table height="5%" cellspacing=0 cellpadding=0 width="100%" 
      bgcolor=#f4f4f4 border=0>
    <tbody>
      <tr bgcolor=#504e63> 
        <td width=1 
            height="34" valign=top bgcolor=#113e75 class=az>&nbsp;</td>
        <td width="982" height="34" colspan="5" align=middle valign=top bgcolor=#ffffff> 
          <table width="100%" height="34" 
            border=0 cellpadding=0 cellspacing=0 bgcolor=#2867b7>
            <tbody>
              <tr> 
                <td width=1013 height="34" align=left bgcolor=#2867b7> 
                  <table id=Table_01 height=3% cellspacing=0 cellpadding=0 
                  width=100% border=0>
                    <tbody>
                      <tr> 
                        <td width="58968" height="32" colspan="7" bgcolor="#FFFFFF"> 
                          <div align="left"> </div>
                          <table width="980" border="0" cellspacing=0 class=tablaCont>
                            <tbody>
                              <tr class=trmarca> 
                                <td height="30" class=CuerpoContC style="PADDING-BOTTOM: 3px; PADDING-TOP: 3px"> 
                                  <div align="right"> 
                                    <table width="980" border="1" cellspacing=0 bordercolor="#FFFFFF" class=tablaCont>
                                      <tbody>
                                        <tr class=trmarca> 
                                          <td width="7%" bgcolor="#FFFFFF" class=CuerpoContC style="PADDING-BOTTOM: 3px; PADDING-TOP: 3px"> 
                                            <div align="center"><font size="2"> 
                                              <input name="idcont" type="text" id="idcont" value="<? echo $data1->idcont?>" size="9" maxlength="8" readonly="true" validation="empty" validationhint="required" validationmsg="El campo Codigo cuenta es de tipo obligatorio">
                                              </font> </div></td>
                                          <td width="7%" bgcolor="#FFFFFF" class=CuerpoContC style="PADDING-BOTTOM: 3px; PADDING-TOP: 3px"><div align="center"><font size="2"> 
                                              <input name="codcuenta" type="text" id="codcuenta" value="<? echo $data1->codcuenta?>" size="9" maxlength="8" readonly="true" validation="empty" validationhint="required" validationmsg="El campo Codigo cuenta es de tipo obligatorio">
                                              </font></div></td>
                                          <td width="10%" bgcolor="#FFFFFF" class=CuerpoContC style="PADDING-BOTTOM: 3px; PADDING-TOP: 3px"><div align="center"><font size="2"> 
                                              <input name="nitcontab" type="text" id="nitcontab" value="<? echo $data1->nitcontab?>" size="11" maxlength="11" validation="empty" validationHint="required" validationMsg="El campo Nit o CC Beneficiario es de tipo obligatorio">
                                              </font></div></td>
                                          <td width="6%" bgcolor="#FFFFFF" class=CuerpoContC style="PADDING-BOTTOM: 3px; PADDING-TOP: 3px"> 
                                            <div align="center"><font color="#FF0000"><font color="#333333"><strong><font color="#FF0000"><font color="#333333"><strong><font size="2"> 
                                              <input name="indcucontab" type="text" id="indcucontab" value="<? echo $data1->indcucontab?>" size="2" maxlength="2" validation="empty" validationHint="required" validationMsg="El campo C.U es de tipo obligatorio">
                                              </font><font size="3"></font></strong></font></font></strong></font></font></div></td>
                                          <td width="13%" bgcolor="#FFFFFF" class=CuerpoContC style="PADDING-BOTTOM: 3px; PADDING-TOP: 3px"> 
                                            <div align="center"><font color="#FF0000"><font color="#333333"><strong><font color="#FF0000"><font color="#333333"><strong><font size="2"> 
                                              <input type="radio" name="checkbox" onClick="document.getElementById('txtFld2').value=this.checked?this.value:''" value="">
                                              <input name='debito' type='text' id="txtFld2" value="<? echo $data1->debito?>" size="14" maxlength="14" validation="numeric" validationmsg="El campo Debito debe ser de tipo numerico">
                                              </font><font size="3"></font></strong></font></font></strong></font></font></div></td>
                                          <td width="14%" bgcolor="#FFFFFF" class=CuerpoContC style="PADDING-BOTTOM: 3px; PADDING-TOP: 3px"> 
                                            <div align="center"><font color="#FF0000"><font color="#333333"><strong><font size="2"> 
                                              <input type="radio" name="checkbox" onClick="document.getElementById('txtFld3').value=this.checked?this.value:''" value="">
                                              <input name='credito' type='text' id="txtFld3" value="<? echo $data1->credito?>" size="14" maxlength="14" validation="numeric" validationmsg="El campo Credito debe ser de tipo numerico">
                                              </font><font size="3"></font></strong></font></font></div></td>
                                          <td width="11%" bgcolor="#FFFFFF" class=CuerpoContC style="PADDING-BOTTOM: 3px; PADDING-TOP: 3px"><div align="center"><font color="#FF0000"><font color="#333333"><strong><font size="3"> 
                                              <input name="vrbase" type="text" id="txtFld4" value="<? echo $data1->vrbase?>" size="14" maxlength="14" readonly="true" validation="numeric" validationHint="required" validationMsg="El campo Vr base es de tipo obligatorio">
                                              </font></strong></font></font></div></td>
                                          <td width="32%" colspan="2" bgcolor="#FFFFFF" class=CuerpoContC style="PADDING-BOTTOM: 3px; PADDING-TOP: 3px"> 
                                            <div align="center"> 
                                              <textarea name="detacontab" cols="30" rows="1" id="detacontab" type="text" validation="empty" validationHint="required" validationMsg="El campo detalle contabilizacion documento es de tipo obligatorio"><? echo $data1->detacontab?></textarea>
                                            </div></td>
                                        </tr>
                                      </tbody>
                                    </table>
                                    <font color="#FF0000" size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong></strong></font></div>
                                  <div align="left"><font size="2"> </font></div>
                                  <div align="right"><font size="2"> </font></div></td>
                              </tr>
                            </tbody>
                          </table></td>
                        <td width="33" bordercolor="#FFFFFF" bgcolor="#FFFFFF"> 
                          <div align="right"><font color="#0000FF"></font> <font color="#0000FF"></font></div></td>
                        <td width="1" bgcolor="#FFFFFF"><div align="right"></div></td>
                      </tr>
                    </tbody>
                  </table></td>
              </tr>
            </tbody>
          </table></td>
      </tr>
    </tbody>
  </table>
  <?php
     
}//fin del for
}//fin del if