<br />
<div style="padding-left:3%;">
<div id="layer" style="padding:4px; width:96%; " class="ui-widget-content ui-corner-all">
<form method="POST" action="get_details.php" name="PPF">
<input type="hidden" name="the_action" value="update_paypal_item"><input type="hidden"
name="id" value><input type="hidden" name="the_page" value="paypal.php"><input type="hidden" name="type" value=""><div align="center"><center>
<strong>PayPal <?php echo str_replace("sub_","subscription ",$row['type']); ?> payment option - View/Modify</strong>
<table border="0" width="58%" cellspacing="3"
cellpadding="3" bgcolor="#E6FFE6">
<tr>
<td align="left"><font color="#008000" face="Times New Roman"><big><strong><em><big>i</big>
</em></strong></big></font><font color="#000000">The Option name will be displayed
to your potential members, so make it obvious and readable.</font><br>
<font color="#000000"> Duration in <strong>seconds</strong>: <br>
1 day = 86400 <br />
2 days = 172800 (recommended minimum 2 days for subscriptions)<br />
1 week = 604800 <br>
1 month = 2629743<br>
1 year = 31556926
*for other durations
see: <a
href="http://www.google.co.uk/search?hl=en&q=seconds+in+a+year&btnG=Search&meta="
target="_blank">Google</a><br>
NOTE: seconds are rounded to whole seconds (no decimals).</font></td>
</tr>
</table>
</center></div><div align="center"><center><table border="0" cellpadding="0" width="800"
bgcolor="#CAE4FF" cellspacing="5">
<tr>
<td width="200" align="right"><font color="#000000"><strong>Option name:</strong></font></td>
<td align="left"><input name="item_name" type="text" size="74" maxlength="127">
<br />
<em>Do not use special characters as this can break the PayPal form</em> </td>
</tr>
<tr>
<td align="right"><font color="#000000"><strong>Amount:</strong></font></td>
<td align="left"><font color="#000000">
<input type="text" name="amount" size="8">
total amount for this payment option</font></td>
</tr>
<tr>
<td align="right"><p><font color="#000000"><strong>Tax:</strong><br><br></font></td>
<td align="left"><font color="#000000">
<input type="text" name="tax" size="8">
amount in tax, if not charged then enter 0.00
</font></td>
</tr>
<tr>
<td align="right"><font color="#000000"><strong>*Duration:</strong></font></td>
<td align="left"><font color="#000000">
<input type="text" name="duration" size="8">
Enter
total seconds for the duration of membership (whole seconds)</font></td>
</tr>
</table>
<table border="0" cellpadding="0" width="800" bgcolor="#CAE4FF" cellspacing="5">
<tr>
<td bgcolor="#CAE4FF" align="left"><p align="center">
<?php if ($row['type']=="sub_trial") include("paypal-pay-options-with-trial.html"); ?>
</p></td>
</tr>
</table>
<p>
<div class="button"><a href="#" onclick="check_duration()">Save</a>
<a href="#" onclick="location.href='paypal.php'">Cancel</a>
</div>
</p>
<table width="92%" border="0"
cellpadding="3" cellspacing="3" bgcolor="#E6FFE6">
<tr>
<td align="left"><p><font color="#000000"><strong>PayPal SUBSCRIPTIONS ONLY (including trial periods):</strong></font><br />
<font color="#000000">Note that the <strong>duration</strong> sent to PayPal is rounded to the longest whole period (day, week, month, or year). This is the recurring payment period. <br />
ie. 691200 seconds = 8 days: this will be <strong>1 week subscription</strong>,<br />
and 5443200 seconds = 9 weeks: this will be <strong>2 months subscription</strong>.<br />
<br />
*The minimum duration you should set for a subscription is 2 days (due to the way in which PayPal subscriptions work it could be almost 48 hours before the second payment is taken, please contact <a href="https://www.paypal.com/" target="_blank">PayPal</a> for further details).</p>
</td>
</tr>
</table>
</center></div>
</center></div>
</form>
<script LANGUAGE="JavaScript"><!--
function check_duration()
{
okSoFar = true;
if (isNaN(document.PPF.duration.value))
{
alert ("The duration must be entered as number, ie. 604800 \n Please re-enter the duration.");
document.PPF.duration.focus();
okSoFar = false;
}
if ((document.PPF.duration.value=="") || (document.PPF.duration.value=="0") )
{
alert ("You must enter a value for the duration. \n Please enter the duration.");
document.PPF.duration.focus();
okSoFar = false;
}
if (okSoFar==true) document.PPF.submit();
}
// --></script>
</div></div>