					<img src="<?php echo "<?php Theme::Path(); ?>"; ?>itemTop.png" width="530" height="10" alt="---" align="absbottom" />
					<form name="edit" method="post" action="<?php echo "<?php e(\$this->_vars['action']['url']); ?>"; ?>"><?php echo "<?php HTML::requires(); ?>\r\n"; ?>
						<div class="listrow"><h2><img src="<?php echo "<?php e(BASE_URL); ?>"; ?>resource/img/icons/heart.gif" width="16" height="16" align="absmiddle" alt="&gt;" />&nbsp;<?php echo "<?php _e(''); ?>"; ?></h2></div>
<?php echo "<?php if (\$this->_vars['action']['complete'] || \$this->_vars['action']['deleted']): ?>\r\n"; ?>
						<div class="listplain">
							<?php echo "<?php e(\$this->_vars['action']['complete']?  _('Updated'):_('Deleted')); ?>"; ?><br /><br /><?php echo "<?php loadPlugin::callFunc('hitsuji_banner', POSITION_MIDDLE); ?>"; ?><br />
						</div>
<?php echo "<?php elseif (\$this->_vars['action']['confirm'] || \$this->_vars['action']['delete']): ?>\r\n"; ?>
<?php foreach ($this->_vars['columns'] as $row): ?>
<?php if ($row['input_type'] != 'direct'): ?>
						<div class="listrow">
							<label class="column"><?php echo "<?php _e('".$row['column']."'); ?>"; ?>:</label>
<?php if ($row['input_type'] == 'text'): ?>
							<div class="fdata"><?php echo "<?php e(\$this->_vars['".$this->_vars['tbl_name']."']['".$row['column']."']); ?>"; ?></div>
<?php elseif ($row['input_type'] == 'textarea'): ?>
							<div class="fdata"><?php echo "<?php HTML::htmlBody(\$this->_vars['".$this->_vars['tbl_name']."']['".$row['column']."']); ?>"; ?></div>
<?php elseif ($row['input_type'] == 'date'): ?>
							<div class="fdata"><?php echo "<?php eDate(\$this->_vars['".$this->_vars['tbl_name']."']['".$row['column']."']); ?>"; ?></div>
<?php else: ?>
							<div class="fdata"><?php echo "<?php e(\$this->_vars['reference']['".$row['reference']."'][\$this->_vars['".$this->_vars['tbl_name']."']['".$row['column']."']]); ?>"; ?></div>
<?php endif; ?>
						</div>
<?php endif; ?>
<?php endforeach; ?>
						<div class="listplain">
							<input type="submit" name="manip" value="<?php echo "<?php e(\$this->_vars['action']['confirm']?  _('Submit'):_('Delete')); ?>"; ?>" style="width:120px;" />&nbsp;&nbsp;&nbsp;&nbsp;
							<input name="<?php echo "<?php e(\$this->_vars['action']['goback']); ?>"; ?>" type="submit" value="<?php echo "<?php _e('Go back'); ?>"; ?>" style="width:100px;" />
						</div>
<?php echo "<?php else: ?>\r\n"; ?>
<?php foreach ($this->_vars['columns'] as $row): ?>
<?php if ($row['input_type'] != 'direct'): ?>
						<div class="listrow">
							<label class="column"><?php echo "<?php _e('".$row['column']."'); ?>"; ?>:</label>
							<div class="fdata">
<?php if ($row['input_type'] == 'text'): ?>
								<?php echo "<?php if (!empty(\$this->_vars['alert']['".$row['column']."'])): ?>"; ?><span class="alert"><?php echo "<?php _e('Please enter.'); ?>"; ?></span><br /><?php echo "<?php endif; ?>\r\n"; ?> 
								<input type="text" name="<?php echo $row['column']; ?>" value="<?php echo "<?php e(\$this->_vars['".$this->_vars['tbl_name']."']['".$row['column']."']); ?>"; ?>" size="32" />
<?php elseif ($row['input_type'] == 'textarea'): ?>
								<?php echo "<?php if (!empty(\$this->_vars['alert']['".$row['column']."'])): ?>"; ?><span class="alert"><?php echo "<?php _e('Please enter.'); ?>"; ?></span><br /><?php echo "<?php endif; ?>\r\n"; ?>
								<textarea name="<?php echo $row['column']; ?>" class="textarea" cols="40" rows="6"><?php echo "<?php e(\$this->_vars['".$this->_vars['tbl_name']."']['".$row['column']."']); ?>"; ?></textarea>
<?php elseif ($row['input_type'] == 'select'): ?>
								<?php echo "<?php if (!empty(\$this->_vars['alert']['".$row['column']."'])): ?>"; ?><span class="alert"><?php echo "<?php _e('Please select.'); ?>"; ?></span><br /><?php echo "<?php endif; ?>\r\n"; ?>
								<select name="<?php echo $row['column']; ?>"><?php echo "<?php HTML::options(\$this->_vars['reference']['".$row['reference']."'], \$this->_vars['".$this->_vars['tbl_name']."']['".$row['column']."']); ?>"; ?></select>
<?php elseif ($row['input_type'] == 'checkbox'): ?>
								<?php echo "<?php if (!empty(\$this->_vars['alert']['".$row['column']."'])): ?>"; ?><span class="alert"><?php echo "<?php _e('Please select.'); ?>"; ?></span><br /><?php echo "<?php endif; ?>\r\n"; ?>
								<?php echo "<?php HTML::checkbox('".$row['column']."', \$this->_vars['reference']['".$row['reference']."'], \$this->_vars['".$this->_vars['tbl_name']."']['".$row['column']."']); ?>\r\n"; ?>
<?php elseif ($row['input_type'] == 'radio'): ?>
								<?php echo "<?php if (!empty(\$this->_vars['alert']['".$row['column']."'])): ?>"; ?><span class="alert"><?php echo "<?php _e('Please select.'); ?>"; ?></span><br /><?php echo "<?php endif; ?>\r\n"; ?>
								<?php echo "<?php HTML::radio('".$row['column']."', \$this->_vars['reference']['".$row['reference']."'], \$this->_vars['".$this->_vars['tbl_name']."']['".$row['column']."']); ?>\r\n"; ?>
<?php elseif ($row['input_type'] == 'date'): ?>
								<?php echo "<?php if (!empty(\$this->_vars['alert']['".$row['column']."'])): ?>"; ?><span class="alert"><?php echo "<?php _e('Please select date.'); ?>"; ?></span><br /><?php echo "<?php endif; ?>\r\n"; ?>
								<?php echo "<?php HTML::dateSelect('".$row['column']."', \$this->_vars['".$this->_vars['tbl_name']."']['".$row['column']."']); ?>\r\n"; ?>
<?php endif; ?>
							</div>
						</div>
<?php endif; ?>
<?php endforeach; ?>
						<div class="listplain"><input type="submit" name="confirm" value="<?php echo "<?php _e('Confirm'); ?>"; ?>" style="width:120px;" /></div>
<?php echo "<?php endif; ?>\r\n"; ?>
					</form>
					<img src="<?php echo "<?php Theme::Path(); ?>"; ?>itemBottom.png" width="530" height="10" alt="___" align="top" />