<?php
include("../scripts/connect.php");
   $conexion=conecta_default();
    //fin validar session
	?>
<html>
<head>
 <meta http-equiv='Content-Type' content='text/html; charset=UTF-8'>
    <meta http-equiv="cache-control" content="no-cache" />
    <meta http-equiv="pragma" content="no-cache" />
    <meta http-equiv="expires" content="0" />
    <style type='text/css'>
        <!--
        H1       { font-family:Arial,sans-serif; font-size:20pt; color:#08185A; font-weight:600; margin-bottom:0.1em}
        H2       { font-family:Arial,sans-serif; font-size:14pt; color:#08185A; font-weight:100; margin-top:0.1em}
        H2.co    { font-family:Arial,sans-serif; font-size:24pt; color:#08185A; margin-top:0.1em; margin-bottom:0.1em; font-weight:100}
        H3.co    { font-family:Arial,sans-serif; font-size:16pt; color:#FFFFFF; margin-top:0.1em; margin-bottom:0.1em; font-weight:100}
        BODY     { font-family:Verdana,Arial,sans-serif; font-size:10pt; color:#08185A background-color:#FFFFFF }
        TR       { height:25px; }
        TR.shade { height:25px; background-color:#CED7EF }
        TR.title { height:25px; background-color:#0074C4 }
        TD       { font-family:Verdana,Arial,sans-serif; font-size:8pt;  color:#08185A }
        P        { font-family:Verdana,Arial,sans-serif; font-size:10pt; color:#FFFFFF }
        P.blue   { font-family:Verdana,Arial,sans-serif; font-size:7pt;  color:#08185A }
        P.red    { font-family:Verdana,Arial,sans-serif; font-size:8pt;  color:#FF0066 }
        P.green  { font-family:Verdana,Arial,sans-serif; font-size:8pt;  color:#00AA00 }
        DIV.bl   { font-family:Verdana,Arial,sans-serif; font-size:8pt;  color:#0074C4 }
        LI       { font-family:Verdana,Arial,sans-serif; font-size:8pt;  color:#FF0066 }
        INPUT    { font-family:Verdana,Arial,sans-serif; font-size:8pt;  color:#08185A; background-color:#CED7EF; font-weight:bold }
        SELECT   { font-family:Verdana,Arial,sans-serif; font-size:8pt;  color:#08185A; background-color:#CED7EF; font-weight:bold }
        TEXTAREA { font-family:Verdana,Arial,sans-serif; font-size:8pt;  color:#08185A; background-color:#CED7EF; font-weight:normal; scrollbar-arrow-color:#08185A; scrollbar-base-color:#CED7EF }
        A:link   { font-family:Verdana,Arial,sans-serif; font-size:8pt;  color:#08185A }
        A:visited{ font-family:Verdana,Arial,sans-serif; font-size:8pt;  color:#08185A }
        A:hover  { font-family:Verdana,Arial,sans-serif; font-size:8pt;  color:#FF0000 }
        A:active { font-family:Verdana,Arial,sans-serif; font-size:8pt;  color:#FF0000 }
        -->
    </style>
</head>

<body>
<?php
	  $qa = "SELECT idtarjetas FROM codtarjetas WHERE 1";
    $ca = mysql_query($qa) or die ('Error (select consec): ' . mysql_error());
    $trans = mysql_fetch_row($ca)[0] + 1;
    
  //   $qPP = "UPDATE cdconsec SET consec = '$trans' WHERE idcd = $id_cd";
    //$rPP = mysql_query($qPP) or die ('ErrPP update consec: ' . mysql_error());
    
	
	?>

<form action="pago.php" method="post" accept-charset="UTF-8">


<center>

<label style='color:#5C3C12; font-size:28px; font-weight:bold'>Pagos en L&iacute;nea</label><br /><br />

Utiliza esta opci&oacute;n para hacer el pago de alg&uacute;n pedido generado anterior-<br>mente o para hacer un pago a la empresa por una cantidad espec&iacutefica.

<br></br></br>

<table>


<tr>
	<td>Pedido/Descripci&oacute;n</td><td><input type="text" name="ref" <?php echo"value=\"$trans\"";?>></td>
</tr>
<tr>
	<td>RFC/Referencia Distribuidor</td><td><input type="text" name="rfc" value=""></td>
</tr>
<tr><td>Cantidad</td><td>$<input type="text" size="5" name="cant" value="">(Solo n&uacute;meros)</td>
</tr>
</table><br>
<input type="submit" value="continuar">
<!-- Identify your business so that you can collect the payments. -->

<?php echo"<input type=\"hidden\" name\"refi\" value=\"$trans\"> ";?>
</form>
<br>



</html>
