Copyright (C) 2005 James Grant This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; see the file COPYING. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ ?> $r['date'], 'starttime' => date('g:ia', $startTime), 'endtime' => date('g:ia', $endTime), 'name' => $r['title'], ); } switch($_GET['action']) { case 'save': if(!is_array($_POST['languages'])) $_POST['languages']=array(); $u['languages'] = array(); foreach($_POST['languages'] AS $val) $u['languages'][] = $val; $u['willing_chair'] = ($_POST['willing_chair'] == 'yes') ? 'yes' : 'no'; $u['highest_psd'] = stripslashes($_POST['highest_psd']); user_save($u); /* if(is_array($_POST['questions'])){ questions_save_answers("judgereg",$u['id'],$_POST['questions']); } */ // save the availability selection mysql_query("DELETE FROM schedule_users_availability_link WHERE users_id='{$u['id']}'"); if(is_array($_POST['time']) ) { foreach($_POST['time'] as $idx) { mysql_query(" INSERT INTO schedule_users_availability_link (schedule_id, users_id) VALUES($idx, {$u['id']}) "); } } happy_("Preferences successfully saved"); $u = user_load($u['id']); $newstatus=activities_status($u); ?> 1) $required[] = 'time[]'; ?>

-


1) { ?> $t) { if($x == $r['schedule_id']){ $sel[] = $x; } } } $items = array(); foreach($times as $x => $t) { $items[$x] = "{$t['name']} ({$t['date']} {$t['starttime']} - {$t['endtime']})"; } echo ''; user_edit_item($u, 'Time Availability', 'time[]', 'checklist', $items, $sel); echo ''; } //questions_print_answer_editor('judgereg', $u, 'questions'); ?>