'assign_view' => True,
'assign_update' => True,
'get_time_selection_form' => True,
+ 'ht_sandbox' => True,
);
function 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;
}
+ 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'));
<td align="center" bgcolor="#c9c9c9"><font face="{font}"><b>{title}</b></font></td>
</tr>
</table>
- <br>
+
+ <a href="{ht_sandbox_link}">{ht_sandbox_link_title}</a>
+ <br><br>
<form action="{linkurl}" method="POST">
<table width="40%" border="0" cellspacing="2" cellpadding="2" align=center>