<?php 

/**
* @version 2.8.14
* @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
*/

   $config = $this->getModel('config'); 
   $row = $this->row;

?> 
<tr valign="middle" class="payway"><td align="left" class="dt_heading" colspan="4"><?php echo JText::_( 'PAYWAY' ); ?></td></tr>

	 			<tr align="center" valign="middle" class="payway">

                     <td align="left" valign="top">

										 <strong><?php echo JText::_( 'DT_PAYWAY_BILLER_CODE' ); ?>:</strong>

										 </td>

									   <td align="left" valign="top"> <input type="text" name="data[config][payway_billercode]" size="30" value="<?php echo isset($row->config['payway_billercode'])?$row->config['payway_billercode']:''; ?>" /> </td>

										 <td><?php echo JHTML::tooltip((JText::_( 'DT_PAYWAY_BILLER_CODE_DESC' )), '', 'tooltip.png', '', ''); ?> </td>
										 									   
									   <td valign="top" rowspan="8"><?php echo JText::_( 'DT_NOTES_PAYWAY' ); ?></td>

				</tr>

				<tr align="center" valign="middle" class="payway">

                     <td align="left" valign="top"><strong><?php echo JText::_( 'DT_PAYWAY_USERNAME' ); ?>:</strong></td>

									   <td align="left" valign="top">	<input type="text" name="data[config][payway_username]" size="30" value="<?php echo isset($row->config['payway_username'])?$row->config['payway_username']:''; ?>" /> </td>

										 <td><?php echo JHTML::tooltip((JText::_( 'DT_PAYWAY_USERNAME_DESC' )), '', 'tooltip.png', '', ''); ?> </td>

				</tr>	
                
                <tr align="center" valign="middle" class="payway">

                     <td align="left" valign="top"><strong><?php echo JText::_( 'DT_PAYWAY_PASSWORD' ); ?>:</strong></td>

									   <td align="left" valign="top">	<input type="text" name="data[config][payway_password]" size="30" value="<?php echo isset($row->config['payway_password'])?$row->config['payway_password']:''; ?>" /> </td>

										 <td><?php echo JHTML::tooltip((JText::_( 'DT_PAYWAY_PASSWORD_DESC' )), '', 'tooltip.png', '', ''); ?> </td>

				</tr>	
                
                
                 <tr align="center" valign="middle" class="payway">

                     <td align="left" valign="top"><strong><?php echo JText::_( 'DT_PAYWAY_CERTIFICATE' ); ?>:</strong></td>

									   <td align="left" valign="top">	<input type="text" name="data[config][payway_cert]" size="30" value="<?php echo isset($row->config['payway_cert'])?$row->config['payway_cert']:''; ?>" /> </td>

										 <td><?php echo JHTML::tooltip((JText::_( 'DT_PAYWAY_CERTIFICATE_DESC' )), '', 'tooltip.png', '', ''); ?> </td>

				</tr>	
                
                 <tr align="center" valign="middle" class="payway">

                     <td align="left" valign="top"><strong><?php echo JText::_( 'DT_PAYWAY_MERCHANT_ID' ); ?>:</strong></td>

									   <td align="left" valign="top">	<input type="text" name="data[config][payway_merchant_id]" size="30" value="<?php echo isset($row->config['payway_merchant_id'])?$row->config['payway_merchant_id']:''; ?>" /> </td>

										 <td><?php echo JHTML::tooltip((JText::_( 'DT_PAYWAY_MERCHANT_ID_DESC' )), '', 'tooltip.png', '', ''); ?> </td>

				</tr>	
                
                 <tr align="center" valign="middle" class="payway">

                     <td align="left" valign="top"><strong><?php echo JText::_( 'DT_PAYWAY_ENCRYPTION_KEY' ); ?>:</strong></td>

									   <td align="left" valign="top">	<input type="text" name="data[config][payway_encrypt_key]" size="30" value="<?php echo isset($row->config['payway_encrypt_key'])?$row->config['payway_encrypt_key']:''; ?>" /> </td>

										 <td><?php echo JHTML::tooltip((JText::_( 'DT_PAYWAY_ENCRYPTION_KEY_DESC' )), '', 'tooltip.png', '', ''); ?> </td>

				</tr>
                
                 <tr class="payway" align="center" valign="middle">  <td align="left" valign="top"><strong><?php echo JText::_( 'DT_PAYWAY_TYPE' );?>:</strong></td>

							    <td align="left" valign="top">

							    <?php

								    $options=array();

								    $options[]=JHTML::_('select.option', 'api', JText::_( 'DT_API' ));

								    $options[]=JHTML::_('select.option', 'net', JText::_( 'DT_NET' ));

								    echo JHTML::_('select.genericlist', $options,'data[config][payway_type]','','value','text',isset($row->config['payway_type'])?$row->config['payway_type']:'net');

							     ?>

							    </td>

								  <td><?php echo JHTML::tooltip((JText::_( 'DT_PAYWAY_TYPE_DESC' )), '', 'tooltip.png', '', ''); ?> </td>

							  </tr>
                
                 <tr class="payway" align="center" valign="middle">  <td align="left" valign="top"><strong><?php echo JText::_( 'DT_PAYWAY_NOTIFICATION_EMAIL' );?>:</strong></td>

							    <td align="left" valign="top">

							   <input type="text" name="data[config][payway_notification_email]" size="30" value="<?php echo isset($row->config['payway_notification_email'])?$row->config['payway_notification_email']:''; ?>" />

								  <td><?php echo JHTML::tooltip((JText::_( 'DT_PAYWAY_NOTIFICATION_EMAIL_DESC' )), '', 'tooltip.png', '', ''); ?> </td>

							  </tr>
