<div class="jx_navcon">
	<div class="jx_ltitle1 nav"><h2>错题练习</h2></div>
	<div class="jx_navcc">

	<?php $bank_num =0; foreach ($_SESSION['info']['childs']['bank_view'] as $k=>$v): ?>
	<?php if ($v['childs']): ?>
		<?php
			$num=0;
			foreach($v['childs'] as $cv)
			{
				$num+=$cv['score_info']['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['bank_ids'] as $cbankid): ?>
				<?php if ($_SESSION['info']['childs']['banks'][$cbankid]['bank_type_id'] == 5 && $_SESSION['info']['childs']['banks'][$cbankid]['show_type_id'] == 1): ?>
					<?php foreach ($_SESSION['info']['childs']['banks'][$cbankid]['childs'] as $cbank): ?>
						<?php $bank_num++; $bank_show_num++; $result = $_SESSION['info']['childs']['details'][$cbank['id']]['result']; ?>
						<?php include('Tpl/'.C('DEFAULT_THEME').'/paper/element/wrong_record/wrong_bank.php'); ?>
					<?php endforeach; ?>
				<?php else: ?>
				
					<?php $bank_num++; $bank_show_num++; $result = $_SESSION['info']['childs']['details'][$cbankid]['result']; ?>
					<?php include('Tpl/'.C('DEFAULT_THEME').'/paper/element/wrong_record/wrong_bank.php'); ?>
				<?php endif; ?>
			<?php endforeach; ?>
		<?php endforeach; ?>
		</ul>
		<?php endif; ?>
	
	<?php else: ?>
		<!--判断是否有题-->
		<?php if ($v['score_info']['wrong_num']>0): ?>

		<?php $bank_show_num = 0; ?>
		<div class="jx_ltitle2 nav_" key="<?php echo $k; ?>"><h3><?=$v['title']; ?>（<?=$v['score_info']['wrong_num']; ?>题）</h3></div>
		<ul class="sec_nav_<?php echo $k; ?>">

			<?php foreach ($v['bank_ids'] as $bankid): ?>
				<?php if ($_SESSION['info']['childs']['banks'][$bankid]['bank_type_id'] == 5 && $_SESSION['info']['childs']['banks'][$bankid]['show_type_id'] == 1): ?>
					<?php foreach ($_SESSION['info']['childs']['banks'][$bankid]['childs'] as $cbank): ?>
						<?php $bank_num++; $bank_show_num++; $result = $_SESSION['info']['childs']['details'][$cbank['id']]['result']; $bid=$cbank['id'];?>
						<?php include('Tpl/'.C('DEFAULT_THEME').'/paper/element/wrong_record/wrong_bank.php'); ?>
					<?php endforeach; ?>
				<?php elseif($_SESSION['info']['childs']['banks'][$bankid]['bank_type_id'] == 1 || $_SESSION['info']['childs']['banks'][$bankid]['bank_type_id'] == 2 ||$_SESSION['info']['banks'][$bankid]['bank_type_id'] == 3): ?>
				
					<?php $bank_num++; $bank_show_num++; $result = $_SESSION['info']['childs']['details'][$bankid]['result']; $bid = $bankid; ?>
					<?php include('Tpl/'.C('DEFAULT_THEME').'/paper/element/wrong_record/wrong_bank.php'); ?>
				<?php endif; ?>
			<?php endforeach; ?>
		</ul>

		<?php endif; ?>
		
		
	<?php endif; ?>
	
	<?php endforeach; ?>
</div>