📄 index.php
字号:
<?
include_once 'inc/auth.php';
echo '
<html>
<head>
<title>流程分类</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script>
function delete_sort(SORT_ID)
{
msg=\'确认要删除该流程分类么?\';
if(window.confirm(msg))
{
URL="delete.php?SORT_ID="+SORT_ID;
window.location=URL;
}
}
</script>
</head>
<body class="bodycolor" topmargin="5">
<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
<tr>
<td class="Big"><img src="/images/notify_new.gif" align="absmiddle"><span class="big3"> 新建流程分类</span><br>
</td>
</tr>
</table>
<div align="center">
<input type="button" value="新建流程分类" class="BigButton" onClick="location=\'edit.php\';" title="新建流程分类">
</div>
<br>
<table width="95%" border="0" cellspacing="0" cellpadding="0" height="3">
<tr>
<td background="/images/dian1.gif" width="100%"></td>
</tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
<tr>
<td class="Big"><img src="/images/notify_open.gif" align="absmiddle"><span class="big3"> 管理流程分类</span><br>
</td>
</tr>
</table>
<br>
';
$connection = openconnection ();
$query = 'SELECT * from FLOW_SORT order by SORT_NO';
$cursor = exequery ($connection, $query);
$FLOW_COUNT = 0;
while ($ROW = mysql_fetch_array ($cursor))
{
++$FLOW_COUNT;
$SORT_ID = $ROW['SORT_ID'];
$SORT_NO = $ROW['SORT_NO'];
$SORT_NAME = $ROW['SORT_NAME'];
$SORT_NAME = str_replace ('<', '<', $SORT_NAME);
$SORT_NAME = str_replace ('>', '>', $SORT_NAME);
$SORT_NAME = stripslashes ($SORT_NAME);
if ($FLOW_COUNT == 1)
{
echo ' <table border="0" cellspacing="1" align="center" width="450" class="small" bgcolor="#000000" cellpadding="3">
<tr class="TableHeader">
<td nowrap align="center" width="50">序号</td>
<td nowrap align="center">名称</td>
<td nowrap align="center" width="100">操作</td>
</tr>
';
}
if ($FLOW_COUNT % 2 == 1)
{
$TableLine = 'TableLine1';
}
else
{
$TableLine = 'TableLine2';
}
echo ' <tr class="';
echo $TableLine;
echo '">
<td align="center">';
echo $SORT_NO;
echo '</td>
<td align="center">';
echo $SORT_NAME;
echo '</td>
<td align="center">
<a href="edit.php?SORT_ID=';
echo $SORT_ID;
echo '">编辑</a>
<a href="javascript:delete_sort(';
echo $SORT_ID;
echo ');">删除</a>
</td>
</tr>
';
}
if (0 < $FLOW_COUNT)
{
echo ' </table>
';
}
else
{
message ('', '尚未定义分类');
}
echo '
</body>
</html>';
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -