本文整理匯總了PHP中Participant::pre_surveys方法的典型用法代碼示例。如果您正苦於以下問題:PHP Participant::pre_surveys方法的具體用法?PHP Participant::pre_surveys怎麽用?PHP Participant::pre_surveys使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Participant
的用法示例。
在下文中一共展示了Participant::pre_surveys方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: Participant
/* if it IS a new assessment, then we get the person from the get[person]: */
if (!isset($_GET['assessment'])) {
$person = new Participant();
$person->load_with_participant_id($person_sqlsafe);
}
/* create a dropdown of the programs/sessions that the person is involved in. */
$get_programs = "SELECT * FROM Participants_Programs\r\n INNER JOIN Session_Names ON Participants_Programs.Program_ID = Session_Names.Session_ID \r\n INNER JOIN Programs ON Session_Names.Program_ID = Programs.Program_ID\r\n WHERE Participants_Programs.Participant_ID = '" . $person->participant_id . "'";
$programs = mysqli_query($cnnEnlace, $get_programs);
?>
<h4>Baseline Assessment - <?php
echo $person->first_name . " " . $person->last_name;
?>
</h4>
<?php
$person->pre_surveys();
?>
<div style="text-align:center;"><span class="helptext">Program: </span>
<select id="program">
<option value="">-------</option>
<?php
while ($program = mysqli_fetch_array($programs)) {
?>
<option value="<?php
echo $program['Session_ID'];
?>
" <?php
echo $person->program_caring == $program['Session_ID'] ? 'selected="selected"' : null;
?>
><?php
echo $program['Name'] . " -- " . $program['Session_Name'];