?? turn_next_free.php
字號:
<?
include_once 'inc/auth.php';
include_once '../../prcs_role.php';
if (!run_role ($RUN_ID, $PRCS_ID))
{
exit ();
}
echo '
<html>
<head>
<title>工作辦結</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
';
echo '<s';
echo 'cript Language="JavaScript">
function CheckForm()
{
if(document.form1.SMS_CONTENT.value=="" && (document.form1.SMS_REMIND.checked || document.form1.SMS2_REMIND.checked))
{
alert("短信內容不能為空!");
return(false);
}
if (document.form1.TO_ID.value=="")
{ alert("請指定下一步驟經辦人!");
return (false);
}
document.form1.mybutton.disabled=true;
';
echo ' return (true);
}
function LoadWindow()
{
URL="/module/user_select_single";
loc_x=document.body.scrollLeft+event.clientX-event.offsetX-100;
loc_y=document.body.scrollTop+event.clientY-event.offsetY+200;
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");
}
</script>';
echo '
</head>
<body class="bodycolor" topmargin="5">
';
$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'];
}
$query = '' . 'SELECT * from FLOW_RUN WHERE RUN_ID=' . $RUN_ID;
$cursor = exequery ($connection, $query);
if ($ROW = mysql_fetch_array ($cursor))
{
$RUN_NAME = $ROW['RUN_NAME'];
}
echo '
<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
<tr>
<td class="Big"><img src="/images/green_arrow.gif" align="absmiddle">';
echo '<s';
echo 'pan class="big3"> 請指定下一步驟的經辦人</span><br>
</td>
</tr>
</table>
<br>
<form action="turn_submit_free.php" method="post" name="form1" onsubmit="return CheckForm();">
<table border="0" cellspacing="1" class="small" bgcolor="#000000" cellpadding="3" align="center" width="90%">
<tr class="TableHeader">
<td nowrap align="center" class="Big" colspan="2"><b>';
echo $FLOW_NAME;
echo '</b></td>
</tr>
';
$query = '' . 'SELECT * from FLOW_RUN_PRCS where RUN_ID=' . $RUN_ID . ' order by PRCS_ID';
$cursor = exequery ($connection, $query);
while ($ROW = mysql_fetch_array ($cursor))
{
$PRCS_ID_I = $ROW['PRCS_ID'];
$PRCS_USER = $ROW['USER_ID'];
$query1 = '' . 'SELECT * from USER where USER_ID=\'' . $PRCS_USER . '\'';
$cursor1 = exequery ($connection, $query1);
if ($ROW = mysql_fetch_array ($cursor1))
{
$PRCS_USER1 = $ROW['USER_NAME'];
}
echo ' <tr class="TableData">
<td nowrap width="30%">第<b>';
echo '<s';
echo 'pan class=big4>';
echo $PRCS_ID_I;
echo '</span></b>步:';
echo $PRCS_NAME;
if ($PRCS_ID_I == $PRCS_ID)
{
echo '(當前步驟)';
}
echo '</td>
<td nowrap>';
echo $PRCS_USER1;
echo '</td>
</tr>
';
}
echo ' <tr class="TableData">
<td nowrap width="30%">第<b>';
echo '<s';
echo 'pan class=big4>';
echo $PRCS_ID_I + 1;
echo '</span></b>步:';
echo $PRCS_NAME;
echo '(下一步驟)</td>
<td nowrap>請指定下一步驟的經辦人:<br>
<input type="text" name="TO_NAME" size="10" class="BigStatic" readonly>
<input type="button" value="指 定" class="SmallButton" onClick="LoadWindow()" title="指定經辦人" name="button">
<input type="hidden" name="TO_ID" value="">
</td>
</tr>
<tr class="TableHeader">
<td colspan="2"><b>短';
echo '信提醒</b></td>
</tr>
<tr class="TableData">
<td colspan="2">
<input type="checkbox" name="SMS_REMIND" id="SMS_REMIND" ';
if (($SMS_REMIND == '1' OR $SMS_REMIND == ''))
{
echo 'checked';
}
echo '><label for="SMS_REMIND">使用內部短信提醒經辦人</label>
';
$query = 'select * from SMS2_PRIV';
$cursor = exequery ($connection, $query);
if ($ROW = mysql_fetch_array ($cursor))
{
$TYPE_PRIV = $ROW['TYPE_PRIV'];
}
if (find_id ($TYPE_PRIV, 7))
{
echo ' <input type="checkbox" name="SMS2_REMIND" id="SMS2_REMIND"><label for="SMS2_REMIND">使用手機短信提醒經辦人</label>
';
}
$SMS_CONTENT = '工作流提醒:' . $RUN_NAME;
echo '<br>
短信內容:<input type="text" name="SMS_CONTENT" value="';
echo $SMS_CONTENT;
echo '" size="62" maxlength="100" class="SmallInput">
</td>
</tr>
<tr class="TableControl">
<td nowrap align="center" colspan="2">
<input type="hidden" name="RUN_ID" value="';
echo $RUN_ID;
echo '">
<input type="hidden" name="OP" value="';
echo $OP;
echo '">
<input type="hidden" name="PRCS_ID" value="';
echo $PRCS_ID;
echo '">
<input type="hidden" name="PRCS_USER" value="';
echo $PRCS_USER;
echo '">
<input type="hidden" name="MENU_FLAG" value="';
echo $MENU_FLAG;
echo '">
<input type="hidden" name="FLOW_ID" value="';
echo $FLOW_ID;
echo '">
<input type="submit" value="轉交下一步驟" class="BigButton" name="mybutton">
<input type="button" value="返回" class="BigButton" name="back" onClick="history.back();">
</td>
</tr>
</table>
</form>
</body>
</html>
';
?>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -