					<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/tag.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('Category'); ?>:</label>
							<div class="fdata">
								<ul class="horizontal" style="width:380px;">
									<li style="width:230px;"><?php e($this->_vars['cnt_category']['category']); ?></li>
									<li style="width:150px;">
										<input type="submit" name="manip" value="<?php _e('Submit'); ?>" />&nbsp;
										<input type="submit" name="<?php e($this->_vars['action']['goback']); ?>" value="<?php _e('Go back'); ?>" />
									</li>
								</ul>
							</div>
						</div>
<?php else: ?>
						<div class="listrow">
							<label class="column"><?php _e('Category'); ?>:</label>
							<div class="fdata">
								<ul class="horizontal" style="width:380px;">
									<li style="width:230px;"><input type="text" name="category" value="<?php e($this->_vars['cnt_category']['category']); ?>" size="32" /></li>
									<li style="width:150px;"><input type="submit" name="confirm" value="<?php _e('Confirm'); ?>" style="width:100px;" /></li>
								</ul>
							</div>
						</div>
<?php endif; ?>
					</form>
					<img src="<?php Theme::Path(); ?>itemBottom.png" width="530" height="10" alt="___" align="top" />


<?php if (count($this->_vars['categories'])): ?>
					<form name="edit" method="post" action="<?php e(HTTP_ACTION); ?>admin/contact/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:110px;"><?php _e('Sort'); ?></li>
									<li class="column" style="width:320px;"><?php _e('Category'); ?></li>
								</ul>
							</div>
<?php foreach ($this->_vars['categories'] 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:110px;"><input type="text" name="updates[<?php e($_row['id']); ?>][sort]" value="<?php e($_row['sort']); ?>" size="6" /></li>
									<li style="width:320px;"><input type="text" name="updates[<?php e($_row['id']); ?>][category]" value="<?php e($_row['category']); ?>" size="38" /></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; ?>
