<!--#include file="conn.asp"-->
<!--#include file="adminset.asp"-->
<%if session("admin")="" then
response.Write "<script language='javascript'>alert('网络超时或您还没有登陆！');window.location.href='login.asp';</script>"
response.End
end if
if session("flag")>2 then
response.Write "<div align=center><font size=80 color=red><b>您没有此项目管理权限！</b></font></div>"
response.End
end if
if qx14<>1 then
response.Write "<div align=center><font size=80 color=red><b>您没有此项目管理权限！</b></font></div>"
response.End
end if
%>
<%dim action
action=request.QueryString("action")
'//保存信息
if action="save" then
if session("flag")>1 then
response.Write "<div align=center><font size=80 color=red><b>您没有此项目管理权限！</b></font></div>"
response.End
end if
if qx14<>1 then
response.Write "<div align=center><font size=80 color=red><b>您没有此项目管理权限！</b></font></div>"
response.End
end if
inc1=trim(request("inc1"))
inc2=trim(request("inc2"))
inc3=trim(request("inc3"))
inc4=trim(request("inc4"))
inc5=trim(request("inc5"))
inc6=trim(request("inc6"))
inc7=trim(request("inc7"))

inc=inc1&"|"&inc2&"|"&inc3&"|"&inc4&"|"&inc5&"|"&inc6&"|"&inc7
kf1=trim(request("kf1"))
kfurl1=trim(request("kfurl1"))
kf2=trim(request("kf2"))
kfurl2=trim(request("kfurl2"))
kf3=trim(request("kf3"))
kfurl3=trim(request("kfurl3"))
kf4=trim(request("kf4"))
kfurl4=trim(request("kfurl4"))
kf5=trim(request("kf5"))
kfurl5=trim(request("kfurl5"))
kf6=trim(request("kf6"))
kfurl6=trim(request("kfurl6"))
kf7=trim(request("kf7"))
kfurl7=trim(request("kfurl7"))
set rs=server.CreateObject("adodb.recordset")
rs.Open "select * from shop_kf ",conn,1,3
rs("inc")=inc
rs("kf1")=kf1
rs("kfurl1")=kfurl1
rs("kf2")=kf2
rs("kfurl2")=kfurl2
rs("kf3")=kf3
rs("kfurl3")=kfurl3
rs("kf4")=kf4
rs("kfurl4")=kfurl4
rs("kf5")=kf5
rs("kfurl5")=kfurl5
rs("kf6")=kf6
rs("kfurl6")=kfurl6
rs("kf7")=kf7
rs("kfurl7")=kfurl7
rs.update
rs.close
set rs=nothing
response.Write "<script language=javascript>alert('网站在线客服配置修改成功！');history.go(-1);</script>"
end if%>
<html>
<head>
<title>网软志成在线购物系统</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="../css.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style1 {color: #FF0000}
.style2 {color: #0000FF}
.style21 {color: #FF0000}
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
}
-->
</style>
</head>

<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="1%" height="28">&nbsp;</td>
    <td width="99%"><table width="100%" border="0" cellspacing="0" cellpadding="5">
      <tr>
        <td width="77%" height="27" style="font-size:14px;color:#ffffff">&nbsp;<strong><font color="#000000">网软志成购物后台管理系统 &gt;&gt; 系统管理 &gt;&gt; 在线客服 </font></strong></td>
        <td width="23%" style="font-size:14px;color:#ffffff"><span class="style21">* 为必添项目</span></td>
      </tr>
      <tr>
        <td height="27" colspan="2" style="font-size:12px;color:#000000"><span style="font-size:14px;color:#ffffff">&nbsp;</span><span class="style21">说明：请按说明规则操作，乱添加则导致网页错误！</span><br>
          <span style="font-size:14px;color:#ffffff">&nbsp;</span>在线客服可填写其它连接地址和文字也可添加QQ互动服务，添加文字直接添加即可，链接地址可为空。
          <br>
          <span style="font-size:14px;color:#ffffff">&nbsp;</span>图片代码范例：&lt;img border=0 SRC=你的图片地址或QQ在线状态地址 alt=点击这里给我发消息&gt;</td>
        </tr>
    </table></td>
  </tr>
</table>
<br>
  <table border="0" width="95%" cellspacing="1" cellpadding="3" style="border-collapse: collapse" align=center bgcolor="#999999">
  <form name="form1" method="post" action="web_qq.asp?action=save">
<%set rs=server.CreateObject("adodb.recordset")
rs.Open "select * from shop_kf",conn,1,1
inc_2=rs("inc")
inc_2=split(inc_2,"|")
inc1=inc_2(0)
inc2=inc_2(1)
inc3=inc_2(2)
inc4=inc_2(3)
inc5=inc_2(4)
inc6=inc_2(5)
inc7=inc_2(6)
kf1=rs("kf1")
kfurl1=rs("kfurl1")
kf2=rs("kf2")
kfurl2=rs("kfurl2")
kf3=rs("kf3")
kfurl3=rs("kfurl3")
kf4=rs("kf4")
kfurl4=rs("kfurl4")
kf5=rs("kf5")
kfurl5=rs("kfurl5")
kf6=rs("kf6")
kfurl6=rs("kfurl6")
kf7=rs("kf7")
kfurl7=rs("kfurl7")
%><tr bgcolor="#F3F3F3">
      <td height="4" colspan="3" bgcolor="#CCCCCC"><strong><a name="#news"></a>首页在线客服配置 </strong></td>
    </tr><tr bgcolor="#F3F3F3">
      <td width="206" height="0" bgcolor="#F3F3F3">是否调用在线客服：</td>
      <td height="-2" colspan="2"><select name="inc1" id="inc1">
        <option value="1" <%if inc1=1 then%>selected<%end if%>>调用</option>
        <option value="2" <%if inc1=2 then%>selected<%end if%>>不调用</option>
      </select>      </td>
    </tr>
    <tr bgcolor="#F3F3F3">
      <td height="0">在线客服边框颜色：</td>
      <td height="0" colspan="2">
        <input name="inc2" type="text" class="wenbenkuang" id="inc2" value="<%=inc2%>">      </td>
    </tr>
    <tr bgcolor="#F3F3F3">
      <td height="1">在线客服显示宽度：</td>
      <td height="1" colspan="2">
        <input name="inc3" type="text" class="wenbenkuang" id="inc3" value="<%=inc3%>">      </td>
    </tr>
    <tr bgcolor="#F3F3F3">
      <td>无连接时文字颜色：</td>
      <td height="0" colspan="2"><input name="inc4" type="text" class="wenbenkuang" id="inc4" value="<%=inc4%>"></td>
    </tr>
    <tr bgcolor="#F3F3F3">
      <td height="0">无连接时背景颜色：</td>
      <td height="-2" colspan="2"><input name="inc5" type="text" class="wenbenkuang" id="inc5" value="<%=inc5%>"></td>
    </tr>
    <tr bgcolor="#F3F3F3">
      <td height="1">在线客服表格高度：</td>
      <td height="1" colspan="2"><input name="inc6" type="text" class="wenbenkuang" id="inc6" value="<%=inc6%>"></td>
    </tr>
    <tr bgcolor="#F3F3F3">
      <td height="1">表格内文字位置</td>
      <td height="1" colspan="2"><select name="inc7" id="inc7">
        <option value="left"  <%if inc7="left" then%>selected<%end if%>>居左</option>
        <option value="center"  <%if inc7="center" then%>selected<%end if%>>居中</option>
		<option value="right" <%if inc7="right" then%>selected<%end if%> >居右</option>
      </select></td>
    </tr>
    
    <tr bgcolor="#F3F3F3">
      <td height="0" colspan="3" bgcolor="#CCCCCC">注：您可使用以下范例的QQ和MSN图标效果较好！</td>
    </tr>
    <tr bgcolor="#F3F3F3">
      <td height="1">在线客服一文字或图片：</td>
      <td width="195"><input name="kf1" type="text" class="wenbenkuang" id="kf1" value="<%=kf1%>" size="20"></td>
      <td width="506">连接地址：
      <input name="kfurl1" type="text" class="wenbenkuang" id="kfurl1" value="<%=kfurl1%>" size="40"></td>
    </tr>
    <tr bgcolor="#F3F3F3">
      <td height="1">在线客服二文字或图片：</td>
      <td height="1"><input name="kf2" type="text" class="wenbenkuang" id="kf2" value="<%=kf2%>" size="20"></td>
      <td height="1">连接地址：
      <input name="kfurl2" type="text" class="wenbenkuang" id="kfurl2" value="<%=kfurl2%>" size="40"></td>
    </tr>
    <tr bgcolor="#F3F3F3">
      <td height="1">在线客服三文字或图片：</td>
      <td height="1"><input name="kf3" type="text" class="wenbenkuang" id="kf3" value="<%=kf3%>" size="20"></td>
      <td height="1">连接地址：
      <input name="kfurl3" type="text" class="wenbenkuang" id="kfurl3" value="<%=kfurl3%>" size="40"></td>
    </tr>
    <tr bgcolor="#F3F3F3">
      <td height="1">在线客服四文字或图片：</td>
      <td height="1"><input name="kf4" type="text" class="wenbenkuang" id="kf4" value="<%=kf4%>" size="20"></td>
      <td height="1">连接地址：
      <input name="kfurl4" type="text" class="wenbenkuang" id="kfurl4" value="<%=kfurl4%>" size="40"></td>
    </tr>
    <tr bgcolor="#F3F3F3">
      <td height="1">在线客服五文字或图片：</td>
      <td height="1"><input name="kf5" type="text" class="wenbenkuang" id="kf5" value="<%=kf5%>" size="20"></td>
      <td height="1">连接地址：
      <input name="kfurl5" type="text" class="wenbenkuang" id="kfurl5" value="<%=kfurl5%>" size="40"></td>
    </tr>
    <tr bgcolor="#F3F3F3">
      <td height="0">在线客服六文字或图片：</td>
      <td height="0"><input name="kf6" type="text" class="wenbenkuang" id="kf6" value="<%=kf6%>" size="20"></td>
      <td height="0">连接地址：
      <input name="kfurl6" type="text" class="wenbenkuang" id="kfurl6" value="<%=kfurl6%>" size="40"></td>
    </tr>
    <tr bgcolor="#F3F3F3">
      <td height="0">在线客服七文字或图片：</td>
      <td height="0"><input name="kf7" type="text" class="wenbenkuang" id="kf7" value="<%=kf7%>" size="20"></td>
      <td height="0">连接地址：
      <input name="kfurl7" type="text" class="wenbenkuang" id="kfurl7" value="<%=kfurl7%>" size="40"></td>
    </tr>
    <tr bgcolor="#F3F3F3">
      <td height="22" colspan="3">
        <div align="center">
          <input type="submit" class="go-wenbenkuang" name="Submit" value="提 交">
&nbsp;&nbsp;
          <input type="reset" class="go-wenbenkuang" name="Submit2" value="恢 复">
      </div></td>
    </tr>
  </form>
</table>
<%rs.Close
          set rs=nothing%>
<!--#include file="copyright.asp"-->
<p>&nbsp;</p>
<p>&nbsp;</p>
</body>
</html>
<script>
	function regInput(obj, reg, inputStr)
	{
		var docSel	= document.selection.createRange()
		if (docSel.parentElement().tagName != "INPUT")	return false
		oSel = docSel.duplicate()
		oSel.text = ""
		var srcRange	= obj.createTextRange()
		oSel.setEndPoint("StartToStart", srcRange)
		var str = oSel.text + inputStr + srcRange.text.substr(oSel.text.length)
		return reg.test(str)
	}
</script>
