<!--#include file="conn.asp"-->
<!--#include file="inc/cook2.asp"-->
<!--#include file="inc/dimflag.asp"-->
<!--#include file="top.asp"-->
<%
id=request.QueryString("id")
select case action
case "save"
set rs=server.createobject("adodb.recordset")
rs.open "select * from com_qq where type=1 and id = "&id&" ",conn,1,3
rs("cid")=request("cid")
rs("titlecn")=trim(request("titlecn"))
rs("titleen")=trim(request("titleen"))
rs("textcn")=trim(request("textcn"))
rs("texten")=trim(request("texten"))
rs("class")=request("class")
rs("type")=1
rs.update
rs.close
set rs=nothing
response.redirect "qqT_manage.asp"
response.End
%>
<%case ""%>
<%
set rs=server.CreateObject("adodb.recordset")
sql="select * from com_qq where id="&id
rs.open sql,conn,1,1
%>
<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&id=<%=id%>">
<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 rss=server.CreateObject("adodb.recordset")
rss.open "select * from com_class where Cid=0 and type=70 order by pid asc,id desc",conn,1,1
do while not rss.eof
%>
<option value="<%=rss("ID")%>" <%if rs("cid")=rss("id") then%>selected<%end if%>><%=rss("ClassNamecn")%>
<%
rss.movenext
loop
rss.close
set rss=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" <%if rs("class")=1 then%> checked="checked"<%end if%>/>
 QQ <input name="class" type="radio" value="2" <%if rs("class")=2 then%> checked="checked"<%end if%>/>MSN <input name="class" type="radio" value="3" <%if rs("class")=3 then%> checked="checked"<%end if%>/>阿里旺旺 <input name="class" type="radio" value="4" <%if rs("class")=4 then%> checked="checked"<%end if%>/>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" value="<%=rs("titlecn")%>"></li>
<!-- <li style="width:100px">英文名称</li>
 <li><input name="titleen" type="text" id="titleen" value="<%=rs("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"value="<%=rs("textcn")%>" ></li>
</div>
<div class="tableAll trbgcolor">
 <li style="width:30px;">&nbsp;</li>
 <li style="width:100px">&nbsp;</li>
 <li><input class="button" type="submit" name="Submit" value="确认OK，修改"> </li>
</div>
</form>

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