<div class="content" >
<div class="timu c_bb" style="overflow-y:auto;height:500px;">
<?php $num = 0;?>
<?php $bank_num=0; $bank_type_num=0; foreach ($_SESSION['paper']['Child'] as $k=>$v): $bank_type_num++;$bank_show_num++;$num++;?>

<div class="tit02"><?php $upper=C('UPPER_NUM'); echo $upper[$num].'、'.$v['title']; ?></div>
<div class="dt001">
<table style="border-collapse:collapse; table-layout:fixed" class="biaoge005">         
                      <tbody>
                      <tr>
 <?php 
 //echo '<pre>';
 //print_r($v['banks']);
 ?>                   
<?php $i=0; foreach ($v['banks'] as $bk=>$bank):$i++; $bank_num++;?>
<?php  if($bank['BSChild']):?>
<?php
	$bank_num --;
	$i--;
?>
<?php  foreach($bank['BSChild'] as $bbk=>$bbank):
		//echo $result;
		if($result == 'wrong' && in_array($bbank['id'],$_SESSION['del_bank_id']))
		{
			unset($_SESSION['paper']['Child'][$k]['banks'][$bk]['BSChild'][$bbk]);
			continue;
		}
		
		$i++;
		$bank_num++;
?>
  <td height="36" align="center" 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; ?>"><span class="STYLE4"><a  href="#bank_<?php echo $bank_num; ?>" ><?php echo $bank_num; ?></a>
                          <div id="t_<?=$bank_num;?>"  dotag_c="1">*</div>
                          
                          <div style="display:none" id="ct_<?=$bank_num;?>" dotag_c="0"> <font color="#FF0000">?</font> </div>
                          
                          </span>
                          </td>
						   <?php 
								if($i%10 == 0)
                          		{
									echo '</tr><tr>';
								}
                          ?>
						  
          
<?php endforeach?>
<?php else:?>

  <td height="36" align="center" 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; ?>"><span class="STYLE4"><a  href="#bank_<?php echo $bank_num; ?>" ><?php echo $bank_num; ?></a>
                          <div id="t_<?=$bank_num;?>"  dotag_c="1">*</div>
                          
                          <div style="display:none" id="ct_<?=$bank_num;?>" dotag_c="0"> <font color="#FF0000">?</font> </div>
                          
                          </span>
                          </td>
<?php endif;?>	
                          <?php 
								if($i%10 == 0)
                          		{
									echo '</tr><tr>';
								}
                          ?>
                        <?php  endforeach;?>   
                                          
						<?php $n=(($i%10) == 0)?0:(10-($i%10)); for($j=0;$j<$n;$j++): ?>
						<td style="height:36px;"><span class="STYLE4">&nbsp;</span></td>
						<?php endfor; ?>
                      </tr>
                      
                    </tbody></table>
</div>

<?php endforeach;?>

<div class="marb6"></div>
<p class="sm1">说明:<br />1.题号下方的*符号代表该小题尚未选择答案！<br>
                2.题号下方的?符号代表该小题做过标记！<br>
                3.选择选项的同时自动保存答案！<br>
                <img  complete="complete" onclick="useCalculator();" style="cursor: hand;" alt="使用计算器"  src="__PUBLIC__/quanzhen/images/tb_jsq.png">
              </p>
<script>

function useCalculator(){

    window.open("jisuanqi.php","计算器","height=300,width=250,top=300,left=100,toolbar=no,menubar=no,scrollbars=no, resizable=no,location=no, status=no");
}

//function useCalculator(){
//
//    window.open("jisuanqi.php","计算器");
//}
</script>
</div>