bumenxinxi_list.php
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
session_start();
include_once 'conn.php';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>部门信息</title>
<script type="text/javascript" src="js/My97DatePicker/WdatePicker.js" charset="gb2312"></script>
<link rel="stylesheet" href="css.css" type="text/css">
</head>
<body>
<p>已有部门信息列表:</p>
<form id="form1" name="form1" method="post" action="">
搜索: 部门:<input name="bumen" type="text" id="bumen" style='border:solid 1px #000000; color:#666666;width:80px' /> 部门性质:<select name='bumenxingzhi' id='bumenxingzhi' style='border:solid 1px #000000; color:#666666;'><option value="">所有</option><option value="内业">内业</option><option value="外业">外业</option></select> 部门领导:<input name="bumenlingdao" type="text" id="bumenlingdao" style='border:solid 1px #000000; color:#666666;width:80px' /> 职能:<input name="zhineng" type="text" id="zhineng" style='border:solid 1px #000000; color:#666666;width:80px' /> 排序
<select name="paixu" id="paixu">
<option value="addtime">添加时间</option>
</select>
<select name="px" id="px">
<option value="desc">降序</option>
<option value="asc">升序</option>
</select>
<input type="submit" name="Submit" value="查找" style='border:solid 1px #000000; color:#666666' />
</form>
<table width="100%" border="1" align="center" cellpadding="3" cellspacing="1" bordercolor="#00FFFF" style="border-collapse:collapse">
<tr>
<td width="25" bgcolor="#CCFFFF">序号</td>
<td bgcolor='#CCFFFF'>部门</td>
<td bgcolor='#CCFFFF'>部门性质</td>
<td bgcolor='#CCFFFF'>部门领导</td>
<td bgcolor='#CCFFFF'>职能</td>
<td bgcolor='#CCFFFF'>技能</td>
<td bgcolor='#CCFFFF'>人数</td>
<td width="120" align="center" bgcolor="#CCFFFF">添加时间</td>
<td width="120" align="center" bgcolor="#CCFFFF">操作</td>
</tr>
<?php
$sql="select * from bumenxinxi where 1=1";
if ($_POST["bumen"]!=""){$nreqbumen=$_POST["bumen"];$sql=$sql." and bumen like '%$nreqbumen%'";}
if ($_POST["bumenxingzhi"]!=""){$nreqbumenxingzhi=$_POST["bumenxingzhi"];$sql=$sql." and bumenxingzhi like '%$nreqbumenxingzhi%'";}
if ($_POST["bumenlingdao"]!=""){$nreqbumenlingdao=$_POST["bumenlingdao"];$sql=$sql." and bumenlingdao like '%$nreqbumenlingdao%'";}
if ($_POST["zhineng"]!=""){$nreqzhineng=$_POST["zhineng"];$sql=$sql." and zhineng like '%$nreqzhineng%'";}
if($_POST["paixu"]!="")
{
$sql=$sql." order by ".$_POST["paixu"]." ".$_POST["px"]."";
}
else
{
$sql=$sql." order by id desc";
}
$query=mysql_query($sql);
$rowscount=mysql_num_rows($query);
后面还有 70 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
