X-Git-Url: http://git.pippins.net/embedvideo/.git/static/git-logo.png?a=blobdiff_plain;f=inc%2Fclass.tc.inc.php;h=b1995ed9202c5c266d0251ed472a416c08b6114f;hb=1d7d0afcd39dbd2c4c4ebe13ac110cb984270761;hp=4b072ca0ba0c28fde0589e6ac13fdbb3fbbd9af7;hpb=ab549d4296d739a9886437a41e65ab3cd28b5301;p=eq%2F.git diff --git a/inc/class.tc.inc.php b/inc/class.tc.inc.php index 4b072ca..b1995ed 100644 --- a/inc/class.tc.inc.php +++ b/inc/class.tc.inc.php @@ -13,4548 +13,4989 @@ 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