📄 free_flow_img.php
字号:
<?php
function outstr( $n )
{
switch ( $n )
{
case 1 :
$str = "(未接受)";
break;
case 2 :
$str = "(办理中)";
break;
case 3 :
$str = "(已转交)";
break;
case 4 :
$str = "(办理中)";
}
return $str;
}
ob_start( );
include_once( "inc/auth.php" );
include_once( "inc/img_flow.inc.php" );
include_once( "inc/img_patten.inc.php" );
ob_end_clean( );
$sql = "\r\n SELECT PRCS_ID FROM flow_run_prcs \r\n\t\t WHERE RUN_ID=".$_REQUEST['RUN_ID']." \r\n\t\t GROUP BY PRCS_ID ASC \r\n ";
$res = exequery( $connection, $sql );
while ( $row = mysql_fetch_array( $res ) )
{
$exportv[] = $row['PRCS_ID'];
$export[$row['PRCS_ID']] = "";
}
$NowImg = new imgflow( );
$ImgPatten = new formatex( );
$export = $ImgPatten->makeupex( $export );
$export = $ImgPatten->replaceflag( $export );
$screenxy = $ImgPatten->countsize( $export );
$exportv = $ImgPatten->replaceflagrun( $export, $exportv );
$current = $ImgPatten->getcurrentsetp( $exportv );
$width = $screenxy['x'] - 49;
$height = $screenxy['y'];
$NowImg->definepic( "jpeg", $width, $height );
$w = $NowImg->layer_w;
$h = $NowImg->layer_h;
$NowImg->defineexport( $export );
$NowImg->destroyimg( );
$coordinate = $NowImg->coordinate;
$flowinfo = $coordinate;
$sqlflowinfo = "\r\n SELECT frp.PRCS_ID,frp.USER_ID,frp.PRCS_ID,u.USER_NAME FROM flow_run_prcs frp,user u\r\n\t\t WHERE frp.RUN_ID=".$_REQUEST['RUN_ID']." \r\n\t\t AND u.USER_ID=frp.USER_ID \r\n\t\t GROUP BY frp.PRCS_ID ASC \r\n ";
$resflowinfo = exequery( $connection, $sqlflowinfo );
$PRCS_COUNT = 0;
while ( $rowflowinfo = mysql_fetch_array( $resflowinfo ) )
{
++$PRCS_COUNT;
$flowinfo[$PRCS_COUNT]['username'] = $rowflowinfo['USER_NAME'];
$flowinfo[$PRCS_COUNT]['prcsid'] = $rowflowinfo['PRCS_ID'];
}
echo "\r\n\r\n<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n <tr>\r\n <td><div id=\"parentLayer\" style=\"position:absolute; width:1px; height:1px; z-index:0\">\r\n";
reset( $flowinfo );
unset( $k );
while ( list( $key, $flowdetail ) = each( $flowinfo ) )
{
++$k;
$x = $flowdetail['TL']['0'];
$y = $flowdetail['TL']['1'];
$username = $flowdetail['username'];
$prcsid = $flowdetail['prcsid'];
echo "<div id=\"";
echo "layer".$k;
echo "\" style=\"position:absolute; left:";
echo $x;
echo "px; top:";
echo $y;
echo "px; width:";
echo $w;
echo "px; height:";
echo $h;
echo "px; z-index:0; background-color: #E2E4E3; layer-background-color: #E2E4E3; border: 1px none #000000;\">\r\n \r\n <table width=\"100%\" height=\"";
echo $h;
echo "\" border=\"1\" cellpadding=\"0\" cellspacing=\"1\" bordercolor=\"#666666\" >\r\n <tr align=\"center\">\r\n\t<td height=\"20\" bgcolor=\"#0099CC\">";
echo "<s";
echo "pan style=\"color:#FFFFFF;font-weight:bolder \">\r\n\t节点:";
echo $prcsid;
echo "</span>\r\n\t</td>\r\n\t</tr>\r\n <tr >\r\n <td align=\"center\" valign=\"middle\">\r\n\t\t<table width=\"100%\" height=\"";
echo $h - 28;
echo "\" ";
if ( $k == $current )
{
echo "border='1'";
}
echo " cellpadding=\"0\" cellspacing=\"0\" bordercolor=\"#FF0000\">\r\n\t\t <tr>\r\n\t\t\t<td align=\"center\" valign=\"middle\">";
echo $username;
echo "</td>\r\n\t\t </tr>\r\n\t\t</table>\t \r\n\t </td>\r\n </tr>\r\n </table>\r\n</div>\r\n";
}
echo "\t\r\n\t\r\n\t</div> \r\n\t\r\n\t <img src='/general/workflow/freerunimgflow.php?FLOW_ID=";
echo $_REQUEST['FLOW_ID'];
echo "&RUN_ID=";
echo $_REQUEST['RUN_ID'];
echo "'></td>\r\n </tr>\r\n</table>\r\n\r\n\r\n\t\r\n\t</td>\r\n </tr>\r\n</table>\r\n";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -