<?php
 
session_start();
$com = "A";
include("DMMYSQLG.php");
include("DSA3000.php");
include("DMMYSQLG.php");
require_once("DFJQUERY.inc");
?>
<html>
<link rel="stylesheet" href="css/estilo1.css" type="text/css"/>
<script type="text/javascript" language="JavaScript1.2" src="DSSCRIPT.js"></script>
<style type="text/css">
<!--
.Estilo23 {font-size: 12px; font-weight: bold; }
-->
</style>

<body>

<form name="frm1" method="post" action="" enctype="multipart/form-data">
  
   <div id="width_wrapper" align="center">
  <table width="475" border="0" align="center">
    <tr>
      <td colspan="2" class="titulo">AGREGAR DEPARTAMENTO </th>    </tr>
    <tr>
      <th width="100" style="#FFCC00"><span class="Estilo23">DESCRIPCION</span></th>
      <td width="359"><input name="tap2" id="tap2" type="text" tabindex="2"
		  onBlur="may(this)" size="50"
		<?php

			if(isset($_REQUEST['tap2'])){ 
				echo 'value="' . $_REQUEST['tap2'] .  '"';
			}
		?>></td>
    </tr>
  
      <tr>
        <th style="#FFCC00"><span class="Estilo23">SUB-ALMACEN</span></th>
        <td><label>
          <select name="sub" tabindex="25">
            <option value="SI"<?php
 if($_REQUEST['select']=="SI") echo 'selected';?>>SI</option>
            <option value="NO"<?php
 if($_REQUEST['select']=="NO") echo 'selected';?>>NO</option>
          </select>
        </label>
        <label></label></td>
      </tr>
      <tr>
        <th width="100" style="#FFCC00"><span class="Estilo23">STATUS</span></th>
        <td width="359"><select name="select">
          <option value="ACTIVO"<?php
 if($_REQUEST['select']=="ACTIVO") echo 'selected';?>>ACTIVO</option>
          <option value="INACTIVO"<?php
 if($_REQUEST['select']=="INACTIVO") echo 'selected';?>>INACTIVO</option>
        </select></td>
      </tr>
      <tr>
        <td height="26" colspan="2" class="titulo">
        <div align="center">
          <input name="Submit22" type="Button" class="original" onClick="openpage('AL10100_AC.php','_self')" value="Guardar">
          <input type="Button" name="Submit2" class="bot_WsW" value="Regresar" onClick="envia1('AL10100_PR.php','_self')">
        </div>        </td>
      </tr>
    </table>
  </div>
</form>
</body>
</html>
<?php
 mysqli_close($con);?>
