<!--#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>
<link rel="stylesheet" href="../js/reveal.css">	
<script type="text/javascript" src="../js/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="../js/jquery.reveal.js"></script>
</head>
<body>
<%
'版权：世纪伟成(http://yidacms.com)
'本信息不会影响您网站的正常访问，无论免费用户或是收费用户请保留这里的信息.
'如果您删除了这里的版权信息,将追究法律责任.

        if request("t")="videoclass" 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" 
		rs.open sql,dbok,3,2
		rs.addnew
			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 ORDER BY shuaiweb_videoclasssort ASC"
		rs.open sql,dbok,1,1
		%>
	  <table width="98%" height="41" border="1"cellpadding="6" cellspacing="0" bordercolor="#cccccc" style="border-collapse:collapse" bgcolor="#FFFFFF" align="center">
            <tr>
              <td colspan="6"><a href="#" class="big-link" data-reveal-id="myModal">+ 创建</a>	
               </td>
             </tr>
		<tr>
		  <td bgcolor="#CCCCCC">类别ID</td>
		  <td bgcolor="#CCCCCC">栏目名称</td>
		  <td bgcolor="#CCCCCC">地址</td>
		  <td bgcolor="#CCCCCC">状态</td>
		  <td bgcolor="#CCCCCC">排序</td>
		  <td bgcolor="#CCCCCC">操作！</td>
	   </tr>
<%
		if rs.bof and rs.eof then
			No_record = "暂无记录!"
				Else
		do while not rs.eof
                if rs("yida_language") = "ch" then
                	language = "<font color=red>简</font>"
                		else
               		language = "<font color=blue>英</font>"
                end if
%>
		<tr onMouseOver="this.id='aa'" onMouseOut="this.id='bb'" class="cc">
		  <td><%=rs("id")%></td>
		  <td>[<%=language%>] <%=rs("shuaiweb_videoclassname")%></td>
		  <td><input value="<%=webpath%>zh_video.asp?id=<%=rs("id")%>" /></td>
		  <td><%if trim(rs("wait_ncsi")) = 1 then%>显示<%else%><font color="red">隐藏</font><%end if%></td>
		  <td><%=rs("shuaiweb_videoclasssort")%></td>
		  <td><a href="../navigation/admin_navigation_new.asp?yida_nvname=<%=rs("shuaiweb_videoclassname")%>&yida_nvurl=<%=webpath%>zh_video.asp?id=<%=rs("id")%>"><img src="../images/023.gif" alt="设为导航"/></a> <a href="admin_videoclassedit.asp?id=<%=rs("id")%>"><img src="../images/023.jpg" alt="修改"/></a> <a href="../admin_del.asp?t=videoclasseditdel&id=<%=rs("id")%>"><img src="../images/015.gif" alt="删除"/></a> </td>
		</tr>
<%
		rs.MoveNext 
		loop   
		End If 
		rs.close
		set rs=nothing
%>
<tr>
                <td colspan="6"><%=No_record%></td>
</tr>
		  </table>
		<div id="myModal" class="reveal-modal">
		  <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_videoclass.asp?t=videoclass">
			<tr>
			  <td onMouseOver="this.id='aa'" onMouseOut="this.id='bb'" class="cc">栏目名称<br /><input name="shuaiweb_videoclassname" type="text" id="shuaiweb_videoclassname" class="win"/></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" 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"/></td>
			</tr>
			</form>
		  </table>
<a class="close-reveal-modal">&#215;</a>
		</div>
</body>
</html>
