本文整理匯總了PHP中Participant::get_school方法的典型用法代碼示例。如果您正苦於以下問題:PHP Participant::get_school方法的具體用法?PHP Participant::get_school怎麽用?PHP Participant::get_school使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Participant
的用法示例。
在下文中一共展示了Participant::get_school方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1:
>7</option>
<option value="8" <?php
echo $person->grade == 8 ? "selected=='selected'" : null;
?>
>8</option>
</select>
<!--They asked for a field to show when the grade was last entered. (obviously the grade will change from year to year)-->
<span class="basic_info_edit">As of year: <input type="text" id="enter_grade_year" class="basic_info_edit" style="width:50px;"></span>
</td>
</tr>
<tr>
<td><strong>School:</strong></td>
<td>
<span class="basic_info_show"><?php
echo $person->get_school();
?>
</span>
<select class="basic_info_edit" id="school_edit"/>
<option value="0">-----</option>
<?php
$all_schools = "SELECT * FROM Institutions WHERE Institution_Type=1 ORDER BY Institution_Name";
include "../include/dbconnopen.php";
$program_info = mysqli_query($cnnEnlace, $all_schools);
while ($temp_school = mysqli_fetch_array($program_info)) {
?>
<option value="<?php
echo $temp_school['Inst_ID'];
?>
" <?php
echo $temp_school['Inst_ID'] == $person->schoolid ? "selected='selected'" : null;