當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Participant::get_school方法代碼示例

本文整理匯總了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;
開發者ID:CompanyOnTheWorld,項目名稱:lisc-ttm,代碼行數:31,代碼來源:participant_profile.php


注:本文中的Participant::get_school方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。