예제 #1
0
파일: index.php 프로젝트: xuding/gMIS
<?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;