📄 runimgflow.php
字号:
<?php
include_once( "inc/conn.php" );
include_once( "inc/img_flow.inc.php" );
include_once( "inc/img_patten.inc.php" );
$connection = openconnection( );
$sql = " \r\n SELECT ID,FLOW_ID,PRCS_ID,PRCS_NAME,PRCS_USER,PRCS_ITEM,PRCS_DEPT,PRCS_PRIV,PRCS_TO \r\n\t FROM flow_process \r\n\t\t WHERE FLOW_ID=".$_REQUEST['FLOW_ID']." \r\n\t\t\t ORDER BY PRCS_ID ASC\r\n\t\t\t\t ";
$res = exequery( $connection, $sql );
while ( $row = mysql_fetch_array( $res ) )
{
$export[$row['PRCS_ID']] = $row['PRCS_TO'];
}
$sql = "\r\n SELECT FLOW_PRCS 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['FLOW_PRCS'];
}
$ImgPatten = new formatex( );
$export = $ImgPatten->makeupex( $export );
$exportv = $ImgPatten->replaceflagrun( $export, $exportv );
$export = $ImgPatten->replaceflag( $export );
$screenxy = $ImgPatten->countsize( $export );
$run = $ImgPatten->arraytorun( $export );
$runv = $ImgPatten->recursionflow( $exportv );
$width = $screenxy['x'] - 49;
$height = $screenxy['y'];
$flowimg = new imgflow( );
$flowimg->definepic( "png", $width, $height );
$flowimg->definearrow( 2, 4, 1 );
$flowimg->defineexport( $export );
$flowimg->imgeditflow( $run );
$flowimg->imgrunflow( $runv );
$flowimg->outimg( );
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -