예제 #1
0
 static function get($num = null, $id = null)
 {
     // deparced ???
     $t = new rTicket();
     $id !== null && $t->setId($id);
     $num !== null && $t->setNum($num);
     return $t->hash;
 }
예제 #2
0
<?php

$wurl = sysURL . 'js.webshims/js-webshim/minified/';
html::addJsFile($wurl . 'polyfiller.js', 'core');
html::$js .= "\$.webshims.cfg.basePath = '" . $wurl . "shims/'; ";
html::$js .= "\$.webshims.polyfill('forms forms-ext'); ";
$url = $Cont->modUrl . 'pub/';
$Ticket = new rTicket();
$Ticket->setId($Cont->PFX);
$Ticket->setNum(1);
if (isset($sent) && $sent) {
    echo '<p>' . $Cont->text('thankyou') . '</p>';
    return;
}
?>
<form method=post>
	<?php 
echo $Ticket->hiddenField();
?>
	<table class="mailform c1-padding">
	<?php 
foreach ($Cont->SET['elements'] as $id => $element) {
    ?>
		<tr>
		<?php 
    if ($element['type']->v != 'description') {
        ?>
			<td style="width:<?php 
        echo $Cont->SET['namewidth'];
        ?>
px">