<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="sitesetting.aspx.cs" Inherits="QiZhanBang.Web.backend.sitesetting" ValidateRequest="false" %>
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>网站配置管理</title>
<link href="images/style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
body { padding:10px }
-->
</style>
</head>
<body>
<form id="Form1" runat="server">
<h3 class="boxtitle">后台管理 &gt;&gt; 网站配置管理</h3>
<table height="0" border="0" cellpadding="0" cellspacing="0" class="tabBgColor">
<tr align="center">
  <td height="25">配置信息莫随意删除</td>
</tr>
</table>
<asp:DataGrid runat="server" ID="dgSiteSetting" AutoGenerateColumns="false" 
 HorizontalAlign="Center" CssClass="boxtd" FooterStyle-HorizontalAlign="Center" FooterStyle-Height="33"
            UseAccessibleHeader="true" ShowFooter="true" ShowHeader="true" 
            DataKeyField="settingid" 
        oncancelcommand="dgSiteSetting_CancelCommand" 
        oneditcommand="dgSiteSetting_EditCommand" 
        onitemcommand="dgSiteSetting_ItemCommand" 
        onitemcreated="dgSiteSetting_ItemCreated" 
        onupdatecommand="dgSiteSetting_UpdateCommand">
     <Columns>
        <asp:TemplateColumn HeaderText="ID" ItemStyle-Height="33" ItemStyle-HorizontalAlign="Center">
           <ItemTemplate>
              <%# DataBinder.Eval(Container.DataItem, "settingid")%>
           </ItemTemplate>
        </asp:TemplateColumn>
        <asp:TemplateColumn HeaderText="编号" ItemStyle-Height="33" ItemStyle-HorizontalAlign="Center">
           <ItemTemplate>
              <%# DataBinder.Eval(Container.DataItem, "settingkey")%>
           </ItemTemplate>
           <FooterTemplate>
              <asp:TextBox CssClass="input" runat="server" ID="txtaddsettingkey" Width="200" />(唯一，不可修改)
           </FooterTemplate>
        </asp:TemplateColumn>
        <asp:TemplateColumn HeaderText="内容" ItemStyle-Height="33" ItemStyle-HorizontalAlign="Center">
           <ItemTemplate>
              <%# Server.HtmlEncode( DataBinder.Eval(Container.DataItem, "settingvalue").ToString() )%>
           </ItemTemplate>
           <EditItemTemplate>
              <asp:TextBox CssClass="input" runat="server" ID="txteditsettingvalue" Width="300" Text='<%# DataBinder.Eval(Container.DataItem, "settingvalue")%>' TextMode="MultiLine" Rows="3" Height="50"  />
           </EditItemTemplate>
           <FooterTemplate>
              <asp:TextBox CssClass="input" runat="server" ID="txtaddsettingvalue" Width="300" Text="" TextMode="MultiLine" Rows="3" Height="50"  />
           </FooterTemplate>
        </asp:TemplateColumn>
        <asp:EditCommandColumn CancelText="取消" EditText="编辑" UpdateText="保存" HeaderText="编辑" ItemStyle-HorizontalAlign="Center"  />
        <asp:TemplateColumn HeaderText="操作" ItemStyle-HorizontalAlign="Center">
             <ItemTemplate>
                <asp:LinkButton runat="server" ID="lnkDelete" CommandArgument="DeleteInfo" Text="删除" />
             </ItemTemplate>
             <FooterTemplate>
                <asp:LinkButton runat="server" ID="lnkAdd" CommandArgument="AddInfo" Text="添加" />
             </FooterTemplate>
          </asp:TemplateColumn>
     </Columns>
  </asp:DataGrid>
</form>
</body>
</html>
