<?
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 seleccionar_alumno(){
  var combo = document.form1.txtalumno;
  var mcarnet = document.form1.txtcarnet.value;
  var respuesta;

  for(i=0;i<combo.length;i++){
    if(combo.options[i].value==mcarnet){
       respuesta = confirm("El carné ingresado corresponde a:\n"+combo.options[i].text+"\n\n"+"Desea operar el pago a este alumno?");
       if(respuesta){
         combo.selectedIndex = i;
       }else{
         return (false);
       }
    }
  }

}


function validar(){
 var formulario=document.form1;
 var objeto;
 
 objeto=formulario.iddoc;
 if(objeto.value=="SV"){
   alert("Seleccione un tipo de documento");
   objeto.focus();
   return (false);
 }
 
 objeto=formulario.txtndoc;
 if(objeto.value==""){
   alert("Ingrese el número del documento");
   objeto.focus();
   return (false);
 }

 window.open('./mnt_cp_reimpresion.php?iddoc='+formulario.iddoc.value+'&txtndoc='+formulario.txtndoc.value,'ReimpresionDoc','width=800, height=600, location=no,menubar=no,resaizable=no,status=no,scrollbars=yes');
 return (false);
}

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"><div align="center">
                <div align="left">
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td width="352" background="../images/tema/bg_contenido.png"><div align="center" class="titulo_pagina">
                        <div align="left" class="parrafo">REPORTES DE CAJA  <img src="../images/flecha_3.jpg" width="9" height="9"> Reimpresi&oacute;n de documentos</div>
                      </div></td>
                      <td width="247" background="../images/tema/bg_contenido.png"><div align="right"><a href="frm_reportes.php" class="link_parrafo">Regresar al men&uacute; de reportes <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="mnt_cp_reimpresion.php" method="post" name="form1" id="form1" onsubmit="return validar();">
               <br>
                 <table width="100%"  border="0" cellspacing="0" cellpadding="0">
                   <tr>
                     <td colspan="2" background="../images/tema/bg_frm_campos.png" class="lbl_campo"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                       <tr>
                         <td width="6%" background="../images/tema/bg_titulo_frm.png"><img src="../images/tema/ic_buscar.png" width="35" height="32"></td>
                         <td width="94%" background="../images/tema/bg_titulo_frm.png" class="titulo_formulario">Ingrese la informaci&oacute;n del documento </td>
                       </tr>
                     </table></td>
                     </tr>
                   <tr>
                     <td background="../images/tema/bg_frm_campos.png" class="lbl_campo"> Tipo de documento:</td>
                     <td background="../images/tema/bg_frm_campos.png"><select name="iddoc" class="lbl_campo" id="iddoc">
                       <option value="SV">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="<?=$ital[id];?>" <?=$sel;?>>
                         <?=$ital[nombre];?>
                         </option>
                       <?}?>
                     </select></td>
                   </tr>
                   <tr>
                     <td width="30%" background="../images/tema/bg_frm_campos.png" class="lbl_campo">N&uacute;mero de documento: </td>
                     <td width="70%" background="../images/tema/bg_frm_campos.png"><input name="txtndoc" type="text" class="lbl_formulario" id="txtndoc" value="" size="10"></td>
                   </tr>
                   <tr>
                     <td background="../images/tema/bg_frm_campos.png" class="lbl_campo">&nbsp;</td>
                     <td background="../images/tema/bg_frm_campos.png"><input name="Submit" type="submit" class="boton_guardar" value="Ver documento"></td>
                   </tr>
                 </table>
                    </form>
                </div></td>
              </tr>
          </table></td>
        </tr>
    </table>    </td>
  </tr>
</table>
</body>
</html>
