<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Field_Manage.aspx.cs" Inherits="TopWinCMS.WebUI.Admin.Field.Field_Manage" %>

<%@ Register Assembly="TopWinCMS.WebControls" Namespace="TopWinCMS.WebControls" TagPrefix="cc1" %>
<%@ Register Src="../UC_AjaxLoading.ascx" TagName="UC_AjaxLoading" TagPrefix="uc1" %>
<!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 runat="server">
    <title>字段管理</title>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
    <meta content="no-cache" http-equiv="Pragma" />

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

    <link href="../Style.css" rel="stylesheet" type="text/css" />

    <script language="javascript" src="../../Images/skysoft.js" type="text/javascript"></script>

</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdateProgress ID="UpdateProgress1" runat="server">
        <ProgressTemplate>
            <uc1:UC_AjaxLoading ID="UC_AjaxLoading1" runat="server" />
        </ProgressTemplate>
    </asp:UpdateProgress>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table cellspacing="0" cellpadding="4" width="100%" border="0" id="NavigationPath">
                <tr>
                    <td style="width: auto">
                        <img src="../../Images/arrow.gif" alt="" />
                        您现在的位置：&nbsp;
                        <asp:Label ID="LB_Path" runat="server"></asp:Label>
                    </td>
                    <td style="width: auto">
                        <a href="Field_Add.aspx?ModelID=<%=Request["ModelID"] %>">添加字段</a>
                    </td>
                </tr>
            </table>
            <asp:GridView ID="GV_List" runat="server" AutoGenerateColumns="False" 
                DataKeyNames="ID" onrowdatabound="GV_List_RowDataBound" 
                onrowdeleting="GV_List_RowDeleting">
                <Columns>
                  
                    
                    
                    <asp:HyperLinkField DataNavigateUrlFields="ID,ModelID" DataTextField="FieldName" 
                        HeaderText="字段名称" DataNavigateUrlFormatString="Field_Add.aspx?ModelID={1}&ID={0}" ><HeaderStyle Width="120px" />
                        <ItemStyle CssClass="NR" />
                     </asp:HyperLinkField>
                    
                    <asp:BoundField DataField="Title" HeaderText="字段标题">
                        <HeaderStyle Width="120px" />
                        <ItemStyle CssClass="NR"></ItemStyle>
                    </asp:BoundField>
                    <asp:BoundField DataField="ModelName" HeaderText="所属模型">
                        <HeaderStyle Width="80px" />
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="FieldType" HeaderText="字段类型">
                    <HeaderStyle Width="100px" />
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="MaxFieldLength" HeaderText="字段宽度" HtmlEncode="False">
                    <HeaderStyle Width="60px" />
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="DefaultValue" HeaderText="默认值" />
                    <asp:CommandField ShowDeleteButton="True" >
                    
                    
                    <HeaderStyle HorizontalAlign="Center" Width="40px" /> 
                     <ItemStyle HorizontalAlign="Center" />
                    </asp:CommandField>
                    
                    
                </Columns>
                <HeaderStyle CssClass="HeaderStyle" />
            </asp:GridView>
            <div class="pagefield">
                <cc1:PageNavigation ID="PageNavigation1" runat="server" OnPageChanging="PageNavigation1_PageChanging">
                </cc1:PageNavigation>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
