<%@ page language="C#" autoeventwireup="true" inherits="admin_other_setcreatetatal, DianCMS" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<!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 id="CssName" rel="stylesheet" type="text/css" runat="server" />

    <script src="../../js/Common.js" type="text/javascript"></script>

</head>
<body>
    <form id="form1" runat="server">
    <table class="dh" cellpadding="0" cellspacing="0" border="0" align="center">
        <tr>
            <td>
                <asp:Image ID="P_Go" runat="server" ImageAlign="AbsMiddle" />
                您现在的位置：<a href="../info.aspx">后台管理</a> >> 设置一键生成规则
            </td>
        </tr>
    </table>
    <table  class="tabs" cellpadding="0" cellspacing="0" border="0" align="center">
        <tr>
            <td id="TabTitle0" class="title6" onclick="ShowTabs(0)">
                生成规则
            </td>
            <td id="TabTitle1" class="title5" onclick="ShowTabs(1)">
                生成栏目
            </td>
            <td id="TabTitle2" class="title5" onclick="ShowTabs(2)" title="按模型生成内容页">
                生成内容页
            </td>
            <td id="TabTitle3" class="title5" onclick="ShowTabs(3)" title="按栏目生成内容页">
                按栏目生成
            </td>
            <td class="titleline">
                &nbsp;
            </td>
        </tr>
    </table>
    <table class="border" cellspacing="1" cellpadding="0" width="99%" border="0" align="center">
        <tbody id="Tabs0">
            <tr>
                <td class="bqleft">
                    生成首页：
                </td>
                <td class="bqright">
                    <asp:RadioButtonList ID="RadIndex" runat="server" RepeatDirection="Horizontal">
                        <asp:ListItem Value="True" Selected="True">是</asp:ListItem>
                        <asp:ListItem Value="False">否</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr>
                <td class="bqleft">
                    生成模型页：
                </td>
                <td class="bqright">
                    <asp:CheckBoxList ID="CheckModel" runat="server" RepeatDirection="Horizontal" RepeatColumns="5">
                    </asp:CheckBoxList>
                </td>
            </tr>
            <tr>
                <td class="bqleft">
                    生成单页：
                </td>
                <td class="bqright">
                    <asp:CheckBoxList ID="CheckSinglePage" runat="server" RepeatDirection="Horizontal"
                        RepeatColumns="5">
                    </asp:CheckBoxList>
                </td>
            </tr>
        </tbody>
        <tbody id="Tabs1" style="display: none">
            <asp:Repeater ID="RepColumn" runat="server" OnItemDataBound="RepModelColumn_ItemDataBound">
                <ItemTemplate>
                    <tr>
                        <td class="bqleft">
                            <asp:TextBox ID="txtModelId" runat="server" Text='<%#Eval("ModelId") %>' style="display:none"></asp:TextBox><%#Eval("ModelName") %>：
                        </td>
                        <td class="bqright">
                            <asp:CheckBoxList ID="CheckColumn" runat="server" RepeatColumns="5" RepeatDirection="Horizontal">
                            </asp:CheckBoxList>
                        </td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
        </tbody>
        <tbody id="Tabs2" style="display: none">
            <asp:Repeater ID="RepModelInfo" runat="server">
                <ItemTemplate>
                    <tr>
                        <td class="bqleft">
                            <asp:TextBox ID="txtModelId" runat="server" Text='<%#Eval("ModelId") %>' style="display:none"></asp:TextBox><%#Eval("ModelName") %>：
                        </td>
                        <td class="bqright">
                            生成最新：<asp:TextBox ID="txtNum" runat="server" CssClass="in1" Columns="10" Text="0"></asp:TextBox>
                            条
                        </td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
            <tr>
                <td class="bqleft">
                    提示：
                </td>
                <td class="bqright">
                    <font color="red">1、<b>按模型</b>生成内容页<br />
                        2、0为不生成 -1为生成所有</font>
                </td>
            </tr>
        </tbody>
        <tbody id="Tabs3" style="display: none">
            <asp:Repeater ID="RepColumnInfo" runat="server" OnItemDataBound="RepModelColumn_ItemDataBound">
                <ItemTemplate>
                    <tr>
                        <td class="bqleft">
                            <asp:TextBox ID="txtModelId" runat="server" Text='<%#Eval("ModelId") %>' style="display:none"></asp:TextBox><%#Eval("ModelName") %>：
                        </td>
                        <td class="bqright">
                            <table cellpadding="2" cellspacing="1" bgcolor="#cccccc">
                                <tr>
                                    <td width="150" class="bqright"><asp:CheckBoxList ID="CheckColumn" runat="server" RepeatColumns="1" RepeatDirection="Horizontal">
                            </asp:CheckBoxList></td>
                                    <td class="bqright">生成最新：<asp:TextBox ID="txtNum" runat="server" CssClass="in1" Columns="10" Text="0"></asp:TextBox>
                            条</td>
                                </tr>
                            </table>
                            
                        </td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
            <tr>
                <td class="bqleft">
                    提示：
                </td>
                <td class="bqright">
                    <font color="red">1、<b>按栏目</b>生成内容页<br />
                        2、0为不生成 -1为生成所有<br />3、必须选择至少一个栏目</font>
                </td>
            </tr>
        </tbody>
        <tr>
            <td class="bqleft">
            </td>
            <td class="bqright" height="50">
                <asp:Button ID="Button1" runat="server" Text=" 确认 " CssClass="btn radius30 pad_0_30" OnClick="Button1_Click" />
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
