<%@ page language="C#" masterpagefile="~/Admin/MasterPage/Main.master" autoeventwireup="true" inherits="admin_Base_Server_var, App_Web_3csdhbx4" title="无标题页" %>
<%@ Register Src="~/Admin/Controls/CurrTool_Panel.ascx" TagName="CurrTool" TagPrefix="html" %>
<%@ Register Src="~/Admin/Controls/CurrImage_Panel.ascx" TagName="CurrImage" TagPrefix="html" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server"></asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
  <div class="divTools">
    <div class="tool-nav">
      <div class="title"> 导航栏</div>
    </div>
    <div class="clear"> </div>
    <html:CurrTool ID="CurrTool1" Title="系统变量管理" Version="120402" runat="server" />
    <html:CurrImage ID="CurrImage1" Title="管理系统变量" Tips="在这里修改您可以设定系统变量。" runat="server" />
  </div>
  <div class="clear"> </div>
  <div class="divContent">
    <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
      <ContentTemplate>
        <asp:DataGrid ID="DataGrid1" runat="server" AutoGenerateColumns="False" CssClass="table center"
                    OnEditCommand="EditData" OnUpdateCommand="UpdateData" OnCancelCommand="CancelEdit"
                    OnItemDataBound="itemDb" CellPadding="0" GridLines="None" Width="100%">
          <SelectedItemStyle CssClass="linkDown" />
          <ItemStyle CssClass="BotDas" />
          <HeaderStyle CssClass="tableTitle" />
          <Columns>
          <asp:TemplateColumn HeaderText=" " ItemStyle-Width="2px">
            <ItemTemplate> &nbsp; </ItemTemplate>
          </asp:TemplateColumn>
          <asp:BoundColumn DataField="VarCode" HeaderText="变量代号" ReadOnly="true" Visible="false" />
          <asp:BoundColumn DataField="VarName" HeaderText="变量名称" ReadOnly="true" />
          <asp:TemplateColumn HeaderText="設定值">
            <ItemTemplate>
              <asp:Literal runat="server" ID="LitVarValue" Text='<%#DataBinder.Eval(Container.DataItem,"VarValue") %>'></asp:Literal>
              <asp:TextBox runat="server" ID="txtVarValue" Visible="false"></asp:TextBox>
              <asp:DropDownList runat="server" ID="dropVarValue" Visible="false"> </asp:DropDownList>
            </ItemTemplate>
          </asp:TemplateColumn>
          <asp:BoundColumn DataField="ValueType" HeaderText="设定值类型" Visible="false" />
          <asp:BoundColumn DataField="Choose_Value" HeaderText="选项内容" Visible="false" />
          <asp:BoundColumn DataField="VarDesc" HeaderText="说明" ReadOnly="true" />
          <asp:BoundColumn DataField="Uid" HeaderText="用戶ID" Visible="false" />
          <asp:BoundColumn DataField="Var_Type" HeaderText="变量分类" Visible="false" />
          <asp:BoundColumn DataField="varSort" HeaderText="排序字段" Visible="false" />
          <asp:TemplateColumn HeaderText="参数" Visible="false">
            <ItemTemplate>
              <asp:Literal runat="server" Visible="false" ID="ValueType" Text='<%#DataBinder.Eval(Container.DataItem,"ValueType") %>'></asp:Literal>
              <asp:Literal runat="server" Visible="false" ID="Choose_Value" Text='<%#DataBinder.Eval(Container.DataItem,"Choose_Value") %>'></asp:Literal>
              <asp:Literal runat="server" Visible="false" ID="Uid" Text='<%#DataBinder.Eval(Container.DataItem,"Uid") %>'></asp:Literal>
              <asp:Literal runat="server" Visible="false" ID="VarCode" Text='<%#DataBinder.Eval(Container.DataItem,"VarCode") %>'></asp:Literal>
            </ItemTemplate>
          </asp:TemplateColumn>
          <asp:EditCommandColumn HeaderText="编辑" ItemStyle-Wrap="False" EditText="编辑" UpdateText="更新"
                            CancelText="取消" />
          <asp:TemplateColumn HeaderText=" " ItemStyle-Width="2px">
            <ItemTemplate> &nbsp; </ItemTemplate>
          </asp:TemplateColumn>
          </Columns>
        </asp:DataGrid>
      </ContentTemplate>
    </asp:UpdatePanel>
  </div>
</asp:Content>
