<?php

/**
 * @version 2.8.12
 * @package Joomla 2.5
 * @subpackage DT Register
 * @copyright Copyright (C) 2006 DTH Development
 * @copyright contact dthdev@dthdevelopment.com
 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
 */

$paymentmethod = $this->getModel ( 'paymentmethod' );
$config = $this->getModel ( 'config' );
$row = $this->row;
?>
<tr valign="middle" class="sagepay">
	<td align="left" class="dt_heading" colspan="4"><?php echo JText::_('DT_SAGEPAY'); ?></td>
</tr>

<tr align="center" valign="middle" class="sagepay">
	<td align="left" valign="top"><strong><?php echo JText::_('DT_SAGEPAY_VENDOR'); ?>:</strong></td>
	<td align="left" valign="top"><input type="text"
		name="data[config][sagepay_vendor]" size="30"
		value="<?php echo stripslashes(@$row->config['sagepay_vendor']); ?>"></td>
	<td><?php echo JHTML::tooltip((JText::_('DT_SAGEPAY_VENDOR_HELP')), '', 'tooltip.png', '', ''); ?> </td>
	<td valign="top" rowspan="6"><?php echo JText::_('DT_NOTES_SAGEPAY'); ?></td>
</tr>

<tr align="center" valign="middle" class="sagepay">
	<td align="left" valign="top"><strong><?php echo JText::_('DT_SAGEPAY_VENDOR_EMAIL'); ?>:</strong></td>
	<td align="left" valign="top"><input type="text"
		name="data[config][sagepay_vendor_email]" size="30"
		value="<?php echo stripslashes(@$row->config['sagepay_vendor_email']); ?>"></td>
	<td><?php echo JHTML::tooltip((JText::_('DT_SAGEPAY_VENDOR_EMAIL_HELP')), '', 'tooltip.png', '', ''); ?> </td>
</tr>

<tr align="center" valign="middle" class="sagepay">
	<td align="left" valign="top"><strong><?php echo JText::_('DT_SAGEPAY_PASSWORD'); ?>:</strong></td>
	<td align="left" valign="top"><input type="text"
		name="data[config][sagepay_password]" size="30"
		value="<?php echo stripslashes(@$row->config['sagepay_password']); ?>"></td>
	<td><?php echo JHTML::tooltip((JText::_('DT_SAGEPAY_PASSWORD_HELP')), '', 'tooltip.png', '', ''); ?> </td>
</tr>

<tr align="center" valign="middle" class="sagepay">
	<td align="left" valign="top"><strong><?php echo JText::_('DT_SAGEPAY_PROTOCOL'); ?>:</strong></td>
	<td align="left" valign="top"><input type="text"
		name="data[config][sagepay_protocol]" size="30"
		value="<?php echo stripslashes(@$row->config['sagepay_protocol']); ?>"></td>
	<td><?php echo JHTML::tooltip((JText::_('DT_SAGEPAY_PROTOCOL_HELP')), '', 'tooltip.png', '', ''); ?> </td>
</tr>

<tr align="center" valign="middle" class="sagepay">
	<td align="left" valign="top"><strong><?php echo JText::_('DT_SAGEPAY_ETYPE'); ?>:</strong></td>
	<td align="left" valign="top"><input type="radio"
		name="data[config][sagepay_etype]" value="AES"
		<?php echo (@$row->config['sagepay_etype']=='' || $row->config['sagepay_etype']=='AES')?'checked="checked"':''?> />
        <?php echo JText::_('DT_SAGEPAY_ETYPE_AES'); ?>
        <input type="radio" name="data[config][sagepay_etype]"
		value="XOR"
		<?php echo (@$row->config['sagepay_etype']=="XOR")?'checked="checked"':''?> />
        <?php echo JText::_('DT_SAGEPAY_ETYPE_XOR'); ?>
    </td>
	<td><?php echo JHTML::tooltip((JText::_('DT_SAGEPAY_ETYPE_HELP')), '', 'tooltip.png', '', ''); ?> </td>
</tr>

<tr align="center" valign="middle" class="sagepay">
	<td align="left" valign="top"><strong><?php echo JText::_('DT_SAGEPAY_EMAIL_TO'); ?>:</strong></td>
	<td align="left" valign="top"><input type="radio"
		name="data[config][sagepay_email_to]" value="0"
		<?php echo (@$row->config['sagepay_email_to']=='' || $row->config['sagepay_email_to']=='0')?'checked="checked"':''?> />
        <?php echo JText::_('DT_NONE'); ?>
        <input type="radio" name="data[config][sagepay_email_to]"
		value="1"
		<?php echo (@$row->config['sagepay_email_to']=="1")?'checked="checked"':''?> />
        <?php echo JText::_('DT_BOTH'); ?>
        <input type="radio" name="data[config][sagepay_email_to]"
		value="2"
		<?php echo (@$row->config['sagepay_email_to']=="2")?'checked="checked"':''?> />
        <?php echo JText::_('DT_SAGEPAY_EMAIL_TO_VENDOR'); ?>
    </td>
	<td><?php echo JHTML::tooltip((JText::_('DT_SAGEPAY_EMAIL_TO_HELP')), '', 'tooltip.png', '', ''); ?> </td>
</tr>
