<%@ Page Language="C#" AutoEventWireup="true" Inherits="System_UserGroupModel_UserGroupModelFieldList, QianboCMS" EnableEventValidation="false" %>
<%@ Import Namespace="Qianbo.BLL.CommonModel" %>
<%@ Import Namespace="Qianbo.Common" %>
<!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>
    <link href="../Css/layout.css" type="text/css" rel="stylesheet" />
</head>

<body>
    <table cellspacing="1" cellpadding="0" class="wzdh" align="center">
        <tr>
            <td style="padding-left: 10px;">
                <img src="../Images/Skin/Default/you.gif" align="absmiddle" />
                您现在的位置：<a href="../SystemInfo.aspx">后台管理</a> &gt;&gt; <a href="UserGroupModelList.aspx">用户注册模型列表</a> &gt;&gt; 字段列表
			</td>
        </tr>
    </table>
    <table cellspacing="1" cellpadding="0" class="border" align="center">
        <tr class="wzlist">
            <td style="padding-left: 10px;">当前用户注册模型：[<asp:Label ID="ModelName" runat="server" Text="Label"></asp:Label>] <a href="UserGroupModelField.aspx?ModelId=<%=Request.QueryString["ModelId"] %>">添加字段</a> | <a href="UserGroupModelPreView.aspx?ModelId=<%=Request.QueryString["ModelId"] %>">用户注册模型预览</a> | <a href="ModeldFieldHtml.aspx?ModelId=<%=Request.QueryString["ModelId"] %>">生成静态Html代码</a></td>
        </tr>
    </table>
    <form id="form1" runat="server">
        <table align="center" class="border" cellspacing="1" cellpadding="0">
            <tr class="title">
                <td width="180px">字段名</td>
                <td>字段别名</td>
                <td width="180px">字段类型</td>
                <td width="120px">字段级别</td>
                <td width="60px">是否必填</td>
                <td width="90px">排序</td>
                <td width="90px">管理操作</td>
            </tr>
            <asp:Repeater ID="RepSystemModel" runat="server">
                <ItemTemplate>
                    <tr class="tdbg" onmouseover="this.className='tdbgmouseover'" onmouseout="this.className='tdbg'">
                        <td><%#Eval("Name")%></td>
                        <td><%#Eval("Alias")%></td>
                        <td><%# Eval("Type","{0}")%></td>
                        <td><font color="#339900">系统</font></td>
                        <td><%#Eval("IsNotNull")%></td>
                        <td></td>
                        <td></td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
            <asp:Repeater ID="RepUserGroupModelField" runat="server" OnItemCommand="RepUserGroupModelField_ItemCommand">
                <ItemTemplate>
                    <tr class="tdbg" onmouseover="this.className='tdbgmouseover'" onmouseout="this.className='tdbg'">
                        <td><%#Eval("Name")%></td>
                        <td><%#Eval("Alias")%></td>
                        <td><%# B_ModelField.GetFieldType(Eval("Type","{0}"))%></td>
                        <td>自定义</td>
                        <td><%# Function.GetStyleTrue(Eval("IsNotNull","{0}"))%></td>
                        <td><asp:LinkButton ID="LinkButton2" runat="server" CommandName="UpMove" CommandArgument='<%# Eval("FieldId") %>'>上移</asp:LinkButton> | <asp:LinkButton ID="LinkButton3" runat="server" CommandName="DownMove" CommandArgument='<%# Eval("FieldId") %>'>下移</asp:LinkButton></td>
                        <td><a href="UserGroupModelField.aspx?FieldId=<%# Eval("FieldId") %>&ModelId=<%# Eval("ModelId") %>">修改</a> | <asp:LinkButton ID="LinkButton1" runat="server" CommandName="Delete" CommandArgument='<%# Eval("FieldId") %>' OnClientClick="return confirm('是否确定删除此字段？')">删除</asp:LinkButton></td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
		</table>
    </form>
</body>
</html>