<div class="dt_ths">
<?php $bank_num=0; $bank_type_num=0; foreach ($_SESSION['paper']['Child'] as $v): $bank_type_num++;?>

<?php if ($v["Child"]): ?>
	<div class="dt_th1">
	<table cellpadding="0" cellspacing="0">
	<tr>
	<?php $conf_sec_num=0; $i=0; foreach ($v['Child'] as $cv): $conf_sec_num++; ?>
	<?php foreach ($cv['banks'] as $bk=>$bank): $i++; $bank_num++; ?>
		<td class="bank_num bank_num_<?php echo $bank_num; ?>" bank_type_en="<?php echo $_SESSION['bank_types'][$bank['bank_type_id']]['title_en']; ?>" bank_id="<?php echo $bank['id']; ?>" bank_num="<?php echo $bank_num; ?>" bank_type_num="<?php echo $bank_type_num; ?>" ><a href="#bank_<?php echo $bank_num; ?>"><span class="bank_num_color_<?php echo $bank_num; ?>"><?php echo $bank_num; ?></span></a></td>
	<?php
		if (($i%5) == 0) echo "<tr></tr>";
		endforeach;
		endforeach;
	?>
	<?php $n=(($i%5) == 0)?0:(5-($i%5)); for($j=0;$j<$n;$j++): ?>
		<td style="width:36px;">&nbsp;</td>
	<?php endfor; ?>
	</tr>
	</table>
	</div>
<?php else: ?>
	<div class="dt_th1">
	<table cellpadding="0" cellspacing="0">
	<tr>
	<?php $i=0; foreach ($v['banks'] as $bank): $i++; $bank_num++;?>
		<td class="bank_num bank_num_<?php echo $bank_num; ?>" bank_type_en="<?php echo $_SESSION['bank_types'][$bank['bank_type_id']]['title_en']; ?>" bank_id="<?php echo $bank['id']; ?>" bank_num="<?php echo $bank_num; ?>" bank_type_num="<?php echo $bank_type_num; ?>" ><a href="#bank_<?php echo $bank_num; ?>"><span class="bank_num_color_<?php echo $bank_num; ?>"><?php echo $bank_num; ?></span></a></td>
	<?php
		if (($i%5) == 0) echo "<tr></tr>";
		endforeach;
	?>
	<?php $n=(($i%5) == 0)?0:(5-($i%5)); for($j=0;$j<$n;$j++): ?>
		<td style="width:36px;">&nbsp;</td>
	<?php endfor; ?>
	</tr>
	</table>
	</div>
<?php endif; ?>

<?php endforeach; ?>
</div>

<div class="dt_wdat">
	<h3>未做题数</h3>
	未做题数<span id="undone_num"><?php echo $bank_num; ?></span>道
</div>