<%@ Page Language="VB" ContentType="text/html" ResponseEncoding="gb2312" Inherits="b2bNet.Admin_Member_templetlist" %>
<%On Error Resume Next%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link href="inc/admin_style.css" rel="stylesheet" type="text/css" /><link href="inc/style.css" rel="stylesheet" type="text/css" /><script type="Text/JavaScript" language="javascript" src="inc/title.js"></script>
<title><%=AppConst.SiteName%></title>
<script type="Text/JavaScript" language=javascript>
//反选ＩＤ复选框
function selectAllCheckBox(obj)
{
	if(obj.length)
	{
		for(var i=0;i<obj.length;i++)
		{
			obj[i].checked=!obj[i].checked
		}
	}else{
		
		obj.checked=!obj.checked
	}
}
function WorkSubmit(){
	if(confirm("您确定要进行您现在的操作吗？\n这将是不可恢复的。"))
	{
		ListTNews.action="Member_templetlist.aspx?action=del";
		ListTNews.submit();
	}
}
</script>

</head>
<body style="margin-top:0; margin-left:0">
<table style="height:22; width:100%" border="0" cellpadding="0" cellspacing="1">
        <tr class="topbg"> 
          <td style="height:21" align="center" class="topbg"><strong>会　员　模　板　列　表</strong></td>
        </tr>
</table>
  <table style="width:100%"  border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td style="height:27; width:30" align="center"><img src="<%=AppConst.SiteUrl%>/<%=AppConst.Skinpath%>/gojump01.gif" width="16" height="16" /></td>
      <td><a href="Member_template_add.aspx">添加模板</a> | <a href="Member_templetlist.aspx">模板管理</a></td>
    </tr>
  </table>
  <table style="width:100%" border="0" align="center" cellpadding="1" cellspacing="1" class="border">
    <form name="ListTNews" method="post" onsubmit="return check();">
      <tr align="center" class="Title">
        <td style="height:22; width:5%">ＩＤ</td>
        <td style="width:30%"><strong>模板名称</strong></td>
        <td style="width:10%"><strong>文件夹</strong></td>
        <td style="width:10%"><strong>适用对像</strong></td>
        <td style="width:30%"><strong>备注</strong></td>
        <td style="width:15%"><strong>操作</strong></td>
      </tr>
      <%Dim i = 1 : Do While Not Rs.EOF AndAlso i <= Rs.PageSize%>
      <tr class='tdbg' onmouseout="this.className='tdbg'" onmouseover="this.className='tdbgmouseover'">
        <td align="center"><%=rs("id").Value%></td>
        <td><%=rs("T_templet").Value%></td>
        <td><div align="center"><%=rs("T_files").Value%></div></td>
        <td><div align="center"><%If (rs("T_unit").Value=3) Then%>免费及以上<%ElseIf rs("T_unit").Value=6 then%>云企及以上<%ElseIf rs("T_unit").Value=9 then%>金牌会员<%End If%></div></td>
        <td><div align="center"><%=rs("T_other").Value%></div></td>
        <td align="center"><table style="width:100%"  border="0" cellspacing="0" cellpadding="0">
            <tr align="center">
              <td style="width:57%"><a href="Member_template_edit.aspx?id=<%=rs("id").Value%>"><img src="images/A_edit_B.gif" alt="编辑" width="20" height="19" border="0" /></a></td>
              <td style="width:43%"><input type="checkbox" name="id" value="<%=rs("id").Value%>" class="box1" /></td>
          </tr>
        </table></td>
      </tr>
      <%i = i + 1 : Rs.MoveNext() : Loop%>
      <tr align="right" onmouseover="this.style.backgroundColor='#EFF8FF'" onmouseout="this.style.backgroundColor=''">
        <td style="height:29" colspan="6" class="tdbg"><input type="button" name="Submit222" value="反选" onclick="selectAllCheckBox(ListTNews.id)" />          
        <input type="button" name="Submit2" value="删除所选" onclick="WorkSubmit();" />            </td>
      </tr>
    </form>
  </table>
  <table style="height:29; width:100%"  border="0" cellpadding="5" cellspacing="0">
    <tr>
      <td><%=Pagination(rs.pagecount,IsNull(Request("page"),1),rs.recordcount,rs.pagesize)%></td>
    </tr>
  </table>
</body>
<%Page_Loaded()%>
</html>
