<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="templatevariable.aspx.cs"
    Inherits="FangPage.Admin.templatevariable" %>

<%@ Register TagPrefix="cc1" Namespace="FangPage.Control" Assembly="FangPage.Control" %>
<%@ Register TagPrefix="cc2" Namespace="FangPage.Control" Assembly="FangPage.Control" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
    <title>模板变量管理</title>
    <link href="styles/bmsmanager.css" type="text/css" rel="stylesheet">
    <link href="styles/datagrid.css" type="text/css" rel="stylesheet">

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

</head>
<body leftmargin="5" topmargin="5" rightmargin="5" bottommargin="5">
    <form id="Form1" method="post" runat="server">
    <div class="Navbutton" style="width: 98%;">
        <table cellspacing="1" cellpadding="4" align="left">
            <tbody>
                <tr>
                    <td>
                        <button class="ManagerButton" type="button" onclick="javascript:window.location.href='templatetree.aspx?path=<%=templatepath%>';">
                                <img src="images/arrow_undo.gif" />
                                返 回</button>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
    <cc1:DataGrid ID="DataGrid1" runat="server" OnCancelCommand="DataGrid_Cancel" OnEditCommand="DataGrid_Edit"
        OnPageIndexChanged="DataGrid_PageIndexChanged" OnSortCommand="Sort_Grid" OnUpdateCommand="DataGrid_Update"
        OnDeleteCommand="DataGrid_Delete">
        <Columns>
            <asp:BoundColumn DataField="id" SortExpression="id" HeaderText="ID [递增]" Visible="false">
            </asp:BoundColumn>
            <asp:BoundColumn DataField="variablename" SortExpression="variablename" HeaderText="变量名称">
            </asp:BoundColumn>
            <asp:BoundColumn DataField="variablevalue" SortExpression="variablevalue" HeaderText="变量值">
            </asp:BoundColumn>
        </Columns>
    </cc1:DataGrid>
    <div class="ManagerForm">
        <fieldset>
            <legend style="background: url(images/icon32/fileweb.gif) no-repeat 3px; padding-left: 40px;">
                添加模板变量</legend>
            <table cellspacing="0" cellpadding="4" class="tabledatagrid" align="center">
                <tr>
                    <td class="td1" width="20%" align="right">
                        变量名称：
                    </td>
                    <td class="td1" width="30%">
                        <cc2:TextBox ID="variablename" runat="server" RequiredFieldType="暂无校验" Width="150"></cc2:TextBox>
                    </td>
                    <td class="td2" width="20%" align="right">
                        变量值：
                    </td>
                    <td class="td2" width="30%">
                        <cc2:TextBox ID="variablevalue" runat="server" RequiredFieldType="暂无校验" Width="150"></cc2:TextBox>
                    </td>
                </tr>
                <tr>
                    <td colspan="4" align="center">
                        <cc1:Button ID="AddNewRec" runat="server" Text=" 提 交 "></cc1:Button>
                    </td>
                </tr>
            </table>
        </fieldset>
    </div>
    </form>
</body>
</html>
