<%@ page language="VB" autoeventwireup="false" inherits="parrot_admin_bbs_lei, App_Web_admin_bbs_lei.aspx.25f04327" %>
<!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>
<title>论坛分类</title>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<link href="css/css.css" rel="stylesheet" type="text/css" />
<link href="css/body.css" rel="stylesheet" type="text/css" />
<link href="css/text.css" rel="stylesheet" type="text/css" />
<link href="css/button.css" rel="stylesheet" type="text/css" />
<script src="js/intjs.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript">
function Getcolor(img_val,input_val){
	var arr = showModalDialog("selcolor.aspx?action=title", "", "dialogWidth:440px; dialogHeight:267px; status:0; help:0");
	if (arr != null){
		document.getElementById(input_val).value = arr;
		img_val.style.backgroundColor = arr;
		}
}

  function img_mappath(img_val, input_val) {
        var arr = showModalDialog("admin_select_img.aspx?&temp="+ Math.random , "", "dialogWidth:963px; dialogHeight:600px; status:0; help:0");
        if (arr != null) {
            document.getElementById(input_val).value = arr;
        }
    }
    document.oncontextmenu = new Function('event.returnValue=false;'); 
	</script> 
</head>
<body>
<form id="form1" runat="server">
<table width="100%" border="0" cellspacing="3" cellpadding="0">
  <tr>
    <td><table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td bgcolor="#E7E7E7"><table width="100%" border="0" cellspacing="1" cellpadding="0">
            <tr>
              <td bgcolor="#FFFFFF"><table width="100%" height="29" border="0" cellpadding="0" cellspacing="5">
                  <tr>
                    <td height="19" bgcolor="#EBEBEB"><table width="100%" border="0" cellspacing="8" cellpadding="0">
                        <tr>
                          <td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="3" cellpadding="0">
                              <tr>
                                <td width="15%" height="25" align="center" class="wuse16"><strong class="16huise">管理中心</strong></td>
                                <td width="76%" valign="bottom" class="huise12">论坛分类管理 </td>
                                <td width="9%" valign="bottom" class="huise12">&nbsp;</td>
                              </tr>
                          </table></td>
                        </tr>
                    </table></td>
                  </tr>
              </table></td>
            </tr>
            
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
<fieldset style="margin:10px 5px 5px 5px; padding:0px 5px 5px 5px;"><legend class="wuse12"><strong>添加新分类</strong></legend>
<table width="100%" border="1" cellpadding="0" cellspacing="1" bordercolor="#E7E7E7" style="margin-top:5px;">
  <tr>
    <td width="17%" height="30" align="center" bgcolor="#F6F6F6" class="wuse12">分类名称：</td>
    <td height="30"><table border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><asp:TextBox ID="bbs_lei_name" runat="server" 
                                        CssClass="text_autox22_cccccc" Width="200px" onfocus="javascript:textbox_js('user_uid_div')"  MaxLength="12"></asp:TextBox>
              <asp:TextBox ID="bbs_lei_color" runat="server" style="width:1px;visibility: hidden;">#000000</asp:TextBox></td>
        <td><img border="0" src="image/Rect.gif" style="cursor:pointer;background:<%=bbs_lei_color.Text%>" onclick="Getcolor(this,'bbs_lei_color');" title="选取标题颜色"  align="absmiddle" /></td>
        <td width="15" align="right" class="hongse12">*</td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="30" align="center" bgcolor="#F6F6F6" class="wuse12">主题类别：</td>
    <td height="30"><table border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><asp:TextBox ID="bbs_lei_catgory" runat="server" 
                                        CssClass="text_autox22_cccccc" Width="300px" MaxLength="255"></asp:TextBox></td>
        <td><span class="hongse12">&nbsp; 多个类别用（|）竖线区分，如：出售|收购</span></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="30" align="center" bgcolor="#F6F6F6" class="wuse12">版主名称：</td>
    <td height="30"><table border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><asp:TextBox ID="bbs_lei_manage" runat="server" 
                                        CssClass="text_autox22_cccccc" Width="300px" MaxLength="255"></asp:TextBox></td>
        <td><span class="hongse12">&nbsp; 多个管理员用（|）竖线区分，如：管理员A|管理员B</span></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="30" align="center" bgcolor="#F6F6F6" class="wuse12">板块排序：</td>
    <td height="30"><table border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><asp:TextBox ID="bbs_lei_px" runat="server" 
                                        CssClass="text_autox22_cccccc" Width="50px" onkeydown="intjs()" MaxLength="10">0</asp:TextBox></td>
        <td width="75" align="right" class="wuse12">发帖间隔：</td>
        <td><asp:TextBox ID="bbs_lei_time" runat="server" 
                                        CssClass="text_autox22_cccccc" Width="50px" onkeydown="intjs()" MaxLength="10">5</asp:TextBox></td>
        <td class="hongse12"> 　同一IP发帖间隔时间，防灌水以分为单位</td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="30" align="center" bgcolor="#F6F6F6" class="wuse12">图标路径：</td>
    <td height="30"><asp:TextBox ID="bbs_lei_img" runat="server" CssClass="text_autox22_cccccc" 
                                                        Width="450px" MaxLength="255"></asp:TextBox>
      <a href="javascript:img_mappath(this,'bbs_lei_img');" class="wuse12"> 打开图象库</a></td>
  </tr>
  <tr>
    <td height="30" align="center" bgcolor="#F6F6F6" class="wuse12">&nbsp;</td>
    <td height="30"><table border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="100"><span class="hongse12">
          <asp:Button ID="bbs_lei_ok" runat="server" CssClass="btn_2k3" Text="新增分类" 
                                                                height="26px"/>
          <asp:Button ID="bbs_lei_up" runat="server" CssClass="btn_2k3" Text="保存修改" 
                                                                height="26px" Visible="False"/>
        </span></td>
        <td><span class="hongse12">
          <asp:Label ID="bbs_lei_ts" runat="server" Text='* 分类名称与图标路径为必填项，分类名称不能使用特殊符号！ '></asp:Label>
        </span></td>
      </tr>
    </table></td>
  </tr>
</table>
</fieldset>
                                    <fieldset style="margin:10px 5px 5px 5px; padding:0px 5px 5px 5px;"><legend class="wuse12"><strong>已建立的分类项</strong></legend>
 <table width="100%" border="0" cellpadding="0" cellspacing="3" style="margin-top:5px;">
<asp:Repeater ID="bbs_lei_repeater" runat="server">
                                                     <ItemTemplate>
                                                      
                                                         <tr>
                                                           <td width="3%" height="25" align="center"><img src="image/gif-0900_2.gif" width="12" height="17" /></td>
                                                           <td width="53%" class="wuse12"><%# Eval("bbs_lei_name")%>&nbsp; &nbsp; -&nbsp; &nbsp; <%# Eval("bbs_lei_catgory")%></td>
                                                           <td width="14%" align="center" class="wuse12"><a href="?bbs_lei_id=<%#eval("bbs_lei_id")%>">修改</a>　|　<a href="?delete_bbs_lei=delete&amp;delete_bbs_lei_id=<%#eval("bbs_lei_id")%>" onclick="javascrip:return confirm('你确认要删除此分类吗？删除此分类隶属该分类的帖子都会被删除！');">删除</a> </td>
                                                         </tr>
                                                         <tr>
                                                           <td colspan="4" bgcolor="#CCCCCC"><img src="image/bj/gli.gif" width="22" height="1" /></td>
                                                         </tr>
                                                      
                                                     </ItemTemplate>
                                                   </asp:Repeater>
                                             </table>
  </fieldset>

    </form>
</body>
</html>