<h1><?php echo $this->translate("inquiry.title.{$this->action_prefix}confirm"); ?></h1>

<h2 id="page_title"><?php echo $this->translate('inquiry.caption.confirm'); ?></h2>

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

<table class="form_2col">
<tbody>

<tr>
<th><?php echo $this->translate('inquiry.label.service_name'); ?></th>
<td>
<?php echo $this->service['name']; ?>
<input type="hidden" name="service_id" value="<?php echo $this->escape($this->form_input['service_id']);?>">
</td>
</tr>

<tr>
<th><?php echo $this->translate('inquiry.label.priority'); ?></th>
<td>
<?php echo $this->priority_options[$this->form_input['priority']]; ?>
<input type="hidden" name="priority" value="<?php echo $this->escape($this->form_input['priority']);?>">
</td>
</tr>

<tr>
<th><?php echo $this->translate('inquiry.label.subject'); ?></th>
<td>
<?php echo $this->escape($this->form_input['subject']);?>
<input type="hidden" name="subject" value="<?php echo $this->escape($this->form_input['subject']);?>">
</td>
</tr>

<tr>
<th><?php echo $this->translate('inquiry.label.received_from'); ?></th>
<td>
<?php echo $this->escape($this->form_input['received_from']);?>
<input type="hidden" name="received_from" value="<?php echo $this->escape($this->form_input['received_from']);?>">
</td>
</tr>

<tr>
<th><?php echo $this->translate('inquiry.label.content'); ?></th>
<td>
<?php echo nl2br($this->escape($this->form_input['content']));?>
<input type="hidden" name="content" value="<?php echo $this->escape($this->form_input['content']);?>">
</td>
</tr>

<tr>
<th><?php echo $this->translate('inquiry.label.attach_file'); ?></th>
<td>
<ul>
<?php $count=0; ?>
<?php foreach ($this->form_input['attach_files'] as $attach_file) : ?>
<li><?php echo $attach_file['name']; ?>
<input type="hidden" name="attach_files[<?php echo $count; ?>][type]" value="<?php echo $attach_file['type']; ?>"/>
<input type="hidden" name="attach_files[<?php echo $count; ?>][name]" value="<?php echo $attach_file['name']; ?>"/>
<input type="hidden" name="attach_files[<?php echo $count; ?>][tmp_name]" value="<?php echo $attach_file['tmp_name']; ?>"/>
</li>
<?php $count++; ?>
<?php endforeach; ?>
</ul>
</td>
</tr>

</tbody>
<tfoot>

<tr>
<td colspan="2">
<input type="submit" style="width:80px;" value="<?php echo $this->translate('common.operation.register'); ?>">
<input type="button" style="width:80px;" onclick="this.form.action='<?php echo $this->appPath('controller') .'/'. $this->action_prefix; ?>input';this.form.submit();"  value="<?php echo $this->translate('common.operation.back'); ?>">
</td>
</tr>

</tfoot>
</table>

</form>
