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

📄 job_lxfs.php

📁 开源的OA系统
💻 PHP
字号:
<?
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>&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 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>&nbsp;</td>";
    echo "<td bgColor=#ffffff align=left>";
	echo "按文用户姓名查询:<input type=text size=20 name=search maxlength=20>";
    echo "&nbsp;<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>&nbsp;</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>手机</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>页,共<font color=red>$last</font>页。";		  
          echo "</center></td></tr><tr>";	  
          if ( $page <> 1 ) {
              echo "<td align=center>&nbsp;&nbsp;&nbsp;<a href=job_lxfs.php?page=1>第一页</a></td>";
              echo "<td align=center><a href=job_lxfs.php?page=".($page-1).">上一页</a></td>";
          }
          if ( $page <> $last ) {
              echo "<td align=center><a href=job_lxfs.php?page=".($page+1).">下一页</a></td>";
              echo "<td align=center><a href=job_lxfs.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" height="8"></td>
  </tr>
</table>

⌨️ 快捷键说明

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