<!--#include file="../utf-8.asp" -->
<!--#include file="../js/Function.asp" -->
<!--#include file="../CheckAdmin.asp" -->
<!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 NAME="copyright" CONTENT="Copyright 2010-2012 - yidacms.com" />
<META NAME="Author" CONTENT="世纪伟成  yidacms.com" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="../js/admin.css" rel="stylesheet" type="text/css">
<title>QQ管理！</title>
</head>
<body>
<%
'版权：世纪伟成(http://yidacms.com)
'本信息不会影响您网站的正常访问，无论免费用户或是收费用户请保留这里的信息.
'如果您删除了这里的版权信息,将追究法律责任.		
		yidacms_id = cint(Request("id"))

		if request("t")="qqedit" Then 

			if len(trim(request.Form("shuaiweb_qqtitle")))<1 then
				response.write ("<script language=javascript> alert('部门/小组必填且不能少于1个字符！');history.back(-1);</script>")
				response.end
			end if

			if len(trim(request.Form("shuaiweb_qqname")))<1 then
				response.write ("<script language=javascript> alert('QQ名称必填且不能少于1个字符！');history.back(-1);</script>")
				response.end
			end if
			  
			if len(trim(request.Form("shuaiweb_qqnumber")))<1 then
				response.write ("<script language=javascript> alert('QQ号码不能为空，且不少于1个字符！');history.back(-1);</script>")
				response.end
			end if 
		  
		dim rs,sql
		set rs=server.createobject("adodb.recordset")
		sql="select * from shuaiweb_qq WHERE id= "&yidacms_id&""
		rs.open sql,dbok,1,3
			rs("shuaiweb_qqtitle")=trim(request.form("shuaiweb_qqtitle"))
			rs("shuaiweb_qqname")=trim(request.form("shuaiweb_qqname"))
			rs("shuaiweb_qqnumber")=trim(request.form("shuaiweb_qqnumber"))
			rs("shuaiweb_picture")=trim(request.form("shuaiweb_picture"))		
			rs("shuaiweb_qqsort")=trim(request.form("shuaiweb_qqsort"))				
		rs.update
		rs.close
		set rs=nothing
		response.write "<script language=javascript> alert('成功修改！');location.replace('admin_qq.asp');</script>"
		response.end
		End If
		
		set rs = server.createobject("adodb.recordset")
		sql="select * from shuaiweb_qq WHERE id= "&yidacms_id&""
		rs.open sql,dbok,1,1
%>
		<table width="98%" border="0" cellpadding="10" cellspacing="0" bordercolor="#666666" style="border-collapse:collapse" bgcolor="#FFFFFF" align="center">
		<form id="form1" name="form1" method="post" action="admin_qqedit.asp?t=qqedit&id=<%=rs("id")%>">
		  <tr>
			<td class="infont"></td>
			<td>部门/小组<br /><input name="shuaiweb_qqtitle" type="text" class="win" id="shuaiweb_qqtitle" value="<%=rs("shuaiweb_qqtitle")%>"/> 如：开发部/技术小组</td>
		  </tr>
		  <tr>
			<td class="infont"></td>
			<td>姓名<br /><input name="shuaiweb_qqname" type="text" class="win" id="shuaiweb_qqname" value="<%=rs("shuaiweb_qqname")%>"/> 如：唐晓伟</td>
		  </tr>
		  <tr>
			<td class="infont"></td>
			<td>QQ号码<br /><input name="shuaiweb_qqnumber" type="text" class="win" id="shuaiweb_qqnumber" value="<%=rs("shuaiweb_qqnumber")%>"/> 如：993141000</td>
		  </tr>
		  <tr>
			<td class="infont"></td>
			<td>QQ头像<br />
			<select name="shuaiweb_picture" id="shuaiweb_picture" onchange="document.images['qq'].src=options[selectedIndex].value;" class="winla" >
			<%For i=1 To 48%>
			<option value=<%=sw_dizhi%>images/qq/<%=i%>.gif><%=i%></option>
			<%Next%>
			</select>
			<img src="<%=sw_dizhi%>images/qq/1.gif" id="qq">
			</td>
		  </tr>
		  <tr>
			<td class="infont"></td>
			<td>排序<br />
                         <input name="shuaiweb_qqsort" type="text" id="shuaiweb_qqsort" value="<%=rs("shuaiweb_qqsort")%>" onkeyup="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}" onafterpaste="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}" class="win2"/>
			  必须是数字！</td>
		  </tr>
		  <tr>
			<td>&nbsp;</td>
			<td><input type="submit" name="Submit" value="提 交" class="inanniu"/>
			  <input type="reset" name="Submit2" value="重 置" class="inanniu"/> <input type=button onclick="window.location.href('admin_qq.asp')"value="返 回" class="inanniu"></td>
		  </tr>
		</form>
		</table>
</body>
</html>
