<?php /* Smarty version 2.6.2, created on 2012-10-11 21:09:46
         compiled from support.tpl */ ?>
<?php require_once(SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'myescape', 'support.tpl', 6, 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);
 ?>


<h1 class="hsupport">Support Form:</h1>

<?php if (((is_array($_tmp=$this->_tpl_vars['say'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)) == 'send'): ?>
Message has been successfully sent. We will back to you in next 24 hours. Thank you.<br><br>
<?php else: ?>

<script language=javascript>
<?php if (((is_array($_tmp=$this->_tpl_vars['userinfo']['logged'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)) == 1): ?>
<?php echo '
function checkform() { 
  if (document.mainform.message.value == \'\') {
    alert("Please type your message!");
    document.mainform.message.focus();
    return false;
  }
  return true;
}
'; ?>

<?php else: ?>
<?php echo '
function checkform() {
  if (document.mainform.name.value == \'\') {
    alert("Please type your full name!");
    document.mainform.name.focus();
    return false;
  }
  if (document.mainform.email.value == \'\') {
    alert("Please enter your e-mail address!");
    document.mainform.email.focus();
    return false;
  }
  if (document.mainform.message.value == \'\') {
    alert("Please type your message!");
    document.mainform.message.focus();
    return false;
  }
  return true;
}
'; ?>

<?php endif; ?>
</script>

<div class="support_bg"></div>
<form method=post name=mainform onsubmit="return checkform()" class="supform">
<input type=hidden name=a value=support>
<input type=hidden name=action value=send>

<table cellspacing=0 cellpadding=2 border=0 style="position:relative;left:10px;">
<tr>
 <td>Your Name:</td>
<?php if (((is_array($_tmp=$this->_tpl_vars['userinfo']['logged'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp))): ?>
 <td><b><?php echo ((is_array($_tmp=$this->_tpl_vars['userinfo']['name'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)); ?>
</b></td>
<?php else: ?>
 <td><input type="text" name="name" size=30 class=inpts></td>
<?php endif; ?>
</tr>
<tr>
 <td>Your Email:</td>
<?php if (((is_array($_tmp=$this->_tpl_vars['userinfo']['logged'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp))): ?>
 <td><b><?php echo ((is_array($_tmp=$this->_tpl_vars['userinfo']['email'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)); ?>
</b></td>
<?php else: ?>
 <td><input type="text" name="email" size=30 class=inpts></td>
<?php endif; ?>
</tr>
<tr>
 <td colspan=2>Message:<br><br><textarea name=message class=inpts cols=45 rows=4></textarea>
</tr>
<tr>
 <td>&nbsp;</td>
 <td><input type=submit value="Send" class=sbmt22></td>
</tr></table>
</form>

<?php endif; ?>


<?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);
 ?>
