<script type="text/javascript">
<!--
$(document).ready(function() {
    $('#ftable').flexigrid({
        url: '<?php echo $this->appPath('controller'); ?>/json/?service_id=<?php echo $this->service['id']; ?><?php echo $this->request_param; ?>',
        dataType: 'json',
        colModel : [
            {display: 'ID', name : 'id', width : 30, sortable : true, align: 'left'},
            {display: '<?php echo $this->translate('inquiry.label.service_name'); ?>', name : 'service_name', width : 200, sortable : true, align: 'left', hide:true},
            {display: '<?php echo $this->translate('inquiry.label.subject'); ?>', name : 'subject', width : 250, sortable : true, align: 'left'},
            {display: '<?php echo $this->translate('inquiry.label.received_from'); ?>', name : 'from', width: 120, sortable:true, align:'left'},
            {display: '<?php echo $this->translate('inquiry.label.content'); ?>', name : 'content', width : 350, sortable : true, align: 'left', hide:true},
            {display: '<?php echo $this->translate('inquiry.label.create_datetime'); ?>', name : 'createdatetime', width : 150, sortable : true, align: 'left'},
            {display: '<?php echo $this->translate('inquiry.label.registrant_name'); ?>', name: 'registrant', width: 150, sortable:true, align:'left'},
            {display: '<?php echo $this->translate('inquiry.label.accept_datetime'); ?>', name : 'acceptdatetime', width : 150, sortable : true, align: 'left', hide:true},
            {display: '<?php echo $this->translate('inquiry.label.accepter_name'); ?>', name:'accepter', width:150, sortable:true, align:'left', hide:true},
            {display: '<?php echo $this->translate('inquiry.label.status'); ?>', name: 'status', width: 100, sortable:true, align: 'center'},
            {display: '<?php echo $this->translate('inquiry.label.priority'); ?>', name: 'priority', width: 100, sortable:true, align:'center'}
        ],
        rpOptions: [5,10,15,30,50,100],
        pagestat: '<?php echo $this->translate('common.flex_grid.pagestat'); ?>',
        procmsg: '<?php echo $this->translate('common.flex_grid.procmsg'); ?>',
        singleSelect: true,
        sortname: "id",
        sortorder: "DESC",
        usepager: true,
        title: '',
        useRp: true,
        rp: 15,
        showTableToggleBtn: true,
        width: 'auto',
        height: 'auto'
    });
});

$(document).ready(function() 
{
    $('.date').datepicker();
}
);
// -->
</script>

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

<h2><?php echo $this->service['name']; ?><?php echo $this->translate('unaccept.caption.list'); ?></h2>

<table id="ftable"></table>