query.php
来自「通达OA2007SE源代码 非常好的」· PHP 代码 · 共 82 行
PHP
82 行
<?
include_once 'inc/auth.php';
echo '
<html>
<head>
<title>搜索文章</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
';
echo '<s';
echo 'cript>
function CheckForm()
{
if(document.form1.SUBJECT.value=="" && document.form1.CONTENT.value=="" && document.form1.ATTACHMENT_NAME.value=="")
{ alert("请指定至少一个搜索条件!");
return (false);
}
return true;
}
</script>
</head>
<body class="bodycolor" topmargin="5" onload="document.form1.SUBJECT.focus();">
';
$query = ((''.'SELECT * from BBS_BOARD where BOARD_ID=').$BOARD_ID);
$cursor = exequery ($connection, $query);
if ($ROW = mysql_fetch_array ($cursor))
{
$BOARD_NAME = $ROW['BOARD_NAME'];
$BOARD_NAME = str_replace ('<', '<', $BOARD_NAME);
$BOARD_NAME = str_replace ('>', '>', $BOARD_NAME);
$BOARD_NAME = stripslashes ($BOARD_NAME);
}
echo '
<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
<tr>
<td class="Big"><img src="/images/menu/bbs.gif" WIDTH="22" HEIGHT="20" align="absmiddle"><a href="index.php">';
echo '<s';
echo 'pan class="big3"> 讨论区</span></a>';
echo '<s';
echo 'pan class="big3"> - </span><a href="board.php?BOARD_ID=';
echo $BOARD_ID;
echo '">';
echo '<s';
echo 'pan class="big3">';
echo $BOARD_NAME;
echo '</span></a>';
echo '<s';
echo 'pan class="big3"> - 搜索文章</span><br>
</td>
</tr>
</table>
<br>
<table border="0" cellspacing="1" width="450" class="small" bgcolor="#000000" cellpadding="3" align="center">
<form action="search.php" name="form1" onsubmit="return CheckForm();">
<tr class="TableData">
<td nowrap align="center">标题包含文字:</td>
<td nowrap><input type="text" name="SUBJECT" class="BigInput" s';
echo 'ize="20"></td>
</tr>
<tr class="TableData">
<td nowrap align="center">内容包含文字:</td>
<td nowrap><input type="text" name="CONTENT" class="BigInput" size="20"></td>
</tr>
<tr class="TableData">
<td nowrap align="center">附件包含文字:</td>
<td nowrap><input type="text" name="ATTACHMENT_NAME" class="BigInput" size="20"></td>
</tr>
<tr >
<td nowrap class="TableC';
echo 'ontrol" colspan="2" align="center">
<input type="hidden" name="BOARD_ID" value="';
echo $BOARD_ID;
echo '">
<input type="submit" value="搜索" class="BigButton" title="进行文章搜索" name="button">
<input type="button" value="返回" class="BigButton" onclick="history.back();">
</td>
</tr>
</table>
</form>
</body>
</html>';
?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?