Beispiel #1
0
?>
						</select>
						<span class="help-block"><?php 
echo has_message("cssemesterId") ? get_message("cssemesterId") : "";
?>
</span>
					</div>
				</div>
				<div class="form-group  <?php 
echo has_error("csyearlevelId", "has-error", has_success("csyearlevelId", "has-success"));
?>
">
					<label for="yearlevelIdinput" class=" control-label col-sm-4">Year level</label>
					<div class="col-sm-7">
						<?php 
$all_yearlevels = get_all_yearlevels();
?>
						<select class="form-control" name="csyearlevelId" id="yearlevelIdinput" >
							<option class=""></option>
							<?php 
if ($all_yearlevels && is_array($all_yearlevels) && count($all_yearlevels) > 0) {
    foreach ($all_yearlevels as $yearleveli => $yearlevelinfo) {
        echo '<option value="' . $yearlevelinfo->getYearlevelid() . '"  ' . set_select("csyearlevelId", $yearlevelinfo->getYearlevelid()) . '>';
        echo ucfirst($yearlevelinfo->yearlevel_description . " year");
        echo '</option>';
    }
}
?>
						</select>
						<span class="help-block"><?php 
echo has_message("csyearlevelId") ? get_message("csyearlevelId") : "";
Beispiel #2
0
<?php

$yearlevels = get_all_yearlevels(true);
?>
	<div class="table-responsive">
		<table class="table table-bordered">
			<thead>
				<tr>
					<th>Yearlevel Code</th>
					<th>Alias</th>
					<th>Description</th>
					<th>Status</th>
					<th>Action</th>
				</tr>
			</thead>
			<tbody>
				<?php 
if ($yearlevels && is_array($yearlevels) && count($yearlevels) > 0) {
    foreach ($yearlevels as $yli => $yl) {
        ?>
							<tr>
								<td><?php 
        echo $yl->yearlevel_code;
        ?>
</td>
								<td><?php 
        echo $yl->yearlevel_alias;
        ?>
</td>
								<td><?php 
        echo $yl->yearlevel_description;