Esempio n. 1
0
if (has_message("curriculumCourse")) {
    echo '<span class="help-block">' . get_message("curriculumCourse") . '</span>';
}
?>
						    </div>
						</div>
						<div class="form-group create-curriculum-form-group  <?php 
echo has_error("curriculumMajor") ? "has-error" : "";
?>
">
						    <label for="inputCurriculummajor" class="col-sm-4 control-label">Major</label>
						    <div class="col-sm-7">
						    	<select class="form-control" name="curriculumMajor" id="inputCurriculummajor">
						    		<option value=""></option>
							    	<?php 
$majors_obj = get_all_majors();
if ($majors_obj && is_array($majors_obj) && count($majors_obj) > 0) {
    foreach ($majors_obj as $majori => $majorinfo) {
        echo '<option value="' . $majorinfo->getMajorid() . '"   ' . (has_value("curriculumMajor") && get_value("curriculumMajor") == $majorinfo->getMajorid() ? 'selected="selected"' : set_select('curriculumMajor', $majorinfo->getMajorid())) . '>';
        echo $majorinfo->major_code . ' ( ' . $majorinfo->major_description . ' ) ';
        echo '</option>';
    }
}
?>
							    </select>
						    	 <?php 
if (has_message("curriculumMajor")) {
    echo '<span class="help-block">' . get_message("curriculumMajor") . '</span>';
}
?>
						    </div>
Esempio n. 2
0
<div class="row">
	<div class="col-md-12">
		<?php 
$majors = get_all_majors();
?>
		 <div class="table-responsive">
			 <table class="table table-bordered table-hovered">
			 	<thead>
			 		<tr>
			 			<th>
			 				Major Code
			 			</th>
			 			<th>
			 				Description
			 			</th>
			 			<th>
			 				Status
			 			</th>
			 			<th>
			 				Action
			 			</th>
			 	</thead>
			 	<tbody>
			 		<?php 
if ($majors && is_array($majors) && count($majors) > 0) {
    foreach ($majors as $majori => $majorinfo) {
        ?>
			 						<tr>
							 			<td>
							 				<?php 
        echo $majorinfo->major_code;