模版表增加ParentID字段,改为树形结构
Stone authored at 2011-11-17 01:18:42
1.72 KiB
X
<%@ Page Title="模版管理" Language="C#" MasterPageFile="~/Admin/ManagerPage.master" AutoEventWireup="true"
    CodeFile="TemplateForm.aspx.cs" Inherits="Common_TemplateForm" %>

<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="C">
    <table border="0" class="m_table" cellspacing="1" cellpadding="0" align="Center">
        <tr>
            <th colspan="2">
                模版
            </th>
        </tr>
        <tr>
            <td align="right">
                名称:
            </td>
            <td>
                <asp:TextBox ID="frmName" runat="server" Width="150px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td width="25%" align="right">
                上级:
            </td>
            <td width="65%">
                <XCL:DropDownList ID="frmParentID" runat="server" DataTextField="Title" DataValueField="ID"
                    AppendDataBoundItems="True">
                </XCL:DropDownList>
            </td>
        </tr>
        <tr>
            <td align="right">
                备注:
            </td>
            <td>
                <asp:TextBox ID="frmRemark" runat="server" TextMode="MultiLine" Width="300px" Height="80px"></asp:TextBox>
            </td>
        </tr>
    </table>
    <table border="0" align="Center" width="100%">
        <tr>
            <td align="center">
                <asp:Button ID="btnSave" runat="server" CausesValidation="True" Text='保存' />
                &nbsp;<asp:Button ID="btnReturn" runat="server" OnClientClick="parent.Dialog.CloseSelfDialog(frameElement);return false;"
                    Text="返回" />
            </td>
        </tr>
    </table>
</asp:Content>