<h1><?php echo $this->translate('comment.title.create_input'); ?></h1>

<h2><?php echo $this->translate('comment.caption.input'); ?></h2>

<?php if(!empty($this->error_messages)) : ?>
<div id="errorMessage">
<ul>
<?php foreach($this->error_messages as $element_name => $element_mess) : ?>
<?php foreach($element_mess as $mess_key => $mess_value) :?>
<li><?php echo $this->translate("comment.label.$element_name") . $mess_value; ?></li>
<?php endforeach; ?>
<?php endforeach; ?>
</ul>
</div>
<?php endif; ?>

<form action="<?php echo $this->appPath('controller') . '/' . $this->action_prefix; ?>confirm" method="post">
<input type="hidden" name="id" value="<?php echo $this->escape($this->form_input['id']); ?>"/>
<input type="hidden" name="inquiry_id" value="<?php echo $this->escape($this->form_input['inquiry_id']);?>">
<input type="hidden" name="parent_id" value="<?php echo $this->escape($this->form_input['parent_id']);?>">

<table class="form_2col">
<tbody>

<!--
<tr>
<th>INQUIRY_ID</th>
<td><?php echo $this->escape($this->form_input['inquiry_id']);?></td>
</tr>
<tr>
<th>REPLY_ID</th>
<td><?php echo $this->escape($this->form_input['parent_id']);?></td>
</tr>
-->

<tr>
<th><?php echo $this->translate('comment.label.subject'); ?></th>
<td><input type="text" size="50" name="subject" value="<?php echo $this->escape($this->form_input['subject']); ?>"></td>
</tr>
<tr>
<th><?php echo $this->translate('comment.label.content'); ?></th>
<td>
<textarea name="content" cols="100" rows="25"><?php echo $this->escape($this->form_input['content']); ?></textarea>
</td>
</tr>

</tbody>

<tfoot>
<tr>
<td colspan="2">
<input type="submit" style="width:80px;" value="<?php echo $this->translate('common.operation.register'); ?>">
&nbsp;&nbsp;
<input type="reset" style="width:80px;" value="<?php echo $this->translate('common.operation.reset'); ?>">
</td>
</tr>
</tfoot>

</table>

</form>

<br/>
<ul>
<li>&gt;&gt;&nbsp;&nbsp;<a href="<?php echo $this->appPath(''); ?>/inquiry/view_detail/inquiry_id/<?php echo $this->form_input['inquiry_id']; ?>"><?php echo $this->translate('inquiry.operation.back_detail'); ?></a></li>
<li>&gt;&gt;&gt;&nbsp;&nbsp;<a href="<?php echo $this->appPath(''); ?>/inquiry/view_all/service_id/<?php echo $this->service_id; ?>"><?php echo $this->translate('inquiry.operation.back_list'); ?></a></li>
</ul>