admin_stats.php3

来自「FIREFLY 是一个多用户专业帮助桌面系统」· PHP3 代码 · 共 121 行

PHP3
121
字号
<?##################################################################  ADD CONTRACT DO#################################################################include ("../include/levels.php3");$access_level = $r_level["admin"];include ("../include/config.php3");if (!$year)    $year = date("Y",time());$datas['month'] = $month;$datas['year'] = $year;$title = $msg_menu_stats;include "../include/header.inc";?><TABLE width="90%" cellspacing="2" border="0" cellpadding="2"><TR>    <TD class="color_title">        <? print "<h1>$title</h1>"; ?>    </TD></TR><TR>    <TD class="tdcl">        <?        for ($i = 0; $i < 13; $i++)            {            if ($month == $i)                $label = HIGHLIGHT($msg_month_name[$i],$msg_month_name[$i]);            else                $label = $msg_month_name[$i];            print "[<A HREF='admin_stats.php3?year=$year&month=$i&mode=$mode'>$label</A>] ";            }        print "<BR>";        for ($i = date("Y",time()); $i > 1998; $i--)            print "[<A HREF='admin_stats.php3?year=$i&month=$month&mode=$mode'>".HIGHLIGHT($i,$year)."</A>] ";        ?>    </TD></TR><TR>    <TD class="color_title">        <H1>        <?        print "<A class='color_title' HREF='admin_stats.php3?year=$year&month=$month&mode=contract'>$msg_menu_contract</A> ";        print "<A class='color_title' HREF='admin_stats.php3?year=$year&month=$month&mode=technician'>$msg_technician</A> ";        print "<A class='color_title' HREF='admin_stats.php3?year=$year&month=$month&mode=graphics'>$msg_graphics</A> ";        ?>        </H1>    </TD></TR></TABLE>        <?        if ($mode != "graphics" && $mode)            {            $datas['mode'] = $mode;            $datas['id'] = "on";            $datas = SQL_READ_CASE_STATS($dbproc,$datas);            if (is_array($datas))            {            $datas[0]['month'] = $month;            $datas[0]['year'] = $year;            switch ($mode)            {            case "contract":            DSP_CTR_STATS($datas);            break;            case "technician":            DSP_TSE_STATS($datas);            break;            default:            }            }            }        elseif ($mode)            {            $width = 350;            $height = 0;            mt_srand(time()+getmypid());            $rand = mt_rand(0,999999999);            print "<TABLE width='90%' cellspacing='2' border='0' cellpadding='2'>                    <TR>                    <TD class='color_title'>                        $msg_menu_case $msg_per $msg_menu_company                    </TD>                    <TD class='color_title'>                        $msg_menu_case $msg_per $msg_technician                    </TD>                    </TR>                    <TR>                    <TD class='tdcc'>                    <IMG BORDER='1' SRC='chart.php3?type=$gd_type&year=$year&month=$month&mode=histogram&width=$width&height=$height&content=contract&ncoltitle=2&rand=$rand'>                    </TD>                    <TD class='tdcc'>                    <IMG BORDER='1' SRC='chart.php3?type=$gd_type&year=$year&month=$month&mode=histogram&width=$width&height=$height&content=technician&ncoltitle=2&rand=$rand'>                    </TD>                    </TR>";            $height = 350;            $width =  500;            print "  <TR>                    <TD class='color_title' colspan='2'>                        $msg_menu_case $msg_per $msg_ref_product                    </TD>                    </TR>                    <TR>                    <TD class='tdcc' colspan='2'>                    <IMG BORDER='1' SRC='chart.php3?type=$gd_type&year=$year&month=$month&mode=circle&width=$width&height=$height&content=product&ncoltitle=2&rand=$rand'>                    </TD>                    </TR>                    </TABLE>";            }        ?><?include "../include/footer.inc";?>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?