<!--#include file="../Include/Head.asp"-->

	<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="../Main/Right.asp">首页</a></li>
    <li><a href="Type.asp">Banner管理</a></li>
    </ul>
    </div>
    
    
    <div class="rightinfo">
    
    <table class="tablelist">
    	<thead>
    	<tr>
        <th width="40">ID</th>
        <th width="70">序号</th>
        <th width="180">分类名称</th>
        <th width="180">英文名称</th>
        <th>分类介绍</th>
        <th width="70">操作</th>
        </tr>
        </thead>
        <tbody>
        <%
		Set Rs=server.createobject("adodb.recordSet")
		Sql="select * from Jin_FlashClass order by SortID asc,sysID desc"
		Rs.open Sql,conn,1,3
		For i=1 to rs.recordcount
		if i=rs.recordcount then MaxsortID=Rs("SortID")
		%>
        <tr height="40">
        <td><%=Rs("sysID")%></td>
        <td><input name="SortID" type="text" class="newinput60 SortID" value="<%=Rs("SortID")%>" id2="<%=Rs("sysID")%>" style="width:90%;"/></td>
        <td><input name="Name" type="text" class="newinput200 Name" value="<%=Rs("Name")%>" id2="<%=Rs("sysID")%>"  style="width:95%;"/></td>
        <td><input name="Name_en" type="text" class="newinput200 Name_en" value="<%=Rs("Name_en")%>" id2="<%=Rs("sysID")%>"  style="width:95%;"/></td>
        <td><input name="Content" type="text" class="newinput450 Content" value="<%=Rs("Content")%>"  id2="<%=Rs("sysID")%>" style="width:95%; max-width:450px;"/></td>
        <td> <a href="javascript:void(0);" class="tablelink classDel" id2="<%=Rs("sysID")%>">删除</a></td>
        </tr> 
        <%
		Rs.movenext
		next
		Rs.close
		Set Rs=nothing
		%>
        <form name="addclass" action="?Action=addclass" method="post">
        <tr height="40">
        <td></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
        <td><a href="javascript:void(0);" class="tablelink BannerTypeAdd" id2="<%=MaxsortID+1%>">添加</a></td>
        </tr> 
        </form>
        
    
        </tbody>
    </table>
    </div> 


<%
'添加图片分类
If replace(trim(Request.QueryString("Action")) ,"'","")="addclass" then
	Set Rs=server.createobject("adodb.recordSet")
	Sql="select * from Jin_FlashClass"
	Rs.open Sql,conn,1,3
	Rs.Addnew
	Rs("SortID")=request_Form("SortID")
	Rs("Name")=request_Form("Name")
	Rs("Name_en")=request_Form("Name_en")
	Rs("Content")=request_Form("Content")
	Rs("Addtime")=Now()
	Rs.Update
	Rs.close
	Set Rs=nothing
	Response.Write ("<script language=javascript>window.location=document.referrer;</script>")
	'Call alertgo("添加成功！")
End If
%>


<script>
$(document).ready(function(e){
autoAdd("BannerTypeAdd");
autoSave("SortID");
autoSave("Name");
autoSave("Name_en");
autoSave("Content");
autoDel("classDel");
});
</script>

<%Call BackFoot()%>