					<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(); ?>
<?php if ($this->_vars['action']['complete'] || $this->_vars['action']['deleted']): ?>
						<div class="listrow"><h2><img src="<?php e(BASE_URL); ?>resource/img/icons/chart_pie_edit.gif" width="16" height="16" align="absmiddle" alt="&gt;" />&nbsp;<?php _e('Post a Poll'); ?></h2></div>
						<div class="listplain">
							<img src="<?php e(BASE_URL); ?>resource/img/icons/chart_pie.gif" width="16" height="16" align="absmiddle" alt="&gt;" />&nbsp;<a href="<?php e(HTTP_ACTION); ?>member/poll/list/<?php e($this->_vars['base']['account']['id']); ?>/"><?php _e('View Polls'); ?></a><br />
							<?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"><h2><img src="<?php e(BASE_URL); ?>resource/img/icons/chart_pie_edit.gif" width="16" height="16" align="absmiddle" alt="&gt;" />&nbsp;<?php e($this->_vars['sum_poll']['poll']); ?></h2></div>
						<div class="listrow">
							<div class="rdata"><?php HTML::htmlBody($this->_vars['sum_poll']['comment']); ?></div>
						</div>
						<div class="listrow">
							<ul class="horizontal">
								<li style="width:200px; text-align:right;">
<?php foreach ($this->_vars['answers'] as $_value): ?>
<?php   if(!empty($_value)): ?>
									<strong><?php e($_value); ?>:</strong>&nbsp;&nbsp;<br />
<?php   endif; ?>
<?php endforeach; ?>
								</li>
								<li style="width:240px; text-align:left;">
<?php foreach ($this->_vars['answers'] as $_value): ?>
<?php   if(!empty($_value)): ?>
									0<input type="hidden" name="answers[]" value="<?php e($_value); ?>" /><br />
<?php   endif; ?>
<?php endforeach; ?>
								</li>
							</ul>
						</div>
						<div class="listrow">
							<ul class="horizontal">
								<li style="width:100px; text-align:right;">
									<strong><?php _e('Deadline'); ?>:</strong>&nbsp;&nbsp;<br />
									<strong><?php _e('Answers'); ?>:</strong>&nbsp;&nbsp;<br />
									<strong><?php _e('Posted by'); ?>:</strong>&nbsp;&nbsp;
								</li>
								<li style="width:340px; text-align:left;">
									<?php eDate($this->_vars['sum_poll']['deadline'], _('Y-m-d')); ?><br />
									<?php printf(_('%s answers'), 0); ?><br />
									<?php loadPlugin::callFunc('hitsuji_profile', $this->_vars['base']['account']['id'], 'nickname'); ?>
								</li>
							</ul>
						</div>
						<div class="listplain">
							<ul class="horizontal">
								<li style="width:140px; text-align:center;">
									<?php eDate($this->_vars['sum_poll']['regist_date'], _('Y-m-d H:i')); ?>
									<img src="<?php e(BASE_URL); ?>resource/img/icons/<?php e($this->_vars['base']['visibility_icon'][$this->_vars['sum_poll']['visibility']]); ?>" width="16" height="16" align="absmiddle" alt="&gt;" />
								</li>
							</ul>
						</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"><h2><img src="<?php e(BASE_URL); ?>resource/img/icons/chart_pie_edit.gif" width="16" height="16" align="absmiddle" alt="&gt;" />&nbsp;<?php _e('Post an Question'); ?></h2></div>
						<div class="listrow">
							<label class="column"><?php _e('Title'); ?>:</label>
							<div class="fdata">
								<?php if (!empty($this->_vars['alert']['poll'])): ?><span class="alert"><?php _e('Please enter.'); ?></span><br /><?php endif; ?>
								<input type="text" name="poll" value="<?php e($this->_vars['sum_poll']['poll']); ?>" size="42" />
							</div>
						</div>
						<div class="listrow">
							<label class="column"><?php _e('Deadline'); ?>:</label>
							<div class="fdata">
								<?php if (!empty($this->_vars['alert']['deadline'])): ?><span class="alert"><?php _e('Please select date.'); ?></span><br /><?php endif; ?>
								<?php HTML::dateSelect('deadline', $this->_vars['sum_poll']['deadline']); ?>
							</div>
						</div>
						<div class="listrow">
							<label class="column"><?php _e('Visibility'); ?>:</label>
							<div class="fdata">
								<?php if (!empty($this->_vars['alert']['visibility'])): ?><span class="alert"><?php _e('Please select.'); ?></span><br /><?php endif; ?>
								<?php HTML::radio('visibility', $this->_vars['visibility'], $this->_vars['sum_poll']['visibility']); ?>
							</div>
						</div>
						<div class="listrow">
							<label class="column"><?php _e('Answers'); ?>:</label>
							<div class="fdata">
								<ul id="Answers" style="margin:0;padding:0;">
<?php foreach ($this->_vars['answers'] as $_value): ?>
									<li style="margin-bottom:8px;"><input type="text" name="answers[]" value="<?php e($_value); ?>" size="42" onfocus="addAnswer();" /></li>
<?php endforeach; ?>
									<li style="margin-bottom:8px;"><input type="text" name="answers[]" value="" size="42" onfocus="addAnswer();" /></li>
								</ul>
							</div>
						</div>
						<div class="listrow">
							<div class="rdata">
								<?php if (!empty($this->_vars['alert']['comment'])): ?><span class="alert"><?php _e('Please enter.'); ?></span><br /><?php endif; ?>
								<?php HTML::richEditor('comment', $this->_vars['sum_poll']['comment'], _('Comment')); ?>
								<?php loadPlugin::callFunc('hitsuji_attaches', $this->_vars['base']['account']['id']); ?>
							</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" />