From f0eebf574a93eca770846188b19e00ce3a9f6323 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 8 Oct 2010 20:39:41 -0600 Subject: [PATCH] set up page for ht sandbox --- inc/class.tc.inc.php | 21 +++++++++++++++++++++ templates/default/ht_view.tpl | 4 +++- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/inc/class.tc.inc.php b/inc/class.tc.inc.php index b87659f..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')); diff --git a/templates/default/ht_view.tpl b/templates/default/ht_view.tpl index 4dd8d4b..5787dbb 100644 --- a/templates/default/ht_view.tpl +++ b/templates/default/ht_view.tpl @@ -5,7 +5,9 @@ {title} -
+ + {ht_sandbox_link_title} +

-- 2.34.1