本文整理汇总了PHP中WebApp::execBy方法的典型用法代码示例。如果您正苦于以下问题:PHP WebApp::execBy方法的具体用法?PHP WebApp::execBy怎么用?PHP WebApp::execBy使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类WebApp
的用法示例。
在下文中一共展示了WebApp::execBy方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: WebApp
<?php
$_REQUEST['tbl'] = '';
# 'fin_todotbl'; Wed Oct 22 09:10:01 CST 2014
require "./comm/header.inc";
$out = str_replace('TITLE', '欢迎', $out);
$data['title'] = '欢迎';
$gtbl = new WebApp();
$module_list = "";
$hm_module_order = array();
$hm_module_name = array();
$hm = $gtbl->execBy("select count(parenttype) as modulecount, parenttype from " . $_CONFIG['tblpre'] . "fin_operatelogtbl where inserttime > '" . date("Y-m-d", time() - 86400 * 60) . " 00:00:00' group by parenttype order by modulecount desc limit 8", null);
if ($hm[0]) {
$hm = $hm[1];
foreach ($hm as $k => $v) {
$module_list .= "'" . $v['parenttype'] . "',";
$hm_module_order[$k] = $v['parenttype'];
}
$module_list = substr($module_list, 0, strlen($module_list) - 1);
$hm = $gtbl->execBY("select objname,tblname from " . $_CONFIG['tblpre'] . "info_objecttbl where tblname in ({$module_list})", null);
if ($hm[0]) {
$hm = $hm[1];
foreach ($hm as $k => $v) {
$hm_module_name[$v['tblname']] = $v['objname'];
}
}
}
$hm = $gtbl->execBy("select objname,tblname from " . $_CONFIG['tblpre'] . "info_objecttbl where addtodesktop > 0 order by addtodesktop");
if ($hm[0]) {
$hm = $hm[1];
$data['module_list_byuser'] = $hm;