<?php /* Smarty version 2.6.2, created on 2012-03-14 22:45:46
         compiled from add_site2.tpl */ ?>
<?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);
 ?>
<div id="left-col"><div id="nav"><ul><li><a name="addprogram">Add your Hyip or Autosurf Program - Step (3/3)</a></li></ul>
</div>
<div id="content">
<?php echo '
<script>
function chlist(a,b,c){
document.getElementById(\'lname\').innerHTML = a;
document.getElementById(\'mfee\').innerHTML = b-c;
document.getElementById(\'lfee\').innerHTML = c;
document.getElementById(\'lfee2\').innerHTML = c;
document.getElementById(\'overfee\').innerHTML = b-c;
document.getElementById(\'addlist\').value = \'Add to \'+a+\' listing\';
document.getElementById(\'bonus\').style.display = (a == \'Premium\' || a == \'Exclusive\') ?  \'\' : \'none\';
}

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;
  }
  if (!d.email.value){
    alert(\'Please, enter your E-Mail address!\');
    d.email.focus();
    return false;
  }
  else {
    a = d.email.value.indexOf(\'@\');
    b = d.email.value.indexOf(\'@\', a+1);
    c = d.email.value.lastIndexOf(\'.\');
    if (c < a+1) { c = -1; }
    if (a == -1 || b != -1 || c <= a + 2 || a < 1 || c + 2 >= d.email.value.length || c + 4 < d.email.value.length)
    {
      alert(\'Please, enter a valid E-Mail Address\');
      d.email.focus();
      return false;
    }
  }

  return true;
}
function doView() {
  var bv = document.getElementById(\'bnview\');
  var d = document.add_form;
bv.innerHTML = \'<a href="\'+d.url.value+\'" target="_blank"><img src="\'+d.support_banner.value+\'" border="0" width="468" height="60" alt="\'+d.name.value+\'" title="\'+d.name.value+\'"></a> &nbsp<a href="javascript:cl()">Close</a>\';
}
function cl() {
document.getElementById(\'bnview\').innerHTML = "";
}
</script>
'; ?>

<?php if ($this->_tpl_vars['group']['add_description']):  echo $this->_tpl_vars['group']['add_description']; ?>

<br><br>
<?php endif; ?>

<?php if ($this->_tpl_vars['errors']):  if (isset($this->_sections['e'])) unset($this->_sections['e']);
$this->_sections['e']['name'] = 'e';
$this->_sections['e']['loop'] = is_array($_loop=$this->_tpl_vars['errors']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['e']['show'] = true;
$this->_sections['e']['max'] = $this->_sections['e']['loop'];
$this->_sections['e']['step'] = 1;
$this->_sections['e']['start'] = $this->_sections['e']['step'] > 0 ? 0 : $this->_sections['e']['loop']-1;
if ($this->_sections['e']['show']) {
    $this->_sections['e']['total'] = $this->_sections['e']['loop'];
    if ($this->_sections['e']['total'] == 0)
        $this->_sections['e']['show'] = false;
} else
    $this->_sections['e']['total'] = 0;
if ($this->_sections['e']['show']):

            for ($this->_sections['e']['index'] = $this->_sections['e']['start'], $this->_sections['e']['iteration'] = 1;
                 $this->_sections['e']['iteration'] <= $this->_sections['e']['total'];
                 $this->_sections['e']['index'] += $this->_sections['e']['step'], $this->_sections['e']['iteration']++):
$this->_sections['e']['rownum'] = $this->_sections['e']['iteration'];
$this->_sections['e']['index_prev'] = $this->_sections['e']['index'] - $this->_sections['e']['step'];
$this->_sections['e']['index_next'] = $this->_sections['e']['index'] + $this->_sections['e']['step'];
$this->_sections['e']['first']      = ($this->_sections['e']['iteration'] == 1);
$this->_sections['e']['last']       = ($this->_sections['e']['iteration'] == $this->_sections['e']['total']);
 if ($this->_tpl_vars['errors'][$this->_sections['e']['index']]['name'] == 'name'): ?>
<li style="color: red"> Please enter your Site Name<br></li>
<?php endif;  if ($this->_tpl_vars['errors'][$this->_sections['e']['index']]['name'] == 'url'): ?>
<li style="color: red"> Please enter your Site URL<br></li>
<?php endif;  if ($this->_tpl_vars['errors'][$this->_sections['e']['index']]['name'] == 'email'): ?>
<li style="color: red"> Please enter your Contact E-mail<br></li>
<?php endif;  if ($this->_tpl_vars['errors'][$this->_sections['e']['index']]['name'] == 'invalid_email'): ?>
<li style="color: red"> Please enter valid Contact E-mail<br></li>
<?php endif;  endfor; endif; ?>
<br>
<?php endif; ?>
<table cellspacing=0 cellpadding=0 border=0 width=100%>
<tr><td>
<ul><font color="#CC0000"><strong><?php echo $this->_tpl_vars['settings']['site_name']; ?>
</strong> is a listing of high yield investment programs. (Hyip and Autosurf)</font>
<li>Please choose Listing Group according to the Group fee you paid before</li>
<li>Do not submit a referral url in your program domain.</li>
<li>After you fill all required field, please click ADD PROGRAM button.</li>
	<li>Wait for admin approval, we will send you email notification if your 
	site approved or declined.</li>
</ul>
</td></tr></table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr><td align="center">
<div style="border:1px #cccccc dotted;">
<span id="lname">Exclusive</span> Listing &gt;&gt; <font color="#FF0000">$<span id="mfee"><?php echo $this->_tpl_vars['settings']['exclusivemonitorfees']+$this->_tpl_vars['settings']['exclusivelistingfees']; ?>
</span></font> will be reinvest into your program for the monitoring. and <font color="#FF0000">$<span id="lfee"><?php echo $this->_tpl_vars['settings']['exclusivelistingfees']; ?>
</span></font> is the listing fee. If the min deposit of your program is higher than $<span id="overfee"><?php echo $this->_tpl_vars['settings']['exclusivemonitorfees']+$this->_tpl_vars['settings']['exclusivelistingfees']; ?>
</span> you have to spend the min deposit amount + $<span id="lfee2"><?php echo $this->_tpl_vars['settings']['exclusivelistingfees']; ?>
</span>.
<span id="bonus"><font color="#a70000"><br>+++ Add your program in exclusive listing you Will get free Header Lager 728x90 Banner AD for 7 Days +++</font><font color=red><br>+++ Add your program in premium listing you Will get free Top 468x60 Banner AD for 7 Days +++</font></span></div>
</td></tr>
<tr><td>
<table cellspacing=1 cellpadding=2 border=0 width=100%>
<form method=post name="add_form" onsubmit="return validate()">
<input type="hidden" name="a" value="add">
<input type="hidden" name="action" value="save">
<tr><td width=30%>* Listing Options:</td>
<td>
<?php if (showgroups ( 2 )):  endif; ?>
</td>
</tr>
<tr>
 <td>* Site Name:</td><td><input type="text" name="name" value="" class=inpts size=50></td>
</tr>
<tr>
 <td>* Site URL:</td><td><input type="text" name="url" value="" class=inpts size=50></td>
</tr>
<tr>
 <td>* Contact E-mail:</td><td><input type="text" name="email" value="" class=inpts size=50></td>
</tr>
<tr>
 <td>Interest Percents:</td><td>Example: 2%-5% Daily For 90 Days, 110%-120% After 30 Days<br><input type="text" name="percents" value="" class=inpts size=50></td>
</tr>
<tr>
 <td>Minimal Deposit:</td><td><input type="text" name="min_spend" value="" class=inpts size=50></td>
</tr>
<tr>
 <td>Maximal Deposit:</td><td><input type="text" name="max_spend" value="" class=inpts size=50></td>
</tr>
<tr>
 <td>Referral Bonus:</td><td><input type="text" name="referral" value="" class=inpts size=50></td>
</tr>
<tr>
 <td>Withdrawal Type:</td>
 <td>
   <select name="withdrawal_type" class=inpts>
     <option value=1 >Manual</option>
     <option value=2 >Instant</option>
     <option value=3 >Automatic</option>
   </select>
 </td>
</tr>
<tr>
 <td>Support E-mail:</td><td><input type="text" name="support_email" value="" class=inpts size=50></td>
</tr>
<tr>
 <td>Support Phone:</td><td><input type="text" name="support_phone" value="" class=inpts size=50></td>
</tr>
<tr>
 <td>Support Forum (MMG):</td><td><input type="text" name="support_mmg" value="" class=inpts size=50></td>
</tr>
<tr>
 <td>Support Forum (TG):</td><td><input type="text" name="support_tg" value="" class=inpts size=50></td>
</tr>
<tr>
 <td>Support Forum (DTM):</td><td><input type="text" name="support_dtm" value="" class=inpts size=50></td>
</tr>
<tr>
 <td>Support Forum Own:</td><td><input type="text" name="support_own" value="" class=inpts size=50></td>
</tr>
<tr>
<td>You can place your banner(468*60) on page of your program details for <b>only $<?php echo $this->_tpl_vars['settings']['bannerfees']; ?>
 lifetime</b></td><td>Example: <?php echo $this->_tpl_vars['settings']['site_url']; ?>
/images/banner.gif<br><input type="text" name="support_banner" value="" class=inpts size=50> &nbsp<input type="button" value="Preview" class="sbmt" onclick="doView();"></td>
</tr>
<tr><td colspan=2><div id="bnview"></div></td></tr>
<tr>
  <td valign=top>Payment Methods:</td>
  <td>
<?php if (get_ec ( 2 )):  endif; ?>
  </td>
</tr>
<tr>
  <td colspan=2>Description</td>
</tr>
<tr>
  <td colspan=2><textarea name="description" cols=82 rows=5 class=inpts></textarea></td>
</tr>
<tr><td colspan=2>&nbsp;</td></tr>

<tr>
  <td><b style="color:red">* - required fields</b></td>
<td><input type="submit" value="Add Site  Listing" class="sbmt" id="addlist"></td>
</tr></form>
</table>


</td></tr></table>
</div>
<div id="footer"></div> 
</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);
 ?>