<script type="text/javascript">
<!--
$(document).ready(function() {
    $('#stable').flexigrid({
        url: '<?php echo $this->appPath('controller'); ?>/json',
        dataType: 'json',
        colModel : [
            {display: 'ID', name : 'id', width : 50, sortable : true, align: 'left', hide:true},
            {display: '<?php echo $this->translate('service.label.name'); ?>', name : 'name', width : 250, sortable : true, align: 'left'},
            {display: '<?php echo $this->translate('service.label.code'); ?>', name : 'code', width : 100, sortable : true, align: 'left'},
            {display: '<?php echo $this->translate('service.label.inquiry_mailaddress'); ?>', name : 'inquiry_mailaddress', width: 200, sortable: false, align:'left'},
            {display: '<?php echo $this->translate('service.label.comment_mailaddress'); ?>', name : 'comment_mailaddress', width: 200, sortable: false, align:'left'},
            {display: '<?php echo $this->translate('service.label.create_datetime'); ?>', name : 'createdatetime', width : 150, sortable : false, align: 'left'},
            {display: '<?php echo $this->translate('service.label.update_datetime'); ?>', name : 'updatedatetime', width : 150, sortable : false, align: 'left'},
            {display: '<?php echo $this->translate('common.label.operation'); ?>', name: 'operation', width: 200, sortable: false, align: 'center'}
        ],
        rpOptions: [10,30,50],
        pagestat: '<?php echo $this->translate('common.flex_grid.pagestat'); ?>',
        procmsg: '<?php echo $this->translate('common.flex_grid.procmsg'); ?>',
        singleSelect: true,
        sortname: "id",
        sortorder: "ASC",
        usepager: true,
        title: '',
        useRp: true,
        rp: 10,
        showTableToggleBtn: true,
        width: 'auto',
        height: 'auto'
    });
});
// -->
</script>

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

<table id="stable"></table>

<br/>
<ul><li>&gt;&gt;&gt;&nbsp;&nbsp;<a href="<?php echo $this->appPath('controller'); ?>/create_input"><?php echo $this->translate('service.operation.create'); ?></a></li></ul>
