set_condition.php
来自「通达OA2007SE源代码 非常好的」· PHP 代码 · 共 105 行
PHP
105 行
<?
include_once 'inc/auth.php';
include_once 'inc/utility_html.php';
echo '
<html>
<head>
<title>条件设置</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
';
echo '<s';
echo 'cript>
function add_condition(flag)
{
var str;
if(document.form1.ITEM_VALUE.value.indexOf("\'")>=0)
{
alert("值中不能含有\'号");
return;
}
str="\'"+document.form1.ITEM_NAME.value+"\'";
str+=document.form1.CONDITION.value;
str+="\'"+document.form1.ITEM_VALUE.value+"\'";
if(flag=="1")
{
if(document.form1.PRCS_IN.value.indexOf(str)<0)
document.form1.';
echo 'PRCS_IN.value+=str+"\\n";
else
alert("条件重复!");
}
else
{
if(document.form1.PRCS_OUT.value.indexOf(str)<0)
document.form1.PRCS_OUT.value+=str+"\\n";
else
alert("条件重复!");
}
}
function my_tip()
{
if(tip.style.display=="none")
tip.style.display="";
else
tip.style.display="none";
}
</script>
</head>
<body class';
echo '="bodycolor" topmargin="5">
';
$query = ((''.'select * from FLOW_TYPE where FLOW_ID=').$FLOW_ID);
$cursor = exequery ($connection, $query);
if ($ROW = mysql_fetch_array ($cursor))
{
$FORM_ID = $ROW['FORM_ID'];
$FLOW_DOC = $ROW['FLOW_DOC'];
}
$query = ((((''.'select * from FLOW_PROCESS where FLOW_ID=').$FLOW_ID).' and ID=').$ID);
$cursor = exequery ($connection, $query);
if ($ROW = mysql_fetch_array ($cursor))
{
$PRCS_IN = $ROW['PRCS_IN'];
$PRCS_OUT = $ROW['PRCS_OUT'];
$PRCS_IN_SET = $ROW['PRCS_IN_SET'];
$PRCS_OUT_SET = $ROW['PRCS_OUT_SET'];
}
$query = ((''.'select * from FLOW_FORM_TYPE where FORM_ID=').$FORM_ID);
$cursor = exequery ($connection, $query);
if ($ROW = mysql_fetch_array ($cursor))
{
$PRINT_MODEL = $ROW['PRINT_MODEL'];
}
$ELEMENT_ARRAY = html_element ($PRINT_MODEL);
$ARRAY_COUNT = sizeof ($ELEMENT_ARRAY);
for ($I = 0; ($I < $ARRAY_COUNT); ++$I)
{
$ETITLE = get_attr ($ELEMENT_ARRAY[$I], 'TITLE');
$ECLASS = get_attr ($ELEMENT_ARRAY[$I], 'CLASS');
if (($ECLASS != 'DATE'))
{
($ITEM_NAME_ALL .= ($ETITLE.','));
continue;
}
}
($ITEM_NAME_ALL .= '[主办人会签意见],[从办人会签意见],[公共附件名称],');
$MY_ARRAY = explode (',', $ITEM_NAME_ALL);
$ARRAY_COUNT = sizeof ($MY_ARRAY);
if (($MY_ARRAY[($ARRAY_COUNT - 1)] == ''))
{
--$ARRAY_COUNT;
}
echo '
<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
<tr>
<td class="Big"><img src="/images/edit.gif" WIDTH="22" HEIGHT="20" align="absmiddle">';
echo '<s';
echo 'pan class="big3"> 条件设置</span>
<input type="button" value="使用说明" class="SmallButton" name="back" onClick="my_tip();">
</td>
</tr>
</table>
<table border="0" width="600" cellpadding="2" cellspacing="1" align="center" bgcolor="#000000" class="small">
<form action="submit5.php" method="post" name="form1">
<tr id="tip" style="display:none">
<td class="TableData"><b>条件
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?