Ejemplo n.º 1
0
	          <a href="./register/register_display.php" id="button_register">创建新账户?</a>
	          </td></tr>
	          </table>
	        </div>
	        <div style="clear:both;height:0;overflow:hidden;width:100%;margin:0;padding:0;"> </div>
	        <hr/>
	        <div style="width:100%;height:100%;text-align:center;font-size:20px"><a href="javascript:closeLogin();" id="button_register">关闭登录框</a></div>
</div>

<!--查询结果-->
		<div class="searchresult">
			<table>
			<h2> 课程查询结果 </h2>
			<?php 
require "./search/useRMM.php";
$newstr = usingRMM($_POST['keyword']);
include_once "./search/mysql_search.php";
//如果搜索到老师
if ($teachermatch == false) {
    if (count($myrow_class[0]) == 0 || $myrow_class == false) {
        //显示暂无查询结果
        ?>
				<tr>
					<td id="text">
						<p id="no_result">暂无查询结果</p>
					</td>
				</tr>
			</table>
			<?php 
    } else {
        //显示课程搜索结果
Ejemplo n.º 2
0
	</div>
</div>


<!--查询结果-->
		<div class="searchresult">
			<table>
			<h2> 课程查询结果 </h2>
			<?php 
require "./search/useRMM.php";
if (isset($_POST['keyword'])) {
    $keyword = $_POST['keyword'];
} else {
    $keyword = $_GET['key'];
}
$newstr = usingRMM($keyword);
$keyword = "";
for ($i = 0; $i < count($newstr); $i++) {
    $keyword .= $newstr[$i] . ",";
}
include_once "./search/mysql_search.php";
//如果搜索到老师
if ($teachermatch == false) {
    if (count($myrow_class[0]) == 0 || $myrow_class == false || $newstr == false) {
        //显示暂无查询结果
        ?>
				<tr>
					<td id="text">
						<p id="no_result">暂无查询结果</p>
					</td>
				</tr>