					<img src="<?php Theme::Path(); ?>itemTop.png" width="530" height="10" alt="---" align="absbottom" />
					<form id="feditor" 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/cog.gif" width="16" height="16" align="absmiddle" alt="&gt;" />&nbsp;<?php _e('Gadget'); ?></h2></div>
<?php if ($this->_vars['action']['complete'] || $this->_vars['action']['deleted']): ?>
						<div class="listplain">
							<?php e($this->_vars['action']['complete']? _('Updated'):_('Deleted')); ?><br /><br /><?php loadPlugin::callFunc('hitsuji_banner', POSITION_MIDDLE); ?><br />
						</div>
<?php elseif ($this->_vars['action']['confirm'] || $this->_vars['action']['delete']): ?>
						<div class="listrow">
							<label class="column"><?php _e('Title'); ?>:</label>
							<div class="fdata"><?php e($this->_vars['act_gadget']['title']); ?></div>
						</div>
						<div class="listrow">
							<label class="column"><?php _e('Position'); ?>:</label>
							<div class="fdata"><?php e($this->_vars['positions'][$this->_vars['act_gadget']['position']]); ?></div>
						</div>
						<div class="listrow">
							<label class="column"><?php _e('Source or RSS'); ?>:</label>
							<div class="fdata"><textarea class="textarea" cols="40" rows="6" readonly="readonly" wrap="hard"><?php e($this->_vars['act_gadget']['source']); ?></textarea></div>
						</div>
						<div class="listplain">
							<input type="submit" name="manip" value="<?php e($this->_vars['action']['confirm']? _('Submit'):_('Delete')); ?>" 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('Title'); ?>:</label>
							<div class="fdata">
								<?php if (!empty($this->_vars['alert']['title'])): ?><span class="alert"><?php _e('Please type.'); ?></span><br /><?php endif; ?> 
								<input type="text" name="title" value="<?php e($this->_vars['act_gadget']['title']); ?>" size="32" />
							</div>
						</div>
						<div class="listrow">
							<label class="column"><?php _e('Position'); ?>:</label>
							<div class="fdata">
								<?php if (!empty($this->_vars['alert']['position'])): ?><span class="alert"><?php _e('Please select.'); ?></span><br /><?php endif; ?>
								<?php HTML::radio('position', $this->_vars['positions'], $this->_vars['act_gadget']['position']); ?>
							</div>
						</div>
						<div class="listrow">
							<label class="column"><?php _e('Source or RSS'); ?>:</label>
							<div class="fdata">
								<?php if (!empty($this->_vars['alert']['source'])): ?><span class="alert"><?php _e('Please type.'); ?></span><br /><?php endif; ?>
								<ul class="horizontal">
									<li onclick="document.edit.source.value='<?php e(HTTP_ACTION); ?>private/recent/blog/json/';"><img src="<?php e(BASE_URL); ?>resource/img/icons/book_open.gif" width="16" height="16" align="absmiddle" />&nbsp;<?php _e('Blog'); ?>&nbsp;&nbsp;</li>
									<li onclick="document.edit.source.value='<?php e(HTTP_ACTION); ?>private/recent/comment/json/';"><img src="<?php e(BASE_URL); ?>resource/img/icons/comment.gif" width="16" height="16" align="absmiddle" />&nbsp;<?php _e('Comment'); ?>&nbsp;&nbsp;</li>
									<li onclick="document.edit.source.value='<?php e(HTTP_ACTION); ?>private/recent/topic/json/';"><img src="<?php e(BASE_URL); ?>resource/img/icons/bulletin.gif" width="16" height="16" align="absmiddle" />&nbsp;<?php _e('Topic'); ?>&nbsp;&nbsp;</li>
									<li onclick="document.edit.source.value='<?php e(HTTP_ACTION); ?>private/recent/event/json/';"><img src="<?php e(BASE_URL); ?>resource/img/icons/event.gif" width="16" height="16" align="absmiddle" />&nbsp;<?php _e('Event'); ?>&nbsp;&nbsp;</li>
								</ul>
								<textarea name="source" class="textarea" cols="40" rows="10"><?php e($this->_vars['act_gadget']['source']); ?></textarea>
							</div>
						</div>
						<div class="listplain">
							<input type="submit" name="confirm" value="<?php _e('Confirm'); ?>" style="width:120px;" />
<?php if (!empty($this->_vars['request']['id'])): ?>
							<button type="button" onclick="document.location.href='<?php e(HTTP_ACTION); ?>private/post/gadget/<?php e($this->_vars['request']['id']); ?>/delete/';" style="width:100px;"><?php _e('Delete'); ?><button>
<?php endif; ?>
						</div>
<?php endif; ?>
					</form>
					<img src="<?php Theme::Path(); ?>itemBottom.png" width="530" height="10" alt="___" align="top" />