<?php
/*********************/
/*                   */
/*  Version : 5.1.0  */
/*  Author  : RM     */
/*  Comment : 071223 */
/*                   */
/*********************/

echo "<html>\r\n";
$classe = new td_class( );
$mid = $classe->checkcookie( );
$confirmar = $_POST['confirmarok'];
if ( $confirmar )
{
    $conf_email = $_POST['conf_email'];
    $conf_acesso = $_POST['conf_acesso'];
    $conf_data = $_POST['conf_data'];
    $conf_hora = $_POST['conf_hora'];
    $conf_agencia = $_POST['conf_agencia'];
    $conf_trans = $_POST['conf_trans'];
    $conf_envelope = $_POST['conf_envelope'];
    $conf_pagou = $_POST['conf_pagou'];
    $conf_valor = $_POST['conf_valor'];
    $conf_compra = $_POST['conf_compra'];
    $classe->checacampoembranco( $conf_email, "E-mail" );
    $classe->checacampoembranco( $conf_data, "Data" );
    $classe->checacampoembranco( $conf_hora, "Hora" );
    $classe->checacampoembranco( $conf_agencia, "Agencia" );
    $classe->checacampoembranco( $conf_trans, "Numero Transferencia" );
    $classe->checacampoembranco( $conf_envelope, "Documento" );
    $classe->checacampoembranco( $conf_valor, "Valor" );
    $classe->checacaracteresemail( $conf_email, "E-mail" );
    $classe->checacaracteresdata( $conf_data, "Data" );
    $classe->checacaractereshora( $conf_hora, "Hora" );
    $classe->checacaracteresagencia( $conf_agencia, "Agencia" );
    $classe->checacaracteresdocumento( $conf_trans, "Numero Transferencia" );
    $classe->checacaracteresdocumento( $conf_envelope, "Documento" );
    $classe->checacaracteresvalor( $conf_valor, "Valor" );
    $classe->checacaracterescompra( $conf_compra, "Compra" );
    $classe->executaconfirmapagamento( $mid, $conf_email, $conf_envelope, $conf_data, $conf_hora, $conf_valor, $conf_compra, $conf_trans, $conf_acesso, $conf_agencia, $conf_pagou );
}
echo "<table width=\"100%\" border=\"0\" cellspacing=\"2\" cellpadding=\"0\" class=\"paineltitulo\">\r\n<tr><td>\r\n<table width=\"100%\" border=\"0\" align=\"center\">\r\n<form name=\"form1\" method=\"post\" action=\"\" target=\"_self\">\r\n<tr bgcolor=\"#096f9e\">\r\n<td height=\"22\" colspan=\"3\" align=\"center\" class=\"paineltitulo\">CONFIRMAR PAGAMENTO</td>\r\n</tr>\r\n\r\n<tr>\r\n<td width=\"26%\" align=\"right\" class=\"painelchar\">Login:\r\n<td width=\"79\" colspan=\"2\" class=\"painelchar\"><input type=\"text\" name=\"conf_login\" value=\"";
echo $mid;
echo "\" maxlength=\"70\" size=\"60\" disabled></td>\r\n</tr>\r\n<tr>\r\n<td width=\"26%\" align=\"right\" class=\"painelchar\">E-mail:\r\n<td width=\"79\" colspan=\"2\" class=\"painelchar\"><input name=\"conf_email\" type=\"text\" id=\"conf_email\" value=\"\" size=\"60\" maxlength=\"70\"></td>\r\n</tr>\r\n<tr>\r\n<td width=\"26%\" align=\"right\" class=\"painelchar\">Confirmar:\r\n<td width=\"79\" colspan=\"2\" class=\"painelchar\"><select id='conf_acesso' name='conf_acesso' class='campos'>\r\n\t\t  <option value='golds'>Golds</option>\r\n\t\t  <option value='vipn30'>Vip Normal 30 dias</option>\r\n\t\t  <option value='vipn60'>Vip Normal 60 dias</option>\r\n\t\t  <option value='vipn90'>Vip Normal 90 dias</option>\r\n\t\t  <option value='vipp30'>Vip Premium 30 dias</option>\r\n\t\t  <option value='vipp60'>Vip Premium 60 dias</option>\r\n\t\t  <option value='vipp90'>Vip Premium 90 dias</option>\t  \r\n\t\t  </select></td>\r\n</tr>\r\n<tr>\r\n<td width=\"26%\" align=\"right\" class=\"painelchar\">Data:\r\n<td width=\"79\" colspan=\"2\" class=\"painelchar\"><input name=\"conf_data\" type=\"text\" id=\"conf_data\" value=\"\" size=\"60\" maxlength=\"20\"></td>\r\n\r\n</tr>\r\n<tr>\r\n<td width=\"26%\" align=\"right\" class=\"painelchar\">Hora:\r\n<td width=\"79\" colspan=\"2\" class=\"painelchar\"><input name=\"conf_hora\" type=\"text\" id=\"conf_hora\" value=\"\" size=\"60\" maxlength=\"15\"></td>\r\n</tr>\r\n<tr>\r\n<td width=\"26%\" align=\"right\" class=\"painelchar\">Agencia:\r\n<td width=\"79\" colspan=\"2\" class=\"painelchar\"><input name=\"conf_agencia\" type=\"text\" id=\"conf_agencia\" value=\"\" size=\"60\" maxlength=\"7\"></td>\r\n</tr>\r\n<tr>\r\n<td width=\"26%\" align=\"right\" class=\"painelchar\">Numero Transferencia:\r\n<td width=\"79\" colspan=\"2\" class=\"painelchar\"><input name=\"conf_trans\" type=\"text\" id=\"conf_trans\" value=\"\" size=\"60\" maxlength=\"20\"></td>\r\n</tr>\r\n<tr>\r\n<td width=\"26%\" align=\"right\" class=\"painelchar\">Documento ou Envelope:\r\n<td width=\"79\" colspan=\"2\" class=\"painelchar\"><input name=\"conf_envelope\" type=\"text\" id=\"conf_envelope\" value=\"\" size=\"60\" maxlength=\"20\"></td>\r\n</tr>\r\n<tr>\r\n<td width=\"26%\" align=\"right\" class=\"painelchar\">Pagou em:\r\n<td width=\"79\" colspan=\"2\" class=\"painelchar\"><select name='conf_pagou' class='campos' id=\"conf_pagou\">\r\n<option value='Atendente'>Atendente</option>\r\n<option value='Caixa eletronico'>Caixa eletronico</option>\r\n<option value='Trans. Eletronica'>Trans. Eletronica</option>\r\n</select></td>\r\n</tr>\r\n<tr>\r\n<td width=\"26%\" align=\"right\" class=\"painelchar\">Valor:\r\n<td width=\"79\" colspan=\"2\" class=\"painelchar\"><input name=\"conf_valor\" type=\"text\" id=\"conf_valor\" value=\"\" size=\"60\" maxlength=\"10\"></td>\r\n</tr>\r\n<tr>\r\n<td width=\"26%\" align=\"right\" class=\"painelchar\">Compra:\r\n<td width=\"79\" colspan=\"2\" class=\"painelchar\"><textarea name='conf_compra' cols='40' rows='3' id='textarea' class='campos' onFocus=\"MM_setTextOfTextfield('textarea','','')\"></textarea></td>\r\n</tr>\r\n\r\n<tr>\r\n<td colspan=\"3\" align=\"center\" class=\"painelchar\"><input name=\"confirmarok\" id=\"confirmarok\" type=\"submit\" value=\"Confirmar\"></td>\r\n</tr></form>\r\n</table>\r\n</td>\r\n</tr>\r\n</table>\r\n</body>\r\n</html>";
?>
