<h1><?php echo $this->translate("unaccept.title.accept_confirm"); ?></h1>

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

<form action="<?php echo $this->appPath('controller'); ?>/accept_commit/" method="post">
   
<table class="form_2col">
<tbody>

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

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

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

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

<tr>
<th><?php echo $this->translate('inquiry.label.status'); ?></th>
<td>
<?php echo $this->status_options[$this->form_input['status']]; ?>
</td>
</tr>

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

<tr>
<th><?php echo $this->translate('inquiry.label.create_datetime'); ?></th>
<td>
<?php echo $this->escape($this->form_input['create_datetime']); ?>
</td>
</tr>

<!-- 
<tr>
<th><?php echo $this->translate('inquiry.label.registrant_name'); ?></th>
<td>
<?php echo $this->escape($this->form_input['registrant_name']); ?>
</td>
</tr>
 -->
 
<tr>
<th><?php echo $this->translate('inquiry.label.accepter_name'); ?></th>
<td>
<?php echo $this->escape($this->form_input['accepter_name']); ?>
</td>
</tr>

<tr>
<th><?php echo $this->translate('inquiry.label.content'); ?></th>
<td>
<?php echo nl2br($this->escape($this->form_input['content'])); ?>
<?php if ($this->can_inquiry_accept) : ?>
<input type="hidden" name="content" value="<?php echo $this->escape($this->form_input['content']); ?>">
<?php endif; ?>
</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']; ?>
<?php if ($this->can_inquiry_accept) : ?>
<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']; ?>"/>
<?php endif; ?>
</li>
<?php $count++; ?>
<?php endforeach; ?>
</ul>
</td>
</tr>

</tbody>

<?php if ($this->can_inquiry_accept) : ?>
<tfoot>
<tr>
<td colspan="2">
<input type="submit" style="width:80px" value="<?php echo $this->translate('unaccept.operation.accept'); ?>" />
</td>
</tr>
</tfoot>
<?php endif; ?>

</table>

</form>