📄 index.php
字号:
<?php
include_once( "inc/auth.php" );
echo "\r\n<HTML xmlns:vml=\"urn:schemas-microsoft-com:vml\">\r\n<HEAD>\r\n<title>流程设计</title>\r\n<OBJECT id=\"vmlRender\" classid=\"CLSID:10072CEC-8CC1-11D1-986E-00A0C955B42E\" VIEWASTEXT></OBJECT>\r\n";
echo "<s";
echo "tyle>vml\\:* { FONT-SIZE: 12px; BEHAVIOR: url(#VMLRender) }\r\n</style>\r\n";
echo "<s";
echo "cript>\r\nflow_id=";
echo $FLOW_ID;
echo ";\r\n</script>\r\n";
echo "<s";
echo "cript language=\"javascript\" src=\"set_main.js\"></script>\r\n</HEAD>\r\n\r\n<body leftMargin=\"2\" topMargin=\"2\" onmousedown=\"DoRightClick();\" oncontextmenu=\"nocontextmenu();\">\r\n<form name=\"form1\" method=\"post\" action=\"set_submit.php\">\r\n\r\n<vml:Line style='DISPLAY:none;Z-INDEX:15;POSITION:absolute' id='line1' from=\"0,0\" to=\"0,0\"> <!--直线可视化-->\r\n<vml:Stroke dashstyle='shortDash' />\r\n</vml:Line>\r\n\r\n";
$query = "SELECT * from FLOW_PROCESS WHERE FLOW_ID={$FLOW_ID} ORDER BY PRCS_ID";
$cursor = exequery( $connection, $query );
$PRCS_COUNT = 0;
$LEFT_AUTO = 20;
$TOP_AUTO = 20;
while ( $ROW = mysql_fetch_array( $cursor ) )
{
++$PRCS_COUNT;
$ID = $ROW['ID'];
$PRCS_ID = $ROW['PRCS_ID'];
$PRCS_NAME = $ROW['PRCS_NAME'];
$PRCS_TO = $ROW['PRCS_TO'];
$PRCS_TO = str_replace( ",,", ",", $PRCS_TO );
if ( substr( $PRCS_TO, 0, 1 ) == "," )
{
$PRCS_TO = substr( $PRCS_TO, 1 );
}
$SET_LEFT = $ROW['SET_LEFT'];
$SET_TOP = $ROW['SET_TOP'];
$PRCS_TO_TITLE = "下一步骤:".$PRCS_TO;
$PRCS_NAME = str_replace( "<", "<", $PRCS_NAME );
$PRCS_NAME = str_replace( ">", ">", $PRCS_NAME );
$PRCS_NAME = stripslashes( $PRCS_NAME );
if ( $PRCS_ID == 1 )
{
$FLOWTYPE = "start";
$FILLCOLOR = "#00EE00";
}
else if ( find_id( $PRCS_TO, "0" ) )
{
$FLOWTYPE = "end";
$FILLCOLOR = "#F4A8BD";
}
else
{
$FLOWTYPE = "";
$FILLCOLOR = "#EEEEEE";
}
$TITLE = "<b>".$PRCS_ID."</b><br>".$PRCS_NAME;
if ( $SET_LEFT != 0 )
{
$LEFT_VML = $SET_LEFT;
}
else
{
$LEFT_VML = $LEFT_AUTO;
}
if ( $SET_TOP != 0 )
{
$TOP_VML = $SET_TOP;
}
else
{
$TOP_VML = $TOP_AUTO;
}
echo "\t\t<vml:roundrect inset='2pt,2pt,2pt,2pt' id='";
echo $PRCS_ID;
echo "' table_id='";
echo $ID;
echo "' flowType='";
echo $FLOWTYPE;
echo "' passCount='0' flowTitle='";
echo $TITLE;
echo "' flowFlag='0' readOnly='0' receiverID='' receiverName='' fillcolor='";
echo $FILLCOLOR;
echo "' onDblClick='EditFlow();'\r\n\t\tstyle='LEFT: ";
echo $LEFT_VML;
echo "; TOP:";
echo $TOP_VML;
echo "; WIDTH: 100; POSITION: absolute; HEIGHT: 50;vertical-align:middle;CURSOR:hand;TEXT-ALIGN:center;z-index:1' arcsize='4321f' coordsize='21600,21600'>\r\n\t\t<vml:shadow on='T' type='single' color='#b3b3b3' offset='3px,3px'/>\r\n\t\t<vml:textbox inset='1pt,2pt,1pt,1pt' onselectstart='return false;' title='";
echo $PRCS_TO_TITLE;
echo "'>";
echo $TITLE;
echo "</vml:textbox>\r\n\t\t</vml:roundrect>\r\n";
if ( $PRCS_TO == "" )
{
$PRCS_TO = $PRCS_ID + 1;
}
$MY_ARRAY = explode( ",", $PRCS_TO );
$ARRAY_COUNT = sizeof( $MY_ARRAY );
if ( $MY_ARRAY[$ARRAY_COUNT - 1] == "" )
{
--$ARRAY_COUNT;
}
$I = 0;
for ( ; $I < $ARRAY_COUNT; ++$I )
{
echo "\t\t<vml:line mfrID='";
echo $PRCS_ID;
echo "' title='' source='";
echo $PRCS_ID;
echo "' object='";
echo $MY_ARRAY[$I];
echo "' from='0,0' to='0,0' style='position:absolute;display:none;z-index:2' arcsize='4321f' coordsize='21600,21600'>\r\n\t\t<vml:stroke endarrow='block'></vml:stroke>\r\n\t\t<vml:shadow on='T' type='single' color='#b3b3b3' offset='1px,1px'/>\r\n\t\t</vml:line>\r\n";
}
if ( $PRCS_ID % 2 == 0 )
{
$LEFT_AUTO += 180;
$TOP_AUTO = 20;
}
else
{
$TOP_AUTO = 200;
}
}
echo "\r\n<input type=\"hidden\" name=\"SET_SQL\" value=\"\">\r\n<input type=\"hidden\" name=\"FLOW_ID\" value=\"";
echo $FLOW_ID;
echo "\">\r\n</form>\r\n\r\n</body>\r\n</HTML>\r\n";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -