<%@ Page CodeFileBaseClass="AliCMS.Lib.SystemModule.Privilege.List" %>
<table border="0" cellpadding="4" cellspacing="1">
    <thead>
        <tr>
            <th>对象</th>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
		<ali:List ID="ObjectTableID" Object="Module.Object" Source="ObjectTable">
			<ali:Record>
				<tr id="Row<%=InnerID%>" ItemID="<%=InnerID%>">
					<td style="white-space:nowrap">
						<input type="checkbox" name="ObjectID" id="Ob<%=InnerID%>" /><label for="Ob<%=InnerID%>" class="<%=ContentLang%>Font"><%=Label%></label>
					</td>
					<td>
						<ali:List Object="Module.Object.Operation" Condition="ObjectID=ID">
							<ali: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%>" class="<%=ContentLang%>Font"><%=Label%></label>
							</ali:Record>
						</ali:List>
					</td>
				</tr>
			</ali:Record>
		</ali:List>
    </tbody>
</table>
