<%@ Page CodeFileBaseClass="IlgharCMS.Lib.SystemModule.Privilege.List" %>
<table border="0" cellpadding="4" cellspacing="1">
    <thead>
        <tr>
            <th>对象</th>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
        <ilghar:List ID="ObjectTableID" Object="Module.Object" Source="ObjectTable">
            <ilghar:Record>
                <tr id="Row<%=InnerID%>" ItemID="<%=InnerID%>">
                    <td style="white-space:nowrap">
                        <input type="checkbox" name="ObjectID" id="Ob<%=InnerID%>" /><label for="Ob<%=InnerID%>"><%=["FullName"]%></label>
                    </td>
                    <td>
                        <ilghar:List Object="Module.Object.Operation" Condition="ObjectID=ID">
                            <ilghar:Record>
                                <%If HasPrivilege(Record)%>
                                    <input type="checkbox" name="OperationID" id="Op<%=ObjectTableID[InnerID]%>_<%=Index%>" value="<%=ID%>" checked="checked" PrivilegeID="<%=GetPrivilegeID(Record)%>" ObjectID="<%=ObjectTableID[ID]%>" ObjectName="<%=ObjectTableID["FullName"]%>" OperationName="<%=Name%>" />
                                <%Else%>
                                    <input type="checkbox" name="OperationID" id="Op<%=ObjectTableID[InnerID]%>_<%=Index%>" value="<%=ID%>" PrivilegeID="" ObjectID="<%=ObjectTableID[ID]%>" ObjectName="<%=ObjectTableID["FullName"]%>" OperationName="<%=Name%>" />
                                <%EndIf%>
                                <label for="Op<%=ObjectTableID[InnerID]%>_<%=Index%>"><%=Name%></label>
                            </ilghar:Record>
                        </ilghar:List>
                    </td>
                </tr>
            </ilghar:Record>
        </ilghar:List>
    </tbody>
</table>
