本文整理汇总了PHP中Participant::get_type方法的典型用法代码示例。如果您正苦于以下问题:PHP Participant::get_type方法的具体用法?PHP Participant::get_type怎么用?PHP Participant::get_type使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Participant
的用法示例。
在下文中一共展示了Participant::get_type方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
certain member type: -->
<tr><th colspan="2">Add to Housing Pool</th></tr>
<tr>
<td><select id="pool_type">
<option value="">--Pool Member Type--</option>
<?php
$get_types_sqlsafe = "SELECT * FROM Pool_Member_Types;";
include "../include/dbconnopen.php";
$all_types = mysqli_query($cnnSWOP, $get_types_sqlsafe);
while ($type = mysqli_fetch_row($all_types)) {
?>
<option value="<?php
echo $type[0];
?>
" <?php
echo $type[1] == $participant->get_type() ? 'selected="selected"' : null;
?>
><?php
echo $type[1];
?>
</option>
<?php
}
include "../include/dbconnclose.php";
?>
</select>
</td>
<td>
<?php
if ($USER->site_access_level($SWOP_id) <= $DataEntryAccess) {
?>
示例2:
echo $parti['Gender'] == 'm' ? 'selected="selected"' : null;
?>
>Male</option>
<option value="f" <?php
echo $parti['Gender'] == 'f' ? 'selected="selected"' : null;
?>
>Female</option>
</select>
</td>
</tr>
<tr>
<td><strong>Pool Member Type: </strong></td>
<td>
<span class="basic_info_show"><?php
echo $participant->get_type();
?>
</span>
<select class="basic_info_pool_edit" id="type_pool_edit"/>
<option value="">-------</option>
<?php
$get_types_sqlsafe = "SELECT * FROM Pool_Member_Types;";
include "../include/dbconnopen.php";
$all_types = mysqli_query($cnnSWOP, $get_types_sqlsafe);
while ($type = mysqli_fetch_row($all_types)) {
?>
<option value="<?php
echo $type[0];
?>
" <?php
echo $type[0] == $participant->get_type_id() ? 'selected="selected"' : null;