<?php
 
session_start();
include("DMMYSQLG.php");
include("DSA1000.php");
include("DMMYSQLG.php");

function con_mes ($mes){
	if ($mes == 1 or $mes == "01") return "ENERO";
	elseif($mes == 2 or $mes == "02") return "FEBRERO";
	elseif($mes == 3 or $mes == "03") return "MARZO";
	elseif($mes == 4 or $mes == "04") return "ABRIL";
	elseif($mes == 5 or $mes == "05") return "MAYO";
	elseif($mes == 6 or $mes == "06") return "JUNIO";
	elseif($mes == 7 or $mes == "07") return "JULIO";
	elseif($mes == 8 or $mes == "08") return "AGOSTO";
	elseif($mes == 9 or $mes == "09") return "SEPTIEMBRE";
	elseif($mes == 10 or $mes == "10") return "OCTUBRE";
	elseif($mes == 11 or $mes == "11") return "NOVIEMBRE";
	elseif($mes == 12 or $mes == "12") return "DICIEMBRE";
}

$sq_pargen = mysqli_query($con ,"select * from dnpargen");
$dt_pargen = mysqli_fetch_array($sq_pargen);

?>
<html>
<link rel="stylesheet" href="css/estilo1.css" type="text/css"/>
<script type="text/javascript" language="JavaScript1.2" src="DSSCRIPT.js"></script>
<body>
<form name="frm1" id="frm1" method="post" action="">

  <table border="0" align="center">
    <tr>
      <th colspan="2" scope="col">CIERRE Y GENERA NUEVO PERIODO MENSUAL Y BIMESTRAL </th>
    </tr>
    <tr>
      <td width="153" class="tabagre">A&Ntilde;O A CERRA: </td>
      <td width="196" class="tabagre"><?php
 echo $dt_pargen['axo_pro']?>&nbsp;</td>
    </tr>
    <tr>
      <td class="tabagre">MES A CERRAR:</td>
      <td class="tabagre"><?php
 echo con_mes($dt_pargen['mes_pro'])?></td>
    </tr>
    <tr>
      <td colspan="2">ESTA USTED SEGURO &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <input name="r1" type="radio" value="SI">
      SI &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      <input name="r1" type="radio" value="NO" checked>
      NO</td>
    </tr>
    <tr>
      <td colspan="2"><div align="center">
        <input type="button" name="Submit" value="Procesar" onClick="openpage('DN41000_AG.php','_self')">
      </div></td>
    </tr>
  </table>
</form>
</body>
</html>