<%@ Page Language="VB" ContentType="text/html" ResponseEncoding="gb2312" Inherits="b2bNet.Admin_Classad_type" %>
<%On Error Resume Next%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link href="inc/admin_style.css" rel="stylesheet" type="text/css" /><link href="inc/style.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta name="GENERATOR" content="Microsoft FrontPage 4.0" />
<meta name="ProgId" content="FrontPage.Editor.Document" />
<title>分类管理</title>
</head>

<body>
 <table style="height:22; width:100%" border="0" cellpadding="0" cellspacing="1">
      <tr class="topbg">
        <td style="height:22" 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="classad_add.aspx">添加分类信息 </a>  | 

 
          <a href="Classad_list.aspx">管理分类信息 </a>  | 

 
          <a href="Classad_shouye.aspx">首页分类信息</a>  | 

 
          <a href="Classad_fufeiad.aspx">付费分类信息</a>  | 

 
          <a href="Classad_gudingad.aspx">固顶分类信息</a>  | 

 
          <a href="Classad_hotad.aspx">热点分类信息</a>  | 

 
          <a href="Classad_type.aspx">分类管理</a></td>
          <td style="width:180"><table style="width:100%"  border="0" cellspacing="0" cellpadding="0">
            <tr><form action="" method="post" name="search">
              <td>关键字
              </td>
              <td><div align="center">
      <input  maxlength="20" name="keyword" onfocus="this.value=''" size="12"  value="<%=Request("keyword")%>" /> 
              </div></td>
              <td><input  type="submit" value="搜索" style="font-size: 12px" name="search" /></td>
            </form></tr>
          </table></td>
        </tr>
      </table>

<table style="width:100%" border="0" align="center" cellpadding="1" cellspacing="1" class="border">
        <tr style="height:20" align="center" class="Title"> 
          <td style="width:30">ID</td>
          <td>分类名称</td>
          <td>显示顺序</td>
          <td>首页显示</td>
          <td>首页配色</td>
          <td>管理操作</td>
  </tr>
        <%If Rs.EOF Then%><tr bgcolor=#FFFFFF><td colspan='6'><p align='center'><font color='red'>暂无分类！</font></td></tr></table><br><%End If%>
        <%Dim i = 0 : Do While Not RS.EOF AndAlso i < Rs.PageSize%>
        <form name="form1" method="post" action="Classad_type.aspx?action=edit&id=<%=int(rs("id").Value)%>">
          <tr class='tdbg' onmouseout="this.className='tdbg'" onmouseover="this.className='tdbgmouseover'">
		  <td><div align="center"><%=trim(rs("id").Value)%></div></td>
		  
            <td><div align="center">
              <input name="name" type="text" size="12" value="<%=trim(rs("name").Value)%>" />
            </div></td>
            <td><div align="center">
              <input name="indexid" type="text" size="2" value="<%=trim(rs("indexid").Value)%>" />
            </div></td>
            <td><div align="center">
              <select name="indexshow">
                <option value="yes" <%If (rs("indexshow").Value="yes") Then%>selected<%End If%>>显示</option>
                <option value="no" <%If (rs("indexshow").Value="no") Then%>selected<%End If%>>隐藏</option>
              </select>
            </div></td>
            <td><div align="center">
              <select name="colorshow">
                <option value="1" <%If (rs("trcolor").Value="#ffe8e8") Then%>selected<%End If%> style="COLOR:#990000;BACKGROUND-COLOR:#ffe8e8;">配色1</option>
                <option value="2" <%If (rs("trcolor").Value="#f7ffe1") Then%>selected<%End If%> style="COLOR:#009900;BACKGROUND-COLOR:#f7ffe1;">配色2</option>
                <option value="3" <%If (rs("trcolor").Value="#e6faff") Then%>selected<%End If%> style="COLOR:#0066cc;BACKGROUND-COLOR:#e6faff;">配色3</option>
                <option value="4" <%If (rs("trcolor").Value="#ffe1fb") Then%>selected<%End If%> style="COLOR:#cc33cc;BACKGROUND-COLOR:#ffe1fb;">配色4</option>
              </select>
            </div></td>
            <td><div align="center">
              <input type="submit" name="Submit" value="修 改" />
                &nbsp; 
                <input type="button" name="DEL" onclick="{if(confirm('确定要删除这个分类吗？\n将删除此分类下所有信息\n此操作不可以恢复！')){location.href='?name=<%=rs("name").Value%>&action=del';}return false;}" value="删除" />
            </div></td>
          </tr>
        </form>
        <%rs.MoveNext(): loop %>
</table>
<br>
<table style="width:100%" border="0" align="center" cellpadding="1" cellspacing="1" class="border">
        <tr style="height:20" align="center" class="Title"> 
          <td style="width:30">ID</td>
          <td>分类名称</td>
          <td>显示顺序</td>
          <td>首页显示</td>
          <td>首页配色</td>
          <td>确定操作</td>
  </tr>
        <form name="form1" method="post" action="Classad_type.aspx?action=add">
          <tr align="center" class="tdbg"> 
            <td><%=rs.RecordCount+1%></td>
	        <td><input name="name" type="text" id="name" size="12" /></td>
	        <td><input name="indexid" type="text" size="2" /></td>
	        <td><select name="indexshow">
                <option value="yes" selected="selected">显示</option>
                <option value="no">隐藏</option>
            </select></td>
	        <td><select name="colorshow">
                <option value="1" selected="selected" style="COLOR:#990000;BACKGROUND-COLOR:#ffe8e8;">配色1</option>
                <option value="2" style="COLOR:#009900;BACKGROUND-COLOR:#f7ffe1;">配色2</option>
                <option value="3" style="COLOR:#0066cc;BACKGROUND-COLOR:#e6faff;">配色3</option>
                <option value="4" style="COLOR:#cc33cc;BACKGROUND-COLOR:#ffe1fb;">配色4</option>
            </select></td>
	        <td><input type="submit" name="Submit3" value="添 加" /></td>
          </tr>
        </form>
</table>
</body>
<%Page_Loaded()%>
</html>  