<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>UCA :.</title>
<link href="ucaestilos.css" rel="stylesheet" type="text/css" />
<script>
function limpia1()
{
	document.form1.contra1.value="";
}
function limpia2()
{
	document.form1.contra2.value="";
}
</script>
</head>

<body>
<table width="750" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><form action="svasignaciondescuento.php" method="post" name="form1" id="form1">
      <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td><p class="style4">Asignar descuentos:</p>
                <hr align="left" width="100%" size="1" color="#999999" />
                <table width="404" border="0" align="center" cellpadding="3" cellspacing="2">
                  <tr bgcolor="#CCCCCC">
                    <td width="150" height="23" class="style4">Tipo de paciente</td>
                    <td width="327" class="style4">Descuento a asignar</td>
                  </tr>
				  <tr>
                    <td width="150" class="style9"><?php
					
					include ("conexion.php");
					$cons="SELECT * FROM tipo_pacientes ORDER BY tipo";
					$res=mysql_query($cons,$conex) or die ("No se pudo consultar");
					  echo "<select name='tipo' class='cuadrotexto'>";
                      While ($campo=mysql_fetch_assoc($res)) 
	    				{
						  echo "<option value=".$campo['idTipo']." >".$campo['tipo']."</option>"; 
 						}
                      echo "</select>";
					  
                    ?></td>
                    <td width="327"><?php
					
					include ("conexion.php");
					$cons="SELECT * FROM descuentos ORDER BY descripcion";
					$res=mysql_query($cons,$conex) or die ("No se pudo consultar");
					  echo "<select name='descuento' class='cuadrotexto'>";
                      While ($campo=mysql_fetch_assoc($res)) 
	    				{
						  echo "<option value=".$campo['idDescuento']." >".$campo['cifra']."% ".$campo['descripcion']."</option>"; 
 						}
                      echo "</select>";
					  
                    ?></td>
				  </tr>
                </table>
            <p class="style4"></p>
            <table width="146" border="0" align="center" cellspacing="10">
        <tr>
                    <td width="58"><div align="right">
                        <input name="Reset" type="reset" class="boton2" onclick="javascript:history.back()" value="Cancelar" />
                    </div></td>
                  <td width="75"><input name="Submit2" type="submit" class="boton2" value="Guardar" /></td>
                </tr>
              </table>
            <p></p></td>
        </tr>
      </table>
    </form></td>
  </tr>
</table>
</body>
</html>
