📄 flow_list.php
字号:
<?
include_once("inc/auth.php");
include_once("../prcs_role.php");
?>
<html>
<head>
<title>新建工作</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body class="bodycolor" topmargin="5">
<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
<tr>
<td class="Big"><img src="/images/green_arrow.gif" align="absmiddle"><span class="big3"> 请选择工作流程</span><br>
</td>
</tr>
</table>
<br>
<?
$COLOR1="#D9E8FF";
$COLOR2="#FFFFFF";
$COLOR3="#B3D1FF";
$FLOW_COUNT=0;
$query = "SELECT * from FLOW_SORT order by SORT_NO";
$cursor0 = exequery($connection,$query);
while($ROW=mysql_fetch_array($cursor0))
{
$SORT_ID = $ROW["SORT_ID"];
$SORT_NO = $ROW["SORT_NO"];
$SORT_NAME = $ROW["SORT_NAME"];
$SORT_NAME=str_replace("<","<",$SORT_NAME);
$SORT_NAME=str_replace(">",">",$SORT_NAME);
$SORT_NAME=stripslashes($SORT_NAME);
//-------列出使用的流程-------
$query = "SELECT * from FLOW_TYPE where FLOW_SORT=$SORT_ID order by FLOW_NO";
$cursor = exequery($connection,$query);
$FLOW_COUNT1=0;
while($ROW=mysql_fetch_array($cursor))
{
$FLOW_ID = $ROW["FLOW_ID"];
$FLOW_NAME = $ROW["FLOW_NAME"];
$FLOW_DOC = $ROW["FLOW_DOC"];
$FLOW_TYPE = $ROW["FLOW_TYPE"];
if($FLOW_TYPE=="1")
{
if(!prcs_role($FLOW_ID,1))
continue;
}
$FLOW_COUNT++;
$FLOW_COUNT1++;
$FLOW_NAME=str_replace("<","<",$FLOW_NAME);
$FLOW_NAME=str_replace(">",">",$FLOW_NAME);
$FLOW_NAME=stripslashes($FLOW_NAME);
$TITLE="流程类型:";
if($FLOW_TYPE=="1")
$TITLE.="固定流程\n";
else
$TITLE.="自由流程\n";
$TITLE.="允许附件:";
if($FLOW_DOC=="0")
$TITLE.="否";
else
$TITLE.="是";
if($FLOW_COUNT1==1)
{
?>
<table border="0" cellspacing="1" width="100%" class="small" bgcolor="#000000" cellpadding="3" align="center">
<tr class="TableHeader" onclick="clickMenu('<?=$SORT_ID?>')" style="cursor:hand">
<td nowrap colspan="5" align="center" title=""><b><?=$SORT_NAME?></b></td>
</tr>
</table>
<table border="0" cellspacing="1" width="100%" class="small" bgcolor="#000000" cellpadding="3" id="<?=$SORT_ID?>" style="display:<?if($FLOW_COUNT!=1)echo "none";?>">
<?
}
?>
<tr class="TableData" align="center">
<td nowrap width="100%" title="<?=$TITLE?>" id="group_<?=$FLOW_COUNT?>" onclick="view_group(this,<?=$FLOW_COUNT?>,<?=$FLOW_ID?>)" onmouseover="setGroupPointer(this, '<?=$COLOR3?>',<?=$FLOW_COUNT?>)" onmouseout="setGroupPointer(this, '<?=$COLOR2?>',<?=$FLOW_COUNT?>)" style="cursor:hand" BgColor="<?=$COLOR2?>">
<?=$FLOW_NAME?></td>
</tr>
<?
}
if($FLOW_COUNT1>0)
echo "</table>";
}//while sort
if($FLOW_COUNT==0)
Message("","尚未定义流程或无任何流程的新建权限");
?>
<script language="JavaScript">
var td_id=1;
function setGroupPointer(theRow, thePointerColor,td_id_over)
{
if(td_id!=td_id_over)
theRow.bgColor = thePointerColor;
}
function clickMenu(SORT_ID)
{
targetelement=document.getElementById(SORT_ID);
if (targetelement.style.display=="none")
targetelement.style.display='';
else
targetelement.style.display="none";
}
function view_group(theRow,group_id,FLOW_ID)
{
parent.flow_edit.location="edit.php?FLOW_ID="+FLOW_ID;
td_id=group_id;
<?
for($I=1;$I<=$FLOW_COUNT;$I++)
echo " group_".$I.".bgColor='$COLOR2';\n";
?>
theRow.bgColor='<?=$COLOR1?>';
}
</script>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -