<%@ page language="C#" autoeventwireup="true" inherits="Admin_Block_Edit, App_Web_ahimsrpm" %>

<html>
<head id="Head1" runat="server">
    <title>页面模块编辑</title>
    <link type="text/css" href="css/style.css" rel="stylesheet" />
    <link type="text/css" href="../css/Admin.css" rel="stylesheet" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <div class="tips">
                对已经定义好的模块就行修改
            </div>
            <div class="tips">
                请务必遵照规定的格式自定义模块
            </div>
            <div class="tips">
                <span style="color:Red; font-weight:bolder;">请务必从上到下依次设置</span>
            </div>
    <table>
                <thead>
                    <tr>
                        <td colspan="2">
                            页面模块编辑
                        </td>
                    </tr>
                </thead>
                <tbody>
                   <tr>
                        <td style="width: 15%;text-align: left">
                            &nbsp;模块名</td>
                        <td style="width: 85%; text-align: left">
                            <Ws:TextBox ID="txt_blockName" runat="server" Width="50%" ValidNull="False" ValidType="Str"></Ws:TextBox></td>
                    </tr>
                    <tr>
                        <td style="width: 15%;text-align: left">
                            &nbsp;选择数据表</td>
                        <td style="width: 700px; text-align: left;">
                            <asp:DropDownList ID="ddl_tbname" runat="server" AutoPostBack="True" Width="15%" OnSelectedIndexChanged="ddl_tbname_SelectedIndexChanged">
                            </asp:DropDownList></td>
                    </tr>
                    <tr>
                        <td style="width: 15%;text-align: left">
                            &nbsp;选择字段</td>
                        <td style="width: 700px; text-align: left">
                            <asp:CheckBoxList ID="Ckl_Cname" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow" Width="100%">
                            </asp:CheckBoxList></td>
                    </tr>
                    <tr>
                        <td style="width: 15%;text-align: left">
                            &nbsp;列表排序依据</td>
                        <td style="width: 700px; text-align: left">
                            <asp:DropDownList ID="ddl_sort" runat="server" Width="15%">
                            </asp:DropDownList>&nbsp;<asp:DropDownList ID="ddl_desc" runat="server">
                                <asp:ListItem Value="asc">正序</asp:ListItem>
                                <asp:ListItem Value="desc">倒序</asp:ListItem>
                            </asp:DropDownList></td>
                    </tr>
                    <tr>
                        <td style="width: 15%;text-align: left">
                            &nbsp;列表的条数</td>
                        <td style="width: 700px; text-align: left">
                            <Ws:TextBox ID="txt_count" runat="server" ValidType="Int" Width="50%"></Ws:TextBox></td>
                    </tr>
                    <tr>
                        <td style="width: 15%;text-align: left">
                            &nbsp;where 语句</td>
                        <td style="width: 700px; text-align: left">
                            <Ws:TextBox ID="txt_where" runat="server" ValidType="No" Width="50%"></Ws:TextBox>(例如:
                            where id=1,可以不填)</td>
                    </tr>
                    <tr>
                        <td style="width: 15%;text-align: left">
                            &nbsp;缓存时间</td>
                        <td style="width: 700px; text-align: left">
                            <Ws:TextBox ID="txt_TimeOut" runat="server" Width="50%" ValidType="Int" ValidNull="False"></Ws:TextBox>(单位为分，只写数字)</td>
                    </tr>
                    <tr>
                        <td colspan="2" align="center" valign="middle">
                            <Ws:Button ID="btn_Preview" runat="server" Styles="WebButton" Text=" 预 览 " Type="Wait" Format-Value="正在处理，请稍候..." OnClick="btn_Preview_Click" /></td>
                    </tr>
                    <tr>
                        <td style="width: 100px">
                            &nbsp;设置列表行样式</td>
                        <td style="width: 700px; text-align: left">
                            <Ws:TextBox ID="txt_css" runat="server" Width="70%" ValidType="No" TextMode="MultiLine" Rows="10"></Ws:TextBox><br /><span style="color:Red">[网页扩展名]标签必须使用</span></td>
                    </tr>
                    <tr><td colspan="2" align="center" valign="middle">
                        <Ws:Button ID="btn_Save" runat="server" Styles="WebButton" Type="Wait" Format-Value="正在处理，请稍候..."
                                OnClick="btn_Save_Click" />&nbsp;
                                <Ws:Button ID="btn_return" runat="server" Text=" 返  回 " Type="OkChangUrlOrCancel" Format-Value="返回后，您未保存的信息将丢失，<br />确定要返回吗？" Format-SrcOk="Admin_BlockList.aspx" CausesValidation="False" UseSubmitBehavior="False" /></td>
                    </tr>
                </tbody>
            </table>
        <br />
        <asp:Label ID="lab_ziduan" runat="server" Visible="False"></asp:Label></div>
    </form>
</body>
</html>