<?php /* Smarty version 2.6.2, created on 2012-10-21 14:45:12
         compiled from program_add.tpl */ ?>
<?php require_once(SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'program_add.tpl', 89, false),array('modifier', 'encurl', 'program_add.tpl', 156, 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);
 ?>

<h3>Add Listing to <?php echo $this->_tpl_vars['group']['name']; ?>
 list</h3>

<?php echo '
<script type="text/javascript">
function validate()
{
  var d = document.add_form;
  if (!d.name.value)
  {
    alert(\'Please enter your Site Name.\');
    d.name.focus();
    return false;
  }
  if (!d.url.value)
  {
    alert(\'Please enter your Site URL.\');
    d.url.focus();
    return false;
  }
  status = checkEmail(d.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!\');

    d.email.focus();
    return false;
  }

  return true;
}
function validate_phd()
{
  var d = document.phd_form;
  if (!d.phd_url.value.match(/^https?\\:\\/\\//))
  {
    alert(\'Please enter your XML Url.\');
    d.phd_url.focus();
    return false;
  }
  return true;
}

</script>
'; ?>


<div class="program_add">
<?php if ($this->_tpl_vars['group']['add_description']): ?>
<div class="description">
<?php echo $this->_tpl_vars['group']['add_description']; ?>

</div>
<?php endif; ?>

<?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']['name']): ?><li> Please enter your Site Name</li><?php endif;  if ($this->_tpl_vars['errors']['url']): ?><li> Please enter your Site URL</li><?php endif;  if ($this->_tpl_vars['errors']['email']): ?><li> Please enter your Contact E-mail</li><?php endif;  if ($this->_tpl_vars['errors']['invalid_email']): ?><li> Please enter valid Contact E-mail</li><?php endif; ?>
</ul>
<?php endif; ?>

<form method="post" name="phd_form" onsubmit="return validate_phd()" action="">
<input type="hidden" name="a" value="add">
<input type="hidden" name="action" value="phd">
<input type="hidden" name="type" value="<?php echo $this->_tpl_vars['frm']['type']; ?>
">
<table class="form">
<tr>
 <th>Info XML URL (PHD):</th>
 <td><input type="text" name="phd_url" value=""></td>
</tr>
<tr>
  <th><a href="http://www.allhyipmonitors.com/about_phd.html" target="_blank">What is it?</a></th>
  <td><input type="submit" value="Submit" class=sbmt></td>
</tr>
</form>

<form method="post" name="add_form" onsubmit="return validate()" action="">
<input type="hidden" name="a" value="add">
<input type="hidden" name="action" value="save">
<input type="hidden" name="type" value="<?php echo $this->_tpl_vars['frm']['type']; ?>
">
<table class="form">
<tr>
 <th>Site Name:</th>
 <td><input type="text" name="name" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['frm']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
"></td>
</tr>
<tr>
 <th>Site URL:</th>
 <td><input type="text" name="url" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['frm']['url'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
"></td>
</tr>
<tr>
 <th>Contact E-mail:</th>
 <td><input type="text" name="email" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['frm']['email'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
"></td>
</tr>
<tr>
 <th>Interest Percents:</th>
 <td><textarea name="percents" cols=82 rows=5><?php echo ((is_array($_tmp=$this->_tpl_vars['frm']['percents'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
</textarea></td>
</tr>
<tr>
 <th>Minimal Spend:</th>
 <td><input type="text" name="min_spend" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['frm']['min_spend'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
"></td>
</tr>
<tr>
 <th>Maximal Spend:</th>
 <td><input type="text" name="max_spend" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['frm']['max_spend'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
"></td>
</tr>
<tr>
 <th>Referral Bonus:</th>
 <td><input type="text" name="referral" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['frm']['referral'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
"></td>
</tr>
<tr>
 <th>Withdrawal Type:</th>
 <td>
   <select name="withdrawal_type" class=inpts>
     <option value=1 <?php if ($this->_tpl_vars['frm']['withdrawal_type'] == 1): ?>selected<?php endif; ?>>Manual</option>
     <option value=2 <?php if ($this->_tpl_vars['frm']['withdrawal_type'] == 2): ?>selected<?php endif; ?>>Instant</option>
     <option value=3 <?php if ($this->_tpl_vars['frm']['withdrawal_type'] == 3): ?>selected<?php endif; ?>>Automatic</option>
   </select>
 </td>
</tr>
<tr>
 <th>Support E-mail:</th>
 <td><input type="text" name="support_email" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['frm']['support_email'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
"></td>
</tr>
<tr>
 <th>Support Form:</th>
 <td><input type="text" name="support_form" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['frm']['support_form'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
"></td>
</tr>
<tr>
 <th>Support Forum:</th>
 <td><input type="text" name="support_forum" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['frm']['support_forum'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
"></td>
</tr>
<?php if (isset($this->_sections['f'])) unset($this->_sections['f']);
$this->_sections['f']['name'] = 'f';
$this->_sections['f']['loop'] = is_array($_loop=$this->_tpl_vars['forums']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['f']['show'] = true;
$this->_sections['f']['max'] = $this->_sections['f']['loop'];
$this->_sections['f']['step'] = 1;
$this->_sections['f']['start'] = $this->_sections['f']['step'] > 0 ? 0 : $this->_sections['f']['loop']-1;
if ($this->_sections['f']['show']) {
    $this->_sections['f']['total'] = $this->_sections['f']['loop'];
    if ($this->_sections['f']['total'] == 0)
        $this->_sections['f']['show'] = false;
} else
    $this->_sections['f']['total'] = 0;
if ($this->_sections['f']['show']):

            for ($this->_sections['f']['index'] = $this->_sections['f']['start'], $this->_sections['f']['iteration'] = 1;
                 $this->_sections['f']['iteration'] <= $this->_sections['f']['total'];
                 $this->_sections['f']['index'] += $this->_sections['f']['step'], $this->_sections['f']['iteration']++):
$this->_sections['f']['rownum'] = $this->_sections['f']['iteration'];
$this->_sections['f']['index_prev'] = $this->_sections['f']['index'] - $this->_sections['f']['step'];
$this->_sections['f']['index_next'] = $this->_sections['f']['index'] + $this->_sections['f']['step'];
$this->_sections['f']['first']      = ($this->_sections['f']['iteration'] == 1);
$this->_sections['f']['last']       = ($this->_sections['f']['iteration'] == $this->_sections['f']['total']);
?>
<tr>
 <th><?php echo ((is_array($_tmp=$this->_tpl_vars['forums'][$this->_sections['f']['index']]['acronim'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
 Forum:</th>
 <td><input type="text" name="forums[<?php echo ((is_array($_tmp=$this->_tpl_vars['forums'][$this->_sections['f']['index']]['name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
]" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['forums'][$this->_sections['f']['index']]['url'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
"></td>
</tr>
<?php endfor; endif; ?>
<tr>
 <th>Support Phone:</th>
 <td><input type="text" name="support_phone" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['frm']['support_phone'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
"></td>
</tr>
<tr>
 <th>Support AIM:</th>
 <td><input type="text" name="support_aim" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['frm']['support_aim'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
"></td>
</tr>
<tr>
  <th>Payment Methods:</th>
  <td>
<?php if (isset($this->_sections['p'])) unset($this->_sections['p']);
$this->_sections['p']['name'] = 'p';
$this->_sections['p']['loop'] = is_array($_loop=$this->_tpl_vars['payments']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['p']['show'] = true;
$this->_sections['p']['max'] = $this->_sections['p']['loop'];
$this->_sections['p']['step'] = 1;
$this->_sections['p']['start'] = $this->_sections['p']['step'] > 0 ? 0 : $this->_sections['p']['loop']-1;
if ($this->_sections['p']['show']) {
    $this->_sections['p']['total'] = $this->_sections['p']['loop'];
    if ($this->_sections['p']['total'] == 0)
        $this->_sections['p']['show'] = false;
} else
    $this->_sections['p']['total'] = 0;
if ($this->_sections['p']['show']):

            for ($this->_sections['p']['index'] = $this->_sections['p']['start'], $this->_sections['p']['iteration'] = 1;
                 $this->_sections['p']['iteration'] <= $this->_sections['p']['total'];
                 $this->_sections['p']['index'] += $this->_sections['p']['step'], $this->_sections['p']['iteration']++):
$this->_sections['p']['rownum'] = $this->_sections['p']['iteration'];
$this->_sections['p']['index_prev'] = $this->_sections['p']['index'] - $this->_sections['p']['step'];
$this->_sections['p']['index_next'] = $this->_sections['p']['index'] + $this->_sections['p']['step'];
$this->_sections['p']['first']      = ($this->_sections['p']['iteration'] == 1);
$this->_sections['p']['last']       = ($this->_sections['p']['iteration'] == $this->_sections['p']['total']);
?>
  <div class="payment_systems">
   <input type="checkbox" name="payments[<?php echo $this->_tpl_vars['payments'][$this->_sections['p']['index']]['name']; ?>
]" value=1 <?php if ($this->_tpl_vars['payments'][$this->_sections['p']['index']]['selected']): ?>checked<?php endif; ?>> <img src="<?php echo ((is_array($_tmp=($this->_tpl_vars['theme'])."images/".($this->_tpl_vars['payments'][$this->_sections['p']['index']]['name']).".gif")) ? $this->_run_mod_handler('encurl', true, $_tmp) : smarty_modifier_encurl($_tmp)); ?>
" alt="<?php echo $this->_tpl_vars['payments'][$this->_sections['p']['index']]['name']; ?>
">
  </div>
<?php endfor; endif; ?>
  </td>
</tr>
<tr>
  <th>Options:</th>
  <td>
<?php if (isset($this->_sections['p'])) unset($this->_sections['p']);
$this->_sections['p']['name'] = 'p';
$this->_sections['p']['loop'] = is_array($_loop=$this->_tpl_vars['options']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['p']['show'] = true;
$this->_sections['p']['max'] = $this->_sections['p']['loop'];
$this->_sections['p']['step'] = 1;
$this->_sections['p']['start'] = $this->_sections['p']['step'] > 0 ? 0 : $this->_sections['p']['loop']-1;
if ($this->_sections['p']['show']) {
    $this->_sections['p']['total'] = $this->_sections['p']['loop'];
    if ($this->_sections['p']['total'] == 0)
        $this->_sections['p']['show'] = false;
} else
    $this->_sections['p']['total'] = 0;
if ($this->_sections['p']['show']):

            for ($this->_sections['p']['index'] = $this->_sections['p']['start'], $this->_sections['p']['iteration'] = 1;
                 $this->_sections['p']['iteration'] <= $this->_sections['p']['total'];
                 $this->_sections['p']['index'] += $this->_sections['p']['step'], $this->_sections['p']['iteration']++):
$this->_sections['p']['rownum'] = $this->_sections['p']['iteration'];
$this->_sections['p']['index_prev'] = $this->_sections['p']['index'] - $this->_sections['p']['step'];
$this->_sections['p']['index_next'] = $this->_sections['p']['index'] + $this->_sections['p']['step'];
$this->_sections['p']['first']      = ($this->_sections['p']['iteration'] == 1);
$this->_sections['p']['last']       = ($this->_sections['p']['iteration'] == $this->_sections['p']['total']);
?>
  <div class="options">
   <input type="checkbox" name="options[<?php echo $this->_tpl_vars['options'][$this->_sections['p']['index']]['name']; ?>
]" value=1 <?php if ($this->_tpl_vars['options'][$this->_sections['p']['index']]['selected']): ?>checked<?php endif; ?>> <img src="<?php echo ((is_array($_tmp=($this->_tpl_vars['theme'])."images/".($this->_tpl_vars['options'][$this->_sections['p']['index']]['name']).".gif")) ? $this->_run_mod_handler('encurl', true, $_tmp) : smarty_modifier_encurl($_tmp)); ?>
" alt="<?php echo $this->_tpl_vars['options'][$this->_sections['p']['index']]['name']; ?>
">
  </div>
<?php endfor; endif; ?>
  </td>
</tr>
<tr>
  <th>Description</th>
  <td><textarea name="description" cols=82 rows=5><?php echo ((is_array($_tmp=$this->_tpl_vars['frm']['description'])) ? $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="Add" class=sbmt></td>
</tr>
</table>
</form>
</div>

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