<!--#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>视频类别配置！</title>
</head>

<body>

<%
'版权：世纪伟成(http://yidacms.com)
'本信息不会影响您网站的正常访问，无论免费用户或是收费用户请保留这里的信息.
'如果您删除了这里的版权信息,将追究法律责任.

        if request("t")="videoclassedit" Then 
		
			if len(trim(request.Form("shuaiweb_videoclassname")))<1 then
				response.write ("<script language=javascript> alert('类别名称必填且不能少于1个字符！');history.back(-1);</script>")
				response.end
			end if
		  
		dim rs,sql
		set rs=server.createobject("adodb.recordset")
		sql="select * from shuaiweb_videoclass WHERE id= "&request("id")&""
		rs.open sql,dbok,1,3
			rs("shuaiweb_videoclassname")=trim(request.form("shuaiweb_videoclassname"))
			rs("shuaiweb_videoclasssort")=trim(request.form("shuaiweb_videoclasssort"))
			rs("wait_ncsi")=trim(request.form("wait_ncsi"))
			rs("yida_language")="ch"
		rs.update
		rs.close
		set rs=nothing
		response.write "<script language=javascript> alert('成功修改！');location.replace('admin_videoclass.asp');</script>"
		End If

		set rs = server.createobject("adodb.recordset")
		sql="select * from shuaiweb_videoclass WHERE id= "&request("id")&""
		rs.open sql,dbok,1,1
		%>

		  <table width="98%" height="59" border="0" cellpadding="10" cellspacing="0" bordercolor="#cccccc" style="border-collapse:collapse" bgcolor="#FFFFFF" align="center">
		   <form id="form1" name="form1" method="post" action="admin_videoclassedit.asp?t=videoclassedit&id=<%=rs("id")%>">
			<tr>
			  <td onMouseOver="this.id='aa'" onMouseOut="this.id='bb'" class="cc">栏目名称<br /><input name="shuaiweb_videoclassname" type="text" id="shuaiweb_videoclassname" class="win" value="<%=rs("shuaiweb_videoclassname")%>"/></td>
			</tr>
                        <tr>
                          <td onMouseOver="this.id='aa'" onMouseOut="this.id='bb'" class="cc">状态<br /> 
<select name="wait_ncsi" id="wait_ncsi" class="winla">
<option value="1">显示</option>
<option value="2">隐藏(可调用)</option>
</select>		  
</td>
			</tr>
			<tr>
			  <td onMouseOver="this.id='aa'" onMouseOut="this.id='bb'" class="cc">排序<br /><input name="shuaiweb_videoclasssort" type="text" value="<%=rs("shuaiweb_videoclasssort")%>" id="shuaiweb_videoclasssort" value="1" size="5" 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><input type="submit" name="Submit" value="添 加" class="inanniu"/>
			  <input type="reset" name="Submit2" value="重 置" class="inanniu"/> <input type=button onclick="window.location.href('admin_videoclass.asp')"value="返 回" class="inanniu"></td>
			</tr>
			</form>
		  </table>
<%
		rs.close
		set rs=nothing
%>
</body>
</html>
