⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 center.php

📁 开源的OA系统
💻 PHP
字号:
<?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">&nbsp;</td>
         <TD width="766" vAlign=top ><FONT color="#565656">&nbsp;&nbsp;<IMG height=14 
      src="../images/closedfold.gif" width=14>&nbsp;&nbsp;您当前的位置<BR>
          &nbsp;&nbsp;<IMG 
      height=15 src="../images/bar.gif" width=15>&nbsp;&nbsp;<IMG height=14 
      src="../images/openfold.gif" width=14>&nbsp;&nbsp;内部通知</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>&nbsp;</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>&nbsp;</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>时间</b></font></div></td>";    			
	echo "<td width=350 height=24 bgColor=#3997E1><div align=center><font color=#ffffff><b>内容</b></font></div></td>";
	echo "<td width=266 height=24 bgColor=#3997E1><div align=center><font color=#ffffff><b>查看详细</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')\">查看详细</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>页,共<font color=red>$last</font>页。";		  
          echo "</center></td></tr><tr>";	  
          if ( $page <> 1 ) {
              echo "<td align=center>&nbsp;&nbsp;&nbsp;<a href=center.php?page=1>第一页</a></td>";
              echo "<td align=center><a href=center.php?page=".($page-1).">上一页</a></td>";
          }
          if ( $page <> $last ) {
              echo "<td align=center><a href=center.php?page=".($page+1).">下一页</a></td>";
              echo "<td align=center><a href=center.php?page=$last>最后一页</a></td>";
          }
          echo "</tbody>";
          echo "</tr>";
          echo "</table><br>";
		  echo "</center>";
   } else {
      echo "<center>对不起,目前没有通知记录!</center>";
   }

} else {
    $Message->setMessage("对不起,您没有权限进入后台管理!","index.php");
    $Message->showMessage();
}
?>
	
	</td>
    <td width="13" align="right" background="../images/home_16.jpg" height=457>&nbsp;</td>
  </tr>
  <tr>
    <td height="8" colspan="2" valign="top"><img src="../images/home_24.jpg" width="789"></td>
  </tr>
</table>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -