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. */ ?> ' . i18n('Join this conferenece') . ''; exit; } } require_once("user_edit_tabs.inc.php"); $u = user_load($edit_id); if(!$u) { echo "Could not load user id $edit_id"; exit; } $types = array_keys($u['roles']); $selected = $_GET['tab']; if(!array_key_exists($selected, $tabs)) { if(in_array('fair', $types) ) $selected = 'fairinfo'; else $selected = ''; } $types[]="all"; $fields = array(); $required = array(); foreach(array_keys($u['roles']) as $r) { $fields = array_merge($fields, user_fields_enabled($r)); $required = array_merge($required, user_fields_required($r)); } /* Disable some of the tabs */ if($config['judges_availability_enable'] != 'yes') $tabs['judgeavailability']['disabled'] = true; $a = array_intersect(array('organization','phonework','fax'), $fields); if(count($a) == 0) { /* No organization stuff is enabled */ $tabs['organization']['disabled'] = true; } send_header($u['name']); /* Setup tabs */ echo '
'; echo '


$t) { /* Enabled has been modified now for this user */ if($t['disabled'] == true) continue; if($t['status_func'] == false) { /* No status func, skip in the "todo list" */ continue; } // Make sure the tab is applicable to this conference if(array_key_exists('conference_types', $t)){ if(!in_array($conference['type'], $t['conference_types'])){ continue; } } /* Get the status */ if(is_callable($t['status_func'])) { $s = call_user_func($t['status_func'], &$u); $tabs[$k]['status'] = ($s == 'complete') ? 'complete' : 'incomplete'; } else { $tabs[$k]['status'] = 'incomplete'; } /* Link to switch to the tab */ $n = ($t['name'] != '') ? $t['name'] : $t['label']; ?>



Other Options and Things To Do:
    $t) { /* Enabled has been modified now for this user */ if($t['disabled'] == true) continue; if($t['status_func'] != false) { /* Now we want all the other links not part of the status */ continue; } /* Link to switch to the tab */ $n = ($t['name'] != '') ? $t['name'] : $t['label']; ?>