edit.php
来自「极限网络智能办公系统 Office Automation V3.0官方100%源」· PHP 代码 · 共 98 行
PHP
98 行
<?
include_once 'inc/auth.php';
if ($SORT_ID != '')
{
$TITLE = '编辑流程分类';
}
else
{
$TITLE = '新建流程分类';
}
echo '
<html>
<head>
<title>';
echo $TITLE;
echo '</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<SCRIPT language=javascript>
function check_form()
{
if(document.form1.SORT_NO.value == "")
{
alert("流程分类排序号不能为空!");
return false;
}
if(document.form1.SORT_NAME.value == "")
{
alert("流程分类名称不能为空!");
return false;
}
return true;
}
</SCRIPT>
</head>
<body class="bodycolor" topmargin="5" onload="document.form1.SORT_NO.focus();">
<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"><span class="big3"> ';
echo $TITLE;
echo '</span><br>
</td>
</tr>
</table>
';
if ($SORT_ID != '')
{
$query = 'SELECT * from FLOW_SORT where SORT_ID=' . $SORT_ID;
$cursor = exequery ($connection, $query);
if ($ROW = mysql_fetch_array ($cursor))
{
$SORT_NO = $ROW['SORT_NO'];
$SORT_NAME = $ROW['SORT_NAME'];
}
}
echo '
<br>
<table border="0" width="450" cellpadding="2" cellspacing="1" align="center" bgcolor="#000000" class="small">
<form action="';
if ($SORT_ID != '')
{
echo 'update';
}
else
{
echo 'insert';
}
echo '.php" method="post" name="form1" onSubmit="return check_form();">
<tr>
<td nowrap class="TableData">流程分类排序号:</td>
<td class="TableData">
<input type="text" name="SORT_NO" size="4" maxlength="100" class="BigInput" value="';
echo $SORT_NO;
echo '">
</td>
</tr>
<tr>
<td nowrap class="TableData">流程分类名称:</td>
<td class="TableData">
<input type="text" name="SORT_NAME" size="30" maxlength="100" class="BigInput" value="';
echo $SORT_NAME;
echo '">
</td>
</tr>
<tr align="center" class="TableControl">
<td colspan="2" nowrap>
<input type=\'hidden\' value="';
echo $SORT_ID;
echo '" name="SORT_ID">
<input type="submit" value="保存" class="BigButton" name="submit">
<input type="button" value="返回" class="BigButton" name="back" onClick="history.back();">
</td>
</tr>
</form>
</table>
</body>
</html>';
?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?