<?php
 
session_start();
$com = "A";
include("DMMYSQLG.php");
include("DSA3000.php");
include("DMMYSQLG.php");

?>
<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" method="post" action="" enctype="multipart/form-data">
  <div id="width_wrapper" align="center">
 <table width="543" align="center">
    <tr>
      <td colspan="2" class="titulo"><div align="center"> AGREGAR CATALOGO DE GRUPOS</div></td>
    </tr>
	<tr>
      <th><div align="left">Descripcion:</div></th>
      <td><input name="tap2" type="text" id="tap2" onBlur="may(this)"
	  <?php

			if(isset($_REQUEST['tap2'])){ 
				echo 'value="' . $_REQUEST['tap2'] .  '"';
			}
		?>
	  ></td>
    </tr>
    <tr>
      <th><div align="left">Rango Vta1 Hasta:</div></th>
      <td> 
      <input name="t2" type="text" id="t2" onBlur="may(this)">      </td>
    </tr>
    <tr>
      <th><div align="left">Rango Vta2 Hasta:</div></th>
      <td> 
      <input name="t3" type="text" id="t3" onBlur="may(this)">      </td>
    </tr>
	<tr>
	  <th><div align="left">Rango Vta3 +/= De:</div></th>
	  <td><input name="t4" type="text" id="t4" onBlur="may(this)"></td>
    </tr>
	<tr>
      <th><div align="left">Foto_grup</div></th>
      <td><input name="fichero" type="file"></td>
    </tr>
	<tr>
	  <th><div align="left">Ubicacion</div></th>
	  <td><select name="ubicacion" id="ubicacion">
        <option value="A"  <?php
 if (!(strcmp('A', $_REQUEST['ubicacion']))) {echo "selected=\"selected\"";} ?>>ALMACEN</option>
        <option value="V"  <?php
 if (!(strcmp('V', $_REQUEST['ubicacion']))) {echo "selected=\"selected\"";} ?>>VENTAS</option>
      </select></td>
    </tr>
    <tr>
      <td colspan="2" class="titulo"><div align="center">
        <input type="button" name="Submit22" value="Guardar" onClick="openpage('cat_grupos_AC.php','_self')" class="bot_WsW"/>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
          <input type="button" name="Submit2" value="Regresar" onClick="openpage('cat_grupos_PR.php','_self')" class="original"/>
      </div></td>
    </tr>
  </table>
  </div>
</form>
</body>
</html>
