<!--存在子题，循环获取 start-->
<?php if ($bank['bank_type_id'] == 5): ?>
	<?php $cbank_num_show = 0; ?>
	<?php foreach ($bank['childs'] as $cbank): ?>
	<?php
		if ($cbank_num_show != 0)
		{
			$bank_num_show++;
		}
		$cbank_num_show++;
	?>
	<h3 class="cbank_<?=$bank['id']?>" cbank_id="<?=$cbank['id']?>" cbank_type_id="<?=$cbank['bank_type_id'];?>"><span><?=$bank_num_show;?>.</span><?=$cbank['content']?></h3>
		
		<?php if ($cbank['bank_type_id'] == 1): ?>
			<?php foreach ($cbank['choices'] as $choice): ?>
			<p>
				<label>
					<input class="option_<?=$cbank['id']?>" name="item_<?=$cbank['id']?>" type="radio" value="<?=$choice['title']?>">&nbsp;&nbsp;<?=$choice['title'].".".$choice['content'];?>
				</label>
			</p>
			<?php endforeach; ?>
		<?php elseif ($cbank['bank_type_id'] == 2): ?>
			<?php foreach ($cbank['choices'] as $choice): ?>
			<p>
				<label>
					<input class="option_<?=$cbank['id']?>" name="item_<?=$cbank['id']?>" type="checkbox" value="<?=$choice['title']?>">&nbsp;&nbsp;<?=$choice['title'].".".$choice['content'];?>
				</label>
			</p>
			<?php endforeach; ?>
		<?php elseif ($cbank['bank_type_id'] == 3): ?>
			<p>
				<label>
					<input class="option_<?=$cbank['id']?>" name="item_<?=$cbank['id']?>" type="radio" value="1">&nbsp;&nbsp;正确
				</label>
			</p>
			<p>
				<label>
					<input class="option_<?=$cbank['id']?>" name="item_<?=$cbank['id']?>" type="radio" value="2">&nbsp;&nbsp;错误
				</label>
			</p>
		<?php elseif ($cbank['bank_type_id'] == 6): ?>
		
		<?php elseif ($cbank['bank_type_id'] == 7): ?>
		
		<?php elseif ($cbank['bank_type_id'] == 8): ?>
		
		<?php elseif ($cbank['bank_type_id'] == 9): ?>
		
		<?php endif; ?>
		
	<?php endforeach; ?>
<!--存在子题，循环获取 end-->

<?php else: ?>

	<?php if ($bank['bank_type_id'] == 1): ?>
		<?php foreach ($bank['choices'] as $choice): ?>
		<p>
			<label>
				<input class="option_<?=$bank['id']?>" name="item_<?=$bank['id']?>" type="radio" value="<?=$choice['title']?>">&nbsp;&nbsp;<?=$choice['title'].".".$choice['content'];?>
			</label>
		</p>
		<?php endforeach; ?>
	<?php elseif ($bank['bank_type_id'] == 2): ?>
		<?php foreach ($bank['choices'] as $choice): ?>
		<p>
			<label>
				<input class="option_<?=$bank['id']?>" name="item_<?=$bank['id']?>" type="checkbox" value="<?=$choice['title']?>">&nbsp;&nbsp;<?=$choice['title'].".".$choice['content'];?>
			</label>
		</p>
		<?php endforeach; ?>
	<?php elseif ($bank['bank_type_id'] == 3): ?>
		<p>
			<label>
				<input class="option_<?=$bank['id']?>" name="item_<?=$bank['id']?>" type="radio" value="1">&nbsp;&nbsp;正确
			</label>
		</p>
		<p>
			<label>
				<input class="option_<?=$bank['id']?>" name="item_<?=$bank['id']?>" type="radio" value="2">&nbsp;&nbsp;错误
			</label>
		</p>
	<?php elseif ($bank['bank_type_id'] == 6): ?>
	
	<?php elseif ($bank['bank_type_id'] == 7): ?>
	
	<?php elseif ($bank['bank_type_id'] == 8): ?>
	
	<?php elseif ($bank['bank_type_id'] == 9): ?>
	
	<?php endif; ?>
<?php endif; ?>