availableslots){
?>
: |
availableslots as $aSlot){
$startdatecnv = scheduler_userdate($aSlot->starttime,1);
$starttimecnv = scheduler_usertime($aSlot->starttime,1);
$startdatestr = ($startdatemem != '' and $startdatemem == $startdatecnv) ? "-----------------" : $startdatecnv ;
$starttimestr = ($starttimemem != '' and $starttimemem == $starttimecnv) ? '' : $starttimecnv ;
$startdatemem = $startdatecnv;
$starttimemem = $starttimecnv;
$form->availableslotsmenu[$aSlot->id] = "$startdatestr $starttimestr";
}
echo html_writer::select($form->availableslotsmenu, 'slotid', $form->slotid, array(''=>'choosedots'), array('id'=>'slotchooser'));
?>
|
: |
>
starttime);
echo html_writer::select_time('months', 'month', $form->starttime);
echo html_writer::select_time('years', 'year', $form->starttime);
?>
|
: |
starttime);
echo html_writer::select_time('minutes', 'minute', $form->starttime);
echo $OUTPUT->help_icon('choosingslotstart', 'scheduler');
?>
|
: |
|
: |
>
scheduler_maxstudentsperslot;
$exclusivemenu['0'] = get_string('unlimited', 'scheduler');
$knownslots = count($form->appointments);
if ($knownslots == 0) $knownslots++;
for($i = $knownslots ; $i <= $maxexclusive; $i++){
$exclusivemenu[(string)$i] = $i;
}
echo html_writer::select($exclusivemenu, 'exclusivity', $form->exclusivity, array(), array('id'=>'exclusivechooser'));
echo $OUTPUT->help_icon('exclusivity', 'scheduler', get_string('groupsession', 'scheduler'));
?>
|
: |
reuse);
echo $OUTPUT->help_icon('reuse', 'scheduler');
?>
|
: |
help_icon('location', 'scheduler'); ?>
|
: |
>
id);
$attendantsmenu = array();
if ($attendants){
foreach($attendants as $attendant){
$attendantsmenu[$attendant->id] = fullname($attendant);
}
echo html_writer::select($attendantsmenu, 'teacherid', $form->teacherid);
} else {
print_string('noteachershere', 'scheduler', s(scheduler_get_teacher_name($scheduler)));
}
echo $OUTPUT->help_icon('bookwithteacher', 'scheduler');
?>
|
: |
hideuntil);
echo html_writer::select_time('months', 'displaymonth', $form->hideuntil);
echo html_writer::select_time('years', 'displayyear', $form->hideuntil);
?>
|
: |
notes)) {
$form->notes = '';
}
print_textarea($usehtmleditor, 20, 60, 680, 400, 'notes', $form->notes);
if ($usehtmleditor) {
echo '';
} else {
echo ' ';
echo $OUTPUT->help_icon('textformat', get_string('formattexttype'));
print_string('formattexttype');
echo ': ';
if (!$form->format) {
$form->format = 'MOODLE';
}
echo html_writer::select(format_text_menu(), 'format', $form->format);
echo ' ';
}
?>
|
box_start(get_string('appointments', 'scheduler'), 'center');
if (!empty($form->appointments) && count($form->appointments)){
echo "
";
$table = new html_table();
$table->head = array ('', get_string('students'), $strseen, $strnote, $strgrade, $straction);
$table->align = array ('LEFT', 'LEFT', 'CENTER', 'LEFT', 'CENTER', 'RIGHT');
$table->width = '';
foreach($form->appointments as $anAppointment){
$user = $DB->get_record('user', array('id'=>$anAppointment->studentid));
$gradetext = scheduler_format_grade($scheduler,$anAppointment->grade);
$attended = $anAppointment->attended ? ' ' : ' ' ;
$cmds = "studentid}')\" title=\"".get_string('edit')."\"> wwwroot}/pix/t/edit.gif\"> ";
$cmds .= "studentid}')\" title=\"".get_string('remove')."\"> wwwroot}/pix/t/delete.gif\">";
$table->data[] = array('', fullname($user), $attended, $anAppointment->appointmentnote, $gradetext, $cmds);
}
echo html_writer::table($table);
} else {
print_string('noappointments', 'scheduler');
}
echo ' ';
$hiddenstate = ((count($form->appointments) < $form->exclusivity and $form->exclusivity > 0) || !$form->exclusivity) ? "style=\"visibility:visible\"" : "style=\"visibility:hidden\"" ;
echo "';
echo $OUTPUT->box_end();
?>
|