<?php
/**
 * @version		3.0.0
 * @package		JomLand TicketCenter
 * @copyright	Copyright (C) 2010 JomLand.com. All rights reserved.
 * @link 		www.jomland.com
 * @license		GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 */
defined('_JEXEC') or die('Restricted access'); ?>

<script language="javascript" type="text/javascript">
<!--
function submitbutton(pressbutton) {
	var form = document.adminForm;
	if (pressbutton == 'cancel') {
		submitform( pressbutton );
		return;
	}
	// do field validation
	

	if (form.name.value == ""){
		alert( "<?php echo JText::_('You must provide delivery method name.', true ); ?>" );
	}
	else {

		<?php
			$editor = JFactory::getEditor();
			echo $editor->save('description');
		 ?>
		submitform( pressbutton );
	}
}
//-->
</script>



<form action="index.php" method="post" name="adminForm" id="adminForm">
	<div class="col100">
		<fieldset class="adminform">
			<legend>
			<?php echo JText::_('Delivery Methods Details'); ?>
			</legend>

			<table class="admintable">

				<tr>
					<td width="100" class="key"><label for="name"> <?php echo JText::_('Name'); ?>:
					</label>
					</td>
					<td><input class="input" type="text" name="name" id="name"
						size="32" maxlength="50" value="<?php echo $this->row->name;?>" />
					</td>
				</tr>

				<tr>
					<td width="100" class="key"><label for="description"> <?php echo JText::_('Description'); ?>:
					</label>
					</td>
					<td><?php
					$editor = JFactory::getEditor();
					echo $editor->display('description', $this->row->description, '100%', '250', '', '20', false);
					?>
					</td>
				</tr>


				<tr>
					<td width="100" class="key"><label for="price"> <?php echo JText::_('Price'); ?>:
					</label>
					</td>
					<td><input class="input" type="text" name="price" id="price"
						size="11" maxlength="11" value="<?php echo $this->row->price;?>" />
					</td>
				</tr>

				<tr>
					<td width="100" class="key"><label for="published"> <?php echo JText::_('Published'); ?>:
					</label>
					</td>
					<td><?php echo $this->published;?>
					</td>
				</tr>

				<tr>
					<td width="100" class="key"><label for="send_by_mail"> <?php echo JText::_('Send By Email'); ?>:
					</label>
					</td>
					<td><?php echo $this->send_by_mail;?>
					</td>
				</tr>

				<tr>
					<td valign="top" align="right" class="key">
                        <label for="ordering"> <?php echo JText::_( 'Ordering' ); ?>:</label>
					</td>
					<td>
                        <?php echo $this->lists['ordering']; ?>
					</td>
				</tr>

			</table>
		</fieldset>
	</div>
	<div class="clr"></div>

	<input type="hidden" name="option" value="com_jlticketcenter" /> <input
		type="hidden" name="id" value="<?php echo $this->row->id;?>" /> <input
		type="hidden" name="task" value="save" /> <input type="hidden"
		name="controller" value="deliverymethods" />
		<?php echo JHTML::_( 'form.token' ); ?>
</form>
