<?
session_start();
require_once "../init.php";
require_once "../authority.inc.php";
$keyword=trim($keyword);
if($keyword){
	$wheres=" AND (UserID like '%$keyword%' or RealName like '%$keyword%') ";
}
$sql = "select * from qq where 1 $wheres";
$result = $DB->query($sql);
$PNum = $DB->num_rows($result);
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>员工管理</title>

<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="/admin/lib/html5.js"></script>
<script type="text/javascript" src="/admin/lib/respond.min.js"></script>
<script type="text/javascript" src="/admin/lib/PIE_IE678.js"></script>
<![endif]-->

<link rel="stylesheet" type="text/css" href="/admin/static/h-ui/css/H-ui.min.css" />
<link rel="stylesheet" type="text/css" href="/admin/static/h-ui.admin/css/H-ui.admin.css" />
<link rel="stylesheet" type="text/css" href="/admin/lib/Hui-iconfont/1.0.7/iconfont.css" />
<link rel="stylesheet" type="text/css" href="/admin/lib/icheck/icheck.css" />
<link rel="stylesheet" type="text/css" href="/admin/static/h-ui.admin/skin/default/skin.css" id="skin" />
<link rel="stylesheet" type="text/css" href="/admin/static/h-ui.admin/css/style.css" />
<!--[if IE 6]>
<script type="text/javascript" src="/admin/static/h-ui.admin/js/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<script src='../share/global.js'></script>
</head>
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 系统管理 <span class="c-gray en">&gt;</span> QQ客服设置<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<div class="page-container">
<!--子导航-->

<div class="cl pd-5 bg-1 bk-gray mt-10"> <span class="l"><a href="qq_list.php"  <?if(!isset($hot)){?>id="hot"<?}?> class="btn btn-danger radius"><i class="Hui-iconfont">&#xe6e2;</i> QQ客服列表</a> <a   <?if(($hot=="add")){?>id="hot"<?}?>  onclick="Hui_admin_tab(this)"  class="btn btn-primary radius" data-title="添加QQ客服" href="qq_add.php"  href="qq_add.php"><i class="Hui-iconfont">&#xe600;</i> 添加QQ客服</a> </span> <span class="r"><?
	$pageStr="共 $PNum 个QQ客服记录";
	echo $pageStr;
?></span></div><br>

<!--结束-->

<!--搜索-->
<div id="search">


<form method='post' action='<?=$_SERVER['PHP_SELF']?>'>
<div class="page-container">
	<div class="text-c"> 
		
		<input type="text" name="keyword"  value="<?=$keyword?>" id="" placeholder=" 输入关键词" style="width:250px" class="input-text">
		<button name="" id="" class="btn btn-success" type="submit"><i class="Hui-iconfont">&#xe665;</i> 搜 索</button></div>
</form>

</div>
<!--搜索-->

      <?
			if($PNum){
	    ?>


<table width="100%" border="0" cellpadding="0" cellspacing="0" id="table" class="table table-border table-bordered table-hover table-bg table-sort">
  <tr align="center" bgcolor="#EEEEEE" id="tr">
	<td colspan="4">QQ客服 </td>
  </tr>
<tr id="tr">
<td height="20">ID</td>
  <td height="20">QQ号</td>
  <td>姓名</td>
  <td>操作</td>
</tr>
<? while($EmployInfo=$DB->fetch_array($result)){?>
<tr id="td" onmouseover='inStyle(this)' onmouseout='outStyle(this)'>
<td><?=$EmployInfo[qq_id]?></td>
  <td><?=$EmployInfo[qq_no]?></td>
  <td><?=$EmployInfo[qq_name]?></td>
 
  <td> 
	<?php $key = GetHashKey('qq'.$EmployInfo[qq_id]);?>
	<a href="qq_edit.php?qq_id=<?=$EmployInfo[qq_id]?>&key=<?=$key?>">修改</a> |
	<?php if($EmployInfo[UserID]!=$_SESSION[AdmUserID_S]){?>
	<a href="qq_del.php?qq_id=<?=$EmployInfo[qq_id]?>&key=<?=$key?>" onClick="return confirm('确定删除吗?')"><? }?>删除</a> 
  </td>
</tr>
<? }?>
</table>
<?	}else{
	   echo "<center><br><br>没有相关记录<br><br></center>";
	}
?>
</div>
<br><br>
<? 
$DB->close();
include "../share/bottom.php";
?>
</body>
</html>
