<?php
$exam_standard_options = array();
foreach($exam_standards as $standard){
	$exam_standard_options[$standard->exam_standard_ID] = $standard->standard_name;
}

?>
<br>
<div class="row">
	<div class="col-md-offset-2 col-md-5">
		<div class="panel panel-default">
			<div class="panel-heading">Create New Subscription Pack</div>
			<div class="panel-body">
				<?= form_open('subscription_packs/create'); ?>
				<?= form_input(array('name'=>'subscription_pack_name','label'=>'Subscription Pack Name :')); ?>
				<?= form_input(array('name'=>'subscription_amount','label'=>'Subscription Amount :')); ?>
				<?= form_multiselect(array(
					'name'		=>'exam_standards[]',
					'label' 	=> 'Exam Standards',
					'options'	=> $exam_standard_options
					))?>
				<?= form_input(array('name'=>'duration','label'=>'Duration (In Days) :')); ?>
				<?= form_input(array('name'=>'no_of_exams','label'=>'No. of Exams in the pack:')); ?>
				<?= form_submit(array('value'=>'Submit')); ?>
				<br/>
				<?= form_close(); ?>
			</div>
		</div>
	</div>	
</div>