<%@ page language="C#" autoeventwireup="true" inherits="admin_user_UserModelList, DianCMS" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<!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 id="CssName" rel="stylesheet" type="text/css" runat="server" />

    <script src="../../js/Common.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <table class="dh" cellpadding="0" cellspacing="0" border="0" align="center">
        <tr>
            <td>
                <asp:Image ID="P_Go" runat="server" ImageAlign="AbsMiddle" />
                您现在的位置：<a href="../info.aspx">后台管理</a> >> 用户管理 >> 注册模型列表
            </td>
        </tr>
    </table>
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table align="center" cellpadding="2" cellspacing="1" width="99%" class="border">
                <tr class="title">
                    <td class="t1">ID
                    </td>
                    <td>模型名称
                    </td>
                    <td>表名
                    </td>
                    <td>注册默认组
                    </td>
                    <td width="10%">验证码</td>
                    <td width="10%">编辑录入界面</td>
                    <td width="28%">管理操作</td>
                </tr>
                <asp:Repeater ID="RepUserModel" runat="server" 
                    onitemcommand="RepUserModel_ItemCommand">
                    <ItemTemplate>
                        <tr class="tdMoveTr" onmouseover="this.className='tdMoveTrBg'" onmouseout="this.className='tdMoveTr'">
                            <td class="t1"><%#Eval("ModelId")%>
                            </td>
                            <td><%#Eval("ModelName")%>
                            </td>
                            <td align="center"><%#Eval("TableName")%></td>
                            <td align="center"><%#GetUserGroupName(Eval("UserGroupId","{0}"))%></td>
                            <td align="center"><%# D.Common.Function.GetStyleTrue(Eval("IsValidate", "{0}"))%></td>
                            <td align="center"><%# D.Common.Function.GetStyleTrue(Eval("IsHtml", "{0}"))%></td>
                            <td align="center"><a href="SetUserModel.aspx?ModelId=<%#Eval("ModelId") %>">修改</a> ┊ <a href='../field/FieldList.aspx?TableName=<%#Eval("TableName") %>'>字段列表</a> ┊ <a href='../field/SetField.aspx?TableName=<%#Eval("TableName") %>'>添加字段</a> ┊ <asp:LinkButton ID="lnkDelete" runat="server" Text="删除" CommandName="delete" CommandArgument='<%#Eval("ModelId") %>' OnClientClick="return confirm('您确定要移除该条记录吗?')"></asp:LinkButton></td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
