<span class="add-on"><i class="icon-pencil"></i></span>
								<input class="span12" name="title" id="title" />
							</div>
						</div>
					</div>

					<div class="control-group">
						<label class="control-label" for="type">Type: </label>
						<div class="controls">
							<div class="input-prepend">
								<span class="add-on"><i class="icon-pencil"></i></span>
								<select name="p_id">
									<option value="">--SELECT--</option>
									<?php 
$query = "SELECT * from programme_type";
$requirements = ProgrammeType::find_by_sql($query);
foreach ($requirements as $row) {
    echo '<option value="' . $row->p_id . '">' . $row->p_name . '</option>';
}
?>
								</select>
							</div>
						</div>
					</div>

					<div class="control-group">
						<textarea class="textarea" name="content" id="content" style="width: 610px; height: 120px"></textarea>
					</div>

					<div class="control-group">
						<button type="submit" class="btn btn-primary" name="add_requirements" id="add_requirements">Add Admission Requirements</button>
예제 #2
0
?>
 />
							</div>
						</div>
					</div>

					<div class="control-group">
						<label class="control-label" for="type">Type: </label>
						<div class="controls">
							<div class="input-prepend">
								<span class="add-on"><i class="icon-pencil"></i></span>
								<select name="p_id">
									<option value="">--SELECT--</option>
									<?php 
$query = "SELECT * from programme_type";
$admission_requirements = ProgrammeType::find_by_sql($query);
foreach ($admission_requirements as $row) {
    if ($row->p_id == $requirement->p_id) {
        echo '<option value="' . $row->p_id . '" selected>' . $row->p_name . '</option>';
    } else {
        echo '<option value="' . $row->p_id . '">' . $row->p_name . '</option>';
    }
}
?>
								</select>
							</div>
						</div>
					</div>

					<div class="control-group">
						<label class="control-label" for="status">Status: </label>