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

<%@ Import Namespace="D.Common" %>
<%@ Import Namespace="D.BLL" %>
<!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>

    <script src="../../js/<%=B_Lang.getLang() %>/SelectCheckBox.js" language="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">
                <asp:Repeater ID="RepUserModel" runat="server" OnItemCommand="RepUserModel_ItemCommand"
                    OnItemDataBound="RepUserModel_ItemDataBound">
                    <HeaderTemplate>
                        <tr class="title">
                            <td width="4%" class="t1">
                                选择
                            </td>
                            <td>
                                ID
                            </td>
                            <td>
                                模型名称
                            </td>
                            <td>
                                表名
                            </td>
                            <td>
                                注册默认组
                            </td>
                            <td width="8%">
                                验证码
                            </td>
                            <td width="10%">
                                编辑界面
                            </td>
                            <asp:PlaceHolder ID="PlaceHolder1" runat="server">
                                <td width="10%">
                                    扩展资料
                                </td>
                            </asp:PlaceHolder>
                            <td width="30%">
                                管理操作
                            </td>
                        </tr>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <tr class="tdMoveTr" onmouseover="this.className='tdMoveTrBg'" onmouseout="this.className='tdMoveTr'">
                            <td align="center" class="t1">
                                <asp:CheckBox ID="CheckBox1" runat="server" />
                            </td>
                            <td>
                                <asp:Literal ID="Literal1" runat="server" Text='<%#Eval("ModelId") %>'></asp:Literal>
                            </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>
                            <asp:PlaceHolder ID="PlaceHolder2" runat="server">
                             <td align="center">
                                <asp:HyperLink ID="WebEidt2" runat="server" NavigateUrl='<%# "RegHtml.aspx?ModelId="+Eval("ModelId")+"&Type=2" %>'>修改</asp:HyperLink>
                            </td>
                            </asp:PlaceHolder>
                            <td align="center">
                                <asp:HyperLink ID="WebEidt" runat="server" NavigateUrl='<%# "RegHtml.aspx?ModelId="+Eval("ModelId")+"&Type=1" %>'>后台HTML</asp:HyperLink>
                                ┊ <asp:HyperLink ID="WebUserEidt" runat="server" NavigateUrl='<%# "RegHtml.aspx?ModelId="+Eval("ModelId")+"&Type=3" %>'>前台HTML</asp:HyperLink>
                                ┊ <a href='user_<%#Eval("ModelId") %>.aspx' target="_blank">预览</a> ┊
                                <asp:LinkButton ID="LinkButton2" runat="server" CommandName="Create" CommandArgument='<%# Eval("ModelId") %>'>生成ASPX</asp:LinkButton>
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </table>
            <table cellpadding="0" cellspacing="1" class="dh2" align="center">
                <tr>
                    <td height="30">
                        <input id="checkDel" onclick="CheckDelBox(this)" type="checkbox"><span id="ShowA">选择全部</span>
                        <asp:Button ID="Button1" runat="server" Text="生成选中记录" CssClass="btn" OnClick="Button1_Click"
                            Style="margin-left: 10px"></asp:Button>
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
