<?php
 
session_start();
include("DMMYSQLG.php");
include("DSA1000.php");
include("DMMYSQLG.php");
include("DF30000.inc");
?>
<html>
<link rel="stylesheet" href="css/estilo1.css" type="text/css"/>
<script type="text/javascript" language="JavaScript1.2" src="DSSCRIPT.js"></script>
<body>
<?php
 
	$ayuda = 'DN9300A_AG.php';
	include("DYAYUDA.php");
?>
<div align="center">
  <form name="frm1" id="frm1" method="post" action="">
    <table >
      <tr>
        <th colspan="4" scope="col">TARJETAS Y LISTADOS </th>
      </tr>
      
      <tr>
        <td colspan="4"><div align="center">Tipo de nomina 
            <select name="t1" id="t1">
              <?php
  
		  $stipnom="select * from dntipnom";
		  $sqtipnom=mysqli_query($con ,$stipnom);
		  while($artipnom=mysqli_fetch_array($sqtipnom)){
		  	if("$_POST['t1']"=="$artipnom['cve_nomi']") echo '<option value="'.$artipnom['cve_nomi'].'" selected>'.$artipnom['des_nomi'].'</option>';
		  	else echo '<option value="'.$artipnom['cve_nomi'].'">'.$artipnom['des_nomi'].'</option>';
		  }
		  ?>
            </select>
        
        &nbsp;</div></td>
      </tr>
      <tr>
        <td>Fecha Inicial:  </td>
        <td><input name="t2" type="text" class="emplea" id="t2" size="15" readonly 
			  <?php
 
			  	echo 'value="'.date("d/m/Y").'"'; 
			  ?>
			  >
          <input name="reset2" id="bot2" value=" ... " type="image" src="logos/cal4.jpg"/>
          <script type="text/javascript">
				  	Calendar.setup(
    					{
      						inputField  : "t2",        // ID of the input field
      						ifFormat    : "%d/%m/%Y",    // the date format
      						button      : "bot2"      // ID of the button
    					}
  					);
				</script></td>
        <td>Fecha Final: </td>
        <td><input name="t3" type="text" class="emplea" id="t3" size="15" readonly 
			  <?php
 
			  	echo 'value="'.date("d/m/Y").'"'; 
			  ?>
			  >
          <input name="bot3" id="bot3" value=" ... " type="image" src="logos/cal4.jpg"/>
          <script type="text/javascript">
				  	Calendar.setup(
    					{
      						inputField  : "t3",        // ID of the input field
      						ifFormat    : "%d/%m/%Y",    // the date format
      						button      : "bot3"      // ID of the button
    					}
  					);
				</script></td>
      </tr>
      <tr>
        <td colspan="4"><div align="center">
          <input name="r1" type="radio" value="T" checked>
          Tarjeta &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
          <input name="r1" type="radio" value="L"> 
          Listado
        </div></td>
      </tr>
      <tr>
        <td colspan="4"><div align="center">Status:
            <select name="t4" id="t4" onChange="abre(this.value)">
              <option value="A">ACTIVO</option>
              <option value="B">BAJA</option>
              <option value="T">TODOS</option>
              </select>
        </div></td>
      </tr>
      <tr>
        <td colspan="4"><div align="center" class="tdeli">
  <input type="submit" name="Submit" value="Imprimir" onClick="openpage('DN93000_IM1.php','_self')">
        </div></td>
      </tr>
    </table>
  </form>
</div>
</body>
</html>