Location: PHPKode > projects > Esvon Personals > esvon-personals/tpl/order_FEE.htm
<!-- TITLE: Order {Item} Placement -->

<center>

<!-- TPL_INSERT : b_User_Menu -->
<!-- TPL_CELL : def -->

##USER_MENU##

<!-- /TPL_CELL : def -->
<!-- /TPL_INSERT : b_User_Menu -->

</center>

<script type="text/javascript">

 function CheckOrder() {

   var block = 'term[]';
   var b_ag = 'AG_ICONS[]';

   var el = document.frm.elements;
   var ok = 0;
   for (var i=0; i<el.length; i++) {
     if ((el[i].name.substr(0,block.length)== block || el[i].name.substr(0,b_ag.length)== b_ag) && (el[i].checked || (el[i].tagName=='SELECT' && el[i].selectedIndex>0))){
       ok = 1; break;
     }
   }
   if(!ok){
     alert('Please select at least one payment option');
     return false;
   }
   
   return true;
 }

</script>

<p class=pagetitle>Order {Item} Placement</p>

<form method=post name=frm OnSubmit="return CheckOrder()">

<span class=err>##err_msg##</span>
<p>

You are going to order/renew {item} placement.<br />
<br />

{Item} ID: <b>##id##</b><br />
Title: <b>##l_title##</b>

<!-- TPL_INSERT : row -->

<!-- TPL_CELL : pp -->
<hr size=1 />
<input type=radio name=term[] value="##pp_id##" ##pp_checked## OnClick="SwitchExtra(1)"> <b>##pp_name##</b>

<!-- IF ##pp_url## -->
&nbsp; <a href="javascript:OpenPreview('##pp_url##')" class=txt8>View Sample</a>
<!-- ENDIF -->

<br />
<font class=txt8>

<b>Expires:</b>
<!-- IF ##pp_exp_days## == 9999 -->
never 
<!-- ELSE -->
in ##pp_exp_days## days
<!-- ENDIF -->

&nbsp;

<b>Fee:</b> 

<!-- IF ##IS_FREE## -->
<strike>##CURR_SIGN####pp_fee##</strike> &nbsp;<font color=FF0000>Free within your allowance</font>
<!-- ELSE -->
##CURR_SIGN####pp_fee##
<!-- ENDIF -->

<br />
<b>Description:</b> ##pp_descr##</font>
<!-- /TPL_CELL : pp -->

<!-- TPL_CELL : extra_start -->
<div id="extra_opt">
<p>
<table border=0 cellpadding=0>
<tr height=20>
<td colspan=2><font color=0000FF><b>Extra Options</b></font> (valid for ##EX_OPT_EXP## days)</td>
</tr>
<!-- /TPL_CELL : extra_start -->

<!-- TPL_CELL : extra -->
<tr>
<td class=txt8><b>##e_title##</b>&nbsp;</td>
<td class=txt8>

<select name="term[]">
##e_ctl## 
</select>

<!--select name="eo_amt_##e_id##">
##e_amt##
</select-->

</td>
</tr>
<!-- /TPL_CELL : extra -->

<!-- TPL_CELL : extra_end -->
</table>
</div>
<!-- /TPL_CELL : extra_end -->

<!-- /TPL_INSERT : row -->


<div id="extra_data">

<!-- Module "Attention_Getters" block. If you don't plan to use this module
you can delete the block code from this template -->

<!-- TPL_INSERT : b_AG_icons_list -->
<!-- TPL_CELL : def -->

<script type="text/javascript">

function AtnGetVerify(){

  var max = parseInt('##ag_max_per_ad##');
  if(!max) return;

   var block = 'AG_ICONS[]';
   var el = document.frm.elements;
   var amt = 0;
   for (var i=0; i<el.length; i++) {
     if (el[i].name.substr(0,block.length)== block && (el[i].checked)){
       amt++;
       if(amt > max) el[i].checked = false;
     }
   }
   if(amt > max) alert('You can add up to ##ag_max_per_ad## icons to your ad');
}

</script>

<hr size=1 />

<b>Would you like to add some attention getters / icons to your {item}?</b><br /><br />

You can add up to <font color=#ff0000><b>##ag_max_per_ad## ICONS</b></font> to your {item}.<br /><br />

Check which icons from the boxes below. (##CURR_SIGN####ag_fee## per icon - icons run for ##ag_exp_time## days)

<br />

<table border=0 align=center width="90%">
<tr>
<td>

##ag_icons##

</td>
</tr>
</table>

<!-- /TPL_CELL : def -->
<!-- /TPL_INSERT : b_AG_icons_list -->

</div>

<hr size=1 />

<table border=0 cellpadding=0>

<!-- IF ##Mod_Coupons## == "1" -->
<tr>
<td colspan=2>
If you have a promotional "coupon" code, please enter it now.
</td>
</tr>
<tr>
<td><font color=red><b>Coupon Code</b></font></td>
<td><input name=hw_coupon_id type=text size=20></td>
</tr>
<!-- ENDIF -->

<tr>
<td>Payment Method&nbsp;</td>
<td>##pay_method##</td>
</tr>
</table>

<br />
<br />

<input class=button type=submit value="Proceed">

</form>

<script type="text/javascript">

function SwitchExtra(show){
  if(ex_shown == show) return;
  ex_shown = show;
  SwitchBlock('extra_opt', show);
  SwitchBlock('extra_data', show);
}

function InitExtra(){

   var block = 'term[]';
   var el = document.frm.elements;
   var ok = 0;
   for (var i=0; i<el.length; i++) {
     if ((el[i].name.substr(0,block.length)== block) && el[i].checked){
       ok = 1; break;
     }
   }

   if(!ok && parseInt('##hw_expired##')) SwitchExtra(0);
}

var ex_shown = 1;
InitExtra();

</script>
Return current item: Esvon Personals