<?php 

/**
* @version 2.7.12
* @package Joomla 1.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="offline_payment"><td align="left" class="dt_heading" colspan="4"><?php echo JText::_( 'DT_OFFLINE_SETTINGS' ); ?></td></tr>
                               <tr align="center" class="offline_payment" valign="middle">  <td align="left" valign="top"><strong><?php echo JText::_( 'DT_OFFLINE_ZERO_CREDIT' ) ?>:</strong></td>

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

								   <?php

								   $options=array();

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

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

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

								   ?>

							   </td>

								<td align="center"><?php echo JHTML::tooltip((JText::_( 'DT_OFFLINE_ZERO_CREDIT_HELP' )), '', 'tooltip.png', '', ''); ?> </td>
								
								<td valign="top" rowspan="2"><?php echo JText::_( 'DT_NOTES_OFFLINE' ) ;?></td>

							   </tr>
                               <tr class="offline_payment" >
                     		<td valign="top"><strong><?php echo JText::_( 'DT_OFFLINE_FIELD' );?>:</strong></td>

				     		<td valign="top">
                     <?php
					   $mfield = $this->getModel('field');

					   $tfield = $this->getModel('field')->table;
                       $list = $tfield->optionslist(' type = 1 or type=4 or type =3 ');
					   $options=DtHtml::options($list,JText::_('DT_SELECT_FIELD'));

  					   echo JHTML::_('select.genericlist',$options,"data[config][depend_on_field]",'','value','text',$row->config['depend_on_field']);
					 
					 ?>
                     		 <br />

                				<span id="parentoptions">

                				</span>

								</td>

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

						</tr>