X-Git-Url: http://git.pippins.net/embedvideo/.git/%27%20%20%20%20.%20%24GLOBALS%5B%27phpgw%27%5D-%3Elink%28%27inc/jquery/jquery.tablesorter.css%27%29.%27?a=blobdiff_plain;f=inc%2Fclass.tc.inc.php;h=59aa4c0c4c516e34c72af18d42ff829f9a1c82d0;hb=b5c74cd3f678ed412df81cda7f8f77344d374d7a;hp=543aed895317a4f44ff95ab615e15dceb31fa644;hpb=80739f4c39deff0ff28e20be40871a30eb58664a;p=eq%2F.git
diff --git a/inc/class.tc.inc.php b/inc/class.tc.inc.php
index 543aed8..59aa4c0 100644
--- a/inc/class.tc.inc.php
+++ b/inc/class.tc.inc.php
@@ -13,4538 +13,4995 @@
class tc
{
- var $db;
- var $db2;
- var $t;
- var $nextmatchs;
- var $grants;
- var $jscal;
- var $cal_options;
- var $default_ht_num_months;
- var $default_ppi_num_months;
- var $default_ppi_num_years;
- var $default_int_num_quarters;
- var $default_int_num_years;
- var $default_vis_num_years;
- var $default_att_num_quarters;
- var $max_num_districts;
- var $current_year;
- var $current_month;
- var $upload_target_path;
- var $script_path;
- var $max_appointments;
- var $max_presidency_members;
-
- var $public_functions = array
- (
- 'ht_view' => True,
- 'ht_update' => True,
- 'act_list' => True,
- 'act_view' => True,
- 'act_update' => True,
- 'par_view' => True,
- 'ppi_view' => True,
- 'ppi_update' => True,
- 'ppi_sched' => True,
- 'int_view' => True,
- 'int_update' => True,
- 'int_sched' => True,
- 'vis_sched' => True,
- 'vis_view' => True,
- 'vis_update' => True,
- 'att_view' => True,
- 'att_update' => True,
- 'dir_view' => True,
- 'org_view' => True,
- 'schedule' => True,
- 'admin' => True,
- 'email' => True,
- 'email_appt' => True,
- 'willing_view' => True,
- 'willing_update' => True,
- 'send_ical_appt' => True,
- 'assign_view' => True,
- 'assign_update' => True,
- 'get_time_selection_form' => True,
- );
+ var $db;
+ var $db2;
+ var $db3;
+ var $t;
+ var $nextmatchs;
+ var $grants;
+ var $jscal;
+ var $cal_options;
+ var $default_ht_num_months;
+ var $default_ppi_num_months;
+ var $default_ppi_num_years;
+ var $default_int_num_quarters;
+ var $default_int_num_years;
+ var $default_vis_num_years;
+ var $default_att_num_quarters;
+ var $max_num_districts;
+ var $current_year;
+ var $current_month;
+ var $upload_target_path;
+ var $script_path;
+ var $max_appointments;
+ var $max_leader_members;
+ var $ppi_frequency_label;
+
+ var $public_functions = array
+ (
+ 'ht_view' => True,
+ 'ht_update' => True,
+ 'act_list' => True,
+ 'act_view' => True,
+ 'act_update' => True,
+ 'par_view' => True,
+ 'ppi_view' => True,
+ 'ppi_update' => True,
+ 'ppi_sched' => True,
+ 'int_view' => True,
+ 'int_update' => True,
+ 'int_sched' => True,
+ 'vis_sched' => True,
+ 'vis_view' => True,
+ 'vis_update' => True,
+ 'att_view' => True,
+ 'att_update' => True,
+ 'dir_view' => True,
+ 'org_view' => True,
+ 'schedule' => True,
+ 'admin' => True,
+ 'email' => True,
+ 'email_appt' => True,
+ 'willing_view' => True,
+ 'willing_update' => True,
+ 'send_ical_appt' => True,
+ 'assign_view' => True,
+ 'assign_update' => True,
+ 'get_time_selection_form' => True,
+ 'ht_sandbox' => True,
+ );
- function tc()
- {
- if(file_exists("setup/tc_config.local")) {
- include("setup/tc_config.local");
- } else {
- include("setup/tc_config");
- }
-
- $this->script_path = "$this->application_path"."/bin";
- $this->max_presidency_members = 99;
- $this->max_appointments = 32768;
-
- $this->db = $GLOBALS['phpgw']->db;
- $this->db2 = $this->db;
- $this->db3 = $this->db;
- $this->nextmatchs = CreateObject('phpgwapi.nextmatchs');
- $this->t = $GLOBALS['phpgw']->template;
- $this->account = $GLOBALS['phpgw_info']['user']['account_id'];
- $this->grants = $GLOBALS['phpgw']->acl->get_grants('tc');
- $this->grants[$this->account] = PHPGW_ACL_READ + PHPGW_ACL_ADD + PHPGW_ACL_EDIT + PHPGW_ACL_DELETE;
-
- $this->jscal = CreateObject('tc.jscalendar'); // before phpgw_header() !!!
- $this->cal_options = 'daFormat : "%Y-%m-%d",
- ifFormat : "%Y-%m-%d",
- mondayFirst : false,
- weekNumbers : false';
-
- $GLOBALS['phpgw_info']['flags']['app_header'] = 'The 3rd Counselor';
- $GLOBALS['phpgw']->common->phpgw_header();
-
- $this->current_day = `date '+%d'`;
- $this->current_day = $this->current_day-0; // Make it numeric
- $this->current_month = `date '+%m'`;
- $this->current_month = $this->current_month-0; // Make it numeric
- $this->current_year = `date '+%Y'`;
- $this->current_year = $this->current_year-0; // Make it numeric
-
- echo parse_navbar();
- $this->display_app_header();
- }
-
- function save_sessiondata()
- {
-
- }
-
- function display_app_header()
- {
- $this->t->set_file(array('tc_header' => 'header.tpl'));
-
- if (isset($phpgw_info['user']['preferences']['tc']['tc_font']))
+ function tc()
{
- $font = $phpgw_info['user']['preferences']['tc']['tc_font'];
+ if(file_exists("setup/tc_config.local")) {
+ include("setup/tc_config.local");
+ } else {
+ include("setup/tc_config");
+ }
+
+ $this->jquery_url = $GLOBALS['phpgw']->link('inc/jquery/jquery.js');
+ $this->jquery_tablesorter_url = $GLOBALS['phpgw']->link('inc/jquery/jquery.tablesorter.js');
+
+ $this->script_path = "$this->application_path"."/bin";
+ $this->max_leader_members = 99;
+ $this->max_appointments = 32768;
+
+ $this->db = $GLOBALS['phpgw']->db;
+ $this->db2 = $this->db;
+ $this->db3 = $this->db;
+ $this->nextmatchs = CreateObject('phpgwapi.nextmatchs');
+ $this->t = $GLOBALS['phpgw']->template;
+ $this->account = $GLOBALS['phpgw_info']['user']['account_id'];
+ $this->grants = $GLOBALS['phpgw']->acl->get_grants('tc');
+ $this->grants[$this->account] = PHPGW_ACL_READ + PHPGW_ACL_ADD + PHPGW_ACL_EDIT + PHPGW_ACL_DELETE;
+
+ $GLOBALS['phpgw_info']['flags']['css'] .= "-->\n\n"
+ . ''
+ . "\n