					<img src="<?php Theme::Path(); ?>itemTop.png" width="530" height="10" alt="---" align="absbottom" />
					<form name="edit" method="post" action="<?php e($this->_vars['action']['url']); ?>">
						<?php HTML::requires(); ?>
						<div class="listrow"><h2><img src="<?php e(BASE_URL); ?>resource/img/icons/star.gif" width="16" height="16" align="absmiddle" alt="&gt;" />&nbsp;<?php _e('Category'); ?></h2></div>
<?php if ($this->_vars['action']['complete']): ?>
						<div class="listrow">
							<?php _e('Created'); ?>
						</div>
<?php elseif ($this->_vars['action']['confirm']): ?>
						<div class="listrow">
							<label class="column"><?php _e('Service'); ?>:</label>
							<div class="fdata"><?php e($this->_vars['rev_category']['service']); ?></div>
						</div>
						<div class="listrow">
							<label class="column"><?php _e('Label'); ?>:</label>
							<div class="fdata"><?php e($this->_vars['rev_category']['label']); ?></div>
						</div>
						<div class="listrow">
							<label class="column"><?php _e('Code'); ?>:</label>
							<div class="fdata"><?php e($this->_vars['rev_category']['code']); ?></div>
						</div>
						<div class="listplain">
							<input type="submit" name="manip" value="<?php _e('Submit'); ?>" style="width:120px;" />&nbsp;&nbsp;&nbsp;&nbsp;
							<input type="submit" name="<?php e($this->_vars['action']['goback']); ?>" value="<?php _e('Go back'); ?>" style="width:100px;" />
						</div>
<?php else: ?>
						<div class="listrow">
							<label class="column"><?php _e('Service'); ?>:</label>
							<div class="fdata">
								<?php if (!empty($this->_vars['alert']['service'])): ?><span class="alert"><?php _e('Please enter.'); ?></span><br /><?php endif; ?>
								<ul class="horizontal">
									<li><input type="text" name="service" value="<?php e($this->_vars['rev_category']['service']); ?>" size="32" /></li>
									<li>&nbsp;&nbsp;&nbsp;<strong>Amazon</strong>&nbsp;:&nbsp;amazon<br />&nbsp;&nbsp;&nbsp;<strong><?php _e('GuguruNavi')?></strong>&nbsp;:&nbsp;gnavi<br /></li>
								</ul>
							</div>
						</div>
						<div class="listrow">
							<label class="column"><?php _e('Label'); ?>:</label>
							<div class="fdata">
								<?php if (!empty($this->_vars['alert']['label'])): ?><span class="alert"><?php _e('Please enter.'); ?></span><br /><?php endif; ?>
								<input type="text" name="label" value="<?php e($this->_vars['rev_category']['label']); ?>" size="32" />
							</div>
						</div>
						<div class="listrow">
							<label class="column"><?php _e('Code'); ?>:</label>
							<div class="fdata">
								<?php if (!empty($this->_vars['alert']['code'])): ?><span class="alert"><?php _e('Please enter.'); ?></span><br /><?php endif; ?>
 
								<input type="text" name="code" value="<?php e($this->_vars['rev_category']['code']); ?>" size="32" />
							</div>
						</div>
						<div class="listplain"><input type="submit" name="confirm" value="<?php _e('Confirm'); ?>" style="width:120px;" /></div>
<?php endif; ?>
					</form>
					<img src="<?php Theme::Path(); ?>itemBottom.png" width="530" height="10" alt="___" align="top" />


<?php if (count($this->_vars['list'])): ?>
					<form name="edit" method="post" action="<?php e(HTTP_ACTION); ?>admin/master/category/">
						<?php HTML::requires(); ?>
						<img src="<?php Theme::Path(); ?>itemTop.png" width="530" height="10" alt="__" align="absbottom" />
							<div class="listrow">
								<ul class="horizontal">
									<li class="column" style="width:18px;">&nbsp;</li>
									<li class="column" style="width:60px;"><?php _e('Check'); ?></li>
									<li class="column" style="width:80px;"><?php _e('Sort'); ?></li>
									<li class="column" style="width:300px;"><?php _e('Label'); ?></li>
									<li class="column" style="width:50px;">&nbsp;</li>
								</ul>
							</div>
<?php foreach ($this->_vars['list'] as $_row): ?>
							<div class="listrow">
								<ul class="horizontal">
									<li style="width:18px;">&nbsp;</li>
									<li style="width:60px;"><input type="checkbox" name="deletes[]" value="<?php e($_row['id']); ?>" /></li>
									<li style="width:80px;"><input type="text" name="updates[<?php e($_row['id']); ?>][sort]" value="<?php e($_row['sort']); ?>" size="6" /></li>
									<li style="width:300px;"><?php e($_row['label']); ?></li>
									<li style="width:50px;"><img src="<?php e(BASE_URL); ?>resource/img/icons/edit.gif" width="16" height="16" align="absmiddle" alt="&gt;" />&nbsp;<a href="<?php e(HTTP_ACTION); ?>admin/master/review/<?php e($_row['id']); ?>/"><?php _e('Edit'); ?></a></li>
								</ul>
							</div>
<?php endforeach; ?>
							<div class="listplain">
								<input type="submit" name="manips" value="<?php _e('Submit'); ?>" style="width:120px;" />
								&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
								<input type="submit" name="delete" value="<?php _e('Delete'); ?>" style="width:100px;" />
							</div>
						<img src="<?php Theme::Path(); ?>itemBottom.png" width="530" height="10" alt="__" align="top" />
					</form>
<?php endif; ?>
