X-Git-Url: http://git.pippins.net/embedvideo/.git/static/%7Bupdate_day%7D?a=blobdiff_plain;f=inc%2Fclass.tc.inc.php;h=e7d097e0f00af61078a86ce7e6a9b54caaf8b85a;hb=f0eebf574a93eca770846188b19e00ce3a9f6323;hp=d1dae8e0ce3a01d11c8f2cc635123f64c7851b31;hpb=a7b3dad05fd92523cda0ebb5ba7c85e194b4e82f;p=eq%2F.git diff --git a/inc/class.tc.inc.php b/inc/class.tc.inc.php index d1dae8e..e7d097e 100644 --- a/inc/class.tc.inc.php +++ b/inc/class.tc.inc.php @@ -68,6 +68,7 @@ class tc 'assign_view' => True, 'assign_update' => True, 'get_time_selection_form' => True, + 'ht_sandbox' => True, ); function tc() @@ -216,6 +217,9 @@ class tc $this->t->set_var('actionurl',$GLOBALS['phpgw']->link('/tc/index.php','menuaction=tc.tc.ht_view')); $this->t->set_var('title','Hometeaching'); + $this->t->set_var('ht_sandbox_link',$GLOBALS['phpgw']->link('/tc/index.php','menuaction=tc.tc.ht_sandbox')); + $this->t->set_var('ht_sandbox_link_title','Hometeaching Sandbox'); + $sql = "SELECT * FROM tc_district AS td JOIN tc_individual AS ti WHERE td.supervisor=ti.individual AND td.valid=1 ORDER BY td.district ASC"; $this->db->query($sql,__LINE__,__FILE__); $i=0; @@ -394,6 +398,23 @@ class tc } + function ht_sandbox() + { + $this->t->set_file(array('ht_sandbox_t' => 'ht_sandbox.tpl')); + $this->t->set_block('ht_sandbox_t','district_list','list'); + + $this->t->set_var('linkurl',$GLOBALS['phpgw']->link('/tc/index.php','menuaction=tc.tc.ht_sandbox')); + + $this->t->set_var('actionurl',$GLOBALS['phpgw']->link('/tc/index.php','menuaction=tc.tc.ht_sandbox')); + $this->t->set_var('title','Hometeaching Sandbox'); + + // content + + $this->t->pfp('out','ht_sandbox_t'); + $this->save_sessiondata(); + } + + function ht_update() { $this->t->set_file(array('ht_update_t' => 'ht_update.tpl')); @@ -1471,9 +1492,9 @@ class tc // Display a scheduling table for this presidency member $district_number = '*'; $district_name = $presidency_name; - $table_title = "District ".$district_number.": ".$district_name.": All indivs with " . $this->ppi_frequency_label . " PPI Not Completed"; + $not_completed_table_title = "District ".$district_number.": ".$district_name.": All indivs with " . $this->ppi_frequency_label . " PPI Not Completed"; $appt_table_title = "District ".$district_number.": ".$district_name.": ".$this->ppi_frequency_label." PPI Appointment Slots"; - $this->t->set_var('table_title',$table_title); + $this->t->set_var('not_completed_table_title',$not_completed_table_title); $this->t->set_var('appt_table_title',$appt_table_title); // query the database for all the appointments @@ -1621,6 +1642,7 @@ class tc } } // End for individuals Loop + $completed_table_title = "District ".$district_number.": ".$district_name.": All indivs with " . $this->ppi_frequency_label . " PPI Completed"; $name_width=175; $phone_width=100; $date_width=100; $notes_width=300; $completed_table_width=$name_width + $phone_width + $date_width + $notes_width; $completed_header_row = "Individual"; @@ -1628,6 +1650,7 @@ class tc $completed_header_row.= "Date"; $completed_header_row.= "PPI Notes"; + $this->t->set_var('completed_table_title',$completed_table_title); $this->t->set_var('table_width',$table_width); $this->t->set_var('header_row',$header_row); $this->t->set_var('table_data',$table_data);