<!--#include file="conn.asp"-->
<!--#include file="inc/cook2.asp"-->
<!--#include file="inc/dimflag.asp"-->
<!--#include file="top.asp"-->
<%
select case action
case "save"

if request.QueryString("action")="save" then
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from com_qq",conn,1,3
rs.addnew
rs("cid")=request("cid")
rs("titlecn")=trim(request("titlecn"))
rs("titleen")=trim(request("titleen"))
'rs("textcn")=ReplaceQQ(trim(request("textcn")))
rs("textcn")=trim(request("textcn"))
rs("texten")=trim(request("texten"))
rs("class")=request("class")
rs("pid")=0
rs("type")=1

rs.update
rs.close
set rs=nothing

response.write "<script language=javascript>alert('添加成功！');window.location.href='qqT_manage.asp';</script>"
response.redirect "qqT_manage.asp"
response.End
end if

case ""
%>


<div id="container">
<div class="top_but">
 <li class="left">&nbsp;</li>
 <li><a href="qqT_manage.asp"><img src="images/but_11.gif" alt="管理"></a></li>
 <li><img src="images/but_8.gif" alt="刷新" onClick="window.location.reload(true);"></li>
 <li><img src="images/but_9.gif" alt="打印" onClick="window.print() "/></li>
</div>



<form name="myform" method="post" action="?action=save">
<div class="tableAll titlebgcolor">
 <li style="width:30px;">&nbsp;</li>
 <li style="width:700px">添加新在线咨询</li>
</div>
<div class="tableAll trbgcolor">
  <li style="width:30px;">&nbsp;</li>
  <li style="width:100px;">选择分类</li>
  <li>

   <select name="cid" size="1" >
<%
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from com_class where Cid=0 and type=70 and LevelID=0 order by pid asc,id desc",conn,1,1
do while not rs.eof
%>
<option value="<%=rs("ID")%>"><%=rs("ClassNamecn")%>
<%
rs.movenext
loop
rs.close
set rs=nothing
%>
    </select>
</li>
</div>
<div class="tableAll trbgcolor">
 <li style="width:30px;">&nbsp;</li>
 <li style="width:100px">客服类别</li>
 <li><input name="class" type="radio" value="1" checked="checked" />
 QQ <input name="class" type="radio" value="2" />MSN <input name="class" type="radio" value="3" />阿里旺旺 <input name="class" type="radio" value="4" />Skype </li>
</div>
<div class="tableAll trbgcolor">
 <li style="width:30px;">&nbsp;</li>
 <li style="width:100px">客服名称</li>
 <li><input name="titlecn" type="text" id="titlecn" ></li>
<!-- <li style="width:100px">英文名称</li>
 <li><input name="titleen" type="text" id="titleen" ></li>-->
</div>
<div class="tableAll trbgcolor">
 <li style="width:30px;">&nbsp;</li>
 <li style="width:100px">客服号码</li>
 <li><input name="textcn" type="text" id="textcn" ></li>
</div>

<div class="tableAll trbgcolor">
 <li style="width:30px;">&nbsp;</li>
 <li style="width:60px">&nbsp;</li>
 <li><input class="button" type="submit" name="Submit" value="确认OK，添加"> </li>
</div>
</form>

</div>

<%end select%>
<!--#include file="footer.asp"-->