本文整理汇总了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'];