From 9e24999ac4e155679e9c8bf05e92b4f0742096a6 Mon Sep 17 00:00:00 2001 From: Alan Jack Pippin Date: Tue, 18 Sep 2007 23:39:21 -0600 Subject: [PATCH] Removed interview priority and notes fields for aaronic priesthood holders in interview scheduler tool. --- inc/class.eq.inc.php | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/inc/class.eq.inc.php b/inc/class.eq.inc.php index 1c25d7a..b0a9fd0 100644 --- a/inc/class.eq.inc.php +++ b/inc/class.eq.inc.php @@ -1683,6 +1683,7 @@ class eq $elder_name = $entry['elder_name']; $int_pri = $entry['pri']; $aaronic = $entry['aaronic']; + //print "int_notes: $int_notes elder_name: $elder_name aaronic: $aaronic
"; if($aaronic == 0) { // Perform database save actions here $this->db->query("UPDATE eq_elder set " . @@ -1886,20 +1887,24 @@ class eq $table_data.= "$name"; $table_data.= "$phone"; $table_data.= ""; - $table_data.= ''; + foreach(range(0,6) as $num) { + if($num == 0) { $num = 1; } else {$num = $num*5; } + if($int_pri == $num) { $selected[$num] = 'selected="selected"'; } else { $selected[$num] = ''; } + $table_data.= ''; + } + $table_data.= ''; } - $table_data.= ''; $table_data.= "$date"; - $table_data.= ''; + if($aaronic == 0) { + $table_data.= ''; + } $table_data.= ''; $table_data.= ''; $table_data.= ''; $table_data.= ''; - $table_data.= ''; + $table_data.= ''."\n"; $i++; } else { $link_data['menuaction'] = 'eq.eq.int_update'; @@ -2212,7 +2217,7 @@ class eq } } - $name_width=175; $phone_width=100; $date_width=100; $notes_width=300; + $name_width=190; $phone_width=100; $date_width=100; $notes_width=300; $completed_table_width=$name_width + $phone_width + $date_width + $notes_width; $completed_header_row = "Family Name"; $completed_header_row.= "Phone"; -- 2.34.1