1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
<table id='<?php echo $this->idTable?>'></table>
<div id='pager<?php echo $this->idTable?>'></div>
<script type='text/javascript'>
jQuery(document).ready(function($) {jQuery('#<?php echo $this->idTable?>').jqGrid(
{
<?php if($this->sUrlEdit):?>
"editurl": '<?php echo $this->sUrlEdit?>',
"mtype": "POST",
<?php endif;?>
"hoverrows":false,
"viewrecords":true,
"jsonReader":{
"repeatitems":false,
"subgrid":{
"repeatitems":false
}
},
"xmlReader":{
"repeatitems":false,
"subgrid":{
"repeatitems":false
}
},
<?php if($this->bGridView): ?>
"treeGrid": true,
"ExpandColumn": "<?php echo $this->sExpandColumn ?>",
"treeGridModel": "adjacency",
"treeReader": {
"level_field": "<?php echo $this->sLevelField ?>",
"parent_id_field": "<?php echo $this->sParentIdField ?>",
"leaf_field": "<?php echo $this->sLeafField ?>",
"expanded_field": "<?php echo $this->sExpandedField ?>"
},
<?php endif; ?> |
Partager