insert.php
来自「极限网络智能办公系统 - Office Automation 2008 官方10」· PHP 代码 · 共 59 行
PHP
59 行
<?php
include_once( "inc/auth.php" );
include_once( "inc/utility_html.php" );
include_once( "../prcs_role.php" );
if ( !prcs_role( $FLOW_ID, 1 ) )
{
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\r\n";
if ( $TO_ID == $LOGIN_USER_ID )
{
message( "警告", "请将工作委托他人!" );
echo "<div align=center>\r\n <input type=\"button\" value=\"返回\" class=\"BigButton\" onClick=\"location='edit.php?FLOW_ID=";
echo $FLOW_ID;
echo "'\">\r\n</div>\r\n";
exit( );
}
if ( $TO_ID != "" )
{
$query = "select USER_NAME from FLOW_RUN_OTHERS,USER where FLOW_RUN_OTHERS.USER_ID=USER.USER_ID and FLOW_RUN_OTHERS.USER_ID='".$TO_ID."' and OTHERS_USER='{$LOGIN_USER_ID}' and FLOW_ID='{$FLOW_ID}'";
$cursor = exequery( $connection, $query );
if ( $ROW = mysql_fetch_array( $cursor ) )
{
$USER_NAME = $ROW['USER_NAME'];
message( "警告", "您目前是".$USER_NAME."的被委托人,请重新委托他人!" );
echo "<div align=center>\r\n <input type=\"button\" value=\"返回\" class=\"BigButton\" onClick=\"location='edit.php?FLOW_ID=";
echo $FLOW_ID;
echo "'\">\r\n</div>\r\n";
exit( );
}
if ( 0 < $OTHERS_ID )
{
$query = "update FLOW_RUN_OTHERS set OTHERS_USER='".$TO_ID."',BEGIN_TIME='{$BEGIN_TIME}',END_TIME='{$END_TIME}' where OTHERS_ID={$OTHERS_ID}";
}
else
{
$query = "insert into FLOW_RUN_OTHERS(FLOW_ID,USER_ID,OTHERS_USER,BEGIN_TIME,END_TIME) values (".$FLOW_ID.",'{$LOGIN_USER_ID}','{$TO_ID}','{$BEGIN_TIME}','{$END_TIME}')";
}
}
else
{
$query = "delete from FLOW_RUN_OTHERS where OTHERS_ID='".$OTHERS_ID."'";
}
exequery( $connection, $query );
if ( $TO_ID != "" )
{
message( "提示", "设置成功!" );
}
else
{
message( "提示", "删除成功!" );
}
echo "<div align=center>\r\n <input type=\"button\" value=\"返回\" class=\"BigButton\" onClick=\"location='edit.php?FLOW_ID=";
echo $FLOW_ID;
echo "'\">\r\n</div>\r\n";
?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?