<%@ Page Language="C#" AutoEventWireup="true" Inherits="System_AddStyleType, QianboCMS" EnableEventValidation="false" %>
<!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 runat="server">
<title>添加样式分类</title>
<link rel="stylesheet" href="../Css/layout.css" type="text/css" />
<script language="javascript" type="text/javascript" src="../../Js/Common.js"></script>
<script language="javascript" type="text/javascript">
function CheckValidate()
{
    if($("txtStyleTypeName").value.trim().length==0)
    {
        alert("样式名称不能为空！");
        $("txtStyleTypeName").focus();
        return false;
    }
    return true;
}
var menuHit=0;
function ShowModelList()
{
    if(menuHit==0)
    {
        modelMenuList.style.display="";
        menuHit=menuHit+1;
    }
    else
    {
        modelMenuList.style.display="none";
        menuHit=menuHit-1;
    }
}
function showMenu()
{
    modelMenuList.style.display="";
    menuHit=1;
}
</script>
</head>

<body>
<form id="form1" runat="server">
  <div>
    <table width="99%" cellspacing="1" cellpadding="0" class="wzdh" align="center">
      <tr>
        <td style="padding-left: 10px;"><img src="../Images/Skin/Default/you.gif" align="absmiddle" /> 您现在的位置：<a href="../SystemInfo.aspx">后台管理</a> &gt;&gt; <a href="../Template/CreateFolder.aspx">标签&模板管理</a> &gt;&gt; <a href="StyleManager.aspx">样式管理</a> &gt;&gt; 新增样式分类</td>
      </tr>
    </table>
    <table cellpadding="0" cellspacing="1" class="border" align="center">
      <tr class="wzlist">
        <td><span style="float: left;">
          <asp:HyperLink ID="HyperLink3" runat="server" NavigateUrl="StyleManager.aspx">样式管理首页</asp:HyperLink> | <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="AddStyleType.aspx">新增样式分类</asp:HyperLink> | <a href="#" onclick="javascript:window.history.back();">返回</a></span>
          <span style="float: right;">
          <asp:DropDownList ID="ddlRedirectPage" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlRedirectPage_SelectedIndexChanged">
            <asp:ListItem>跳转类型至…</asp:ListItem>
            <asp:ListItem Value="StyleManager.aspx">样式管理</asp:ListItem>
            <asp:ListItem Value="LabelManager.aspx">标签管理</asp:ListItem>
            <asp:ListItem Value="../Template/CreateFolder.aspx">模板管理</asp:ListItem>
          </asp:DropDownList>
          </span></td>
      </tr>
    </table>
    <table cellpadding="0" cellspacing="1" class="border" align="center">
      <tr class="wzlist">
        <td><div style="background: url(../Images/Skin/Default/sitelist.png) no-repeat; width: 100px; line-height: 26px; padding-left: 12px; font-weight: bold;"><a href="#" onclick="ShowModelList()">创建新样式</a></div></td>
      </tr>
    </table>
    <table width="99%" border="0" cellpadding="2" cellspacing="1" class="border" align="center">
      <tbody>
        <tr>
          <td class="bqleft">样式分类名称：</td>
          <td class="bqright"><asp:TextBox ID="txtStyleTypeName" runat="server" Width="40%" MaxLength="200"></asp:TextBox></td>
        </tr>
        <tr>
          <td class="bqleft">所属分类：</td>
          <td class="bqright"><asp:DropDownList ID="dropType" runat="server"></asp:DropDownList>
            <asp:Label ID="Label1" runat="server" Text="注：添加样式层级建议保持在两级以内" ForeColor="Red"></asp:Label></td>
        </tr>
        <tr>
          <td class="bqleft">说明：</td>
          <td class="bqright"><asp:TextBox ID="txtExplain" TextMode="multiLine" Rows="6" Columns="60" runat="server"></asp:TextBox></td>
        </tr>
        <tr>
          <td class="bqleft"></td>
          <td class="bqright"><asp:Button ID="btnSave" CssClass="btn" runat="server" Text="保存创建" OnClick="btnSave_Click" OnClientClick="return CheckValidate()" />
            <asp:Button ID="btnReset" CssClass="btn" runat="server" Text="重新填写" OnClick="btnReset_Click" /></td>
        </tr>
      </tbody>
    </table>
  </div>
  <div id="modelMenuList" style="display: none; position: absolute; top: 0px; margin-top: 98px; margin-left: 18px; width: 120px; padding: 0px;" onmouseout="ShowModelList()">
    <iframe src="IframeModelItem.aspx" frameborder="0" scrolling="no" width="100%" allowTransparency="true"></iframe>
  </div>
</form>
</body>
</html>