<%@ Page Language="C#" AutoEventWireup="true" Inherits="System_Label_StyleSearch, QianboCMS" EnableEventValidation="false" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!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 type="text/javascript" src="../../Js/XmlHttp.js"></script>
    <script type="text/javascript" src="../../Js/Common.js"></script>
    <script language="javascript" type="text/javascript">
        var obj;
        function ViewStyle(val) {
            var data = "";
            data = XmlHttpGetMethodText("GetStyleContent.aspx?styleId=" + val.replace("tb_", ""));
            if (eval(val).style.display == "none") {
                $(val).style.display = "";
                $(val).cells[0].innerHTML = data;
            }
            else {
                $(val).style.display = "none";
                $(val).cells[0].innerHTML = "";
            }
        }
        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">
        <table 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="../Label/LabelManager.aspx">标签管理</a> &gt;&gt; 搜索样式
				</td>
            </tr>
        </table>
        <table cellpadding="0" cellspacing="1" class="border" align="center">
            <tr>
                <td class="wzlist">
					<span style="float: left;">
						<asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl="LabelManager.aspx">标签管理首页</asp:HyperLink> | <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="SetLabelCategory.aspx">新增标签分类</asp:HyperLink> | <asp:HyperLink ID="HyperLink3" runat="server" NavigateUrl="SetLabelContent.aspx">创建新标签</asp:HyperLink> | <asp:HyperLink ID="HyperLink4" runat="server" NavigateUrl="AnomalyContent.aspx">创建不规则标签</asp:HyperLink> | <a href="SuperLabelList.aspx" style="color: red">超级标签</a> | <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="title">
                <td width="60px">样式编号</td>
                <td>样式名称</td>
                <td width="180px">所属模块</td>
                <td width="90px">操作</td>
            </tr>
            <asp:Repeater ID="repLabelContent" runat="server" OnItemCommand="repLabelContent_ItemCommand">
                <ItemTemplate>
                    <tr class="tdbg" onmouseover="this.className='tdbgmouseover'" onmouseout="this.className='tdbg'">
                        <td class="mouseStyle"><asp:Label ID="lbStyleId" runat="server" Text='<%# Eval("StyleID")%>'></asp:Label></td>
                        <td class="mouseStyle" align="left" style="padding-left: 5px;"><a href="javascript:ViewStyle('tb_<%# Eval("StyleID")%>')"><%#Eval("Name") %></a></td>
                        <td class="mouseStyle"><%# Get_Model_Name(Eval("Type"))%></td>
                        <td><a href="SetStyle.aspx?StyleId=<%# Eval("StyleID")%>&modelId=<%# Eval("Type") %>">修改</a> | <asp:LinkButton ID="linkbtnDelete" runat="server" CommandName="Delete" OnClientClick="return confirm('是否确定删除？');">删除</asp:LinkButton></td>
                    </tr>
                    <tr style="display: none;" id="tb_<%# Eval("StyleID")%>">
                        <td colspan="4" align="left" style="padding: 10px; background-color: #f7f7f7;"></td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
            <tr class="tdbg">
                <td colspan="4">
                    <webdiyer:AspNetPager ID="AspNetPager1" runat="server" AlwaysShow="True" FirstPageText="首页" LastPageText="尾页" NextPageText="下一页" PageSize="20" HorizontalAlign="Right" PrevPageText="上一页" ShowInputBox="Never" UrlPageIndexName="" ShowCustomInfoSection="Left" Width="99%" OnPageChanging="AspNetPager1_PageChanging" LayoutType="Table" CustomInfoSectionWidth="10%"></webdiyer:AspNetPager>
				</td>
            </tr>
        </table>
    </form>
    <br />
</body>
</html>