?? center.php
字號(hào):
<?php
session_start();
include "middle.php";
require_once "../MessageBox.php";
$Message = new MessageBox;
if ( $_SESSION["login"] == "1" ) {
include "../datasource.inc.php";
$page = $_REQUEST['page'];
?>
<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">
<table width="776" border="0" cellspacing="0" cellpadding="0" >
<tr>
<td width="10" bgcolor="#FFFFFF"> </td>
<TD width="766" 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> 內(nèi)部通知</FONT></TD>
</tr>
</table>
<table align="right" cellpadding="0" cellspacing="0" width="766">
<tr>
<td bgcolor="#3494D4" height="1"></td>
</tr>
</table>
<br>
<?php
$sql = "select * from job_inform order by id desc;";
$result = mysql_query($sql);
$num = mysql_num_rows($result);
if ( $num>0 ){
$last = intval(($num-1)/10)+1;
if ( $page < 1 ) $page=1;
if ( $page > $last ) $page=$last;
mysql_data_seek($result,($page-1)*10);
//echo "<table border=0 cellpadding=0 cellspacing=0 width=776 >";
//echo "<tr><td width=10 bgcolor=#ffffff> </td>";
//echo "<td align=left height=26><font size=3 color=#000000>以往通知記錄</font>";
//echo "</td></tr></table>";
echo "<table border=0 cellpadding=0 cellspacing=0 align=center bgcolor=#3494D4 width=776>";
echo "<tr>";
echo "<td width=10 bgcolor=#ffffff> </td>";
echo "<td><table border=0 cellpadding=0 cellspacing=1 align=center bgcolor=#3494D4 width=766>";
echo "<tr>";
echo "<td width=150 height=24 bgColor=#3997E1><div align=center><font color=#ffffff><b>時(shí)間</b></font></div></td>";
echo "<td width=350 height=24 bgColor=#3997E1><div align=center><font color=#ffffff><b>內(nèi)容</b></font></div></td>";
echo "<td width=266 height=24 bgColor=#3997E1><div align=center><font color=#ffffff><b>查看詳細(xì)</b></font></div></td>";
echo "</tr>";
for ( $i=0;$i<10;$i++ ) {
$row = mysql_fetch_array($result);
$id = $row['id'];
$job_body = substr($row['job_body'],0,30);
if ( $id ) {
echo "<tr bgColor=#ffffff height=22>";
echo "<td width=150 bgColor=#ffffff><div align=center>$row[job_date]</div></td>";
echo "<td width=350 bgColor=#ffffff><div align=center>$job_body</div></td>";
echo "<td width=266 bgColor=#ffffff><div align=center><a href=# onClick=\"window.open('center_show.php?id=$row[id]',1,'top=50,left=50,height=450,width=450,scrollbars=yes')\">查看詳細(xì)</a></div></td>";
echo "</tr>";
}
}
echo "</table></table><br>";
echo "<table width=500 align=center 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=center.php?page=1>第一頁(yè)</a></td>";
echo "<td align=center><a href=center.php?page=".($page-1).">上一頁(yè)</a></td>";
}
if ( $page <> $last ) {
echo "<td align=center><a href=center.php?page=".($page+1).">下一頁(yè)</a></td>";
echo "<td align=center><a href=center.php?page=$last>最后一頁(yè)</a></td>";
}
echo "</tbody>";
echo "</tr>";
echo "</table><br>";
echo "</center>";
} else {
echo "<center>對(duì)不起,目前沒(méi)有通知記錄!</center>";
}
} else {
$Message->setMessage("對(duì)不起,您沒(méi)有權(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"></td>
</tr>
</table>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -