<?php

  /**

   * Moneybookers Form

   *

   * @package Membership Manager Pro

   * @author wojoscripts.com

   * @copyright 2010

   * @version $Id: form.tpl.php, v2.00 2011-04-20 10:12:05 gewa Exp $

   */

  if (!defined("_VALID_PHP"))

      die('Direct access to this location is not allowed.');

?>

<br />

<div class="box">

  <form action="https://www.moneybookers.com/app/payment.pl" method="post" id="mb_form" name="mb_form">

    <table cellpadding="0" cellspacing="0" class="display">

      <thead>

        <tr>

          <th colspan="2">Purchase Summary - <?php echo $row2['displayname'];?></th>

        </tr>

      </thead>

      <tr>

        <th width="200"><strong>Membership Title:</strong></th>

        <td><strong style="color:#09F"><?php echo $row['title'];?></strong></td>

      </tr>

      <tr>

        <th><strong>Membership Price:</strong></th>

        <td><strong style="color:#09F"><?php echo $core->formatMoney($row['price']);?></strong></td>

      </tr>

      <tr>

        <th><strong>Membership Period:</strong></th>

        <td><strong style="color:#09F"><?php echo $row['days'] . ' ' .$member->getPeriod($row['period']);?></strong></td>

      </tr>

      <tr>

        <th><strong>Recurring Payment:</strong></th>

        <td><strong style="color:#09F"><?php echo ($row['recurring'] == 1) ? 'Yes' : 'No';?></strong></td>

      </tr>

      <tr>

        <th><strong>Valid Until:</strong></th>

        <td><strong style="color:#09F"><?php echo $member->calculateDays($row['period'], $row['days']);?></strong></td>

      </tr>

      <tr>

        <th><strong>Membership Description:</strong></th>

        <td><?php echo $row['description'];?></td>

      </tr>

      <tr>

        <td colspan="2"><input type="image" src="<?php echo SITEURL.'/gateways/'.$row2['dir'].'/'.$row2['displayname'].'_big.png';?>" name="submit" class="tooltip" title="Pay With Moneybookers" alt="" onclick="document.mb_form.submit();"/></td>

      </tr>

    </table>

    <input type="hidden" name="pay_to_email" value="<?php echo $row2['extra'];?>" />

    <input type="hidden" name="return_url" value="<?php echo SITEURL;?>/account.php" />

    <input type="hidden" name="cancel_url" value="<?php echo SITEURL;?>/account.php" />

    <input type="hidden" name="status_url" value="<?php echo SITEURL.'/gateways/'.$row2['dir'];?>/ipn.php" />

    <input type="hidden" name="merchant_fields" value="session_id, item, custom" />

    <input type="hidden" name="item" value="<?php echo $row['title'];?>" />

    <input type="hidden" name="session_id" value="<?php echo md5(mktime())?>" />

    <input type="hidden" name="custom" value="<?php echo $row['id'] . '_' . $user->uid;?>" />

    <?php if($row['recurring'] == 1):?>

    <input type="hidden" name="rec_amount" value="<?php echo $row['price'];?>" />

    <input type="hidden" name="rec_period" value="<?php echo $member->getTotalDays($row['period'], $row['days']);?>" />

    <input type="hidden" name="rec_cycle" value="day" />

    <?php else: ?>

    <input type="hidden" name="amount" value="<?php echo $row['price'];?>" />

    <?php endif; ?>

    <input type="hidden" name="currency" value="<?php echo ($row2['extra2']) ? $row2['extra2'] : $core->currency;?>" />

    <input type="hidden" name="detail1_description" value="<?php echo $row['title'];?>" />

    <input type="hidden" name="detail1_text" value="<?php echo $row['description'];?>" />

  </form>

</div>