<div class="dt_leftnav">
	<div class="dt_tips">
		<strong>题目列表</strong><br />
		<p>
			<div class="single"><a id="single" href="javascript:void(0);">单题形式</a></div>
			<div class="list"><a id="list" href="javascript:void(0);">列表形式</a></div>
		</p>
		<p>（单击题号可直接跳转到该题）</p>
		<font color="#fe0000">红色</font>代表未做，<font color="#0100fc">蓝色</font>代表已做	
	</div>
	
	<layout name="banks/do_menuList" />
	

	<p class="dt_ltps">　　网校为方便广大学员，特增加题目选择与状态显示功能。</p>
</div>

<div class="dt_mainc">

	<div class="dtconn"><?php $bank_num=0; $bank_type_num_=0; foreach ($_SESSION['paper']['Child'] as $v): $bank_type_num_++;?>
	<div class="dt_rtitle1 bank_type_num bank_type_num_<?php echo $bank_type_num_; ?>" ><?php $upper=C('UPPER_NUM'); echo $upper[$bank_type_num_].'、'.$v['title']; echo ($v['remark']?"(".$v['remark'].")":""); ?></div>
	<?php if ($v['Child']): ?>
		<?php foreach ($v['Child'] as $cv): ?>
		<!--<div class="dt_rtitle1"><?php echo $cv['title']; ?></div>-->
			<?php foreach ($cv['banks'] as $bank): $bank_num++; $bank_num_ = $bank_num; ?>
				<?php include('Tpl/quanzhen/mock/banks/do_banks.php');?>
			<?php endforeach; ?>
		<?php endforeach; ?>
	
	<?php else: ?>
		<?php foreach ($v['banks'] as $bank): $bank_num++; $bank_num_ = $bank_num; ?>
			<?php include('Tpl/quanzhen/mock/banks/do_banks.php');?>
		<?php endforeach; ?>
	<?php endif; ?>
	<?php endforeach; ?>
	</div>
	
	<div class="dt_gnbox">
		<ul class="dt_gnli" id="info_bank_now" bank_num="1" bank_type_num="1" bank_total="<?php echo $bank_num; ?>">
		<li class="dt_prevb" id="prev" >上一题</li>
		<li class="dt_nextb" id="next" >下一题</li>
		<li>跳转到 <input type="text" id="jump_num" style="width:30px;"> 题</li>
		<li class="dt_nextbn" id="jump" >跳转</li>
		</ul>
			
		<ul class="dt_jsli" id="total_time" value="<?php echo $_SESSION['paper']['time']; ?>">
		<li class="dt_yytime" style="display:none">已用时间<input type="text" id="used_time" readOnly="true" value=""></li>
		<li class="dt_sytime" style="display:none">剩余时间<input type="text" id="rest_time" readOnly="true" value=""></li>
		
		<li  class="liright"><img id="overIt" src="__PUBLIC__/bjacc/images/dt_jjbtn.jpg" width="98" height="52" /></li>
		</ul>
	</div>
</div>

<div id="cover" style="display:none"> 
	<div id="tb_window"><div class="wait"><img src="__PUBLIC__/quanzhen/images/wait.gif"></div> <img src="__PUBLIC__/quanzhen/images/waitfor2.png"></div>
	<div class="mk_botbg"></div> 
</div>

<div class="flash_bank" style="display:none;"></div>

<div class="tc1" style="display:none"></div>

<?php if ($hasUnJudge):?>
<div class="tc2" style="display:none">
<div class="tc2_tit"><div>温馨提示</div></div>
<div class="tc2_nr">
<h2>考试已经结束，请您离开考场！</h2>
<h3>部分主观题需要您对比正确答案后，手动输入所得分数！</h3>
<div class="ip1"><a href="#" id="manualscore" target="_self"><img src="__PUBLIC__/quanzhen/images/an3.gif" /></a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="#" class="finish_exam" target="_self"><img src="__PUBLIC__/quanzhen/images/an4.gif" /></a></div>
</div>
<div class="tc2_bottom"></div>
</div>	
	
<?php else: ?>
<!--弹出2-->
<div class="tc2" style="display:none">
<div class="tc2_tit"><div>温馨提示</div></div>
<div class="tc2_nr">
<h2>考试已经结束，请您离开考场！</h2>
<div class="ip"><a href="#" class="finish_exam" target="_self"><img src="__PUBLIC__/quanzhen/images/an1.gif" /></a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="#" class="goon_exam" target="_self"><img src="__PUBLIC__/quanzhen/images/an2.gif" /></a></div>
</div>
<div class="tc2_bottom"></div>
</div>
<!--弹出2结束-->

<?php endif; ?>


<script type="text/javascript">
$(document).ready(function(gourl_type) {
	$("#productsMenu_zzjs").css("display","");
	
	$("#manualscore").click(function(){
		$(".tc2").css("display","none");
		$.post("<?php echo U(MODULE_NAME.'/manualscore'); ?>",function(html){
			$(".tc1").html(html);
			$(".tc1").css("display","");
		});
	});
});
function saveAnswer(bank_id,answer) {
	$.post("<?php echo U(MODULE_NAME.'/saveAnswer'); ?>",{bank_id:bank_id,answer:answer});
}

function finishExam(gourl_type) {
	$("#cover").css("display","");
	var i = 0;
	var line = "。";
	var amount = "";
	count(i,line,amount);
	var url="<?php echo U(MODULE_NAME.'/saveAllAnswer'); ?>";
	
	setTimeout('upanswer("<?php echo U(MODULE_NAME.'/saveAllAnswer'); ?>")',1000);
	
}
function upanswer(url)
{
	$.get(url,function() {
		location.href="<?php echo U(MODULE_NAME.'/showRecord/showscore/1/come_from/practice/result/'.$result.'/cd_id/'.$_SESSION['cd_id']."/record_id/".$_SESSION['record_id']); ?>";
	});
}

function setTime(restTime,usedTime) {
}
</script>