?? search.php
字號:
<?php
include("includes/fun_post.php");
include("includes/fun_data.php" );
include("includes/inc_var.php");
if(isset($_POST["sname"]))
$name=h2t($_POST["sname"]);
else
$name="";
DB($g_db_host, $g_db_name, $g_db_user, $g_db_password);
$db = new DBReader;
$sql = "SELECT * FROM `".$g_db_prefix."user` WHERE u_name LIKE '%".$name."%' ORDER BY u_ID";
$db->execute($sql);
?>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="includes/main.css" rel="stylesheet" type="text/css">
<title>星雨留言板</title>
<body topmargin="0">
<table width="640" border="0" align="center" cellpadding="0" cellspacing="0" class="tableborder">
<tr>
<th height="20"><a href="http://www.xxiyy.com">回到首頁</a></th>
<th><a href="mailto:mikespook@163.com">聯系站長</a></th>
<th><a href="http://www.xxiyy.com/phpBB2/">進入論壇</a></th>
<th><a href="login.php">進入管理</a></th>
</tr>
</table>
<p>
<?php
if($db->count()==0)
{
?>
<table width="640" border="0" align="center" cellpadding="0" cellspacing="0" class="tableborder">
<tr>
<th width="594" height="20">未找到符合條件的記錄!</th>
</tr>
</table>
<?php
}else{
?>
<table width="640" border="0" align="center" cellpadding="0" cellspacing="0" class="tableborder">
<tr>
<th height="20" colspan="2">共有符合條件的記錄<?php echo $db->count();?>條</th>
</tr>
<tr>
<th width="120" height="20">用戶名</th>
<th width="518">地址</th>
</tr>
<?php
while($dbrow = $db->reader())
{
?>
<tr>
<td height="20" align="center">
<?php echo "<a href=\"".$g_url."index.php?id=".$dbrow["u_ID"]."\">".$dbrow["u_name"]."</a>"?>
</td>
<td><input name="textfield" type="text" class="textbox" value="<?php echo $g_url;?>index.php?id=<?php echo $dbrow["u_ID"]?>" size="80" onmouseover=this.focus() onfocus=this.select()></td>
</tr>
<?php
}
?>
</table>
<?php
}
?>
<form action="search.php" method="post" name="search" id="search">
<table width="640" border="0" align="center" cellpadding="0" cellspacing="0" class="tableborder">
<tr>
<th height="20" colspan="2">如果沒有找到您所需要的信息,請重新修改查詢條件。</th>
</tr>
<tr>
<td width="280" height="20" align="right">注冊時使用的用戶名:</td>
<td width="358"><input name="sname" type="text" class="textbox" id="sname" value="<?php echo $name?>">
<input type="submit" name="Submit3" value="搜索" class="button"></td>
</tr>
</table>
</form>
<p>
<table width="640" border="0" align="center" cellpadding="0" cellspacing="0" class="tableborder">
<tr>
<td height="20" align="center">Powered by <a href="http://www.xxiyy.com">mikespook
& swill</a> (C) 2002, 2003 mikespook & swill</td>
</tr>
<tr>
<td height="20" align="center">星雨留言板-PHP Version: <?php include("includes/inc_ver.php");echo $g_version;?></td>
</tr>
</table>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -