예제 #1
0
	<!-- payment -->
	<div class="popup-holder popup-pay">
		<div class="title green-bg">
			<h1>Registra tu Pago</h1>
		</div>
		<div class="content">
			<form id="frm_payment" class="form-horizontal" enctype="multipart/form-data" action="<?php 
echo get_template_directory_uri();
?>
/inc/create-afiliado.php">
				<?php 
$_COLOR = 'green';
require 'payment-form.php';
?>
			</form>
		</div>
	</div>

<?php 
$url = get_template_directory_uri();
$thank_you_page = append_var_to_url(get_page_by_path('gracias')->guid, 'p', 'natural');
$GLOBALS['script'] = <<<EOT
<script type="text/javascript" src="{$url}/js/jquery.matchheight.min.js"></script>
<script type="text/javascript" src="{$url}/js/datepicker/js/bootstrap-datepicker.js"></script>
<script type="text/javascript" src="{$url}/js/datepicker/locales/bootstrap-datepicker.es.min.js"></script>
<script type="text/javascript" src="{$url}/js/functions_afiliate.js"></script>
<script type="text/javascript">
\tvar thank_you_page = '{$thank_you_page}';
</script>
EOT;
get_footer();
	<!-- payment -->
	<div class="popup-holder popup-pay">
		<div class="title orange-bg">
			<h1>Registra tu Pago</h1>
		</div>
		<div class="content">
			<form id="frm_payment" class="form-horizontal" enctype="multipart/form-data" action="<?php 
echo get_template_directory_uri();
?>
/inc/create-afiliado.php">
				<?php 
$_COLOR = 'orange';
require 'payment-form.php';
?>
			</form>
		</div>
	</div>

<?php 
$url = get_template_directory_uri();
$thank_you_page = append_var_to_url(get_page_by_path('gracias')->guid, 'p', 'comercio');
$GLOBALS['script'] = <<<EOT
<script type="text/javascript" src="{$url}/js/jquery.matchheight.min.js"></script>
<script type="text/javascript" src="{$url}/js/datepicker/js/bootstrap-datepicker.js"></script>
<script type="text/javascript" src="{$url}/js/datepicker/locales/bootstrap-datepicker.es.min.js"></script>
<script type="text/javascript" src="{$url}/js/functions_afiliate.js"></script>
<script type="text/javascript">
\tvar thank_you_page = '{$thank_you_page}';
</script>
EOT;
get_footer();
예제 #3
0
}
$html = <<<EOT
\t<div style="margin:10px">
\t\t<h1>Contacto</h1>
\t\t<p>Datos ingresados por el usuario:</p>
\t\t<table>
\t\t\t{$html}
\t\t</table>
\t</div>
EOT;
//files
if (isset($_FILES) && is_array($_FILES)) {
    $paths = array();
    $files_moved = upload_user_files($_FILES, $paths);
    $files_html = '';
    foreach ($paths as $path) {
        if (!empty($path)) {
            $files_html .= html_image($path);
        }
    }
    $html .= $files_html;
}
$subject = !empty($_POST['subject']) ? $_POST['subject'] : 'Contacto';
$sent = send_email($subject, $html);
Redirect:
$page = isset($_POST['redirect']) ? get_page_by_path($_POST['redirect'])->guid : home_url();
if (isset($sent)) {
    $page = append_var_to_url($page, 'sent', (int) $sent);
}
header('Location: ' . $page);
die;