<?
include("../fnc.php");
enlinea_a();
if($idpp){
 $tipo="Update";
 $idd_pp=dec($iddpp);
 $q=mysql_query("select * from cp_det_planesdepagos where id = $idd_pp");
 if(mysql_num_rows($q)==0){
   param_inc();
 }
 $info=mysql_fetch_array($q);
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>e-Ducativo - Bienvenido</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="../estilo1.css" rel="stylesheet" type="text/css">
<script language="javascript">
<!--

function validar(formulario){
 if(document.form2.txtplan.value==""){
   alert("Ingrese el nombre del plan");
   document.form2.txtplan.focus();
   return (false);
 }

 if(document.form2.txtvmensualidad.value==""){
   alert("Ingrese el valor del cargo mensual");
   document.form2.txtvmensualidad.focus();
   return (false);
 }

return (true);
}
//-->
</script>
<style type="text/css">
<!--
body {
	background-image: url(../images/tema/bg_pagina.png);
}
-->
</style></head>

<body>
<table width="750" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#333333">
  <tr>
    <td bgcolor="#336699">
      <table width="100%"  border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#E5E5E5">
        <tr bgcolor="#FFFFFF">
          <td width="40%"><img src="../images/logo_5.gif" width="300" height="50"></td>
          <td width="60%" background="../images/back_header_admin.gif" bgcolor="#FFFFFF"><div align="right" class="usuario_nombre_enc"><strong><?echo "$unombre $uapellido";?><br>
              </strong>Tiene <?=mensajes($uuser);?> mensaje(s) sin leer</div></td>
        </tr>
        <tr bgcolor="#FFFFFF">
          <td height="15" colspan="2" background="../images/barra_encabezado.gif">&nbsp;</td>
        </tr>
      </table>
      <table width="100%"  border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFCC">
        <tr>
          <td width="20%" valign="top" background="../images/tema/bg_contenido.png" bgcolor="#FFFFCC"><?php include("menu.php"); ?>&nbsp;</td>
          <td width="80%" valign="top" background="../images/tema/bg_contenido.png" bgcolor="#FFFFCC"><table width="100%"  border="0" cellpadding="0" cellspacing="0" bgcolor="#333333">
              <tr align="center" valign="middle" bgcolor="#FFFFCC">
                <td height="20" bgcolor="#FFFFCC" class="titulo_pagina"><div align="center" class="titulo_seccion">
                    <div align="left">
                      <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <td background="../images/tema/bg_contenido.png"><div align="center" class="titulo_pagina">
                              <div align="left" class="parrafo">CONTROL DE PAGOS <img src="../images/flecha_3.jpg" width="9" height="9"> Modificar planes de pago </div>
                          </div></td>
                          <td width="65" background="../images/tema/bg_contenido.png"><div align="right"><a href="inicio.php" class="link_parrafo">Inicio<img src="../images/ic_home.png" width="21" height="21" border="0"></a></div></td>
                        </tr>
                      </table>
                    </div>
                </div></td>
              </tr>
              <tr>
                <td align="left" valign="top" background="../images/tema/bg_contenido.png" bgcolor="#FFFFCC"><div align="left" class="parrafo">
                    <table width="100%"  border="0" cellspacing="0" cellpadding="1">
                      <tr>
                        <td align="left" valign="top"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
                            <tr>
                              <td>
                                <hr size="1">
                                  <table width="100%"  border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                      <td><form name="form1" method="post" action="mnt_det_planespago.php">
                                          <table width="100%"  border="0" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
                                            <tr bgcolor="#336699">
                                              <td colspan="3" class="titulo_formulario"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                <tr>
                                                  <td width="2%"><img src="../images/tema/ic_pagos.png" width="35" height="32"></td>
                                                  <td width="98%" background="../images/tema/bg_titulo_frm.png">Agregar nuevo cargo a este plan de pago </td>
                                                </tr>
                                              </table></td>
                                            </tr>
                                            <tr bgcolor="#CFDFEF" class="parrafo">
                                              <td width="57%" background="../images/tema/bg_frm_campos.png"><div align="center"><strong>Descripci&oacute;n del cargo </strong></div></td>
                                              <td background="../images/tema/bg_frm_campos.png"><div align="center"><strong>Valor</strong></div>                                              </td>
                                              <td width="15%" background="../images/tema/bg_frm_campos.png">&nbsp;</td>
                                            </tr>
                                            <tr>
                                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9"><div align="center">
                                                <input name="idpp" type="hidden" id="idpp" value="<?=$idpp;?>">
                                                <input name="iddpp" type="hidden" id="iddpp" value="<?=$iddpp;?>">
                                                <input name="txtdescrip" type="text" class="textbox" id="txtdescrip" size="60" maxlength="255" value="<?=$info[descripcion];?>">
                                              </div></td>
                                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9"><div align="center">
                                                <input name="txtvalor" type="text" class="textbox" id="txtvalor" value="<?=$info[valor];?>">
                                              <input type="hidden" name="tipo_trn" value="Update">
                                                </div>
                                              </td>
                                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9">&nbsp;</td>
                                            </tr>
                                            <tr>
                                              <td colspan="3" bgcolor="#ECF2F9"><table width="100%"  border="0" cellpadding="0" cellspacing="0" background="../images/tema/bg_frm_campos.png">
                                                <tr class="parrafo">
                                                  <td width="16%"><div align="center"><strong>ENE</strong></div></td>
                                                  <td width="16%"><div align="center"><strong>FEB</strong></div></td>
                                                  <td width="16%"><div align="center"><strong>MAR</strong></div></td>
                                                  <td width="16%"><div align="center"><strong>ABR</strong></div></td>
                                                  <td width="16%"><div align="center"><strong>MAY</strong></div></td>
                                                  <td width="16%"><div align="center"><strong>JUN</strong></div></td>
                                                </tr>
                                                <?
                                  $chk_m1="";
                                  $chk_m2="";
                                  $chk_m3="";
                                  $chk_m4="";
                                  $chk_m5="";
                                  $chk_m6="";
                                  $chk_m7="";
                                  $chk_m8="";
                                  $chk_m9="";
                                  $chk_m10="";
                                  $chk_m11="";
                                  $chk_m12="";
                                  if($info[m1]=="S"){$chk_m1="checked";}
                                  if($info[m2]=="S"){$chk_m2="checked";}
                                  if($info[m3]=="S"){$chk_m3="checked";}
                                  if($info[m4]=="S"){$chk_m4="checked";}
                                  if($info[m5]=="S"){$chk_m5="checked";}
                                  if($info[m6]=="S"){$chk_m6="checked";}
                                  if($info[m7]=="S"){$chk_m7="checked";}
                                  if($info[m8]=="S"){$chk_m8="checked";}
                                  if($info[m9]=="S"){$chk_m9="checked";}
                                  if($info[m10]=="S"){$chk_m10="checked";}
                                  if($info[m11]=="S"){$chk_m11="checked";}
                                  if($info[m12]=="S"){$chk_m12="checked";}
                                  ?>
                                                <tr bgcolor="#ECF2F9">
                                                  <td background="../images/tema/bg_frm_campos.png">
                                                    <div align="center">
                                                      <input name="m1" type="checkbox" id="m1" value="S" <?=$chk_m1;?>>
                                                  </div></td>
                                                  <td background="../images/tema/bg_frm_campos.png"><div align="center">
                                                      <input name="m2" type="checkbox" id="m2" value="S"  <?=$chk_m2;?>>
                                                  </div></td>
                                                  <td background="../images/tema/bg_frm_campos.png"><div align="center">
                                                      <input name="m3" type="checkbox" id="m3" value="S"  <?=$chk_m3;?>>
                                                  </div></td>
                                                  <td background="../images/tema/bg_frm_campos.png"><div align="center">
                                                      <input name="m4" type="checkbox" id="m4" value="S"  <?=$chk_m4;?>>
                                                  </div></td>
                                                  <td background="../images/tema/bg_frm_campos.png"><div align="center">
                                                      <input name="m5" type="checkbox" id="m5" value="S"  <?=$chk_m5;?>>
                                                  </div></td>
                                                  <td background="../images/tema/bg_frm_campos.png"><div align="center">
                                                      <input name="m6" type="checkbox" id="m6" value="S"  <?=$chk_m6;?>>
                                                  </div></td>
                                                </tr>
                                                <tr bgcolor="#ECF2F9" class="parrafo">
                                                  <td background="../images/tema/bg_frm_campos.png"><div align="center"><strong>JUL</strong></div></td>
                                                  <td background="../images/tema/bg_frm_campos.png"><div align="center"><strong>AGO</strong></div></td>
                                                  <td background="../images/tema/bg_frm_campos.png"><div align="center"><strong>SEP</strong></div></td>
                                                  <td background="../images/tema/bg_frm_campos.png"><div align="center"><strong>OCT</strong></div></td>
                                                  <td background="../images/tema/bg_frm_campos.png"><div align="center"><strong>NOV</strong></div></td>
                                                  <td background="../images/tema/bg_frm_campos.png"><div align="center"><strong>DIC</strong></div></td>
                                                </tr>
                                                <tr bgcolor="#ECF2F9">
                                                  <td background="../images/tema/bg_frm_campos.png"><div align="center">
                                                      <input name="m7" type="checkbox" id="m7" value="S"  <?=$chk_m7;?>>
                                                  </div></td>
                                                  <td background="../images/tema/bg_frm_campos.png"><div align="center">
                                                      <input name="m8" type="checkbox" id="m8" value="S"  <?=$chk_m8;?>>
                                                  </div></td>
                                                  <td background="../images/tema/bg_frm_campos.png"><div align="center">
                                                      <input name="m9" type="checkbox" id="m9" value="S"  <?=$chk_m9;?>>
                                                  </div></td>
                                                  <td background="../images/tema/bg_frm_campos.png"><div align="center">
                                                      <input name="m10" type="checkbox" id="m10" value="S"  <?=$chk_m10;?>>
                                                  </div></td>
                                                  <td background="../images/tema/bg_frm_campos.png"><div align="center">
                                                      <input name="m11" type="checkbox" id="m11" value="S" <?=$chk_m11;?>>
                                                  </div></td>
                                                  <td background="../images/tema/bg_frm_campos.png"><div align="center">
                                                      <input name="m12" type="checkbox" id="m12" value="S" <?=$chk_m12;?>>
                                                  </div></td>
                                                </tr>
                                                <tr bgcolor="#CFDFEF">
                                                  <td colspan="6" background="../images/tema/bg_frm_campos.png"><input name="Submit" type="submit" class="boton_guardar" value="Guardar los cambios"> <input name="Submit2" type="submit" class="boton_blanco" value="Salir"></td>
                                                </tr>
                                              </table></td>
                                            </tr>
                                        </table>
                                      </form></td>
                                    </tr>
                                  </table>                              </td>
                            </tr>
                        </table></td>
                      </tr>
                    </table>
                </div></td>
              </tr>
          </table></td>
        </tr>
    </table></td>
  </tr>
</table>
</body>
</html>