User settings touch-ups

This commit is contained in:
jacob 2010-10-22 21:17:25 +00:00
parent cee52c6b67
commit 7625c2e309
5 changed files with 21 additions and 18 deletions

View File

@ -23,7 +23,7 @@
*/ */
?> ?>
<? <?
require_once('user_edit.inc.php');
$preferencechoices=array( $preferencechoices=array(
-2=>"Very Low", -2=>"Very Low",
-1=>"Low", -1=>"Low",
@ -58,6 +58,10 @@ function judge_status_expertise(&$u)
return 'complete'; return 'complete';
} }
function judge_status_availability(&$u){
return 'complete';
}
function judge_status_other(&$u) function judge_status_other(&$u)
{ {
global $config; global $config;

View File

@ -84,15 +84,15 @@ case 'save':
} }
if($_SESSION['embed'] == true) { // if($_SESSION['embed'] == true) {
echo "<br /><h3>".i18n("Judging Expertise")."</h3>"; echo "<br /><h3>".i18n("Judging Expertise")."</h3>";
display_messages(); display_messages();
} else { /* } else {
//send the header //send the header
send_header('Category and Division Preferences', send_header('Category and Division Preferences',
array('Judge Registration' => 'judge_main.php') array('Judge Registration' => 'judge_main.php')
); );
} }*/
$newstatus=judge_status_expertise($u); $newstatus=judge_status_expertise($u);
?> ?>
@ -225,6 +225,6 @@ echo "<input type=\"hidden\" name=\"users_id\" value=\"{$u['id']}\">\n";
</form> </form>
<? <?
if($_SESSION['embed'] != true) send_footer(); // if($_SESSION['embed'] != true) send_footer();
?> ?>

View File

@ -86,20 +86,20 @@
user_page_summary_begin(); user_page_summary_begin();
user_page_summary_item("Contact Information", user_page_summary_item("Contact Information",
"user_personal.php", "user_personal_info_status", array($u)); "user_personal.php", "user_personal_info_status", array(&$u));
user_page_summary_item("Other Information", user_page_summary_item("Other Information",
"judge_other.php", "judge_status_other", array($u)); "judge_other.php", "judge_status_other", array(&$u));
user_page_summary_item("Areas of Expertise", user_page_summary_item("Areas of Expertise",
"judge_expertise.php", "judge_status_expertise", array($u)); "judge_expertise.php", "judge_status_expertise", array(&$u));
if($config['judges_availability_enable'] == 'yes') { if($config['judges_availability_enable'] == 'yes') {
user_page_summary_item("Time Availability", user_page_summary_item("Time Availability",
"judge_availability.php", "judge_status_availability", array($u)); "judge_availability.php", "judge_status_availability", array(&$u));
} }
if($config['judges_specialaward_enable'] == 'yes' || $u['special_award_only'] == 'yes') { if($config['judges_specialaward_enable'] == 'yes' || $u['special_award_only'] == 'yes') {
user_page_summary_item("Special Award Preferences", user_page_summary_item("Special Award Preferences",
"judge_special_awards.php", "judge_status_special_awards", array($u)); "judge_special_awards.php", "judge_status_special_awards", array(&$u));
} }
// user_page_summary_item("Areas of Expertise", // user_page_summary_item("Areas of Expertise",
// "register_judges_expertise.php", "expertiseStatus", array($u)); // "register_judges_expertise.php", "expertiseStatus", array($u));

View File

@ -57,16 +57,16 @@ case 'save':
exit; exit;
} }
if($_SESSION['embed'] == true) { // if($_SESSION['embed'] == true) {
display_messages(); display_messages();
echo "<br /><h3>".i18n('Special Awards')."</h3>"; echo "<br /><h3>".i18n('Special Awards')."</h3>";
echo "<br />"; echo "<br />";
} else { /* } else {
//send the header //send the header
send_header('Special Awards', send_header('Special Awards',
array('Judge Registration' => 'judge_main.php') array('Judge Registration' => 'judge_main.php')
); );
} }*/
?> ?>
<script type="text/javascript"> <script type="text/javascript">
function judgespecialawards_save() function judgespecialawards_save()
@ -150,5 +150,5 @@ if($_SESSION['embed'] != true) {
</form> </form>
<? <?
if($_SESSION['embed'] != true) send_footer(); // if($_SESSION['embed'] != true) send_footer();
?> ?>

View File

@ -126,19 +126,16 @@ $tabs = array( 'fairinfo' => array(
'label' => 'Expertise', 'label' => 'Expertise',
'types' => array('judge'), 'types' => array('judge'),
'file' => 'judge_expertise.php', 'file' => 'judge_expertise.php',
'disabled' => true,
), ),
'judgeavailability' => array( 'judgeavailability' => array(
'label' => 'Time Avail.', 'label' => 'Time Avail.',
'types' => array('judge'), 'types' => array('judge'),
'file' => 'judge_availability.php', 'file' => 'judge_availability.php',
'disabled' => true,
), ),
'judgesa' => array( 'judgesa' => array(
'label' => 'Special Awards', 'label' => 'Special Awards',
'types' => array('judge'), 'types' => array('judge'),
'file' => 'judge_special_awards.php', 'file' => 'judge_special_awards.php',
'disabled' => true,
), ),
'volunteerpos' => array( 'volunteerpos' => array(
'label' => 'Volunteer Positions', 'label' => 'Volunteer Positions',
@ -323,10 +320,12 @@ foreach($tabs as $k=>$t) {
var stat = new Array(); var stat = new Array();
<? <?
/* An array of all tabs and current status for each one */ /* An array of all tabs and current status for each one */
$tally = 0;
foreach($tabs as $k=>$t) { foreach($tabs as $k=>$t) {
/* Enabled has been modified now for this user */ /* Enabled has been modified now for this user */
if($t['disabled'] == true) continue; if($t['disabled'] == true) continue;
if($t['index'] != 1) echo ", "; if($tally != 0) echo ", ";
$tally++;
echo "stat['$k'] = '{$t['status']}'\n"; echo "stat['$k'] = '{$t['status']}'\n";
} }
?> ?>