<?php /* Smarty version 2.6.2, created on 2012-10-21 14:51:48
         compiled from report_scam.tpl */ ?>
<?php require_once(SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'default', 'report_scam.tpl', 44, false),array('modifier', 'escape', 'report_scam.tpl', 44, false),array('modifier', 'encurl', 'report_scam.tpl', 52, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "header.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<script type="text/javascript">
<?php echo '
function checkReportScam()
{
  status = checkEmail(document.reportscam.email.value);

  if (status > 0) {
    if (status == 1)
	    alert(\'Please, enter your E-Mail address!\');
    if (status == 2)
	    alert(\'Please, enter a valid E-Mail address!\');

    document.reportscam.email.focus();
    return false;
  }
  return true;
}
'; ?>

</script>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "program_details.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<h3>Report scam</h3>

<?php if ($this->_tpl_vars['errors']): ?>
<ul class="error">
<?php if ($this->_tpl_vars['errors']['turing']): ?><li> Invalid turing image.</li><?php endif;  if ($this->_tpl_vars['errors']['email']): ?><li> Please enter your e-mail addresss.</li><?php endif;  if ($this->_tpl_vars['errors']['invalid_email']): ?><li> Please enter valid e-mail address.</li><?php endif; ?>
</ul>
<?php elseif ($this->_tpl_vars['frm']['display'] == 'sent'): ?>
<div class="ok">Thank you. Your report has been sent to administrator.</div>
<br><br>
<?php endif; ?>
<form method="post" onsubmit="return checkReportScam()" name="reportscam" action="">
<input type=hidden name=a value=report_scam>
<input type=hidden name=action value=send>
<input type=hidden name=lid value=<?php echo $this->_tpl_vars['listing']['id']; ?>
>
<table class="form">
<tr>
 <th>Your E-mail</th>
 <td><input type="text" name="email" value="<?php echo ((is_array($_tmp=((is_array($_tmp=@$this->_tpl_vars['frm']['email'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['userinfo']['email']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['userinfo']['email'])))) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
"></td>
</tr>
<tr>
 <th>Report</th>
 <td><textarea name="report" cols=27 rows=4><?php echo ((is_array($_tmp=$this->_tpl_vars['frm']['report'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
</textarea></td>
</tr>
<?php if ($this->_tpl_vars['settings']['use_turing']): ?>
<tr>
  <th><img src="<?php echo ((is_array($_tmp="?a=turing&".($this->_tpl_vars['sesname'])."=".($this->_tpl_vars['sesid'])."&r=".($this->_tpl_vars['rand']))) ? $this->_run_mod_handler('encurl', true, $_tmp) : smarty_modifier_encurl($_tmp)); ?>
" alt="turing code"></th>
  <td><input type=text name="turing" maxlength=6 size=6></td>
</tr>
<?php endif; ?>
<tr>
 <th></th>
 <td><input type="submit" value="Submit"></td>
</tr>
</form>
</table>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "footer.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>