?? job_lxfs.php
字號(hào):
<?
session_start();
include "middle.php";
include "../datasource.inc.php";
require_once "../MessageBox.php";
$Message = new MessageBox;
?>
<link href="../css/a1.css" rel="stylesheet" type="text/css">
<body leftmargin="0" topmargin="0">
<table width="789" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="2"><img src="../images/home_12.jpg" width="789" height="12"></td>
</tr>
<tr>
<td width="776" valign="top">
<?php
if ( !empty($_SESSION["userid"]) ) {
?>
<table width="700" border="0" cellspacing="0" cellpadding="0">
<tr>
<TD vAlign=top><FONT color=#565656> <IMG height=14
src="../images/closedfold.gif" width=14> 您當(dāng)前的位置<BR> <IMG
height=15 src="../images/bar.gif" width=15> <IMG height=14
src="../images/openfold.gif" width=14> 同事聯(lián)系方式</FONT></TD>
</tr>
</table>
<table border=0 cellpadding=0 cellspacing=0 width=766 align="right">
<tr><td width=766 height=1 bgcolor=#3494d4></td>
</tr>
</table>
<?php
echo "<center>";
echo "<form action=job_lxfs.php method=post>";
echo "<table border=0 width=776 cellpadding=0 cellspacing=0>";
echo "<tr>";
echo "<td width=10 bgcolor=#ffffff> </td>";
echo "<td bgColor=#ffffff align=left>";
echo "按文用戶姓名查詢:<input type=text size=20 name=search maxlength=20>";
echo " <input type=submit value=搜索>";
echo "</td>";
echo "</tr>";
echo "</table>";
echo "</form>";
if ($_REQUEST['search']){
$sql = "select * from job_user where username like '%$_REQUEST[search]%' order by id desc;";
}else{
$sql = "select * from job_user order by id desc;";
}
$result = mysql_query($sql);
$num = mysql_num_rows($result);
if ( $num>0 ){
$last = intval(($num-1)/40)+1;
if ( $page < 1 ) $page=1;
if ( $page > $last ) $page=$last;
mysql_data_seek($result,($page-1)*40);
echo "<table border=0 cellpadding=0 cellspacing=0 width=776>";
echo "<tr><td width=10 bgcolor=#ffffff> </td>";
echo "<td><table border=0 cellpadding=0 cellspacing=1 bgcolor=#3494d4 width=766>";
echo "<tr height=24>";
echo "<td width=200 bgColor=#3494d4><div align=center><font color=#ffffff><b>姓名</b></font></div></td>";
echo "<td width=283 bgColor=#3494d4><div align=center><font color=#ffffff><b>電話</b></font></div></td>";
echo "<td width=283 bgColor=#3494d4><div align=center><font color=#ffffff><b>手機(jī)</b></font></div></td>";
echo "</tr>";
for ( $i=0;$i<40;$i++ ) {
$row = mysql_fetch_array($result);
$id = $row['id'];
if ( $id ) {
echo "<tr bgColor=#ffffff height=22>";
echo "<td width=200 bgColor=#ffffff><div align=center><a href=# onClick=\"window.open('text3.php?id=$row[id]',$row[id],'top=50,left=50,height=450,width=450,scrollbars=yes')\">$row[username]</a></div></td>";
echo "<td width=283 bgColor=#ffffff><div align=center>$row[phone1]</div></td>";
echo "<td width=283 bgColor=#ffffff><div align=center>$row[phone2]</div></td>";
echo "</tr>";
}
}
echo "</table></td></table><br>";
echo "<table width=500 border=0 cellspacing=0 cellpadding=0 height=24>";
echo "<tbody>";
echo "<tr><td><center>";
echo "總共找到<font color=red>$num</font>條記錄,第<font color=red>$page</font>頁(yè),共<font color=red>$last</font>頁(yè)。";
echo "</center></td></tr><tr>";
if ( $page <> 1 ) {
echo "<td align=center> <a href=job_lxfs.php?page=1>第一頁(yè)</a></td>";
echo "<td align=center><a href=job_lxfs.php?page=".($page-1).">上一頁(yè)</a></td>";
}
if ( $page <> $last ) {
echo "<td align=center><a href=job_lxfs.php?page=".($page+1).">下一頁(yè)</a></td>";
echo "<td align=center><a href=job_lxfs.php?page=$last>最后一頁(yè)</a></td>";
}
echo "</tbody>";
echo "</tr>";
echo "</table><br>";
echo "</center>";
} else {
echo "<center>對(duì)不起,找不到符合條件的記錄!</center>";
}
} else {
$Message->setMessage("對(duì)不起,您沒有權(quán)限進(jìn)入后臺(tái)管理!","index.php");
$Message->showMessage();
}
?>
</td>
<td width="13" align="right" background="../images/home_16.jpg" height=457> </td>
</tr>
<tr>
<td height="8" colspan="2" valign="top"><img src="../images/home_24.jpg" width="789" height="8"></td>
</tr>
</table>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -