edit.php
来自「极限网络智能办公系统 - Office Automation 2008 官方10」· PHP 代码 · 共 53 行
PHP
53 行
<?php
include_once( "inc/auth.php" );
include_once( "../prcs_role.php" );
if ( !prcs_role( $FLOW_ID, 0 ) )
{
exit( );
}
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</head>\r\n\r\n<body class=\"bodycolor\" topmargin=\"5\">\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\nfunction clear_user()\r\n{\r\n\tdocument.form1.TO_NAME.value='';\r\n\tdocument.form1.TO_ID.value='';\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 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\nfunction td_clock(fieldname,pare)\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 window.showModalDialog(\"/inc/clock0.php?FIELDNAME=\"+fieldname,self,\"edge:raised;scroll:0;status:0;help:0;resizable:1;dialogWidth:280px;dialogHeight:120px;dialogTop:\"+mytop+\"px;dialogLeft:\"+myleft+\"px\");\r\n}\r\n\r\n</script>\r\n";
$query = "SELECT * from FLOW_TYPE WHERE FLOW_ID=".$FLOW_ID;
$cursor1 = exequery( $connection, $query );
if ( $ROW = mysql_fetch_array( $cursor1 ) )
{
$FLOW_NAME = $ROW['FLOW_NAME'];
$FORM_ID = $ROW['FORM_ID'];
}
$query = "SELECT * from FLOW_RUN_OTHERS WHERE FLOW_ID=".$FLOW_ID." and USER_ID='{$LOGIN_USER_ID}'";
$cursor1 = exequery( $connection, $query );
if ( $ROW = mysql_fetch_array( $cursor1 ) )
{
$OTHERS_ID = $ROW['OTHERS_ID'];
$OTHERS_USER = $ROW['OTHERS_USER'];
$BEGIN_TIME = $ROW['BEGIN_TIME'];
$END_TIME = $ROW['END_TIME'];
$BEGIN_TIME = substr( $BEGIN_TIME, 0, 16 );
$END_TIME = substr( $END_TIME, 0, 16 );
$query = "SELECT * from USER WHERE USER_ID='".$OTHERS_USER."'";
$cursor1 = exequery( $connection, $query );
if ( $ROW = mysql_fetch_array( $cursor1 ) )
{
$OTHERS_USER_NAME = $ROW['USER_NAME'];
}
}
echo "\r\n<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"3\" class=\"small\">\r\n <tr>\r\n <td class=\"Big\"><img src=\"/images/green_arrow.gif\" align=\"absmiddle\"><span class=\"big3\"> 委托代办人/转交主办权</span><br>\r\n </td>\r\n </tr>\r\n</table>\r\n\r\n<br>\r\n\r\n<form action=\"insert.php\" method=\"post\" name=\"form1\">\r\n<table border=\"0\" cellspacing=\"1\" class=\"small\" bgcolor=\"#000000\" cellpadding=\"3\" align=\"center\" width=\"90%\">\r\n <tr class=\"TableHeader\">\r\n <td nowrap align=\"center\" class=\"Big\" colspan=\"2\"><b>";
echo $FLOW_NAME;
echo "</b></td>\r\n </tr>\r\n <tr class=\"TableData\">\r\n\t<td>\r\n\t委托时间:\r\n\t</td>\r\n\t<td>\r\n <input type=\"text\" name=\"BEGIN_TIME\" size=\"16\" maxlength=\"16\" class=\"BigInput\" value=\"";
echo $BEGIN_TIME;
echo "\">\r\n <img src=\"/images/menu/calendar.gif\" border=\"0\" align=\"absMiddle\" style=\"cursor:hand\" onclick=\"td_calendar('form1.BEGIN_TIME');\">\r\n <img src=\"/images/menu/clock.gif\" border=\"0\" align=\"absMiddle\" style=\"cursor:hand\" onclick=\"td_clock('form1.BEGIN_TIME');\">\r\n至\r\n <input type=\"text\" name=\"END_TIME\" size=\"16\" maxlength=\"16\" class=\"BigInput\" value=\"";
echo $END_TIME;
echo "\">\r\n <img src=\"/images/menu/calendar.gif\" border=\"0\" align=\"absMiddle\" style=\"cursor:hand\" onclick=\"td_calendar('form1.END_TIME');\">\r\n <img src=\"/images/menu/clock.gif\" border=\"0\" align=\"absMiddle\" style=\"cursor:hand\" onclick=\"td_clock('form1.END_TIME');\">\r\n\t\t </td>\r\n </tr>\r\n <tr class=\"TableData\">\r\n\t<td>\r\n\t委托人:\r\n \t</td>\r\n\t<td>\r\n <input type=\"text\" name=\"TO_NAME\" size=\"10\" class=\"BigInput\" readonly value=\"";
echo $OTHERS_USER_NAME;
echo "\"> \r\n <input type=\"button\" value=\"指 定\" class=\"SmallButton\" onClick=\"LoadWindow()\" title=\"指定代办人\" name=\"button\">\r\n <input type=\"hidden\" name=\"TO_ID\" value=\"";
echo $OTHERS_USER;
echo "\">\r\n </td>\r\n </tr>\r\n <tr class=\"TableControl\">\r\n <td nowrap align=\"center\" colspan=\"2\">\r\n <input type=\"hidden\" name=\"MENU_FLAG\" value=\"";
echo $MENU_FLAG;
echo "\">\r\n <input type=\"hidden\" name=\"FLOW_ID\" value=\"";
echo $FLOW_ID;
echo "\">\r\n <input type=\"hidden\" name=\"OTHERS_ID\" value=\"";
echo $OTHERS_ID;
echo "\">\r\n <input type=\"submit\" value=\"确定\" class=\"BigButton\" name=\"submit\"> \r\n <input type=\"submit\" value=\"删除\" class=\"BigButton\" name=\"submit\" onClick=\"clear_user()\"> \r\n <input type=\"button\" value=\"返回\" class=\"BigButton\" name=\"back\" onClick=\"location='blank.php'\">\r\n </td>\r\n </tr>\r\n</table>\r\n</form>\r\n\r\n</body>\r\n</html>\r\n";
?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?