#PBtmpl0000000000000059
<a name="id<tmpl_var assetId>" id="id<tmpl_var assetId>"></a>

<tmpl_if session.var.adminOn>
	<p><tmpl_var controls></p>
</tmpl_if>

<tmpl_if displayTitle>
	<h2><tmpl_var title></h2>
</tmpl_if>

<tmpl_if description>
	<tmpl_var description>
	<p />
</tmpl_if>

<tmpl_if debugMode>
	<ul>
	<tmpl_loop debug_loop>
		<li><tmpl_var debug.output></li>
	</tmpl_loop>
	</ul>
</tmpl_if>

<table width="100%" cellspacing="0" cellpadding="0" style="border: 1px solid black;">
<tr>
<tmpl_loop columns_loop>
	<td class="tableHeader"><tmpl_var column.name></td>
</tmpl_loop>
</tr>
<tmpl_loop rows_loop>
	<tr>
	<tmpl_loop row.field_loop>
		<td class="tableData"><tmpl_var field.value></td>
	</tmpl_loop>
	</tr>
	<!-- Handle nested query2 -->
	<tmpl_if hasNest>
		<tr>
		<td colspan="<tmpl_var columns.count>">
		<table width="100%" cellspacing="0" cellpadding="0">
		<tr>
		<td width="20">&nbsp;</td>
		<td>
		<table width="100%" cellspacing="0" cellpadding="0" style="border: 1px solid black;">
		<tr>
		<tmpl_loop query2.columns_loop>
			<td class="tableHeader"><tmpl_var column.name></td>
		</tmpl_loop>
		</tr>
		<tmpl_loop query2.rows_loop>
			<tr>
			<tmpl_loop query2.row.field_loop>
				<td class="tableData"><tmpl_var field.value></td>
			</tmpl_loop>
			</tr>
			<!-- Handle nested query3 -->
			<tmpl_if query2.hasNest>
				<tr>
				<td colspan="<tmpl_var query2.columns.count>">
				<table width="100%" cellspacing="0" cellpadding="0">
				<tr>
				<td style="width:20px;">&nbsp;</td>
				<td>
				<table width="100%" cellspacing="0" cellpadding="0" style="border: 1px solid black;">
				<tr>
				<tmpl_loop query3.columns_loop>
					<td class="tableHeader"><tmpl_var column.name></td>
				</tmpl_loop>
				</tr>
				<tmpl_loop query3.rows_loop>
					<tr>
					<tmpl_loop query3.row.field_loop>
						<td class="tableData"><tmpl_var field.value></td>
					</tmpl_loop>
					</tr>
		   			<!-- Handle nested query4 -->
					<tmpl_if query3.hasNest>
						<tr>
						<td colspan="<tmpl_var query3.columns.count>">
						<table width="100%" cellspacing="0" cellpadding="0">
						<tr>
						<td style="width:20px;">&nbsp;</td>
						<td>
						<table width="100%" cellspacing="0" cellpadding="0" style="border: 1px solid black;">
						<tr>
						<tmpl_loop query4.columns_loop>
							<td class="tableHeader"><tmpl_var column.name></td>
						</tmpl_loop>
						</tr>
						<tmpl_loop query4.rows_loop>
							<tr>
							<tmpl_loop query4.row.field_loop>
								<td class="tableData"><tmpl_var field.value></td>
							</tmpl_loop>
				   			<!-- Handle nested query5 -->
							<tmpl_if query4.hasNest>
								<tr>
								<td colspan="<tmpl_var query4.columns.count>">
								<table width="100%" cellspacing="0" cellpadding="0">
								<tr>
								<td style="width:20px;">&nbsp;</td>
								<td>
								<table width="100%" cellspacing="0" cellpadding="0" style="border: 1px solid black;">
								<tr>
								<tmpl_loop query5.columns_loop>
									<td class="tableHeader"><tmpl_var column.name></td>
								</tmpl_loop>
								</tr>
								<tmpl_loop query5.rows_loop>
									<tr>
									<tmpl_loop query5.row.field_loop>
										<td class="tableData"><tmpl_var field.value></td>
									</tmpl_loop>
									</tr>
								</tmpl_loop>
								</table>
								</td>
								</tr>
								</table>
						        	</td>
				        			</tr>
							</tmpl_if>
							</tr>
						</tmpl_loop>
						</table>
						</td>
						</tr>
						</table>
				        	</td>
				        	</tr>
					</tmpl_if>
				</tmpl_loop>
				</table>
				</td>
				</tr>
				</table>
			        </td>
			        </tr>
			</tmpl_if>
		</tmpl_loop>
		</table>
		</td>
		</tr>
		</table>
		</td>
		</tr>
	</tmpl_if>
</tmpl_loop>
</table>

<tmpl_if pagination.pageCount.isMultiple>
	<div class="pagination">
		<tmpl_var pagination.previousPage> <tmpl_var pagination.pageList.upTo20> <tmpl_var pagination.nextPage>
	</div>
</tmpl_if>
