<div class="jx_navcon">
	<div class="jx_ltitle1 nav"><h2>答题解析</h2></div>
	<div class="jx_navcc">
	
	<?php $bank_num =0; foreach ($_SESSION['info']['datas']['childs'] as $k=>$v): ?>
	<?php if ($v['childs']): ?>
		<?php
			$num=0;
			foreach($v['childs'] as $cv)
			{
				$num+=$cv['scoreinfo']['total_num'];
			}
			if ($num):
		?>
		
		<?php $bank_show_num = 0; ?>
		<div class="jx_ltitle2 nav_" key="<?php echo $k; ?>"><h3><?=$v['title']; ?>（<?=$num;?>题）</h3></div>
		<ul class="sec_nav_<?php echo $k; ?>">
		<?php foreach ($v['childs'] as $cv): ?>
			<?php foreach ($cv['bankids'] as $cbankid): ?>
				<?php if ($_SESSION['info']['banks'][$cbankid]['bank_type_id'] == 5 && $_SESSION['info']['banks'][$cbankid]['show_type_id'] == 1): ?>
					<?php foreach ($_SESSION['info']['banks'][$cbankid]['childs'] as $cbank): ?>
						<?php $bank_num++; $bank_show_num++; $result = $_SESSION['info']['details'][$cbank['id']]['result']; ?>
						<?php include('Tpl/'.C('DEFAULT_THEME').'/paper/element/record/menulist_bank.php'); ?>
					<?php endforeach; ?>
				<?php else: ?>
				
					<?php $bank_num++; $bank_show_num++; $result = $_SESSION['info']['details'][$cbankid]['result']; ?>
					<?php include('Tpl/'.C('DEFAULT_THEME').'/paper/element/record/menulist_bank.php'); ?>
				<?php endif; ?>
			<?php endforeach; ?>
		<?php endforeach; ?>
		</ul>
		<?php endif; ?>
	
	<?php else: ?>
		<!--判断是否有题-->
		<?php if ($v['scoreinfo']['total_num']): ?>
		<?php $bank_show_num = 0; ?>
		<div class="jx_ltitle2 nav_" key="<?php echo $k; ?>"><h3><?=$v['title']; ?>（<?=$v['scoreinfo']['total_num']; ?>题）</h3></div>
		<ul class="sec_nav_<?php echo $k; ?>">

			<?php foreach ($v['bankids'] as $bankid): ?>
				<?php if ($_SESSION['info']['banks'][$bankid]['bank_type_id'] == 5 && $_SESSION['info']['banks'][$bankid]['show_type_id'] == 1): ?>
					<?php foreach ($_SESSION['info']['banks'][$bankid]['childs'] as $cbank): ?>
						<?php $bank_num++; $bank_show_num++; $result = $_SESSION['info']['details'][$cbank['id']]['result']; ?>
						<?php include('Tpl/'.C('DEFAULT_THEME').'/paper/element/record/menulist_bank.php'); ?>
					<?php endforeach; ?>
				<?php else: ?>
				
					<?php $bank_num++; $bank_show_num++; $result = $_SESSION['info']['details'][$bankid]['result']; ?>
					<?php include('Tpl/'.C('DEFAULT_THEME').'/paper/element/record/menulist_bank.php'); ?>
				<?php endif; ?>
			<?php endforeach; ?>
		</ul>
		<?php endif; ?>
		
		
	<?php endif; ?>
	
	<?php endforeach; ?>
</div>