本文整理汇总了PHP中Application_Model_GlobalClass::getList方法的典型用法代码示例。如果您正苦于以下问题:PHP Application_Model_GlobalClass::getList方法的具体用法?PHP Application_Model_GlobalClass::getList怎么用?PHP Application_Model_GlobalClass::getList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Application_Model_GlobalClass
的用法示例。
在下文中一共展示了Application_Model_GlobalClass::getList方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: grideView
public function grideView($edit_url, $url, $collumn, $result = null, $start, $limit, $record_count)
{
//$page = $this->getPagine($url,$start,$limit,$recount_count);
$frm_list = new Application_Model_GlobalClass();
$page = $frm_list->getList($url, "list", $start, $limit, $record_count);
$result_row = $page["result_row"];
$rows_per_page = $page["rows_per_page"];
$nevigation = $page["nevigation"];
$stringPagination = '<style>
#grid{
margin: 0 auto;
}
.dojoxGridSortNode{
text-align: center;
height: 30px;line-height:27px;
}
.height-text{height:30px; min-width: 350px;
}
</style>';
$stringPagination .= '<script>
dojo.require("dojox.grid.DataGrid");
dojo.require("dijit.Dialog");
dojo.require("dojo.data.ItemFileWriteStore");
dojo.require("dojo.store.Memory");';
$rs = Zend_Json::encode($result);
$stringPagination .= "var tran_store = getDataStorefromJSON('id','name',{$rs})";
$stringPagination .= ';dojo.ready(function(){
grid = new dojox.grid.DataGrid({
store: tran_store,
autoHeight: true,
structure: [
{ name: "N.", field: "num", width: "40px", cellStyles: "text-align: center;" },
{ name: "id", field: "id", hidden: "true" },';
if (!empty($result['err'])) {
echo '<script>alert("មិនទាន់មានទន្និន័យទេ!");</script>';
}
$key_col = @array_keys(@$result[0]);
$key_index = 2;
$tr = Application_Form_FrmLanguages::getCurrentlanguage();
for ($i = 0; $i < count($collumn); $i++) {
$stringPagination .= "{ name:'" . $tr->translate($collumn[$i]) . "',field: '" . $key_col[$key_index] . "', width: 'auto'},";
$key_index++;
}
$stringPagination .= "]\r\n \t\t\t}, 'grid');\r\n \t\t\tgrid.startup();\r\n \t\r\n \t\t\tdojo.connect(grid, 'onRowClick', grid, function(evt){\r\n \t\t\t\tvar idx = evt.rowIndex,\r\n \t\t\t\t\titem = this.getItem(idx);\r\n \t\t\t\twindow.location = '" . $edit_url . "/id/' + this.store.getValue(item, 'id');\r\n \t\t\t});\r\n \t\t});\t\r\n \t</script>";
$stringPagination .= '<table class="full">
<tr>
<td colspan="2">
<div id="grid" ></div>
</td>
</tr>
<tr>
<td>' . $result_row . '</td>
<td align="right" >' . $rows_per_page . '</td>
</tr>
<tr>
<td colspan="2" align="center">
<div id="navigetion" style="margin: 0 auto;">' . $nevigation . '</div>
</td>
</tr>
</table>';
return $stringPagination;
}