📄 edit.php
字号:
<?
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">
';
echo '<S';
echo 'CRIPT 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();">
';
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"> ';
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -