コード例 #1
0
?>
	<!-- Beginning of Secondary School -->
	<table class="table table-hover">
		<caption><h4>Secondary School</h4></caption>
		<thead>
			<tr>
			  	<th>School Name</th>
			  	<th>School Address</th>
				<th>From</th>
				<th>To</th>
			</tr>
		</thead>
		<tbody id="secondary_schools">
			<?php 
$sql_school = "SELECT * FROM secondary_school_attended WHERE applicant_id=" . $session->applicant_id;
$result_school = SecondarySchoolUser::find_by_sql($sql_school);
//print_r($result_school);
if (!empty($result_school)) {
    $k = 1;
    foreach ($result_school as $row) {
        $name = "secondary_school_name_" . $k;
        $address = "secondary_school_address_" . $k;
        $from = "secondary_school_from_" . $k;
        $to = "secondary_school_to_" . $k;
        $sch_id = 'sch_id_' . $k;
        ?>
						<tr>
						  	<td>
						  		<div class="control-group">
									<input type="text" value="<?php 
        echo $row->school_name;