📄 index.php
字号:
<?php
include_once( "inc/auth.php" );
include_once( "inc/utility_all.php" );
echo "\r\n<html>\r\n<head>\r\n<title>费用统计</title>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n\r\n<script>\r\nfunction LoadWindow()\r\n{\r\n URL=\"/module/user_select_single\";\r\n loc_x=document.body.scrollLeft+event.clientX-event.offsetX-100;\r\n loc_y=document.body.scrollTop+event.clientY-event.offsetY+200;\r\n window.showModalDialog(URL,self,\"edge:raised;scroll:0;status:0;help:0;resizable:1;dialogWidth:350px;dialogHeight:350px;dialogTop:\"+loc_y+\"px;dialogLeft:\"+loc_x+\"px\");\r\n}\r\n\r\nfunction td_calendar(fieldname)\r\n{\r\n myleft=document.body.scrollLeft+event.clientX-event.offsetX-80;\r\n mytop=document.body.scrollTop+event.clientY-event.offsetY+140;\r\n\r\n window.showModalDialog(\"/inc/calendar.php?FIELDNAME=\"+fieldname,self,\"edge:raised;scroll:0;status:0;help:0;resizable:1;dialogWidth:280px;dialogHeight:215px;dialogTop:\"+mytop+\"px;dialogLeft:\"+myleft+\"px\");\r\n}\r\n\r\n</script>\r\n\r\n</head>\r\n<body class=\"bodycolor\" topmargin=\"5\">\r\n\r\n\r\n<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"3\" class=\"small\">\r\n <tr>\r\n <td class=\"Big\"><img src=\"/images/menu/expense_account.gif\" WIDTH=\"22\" HEIGHT=\"20\" align=\"absmiddle\"><span class=\"big3\"> 费用统计</span>\r\n </td>\r\n </tr>\r\n</table>\r\n\r\n <table border=\"0\" width=\"400\" cellpadding=\"2\" cellspacing=\"1\" align=\"center\" bgcolor=\"#000000\" class=\"small\">\r\n <form action=\"search.php\" name=\"form1\">\r\n <tr>\r\n <td nowrap class=\"TableData\"> 部门:</td>\r\n <td class=\"TableData\">\r\n <select name=\"DEPT_ID\" class=\"BigSelect\">\r\n <option value=\"\">所有部门</option>\r\n";
echo my_dept_tree( 0, $DEPT_ID, 1 );
echo " </select>\r\n\t </td>\r\n </tr>\r\n <tr>\r\n <td nowrap class=\"TableData\"> 经受人:</td>\r\n <td class=\"TableData\">\r\n <input type=\"text\" name=\"TO_NAME\" size=\"15\" class=\"BigStatic\" readonly value=\"";
echo $USER_NAME;
echo "\">\r\n <input type=\"button\" value=\"选择\" class=\"SmallButton\" onClick=\"LoadWindow()\" title=\"指定费用人员\" name=\"button\">\r\n\t\t<input type=\"hidden\" name=\"TO_ID\" value=\"";
echo $USER_ID;
echo "\">\r\n\t </td>\r\n </tr>\r\n <tr>\r\n <td nowrap class=\"TableData\">费用项目:</td>\r\n <td class=\"TableData\">\r\n <select name=\"BILL_TYPE\" class=\"BigSelect\">\r\n <option value=\"0\">所有项目</option>\r\n";
$query = "SELECT * from BILL_ITEM ORDER BY ITEM_ID";
$cursor = exequery( $connection, $query );
while ( $ROW = mysql_fetch_array( $cursor ) )
{
$ITEM_ID = $ROW['ITEM_ID'];
$ITEM_NAME = $ROW['ITEM_NAME'];
echo " <option value=\"";
echo $ITEM_ID;
echo "\" ";
if ( $ITEM_ID == $BILL_TYPE )
{
echo "selected";
}
echo ">";
echo $ITEM_NAME;
echo "</option>\r\n";
}
echo " </select>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td nowrap class=\"TableData\">费用日期:</td>\r\n <td class=\"TableData\">\r\n\t\t<input type=\"text\" name=\"BEGIN_DATE\" size=\"10\" maxlength=\"10\" class=\"BigInput\" value=\"";
echo $BEGIN_DATE;
echo "\">\r\n <img src=\"/images/menu/calendar.gif\" border=\"0\" style=\"cursor:hand\" onclick=\"td_calendar('form1.BEGIN_DATE');\">\r\n\t -\r\n\t <input type=\"text\" name=\"END_DATE\" size=\"10\" maxlength=\"10\" class=\"BigInput\" value=\"";
echo $CUR_DATE;
echo "\">\r\n <img src=\"/images/menu/calendar.gif\" border=\"0\" style=\"cursor:hand\" onclick=\"td_calendar('form1.END_DATE');\">\r\n </td>\r\n </tr>\r\n <tr>\r\n <td nowrap class=\"TableData\">费用金额:</td>\r\n <td class=\"TableData\">\r\n\t <input type=\"text\" name=\"PRICE1\" class=\"BigInput\" size=\"10\"> - <input type=\"text\" name=\"PRICE2\" class=\"BigInput\" size=\"10\">\r\n </td>\r\n </tr>\r\n <tr>\r\n <td nowrap class=\"TableData\">费用事由:</td>\r\n <td class=\"TableData\">\r\n\t <input type=\"text\" name=\"REMARK\" class=\"BigInput\" size=\"20\">\r\n\t </td>\r\n </tr>\r\n <tr>\r\n <td nowrap class=\"TableData\">统计指标:</td>\r\n <td class=\"TableData\">\r\n\t <input type=\"radio\" name='SUMFIELD' id='SUMFIELD1' value=\"1\" checked><label for=\"SUMFIELD1\">按部门统计</label> \r\n\t <input type=\"radio\" name='SUMFIELD' id='SUMFIELD2' value=\"2\"><label for=\"SUMFIELD2\">按项目统计</label> \r\n\t <input type=\"radio\" name='SUMFIELD' id='SUMFIELD3' value=\"3\"><label for=\"SUMFIELD3\">按日期统计</label> \r\n\t </td>\r\n </tr>\r\n <tr >\r\n <td nowrap class=\"TableControl\" colspan=\"2\" align=\"center\">\r\n <input type=\"submit\" value=\"统计\" class=\"BigButton\" title=\"进行统计\" name=\"button\">\r\n </td>\r\n </tr>\r\n </form>\r\n </table>\r\n</body>\r\n\r\n</html>\r\n";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -