
<!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=utf-8" />
<title>[.$ourphp_adminfont.admintitle.]</title>
<link href="templates/images/ourphp_login.css" rel="stylesheet" type="text/css"> 
<script type="text/javascript" src="../../function/plugs/jquery/1.7.2/jquery-1.7.2.min.js"></script>
<script>
<!--
/*第一种形式 第二种形式 更换显示样式*/
function setTab(m,n){
 var tli=document.getElementById("menu"+m).getElementsByTagName("li");
 var mli=document.getElementById("main"+m).getElementsByTagName("ul");
 for(i=0;i<tli.length;i++){
  tli[i].className=i==n?"hover":"";
  mli[i].style.display=i==n?"block":"none";
 }
}
//-->
function kefu(type)
{

	if(type == 'wechat')
	{
		$("#userid").html("微信二维码");
		$("#image4").show();
		
	}else if(type == 'phone'){
		$("#userid").html("电话号");
		$("#image4").hide();
		
	}else{
		$("#userid").html("账号");
		$("#image4").hide();
		
	}
}
</script>

</head>

<body>
<div style="height:50px;"></div>
<div style="clear:both"></div>
<div id="tabs0">
 <ul class="menu0" id="menu0">
  <li onclick="setTab(0,0)" class="hover">客服列表</li>
  <li onclick="setTab(0,1)">添加客服</li>
  <li><a href="ourphp_web.php?page=two">其它联系方式设置</a></li>
 </ul>
 <div class="main" id="main0" style="border-top:2px #488fcd solid; clear:both;">
  <ul class="block">
	  <li>
		<div class="ourphp_newslist">
		        <table width="100%" border="0" cellpadding="10" class="ourphp_newslist">
                  <tr>
				  	<td width="5%" bgcolor="#EBEBEB"><div align="center">ID</div></td>
                    <td width="20%" bgcolor="#EBEBEB">类型</td>
					<td width="15%" bgcolor="#EBEBEB">客服账号/电话号</td>
					<td width="15%" bgcolor="#EBEBEB">客服姓名/职位</td>
                    <td width="25%" bgcolor="#EBEBEB">发布时间</td>
                    <td width="20%" bgcolor="#EBEBEB">操作</td>
                  </tr>
				  [.section loop=$QQlist name=op.]
                  <tr>
				  	<td><div align="center"><font style="background:#009933; color:#FFFFFF; padding:2px; text-align:center;">[.$QQlist[op].id.]</font></div></td>
					<td>
					[.if $QQlist[op].class == 'qq'.]
					<a target="_blank" href="tencent://message/?uin=[.$QQlist[op].number.]&Site=https://www.ourphp.net&Menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:[.$QQlist[op].number.]:51" alt="点击这里给我发消息" title="点击这里给我发消息"/></a>
					[.elseif $QQlist[op].class == 'wechat'.]
					<img src="../../skin/wechat.png" border="0" width="30" />
					[.elseif $QQlist[op].class == 'phone'.]
					<img src="../../skin/phone.png" border="0" width="30" />
					[.elseif $QQlist[op].class == 'aliww'.]
					<a target="_blank" href="http://amos1.taobao.com/msg.ww?v=2&uid=[.$QQlist[op].number.]&s=1"><img border="0" src="http://amos.alicdn.com/realonline.aw?v=2&uid=[.$QQlist[op].number.]&site=cntaobao&s=1&charset=utf-8" alt="点击这里给我发消息" /></a>
					[.elseif $QQlist[op].class == 'skype'.]
					<a target="_blank" href="skype:[.$QQlist[op].number.]?add"><img src="../../skin/skype.png" border="0" width="30" /></a>
					[./if.]
					</td>
					<td>[.$QQlist[op].number.]</td>
                    <td>[.$QQlist[op].name.]</td>
                    <td>[.$QQlist[op].time.]</td>
                    <td><a href="ourphp_qqview.php?id=[.$QQlist[op].id.]">编辑</a>&nbsp;&nbsp;-&nbsp;&nbsp;<a href="?ourphp_cms=del&id=[.$QQlist[op].id.]" onclick="javascript:return confirm('确认删除吗?')">删除</a></td>
                  </tr>
				  [.sectionelse.]
				  <tr>
                    <td colspan="6">[.$ourphp_access.]</td>
                  </tr>
				  [./section.]
                </table>
		</div>
	  </li>
  </ul>
  
  <ul>
	  <li>
		<form id="form1" name="form1" method="POST" action="?ourphp_cms=add" class="registerform">
		<table width="98%" border="0" cellpadding="5" cellspacing="0" bordercolor="#666666" style="border-collapse:collapse;" align="center">
		  <tr>
		  	<td><div align="right">客服姓名/职位</div></td>
			<td><input name="OP_QQname" type="text" class="win" [.$ourphp_bgcolor.] datatype="*" nullmsg="姓名是必填项!"/><font color=red> (*)</font></td>
		  </tr>
		  <tr>
		  	<td><div align="right" id="userid">账号</div></td>
			<td>
				<input name="OP_QQnumber" type="text" class="win" id="weixinkefu" [.$ourphp_bgcolor.]  datatype="*" nullmsg="账号是必填项!" /><font color=red> (*)</font>
				<input type="button" id="image4" value="上传" style="width:100px; height:35px; line-height:35px; background:#0099CC; color:#FFFFFF; border:0px; display:none;" />
			</td>
		  </tr>
		  <tr>
		  	<td><div align="right">类型</div></td>
			<td>
			
			<p style="width:100px; float:left; text-align:center;"><label><img src="../../skin/qq.png" border="0" width="60" /><br />
			  <input name="OP_QQclass" type="radio" value="qq" checked="checked" onclick="kefu('qq')" />QQ客服</label>
			</p>
			
			<p style="width:100px; float:left; text-align:center;"><label><img src="../../skin/wechat.png" border="0" width="60" /><br />
			  <input name="OP_QQclass" type="radio" value="wechat" onclick="kefu('wechat')" />微信客服</label>
			</p>
			
			<p style="width:100px; float:left; text-align:center;"><label><img src="../../skin/phone.png" border="0" width="60" /><br />
			  <input name="OP_QQclass" type="radio" value="phone" onclick="kefu('phone')" />手机客服</label>
			</p>
			
			<p style="width:100px; float:left; text-align:center;"><label><img src="../../skin/aliww.png" border="0" width="60" /><br />
			  <input name="OP_QQclass" type="radio" value="aliww" onclick="kefu('aliww')" />旺旺客服</label>
			</p>
			
			<p style="width:100px; float:left; text-align:center;"><label><img src="../../skin/skype.png" border="0" width="60" /><br />
			  <input name="OP_QQclass" type="radio" value="skype" onclick="kefu('skype')" />skype客服</label>
			</p>
			
			</td>
		  </tr>
		  <tr>
		  	<td><div align="right">排序</div></td>
			<td><input name="OP_QQsorting" type="text" class="win2" value="99" [.$ourphp_bgcolor.] /> 数字越小，越靠前								
			</td>
		  </tr>
		   <tr>
		   	<td></td>
			<td><input type="submit" name="submit" value="提 交" class="ourphp-anniu"/></td>
		  </tr>
		</table>
		</form>
	  </li>
  </ul>
 </div>
</div>
<link rel="stylesheet" href="../../function/editor/themes/default/default.css" />
<script src="../../function/editor/kindeditor.js"></script>
<script src="../../function/editor/lang/zh_CN.js"></script>
<script>
	KindEditor.ready(function(K) {
		var editor = K.editor({
			allowFileManager : true
		});
		K('#image4').click(function() {
			editor.loadPlugin('image', function() {
				editor.plugin.imageDialog({
					showRemote : false,
					imageUrl : K('#weixinkefu').val(),
					clickFn : function(url, title, width, height, border, align) {
						K('#weixinkefu').val(url);
						editor.hideDialog();
					}
				});
			});
		});
	});
</script>
[.include file="ourphp_foot.html".]
</body>
</html>