X-Git-Url: http://git.pippins.net/embedvideo/.git/static/gitweb.js?a=blobdiff_plain;f=inc%2Fclass.eq.inc.php;h=9e31326f17bf771b08b0ac388eca25f0e3d2215f;hb=c5523b563b93d5cfb85ba5a2e9b206ceac856c65;hp=6a197a22a2b4697bbae99c34839494a809ea94cd;hpb=f851dee007f0c3a6dd802ddc4dd37cfb038b8208;p=eq%2F.git
diff --git a/inc/class.eq.inc.php b/inc/class.eq.inc.php
index 6a197a2..9e31326 100644
--- a/inc/class.eq.inc.php
+++ b/inc/class.eq.inc.php
@@ -1116,7 +1116,7 @@ class eq
$i++;
}
- $elder_width=300; $willing_width=40; $assignment_width=50;
+ $elder_width=230; $willing_width=40; $assignment_width=50;
$total_width=$elder_width+$willing_width;
for ($i=0; $i < count($assignment_list); $i++) {
@@ -1162,7 +1162,7 @@ class eq
$stat_table = '
Total Willing to Serve | ';
for ($j=0; $j < count($assignment_list); $j++) {
- $stat_table .= "".$total_willing[$j]." | ";
+ $stat_table .= "".$total_willing[$j]." | ";
}
$this->t->set_var('stat_table',$stat_table);
@@ -3486,7 +3486,7 @@ class eq
$uid = 0;
// Update an existing appointment
- if($appointment != 0)
+ if($appointment < 2048)
{
//Only perform a database update if we have made a change to this appointment
$sql = "SELECT * FROM eq_appointment where " .
@@ -3512,10 +3512,10 @@ class eq
}
// Add a new appointment
- else if(($appointment == 0) && ($date != "") && ($time != ""))
+ else if(($appointment >= 2048) && ($date != "") && ($time != ""))
{
$this->db->query("INSERT INTO eq_appointment (appointment,presidency,family,elder,date,time,uid) "
- . "VALUES ('" . $appointment . "','" . $presidency . "','" . $family . "','"
+ . "VALUES (NULL,'" . $presidency . "','" . $family . "','"
. $elder . "','" . $date . "','" . $time . "','" . $uid ."')",__LINE__,__FILE__);
//print "adding entry: appt=$appointment date: $date time: $time elder: $elder family: $family
";
@@ -3652,59 +3652,64 @@ class eq
}
// Create blank appointment slot
- $appointment = 0;
- $table_data.= "";
-
- // Date selection
- $table_data.= '';
- $table_data.= $this->jscal->input('sched['.$presidency.']['.$appointment.'][date]','','','','','','',$this->cal_options);
- $table_data.= ' | ';
-
- // Time selection
- $table_data.= "";
- $table_data.= '';
- $table_data.= ' : ';
- $table_data.= '';
- $table_data.= '';
- $table_data.= " | ";
+ for ($b=0; $b < 4; $b++) {
+ $appointment = 2048 + $b;
+ $table_data.= "
";
+
+ // Date selection
+ $table_data.= '';
+ $table_data.= $this->jscal->input('sched['.$presidency.']['.$appointment.'][date]','','','','','','',$this->cal_options);
+ $table_data.= ' | ';
- // Elder drop down list
- $table_data.= ' | ';
-
- // Family drop down list
- $table_data.= ' | ';
-
- $table_data.= '';
- $table_data.= '';
+ // Time selection
+ $table_data.= "";
+ $table_data.= '';
+ $table_data.= ' : ';
+ $table_data.= '';
+ $table_data.= '';
+ $table_data.= " | ";
+
+ // Elder drop down list
+ $table_data.= ' | ';
+
+ // Family drop down list
+ $table_data.= ' | ';
+
+ $table_data.= '';
+ $table_data.= '';
+
+ $tr_color = $this->nextmatchs->alternate_row_color($tr_color);
+ $this->t->set_var('tr_color',$tr_color);
+ }
$this->t->set_var('table_data',$table_data);
$this->t->set_var('header_row',$header_row);