X-Git-Url: http://git.pippins.net/embedvideo/.git/static/gitweb.js?a=blobdiff_plain;f=inc%2Fclass.tc.inc.php;h=ac8fd709c687d16791243295e81cac7212ba62bd;hb=c2126b4823045fd8915a51c9f0f38ca103a15731;hp=79e286b6df9f23d9422c0e3d3153cffa9ad8cebd;hpb=fd3f70af9523a487a5b342501a39edad2e9b1080;p=eq%2F.git diff --git a/inc/class.tc.inc.php b/inc/class.tc.inc.php index 79e286b..ac8fd70 100644 --- a/inc/class.tc.inc.php +++ b/inc/class.tc.inc.php @@ -2138,7 +2138,7 @@ class tc $appt_table_data = ""; // Find out what the EQ Presidency ID is - $sql = "SELECT * FROM tc_presidency where eqpres=1 and valid=1"; + $sql = "SELECT * FROM tc_presidency where president=1 and valid=1"; $this->db->query($sql,__LINE__,__FILE__); if($this->db->next_record()) { $presidency_name = $this->db->f('name'); @@ -3570,7 +3570,7 @@ class tc $header_row.= "Location"; $table_data = ""; - $sql = "SELECT * FROM tc_presidency where valid=1"; + $sql = "SELECT * FROM tc_presidency where valid=1 GROUP BY indiv"; $this->db->query($sql,__LINE__,__FILE__); $i=0; while ($this->db->next_record()) { @@ -4070,13 +4070,10 @@ class tc $president = $entry['president']; $counselor = $entry['counselor']; $secretary = $entry['secretary']; - $eqpresidency = $entry['eqpresidency']; - // Set the individual id to 0 for EQ Presidency tagged entry - if($eqpresidency == 1) { $indiv="0"; } - // Re-look up the individual name for the ID if we aren't an EQ Presidency tagged entry - else { $name = $indiv2name[$indiv]; } + // look up the individual name for the ID + $name = $indiv2name[$indiv]; //print "id=$id indiv=$indiv name=$name email=$email district=$district president=$president "; - //print "counselor=$counselor secretary=$secretary eqpres=$eqpresidency
"; + //print "counselor=$counselor secretary=$secretary
"; if(($indiv > 0) || ($name != "")) { if($id < $this->max_presidency_members) { @@ -4089,15 +4086,14 @@ class tc " ,president='" . $president . "'" . " ,counselor='" . $counselor . "'" . " ,secretary='" . $secretary . "'" . - " ,eqpres='" . $eqpresidency . "'" . " WHERE presidency=" . $id,__LINE__,__FILE__); } else { //print "Adding New Entry
"; $this->db2->query("INSERT INTO tc_presidency (presidency,indiv,district,name," . - "email,president,counselor,secretary,eqpres,valid) " . + "email,president,counselor,secretary,valid) " . "VALUES (NULL,'" . $indiv . "','" . $district . "','" . $name . "','" . $email . "','" . $president . "','" . - $counselor . "','" . $secretary . "','" . $eqpres . "','1'" . + $counselor . "','" . $secretary . "','1'" . ")",__LINE__,__FILE__); } } else { @@ -4156,7 +4152,7 @@ class tc $sql = "SELECT * FROM tc_presidency where valid=1"; $this->db->query($sql,__LINE__,__FILE__); $table_data = ""; - $header_row = "IndividualEmailDistrictPresidentCounselorSecretaryPresidency"; + $header_row = "IndividualEmailDistrictPresidentCounselorSecretary"; while ($this->db->next_record()) { // Extract the data for each presidency record $id = $this->db->f('presidency'); @@ -4167,7 +4163,6 @@ class tc $president = $this->db->f('president'); $counselor = $this->db->f('counselor'); $secretary = $this->db->f('secretary'); - $eqpresidency = $this->db->f('eqpres'); // Create the forms needed in the table $table_data .= ""; @@ -4231,12 +4226,6 @@ class tc else { $table_data .= ''; } $table_data.=''; - // Presidency - $table_data.= ''; - // End of ROW $table_data .= "\n"; $tr_color = $this->nextmatchs->alternate_row_color($tr_color); @@ -4284,10 +4273,6 @@ class tc $table_data.= ''; - // Presidency - $table_data.= ''; // End of ROW $table_data .= "\n"; $tr_color = $this->nextmatchs->alternate_row_color($tr_color);