<?
include("../fnc.php");
enlinea_a();
?>
<!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">
<?=mascara();?>
<script language="javascript">
<!--
function validar(formulario){
 if(document.form1.txtdoc.value=="#"){
   alert("Seleccione un tipo de documento");
   document.form1.txtdoc.focus();
   return (false);
 }

 if(document.form1.txtfechadoc.value==""){
   alert("Ingrese la fecha del documento");
   document.form1.txtfechadoc.focus();
   return (false);
 }

 if(document.form1.txtndoc.value==""){
   alert("Ingrese el número del documento");
   document.form1.txtndoc.focus();
   return (false);
 }

 if(document.form1.txtalumno.value=="SV"){
   alert("Seleccione un alumno");
   document.form1.txtalumno.focus();
   return (false);
 }

 return (true);
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

//-->
</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"><span class="lbl_roja"> ELIMINACION de documentos </span></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">
               <form action="frm_cp_eliminardoctoV.php" method="post" name="form1" id="form1" onsubmit="return validar(this);">
                 <hr size="1">

                 <table width="100%"  border="0" cellspacing="0" cellpadding="0">
                   <tr>
                     <td width="30%"><span class="lbl_campo">Seleccione un tipo de documento:</span></td>
                     <td width="70%"><select name="txtdoc" class="lbl_campo" id="txtdoc" onChange="MM_jumpMenu('self',this,0)">
                   <option value="<?=$PHP_SELF."?f=$f";?>">Seleccione uno...</option>
                   <?
                   $qtal=mysql_query("select * from cp_talonarios where impresion='S' order by nombre");
                   while($ital=mysql_fetch_array($qtal)){
                   $sel="";
                   if($ital[id]==$iddoc){
                    $sel="selected";
                   }
                   ?>
                     <option value="<?=$PHP_SELF."?f=$f&iddoc=".$ital[id];?>"<?=$sel;?>><?=$ital[nombre];?></option>
                   <?}?>
                 </select>
                       <input name="f" type="hidden" id="f4" value="<?=$f;?>"></td>
                   </tr>
                 </table>
                 <?
                 if(!$iddoc){exit();}
                 $qalm=mysql_query("select * from alumnos order by apellido");
                 $qdoc=mysql_query("select * from cp_talonarios where id = $iddoc");
                 $idoc=mysql_fetch_array($qdoc);
                 ?>
                 <table width="100%"  border="0" cellspacing="0" cellpadding="0">
                   <tr>
                     <td width="30%" class="lbl_campo">N&uacute;mero de documento: </td>
                     <td width="70%"><input name="txtndoc" type="text" class="lbl_formulario" id="txtndoc" value="" size="10">
                       <input name="iddoc" type="hidden" id="iddoc" value="<?=$iddoc;?>"></td>
                   </tr>
                   <tr>
                     <td class="lbl_campo">&nbsp;</td>
                     <td><input name="Submit" type="submit" class="boton_guardar" value="Continuar &raquo;"></td>
                   </tr>
                 </table>
                    </form>
                </div></td>
              </tr>
          </table></td>
        </tr>
    </table>    </td>
  </tr>
</table>
</body>
</html>