Esempio n. 1
0
 public function __construct()
 {
     parent::__construct();
     //$js=array_push($this->js, 'register', 'bootstrap-select.min', 'main');
     $this->data['js'] = javaScript($this->js);
     $this->data['class'] = $this->class . ' ' . $this->dropdown;
 }
Esempio n. 2
0
 public function __construct()
 {
     parent::__construct();
     $this->load->model(array('messages_model', 'auth_model'));
     $this->file_ext = '_' . $this->uri->segment(3);
     $js = array_push($this->js, 'bootstrap-select.min', 'bootstrap-datepicker', 'main', 'live', 'messages');
     $this->data['js'] = javaScript($this->js);
     $this->data['modules'] = 'clientarea/messages/modules/';
 }
Esempio n. 3
0
 public function __construct()
 {
     parent::__construct();
     $this->load->model('schedules_model');
     $js = array_push($this->js, 'bootstrap-select.min', 'bootstrap-datepicker', 'main', 'live');
     $this->data['js'] = javaScript($this->js);
     /*
      * Modules Folder
      * 
      */
     $this->data['modules'] = 'clientarea/schedules/modules/';
     /*
      * Get the month from url
      * 
      */
     $this->month = $this->uri->segment(5);
     /*
      * Get the year from url
      * 
      */
     $this->year = $this->uri->segment(4);
     /*
      * Get the staff id from url
      * 
      */
     $this->staff = $this->uri->segment(6);
     /*
      * Set the preferences for the calender
      * 
      */
     $this->prefs = array('show_next_prev' => TRUE, 'next_prev_url' => base_url() . 'clientarea/schedules/' . $this->uri->segment(3) . '/', 'staff_id' => $this->staff, 'day_type' => 'long');
     /*
      * Initialize the library and send the prefs
      * 
      */
     $this->load->library('calendar', $this->prefs);
     /*
      * Create an array of days 
      * 
      */
     $this->days = array('sunday', 'monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday');
     /*
      * Get the number of in the month provided by the url
      * 
      */
     $this->last = days_in_month($this->month, $this->year);
     /*
      * Create a usable date from the last day var
      * 
      */
     $this->last_day = new DateTime($this->last . '-' . $this->month . '-' . $this->year . '');
     /*
      * Create a usable date from the first day var
      * 
      */
     $this->first_day = new DateTime('01-' . $this->month . '-' . $this->year . '');
 }
Esempio n. 4
0
 public function __construct()
 {
     parent::__construct();
     $this->load->model('machinery_model');
     $js = array_push($this->js, 'bootstrap-select.min', 'bootstrap-datepicker', 'main', 'live', 'machinery');
     $this->data['js'] = javaScript($this->js);
     $this->file_ext = '_' . $this->uri->segment(3);
     $this->posts = $this->input->post(NULL, TRUE);
     $this->modules = 'clientarea/machinery/modules/';
 }
Esempio n. 5
0
 public function __construct()
 {
     parent::__construct();
     $this->load->model(array('customer_model', 'sites_model', 'supplier_model'));
     $js = array_push($this->js, 'bootstrap-select.min', 'bootstrap-datepicker', 'main', 'live', 'customers', 'sites', 'fileupload');
     $this->data['js'] = javaScript($this->js);
     $this->file_ext = '_' . $this->uri->segment(3);
     $this->posts = $this->input->post(NULL, TRUE);
     $this->config->load('register');
     $this->data['types'] = array('Product', 'Consumable', 'Product/Consumable');
 }
Esempio n. 6
0
 public function __construct()
 {
     parent::__construct();
     $this->load->model(array('sites_model', 'specifications_model'));
     $js = array_push($this->js, 'bootstrap-select.min', 'bootstrap-datepicker', 'main', 'live', 'sites', 'lightbox');
     $this->data['js'] = javaScript($this->js);
     $this->file_ext = '_' . $this->uri->segment(3);
     $this->posts = $this->input->post(NULL, TRUE);
     $this->load->helper('directory');
     $this->load->library('uploader');
 }
Esempio n. 7
0
 public function __construct()
 {
     parent::__construct();
     $this->load->model('staff_model');
     $js = array_push($this->js, 'bootstrap-datepicker', 'main', 'live', 'staff');
     $this->data['js'] = javaScript($this->js);
     $this->file_ext = '_' . $this->uri->segment(3);
     $this->posts = $this->input->post(NULL, TRUE);
     $this->config->load('register');
     $this->modules = 'clientarea/staff/modules/';
     $this->data['deleted'] = $this->staff_model->count_tasks('staff', array('deleted' => true));
 }
Esempio n. 8
0
 public function __construct()
 {
     parent::__construct();
     $js = array_push($this->js, 'bootstrap-select.min', 'bootstrap-datepicker', 'main', 'live', 'contact_book');
     $this->data['js'] = javaScript($this->js);
     //Load the config file for this class
     $this->config->load('register');
     //Load the model file
     $this->load->model(array('contactbook_model', 'staff_model', 'customer_model'));
     //Acordains for the dropdown - key = id, val = glyph
     $this->data['accordians'] = array('personal' => 'star-empty', 'customer' => 'book', 'suppliers' => 'cog', 'staff' => 'user');
     //Modules folder
     $this->data['modules'] = "clientarea/contact_book/modules/";
     //Post Vars
     $this->posts = $this->input->post(NULL, TRUE);
 }
Esempio n. 9
0
 public function __construct()
 {
     parent::__construct();
     $js = array_push($this->js, 'bootstrap-datepicker', 'bootstrap-select.min', 'main', 'live');
     $this->data['js'] = javaScript($this->js);
     //Load the config file for this class
     $this->config->load('register');
     $this->config->load('products');
     $this->data['types'] = array('Product', 'Consumable', 'Product/Consumable');
     //Load the model file
     $this->load->model('supplier_model');
     //Modules folder
     $this->data['modules'] = "clientarea/suppliers/modules/";
     //Post Vars
     $this->posts = $this->input->post(NULL, TRUE);
 }
Esempio n. 10
0
 public function __construct()
 {
     parent::__construct();
     //Load the language file for this class
     $this->lang->load('register');
     //Load the config file for this class
     $this->config->load('register');
     //Push js depencancies to current array
     $js = array_push($this->js, 'register', 'bootstrap-select.min', 'main');
     //Prepare the js loop for view
     $this->data['js'] = javaScript($this->js);
     //Set the class for the view, this is bootrap and declared in My_Controller
     $this->data['class'] = $this->class . ' ' . $this->dropdown;
     //So we can use the session data in the view without calling session vars
     $this->data['data'] = $this->session->all_userdata();
     $this->data['areas'] = array('staff' => true, 'stores' => true, 'customers' => true, 'suppliers' => true, 'sub_contractors' => true, 'scheduals' => true, 'work_orders' => true, 'documents' => true, 'contact_book' => true, 'accounts' => true, 'control_panel' => true, 'sites' => true, 'specifications' => true, 'work_orders' => true);
 }
Esempio n. 11
0
 public function __construct()
 {
     parent::__construct();
     if ($this->uri->segment(3) == '') {
         $js = array_push($this->js, 'bootstrap-select.min', 'bootstrap-datepicker', 'main', 'live', 'jquery.matchHeight-min', 'stores');
     } else {
         $js = array_push($this->js, 'bootstrap-select.min', 'bootstrap-datepicker', 'jquery.matchHeight-min', 'main', 'live', 'stores');
     }
     $this->data['js'] = javaScript($this->js);
     $this->load->model(array('stores_model', 'specifications_model'));
     //Load the csv helper file..
     $this->load->helper('csv');
     $this->load->library('table');
     $this->data['deleted'] = $this->stores_model->count_tasks('orders', array('deleted' => true));
     //Load the cart class for checking in and out the products..
     $this->load->library('cart');
 }
Esempio n. 12
0
 public function __construct()
 {
     parent::__construct();
     //Load the config file for this class
     $this->config->load('register');
     //Load the table class
     $this->load->library('table');
     //Needed Models..
     $this->load->model(array('worders_model', 'specifications_model', 'customer_model', 'staff_model'));
     //the current file ext for main view..
     $this->file_ext = '_' . $this->uri->segment(3);
     //push onto addtional js
     $js = array_push($this->js, 'bootstrap-select.min', 'bootstrap-datepicker', 'bootstrap-timepicker.min', 'main', 'live', 'work_orders');
     //js needed
     $this->data['js'] = javaScript($this->js);
     //View var
     $this->data['modules'] = 'clientarea/work_orders/modules/';
     //Create a public var
     $this->modules = $this->data['modules'];
     //Explode the 3rd part of the url to find out where we are.
     $uri = explode('_', $this->uri->segment(3));
     //So we don't wipe out the session var
     if ($uri[0] != 'deleted') {
         //Set the location we are via the url patterns
         if (in_array('purchase', $uri)) {
             //Purchase orders is 1
             $this->session->set_userdata('location', 1);
             //No 3rd uri segment so 2
         } elseif ($uri[0] == '') {
             //Set to 2
             $this->session->set_userdata('location', 2);
             //Set the table
         }
     }
     //Move the session var into private object
     $this->type = $this->session->userdata('location');
     //Get the deleted itemsß
     $this->data['deleted'] = $this->worders_model->count_tasks($this->type == 1 ? 'purchase_orders' : 'wk_orders', array('deleted' => true));
 }
Esempio n. 13
0
 public function __construct()
 {
     parent::__construct();
     /**
      * @param load the corresponding model
      * 
      */
     $this->load->model('staff_model');
     //Load the config file for this class
     $this->config->load('register');
     /**
      * @param push the required js files for this section
      * 
      */
     $js = array_push($this->js, 'bootstrap-select.min', 'bootstrap-datepicker', 'live', 'main');
     /**
      * @param create javascript include array
      * 
      */
     $this->data['js'] = javaScript($this->js);
     /**
      * @param url segment for correct view
      * 
      */
     $this->file_ext = '_' . $this->uri->segment(3);
     /*
      * Modules folder
      * 
      */
     $this->data['modules'] = 'clientarea/subcontractors/modules/';
     /*
      * Post array
      * 
      */
     $this->posts = $this->input->post(NULL, TRUE);
 }
Esempio n. 14
0
 public function alerts()
 {
     $js = array_push($this->js, 'alerts');
     $this->data['js'] = javaScript($this->js);
     $this->get_alerts(false);
     $this->data['extras'] = true;
     $this->view($this->master, $this->prefix);
 }
Esempio n. 15
0
define('CALENDAR_TABLE', $roster->db->table('info', $addon['basename']));
define('ATTENDANCE_TABLE', $roster->db->table('attend', $addon['basename']));
define('OTHERINFO_TABLE', $roster->db->table('other', $addon['basename']));
$roster->output['html_head'] = '
<script type="text/javascript" src="' . ROSTER_PATH . 'addons/GroupCalendar/css/tooltip.js"></script>

<link rel="stylesheet" href="' . ROSTER_PATH . 'addons/GroupCalendar/css/calendar.css" type="text/css" />
<link rel="stylesheet" href="' . ROSTER_PATH . 'addons/GroupCalendar/css/style.css" type="text/css" />
';
?>



<?php 
echo $tooltipHolder;
javaScript();
//print makeContainerTop($gc_lang['event_calendar'],"100%");
?>
	<?php 
if (isset($_GET['id'])) {
    include 'calendar_event.php';
}
if (!isset($_GET['id'])) {
    print border('sgreen', 'start', $roster->locale->act['event_calendar']);
    ?>
	<table cellpadding="0" cellspacing="0" border="0" align="center">
	<tr>
		<td>
			<?php 
    echo $scrollarrows;
    ?>
Esempio n. 16
0
 public function __construct()
 {
     parent::__construct();
     $this->load->library('uploader');
     /**
      * @param load the corresponding model
      * 
      */
     $this->load->model('specifications_model');
     /**
      * @param push the required js files for this section
      * 
      */
     $js = array_push($this->js, 'bootstrap-select.min', 'bootstrap-datepicker', 'live', 'specifications', 'fileupload');
     /**
      * @param create javascript include array
      * 
      */
     $this->data['js'] = javaScript($this->js);
     /**
      * @param url segment for correct view
      * 
      */
     $this->file_ext = '_' . $this->uri->segment(3);
     /*
      * Modules folder
      * 
      */
     $this->data['modules'] = 'clientarea/specifications/modules/';
     /*
      * Post array
      * 
      */
     $this->posts = $this->input->post(NULL, TRUE);
     /**
      * @param $this->date_id (int)
      * 
      */
     $this->date_id = (int) ($this->data['atts'] = array('Broom Sweep' => 'broom', 'Kex Sweep' => 'kex', 'Spot Mop' => 'spot', 'Full Mop' => 'full', 'Spot Vacuum' => 'spot_vac', 'Full Vacuum' => 'full_vac', 'Remove Rubbish' => 'rubbish', 'Spray Wipe Furniture' => 'spray_furn', 'Spray Wipe Work Surfaces' => 'spray_surf', 'Clean Sink Unit' => 'sink', 'Dust Low Ledges' => 'low_dust', 'Dust High Ledges' => 'high_dust', 'Clean Telephones' => 'tel', 'Clean Light Switches' => 'clean_light', 'Clean Skirtings' => 'clean_skirt', 'Clean Hand Rails' => 'clean_hand', 'Lift Control Panel' => 'lift_panel', 'Clean Mirrors' => 'mirrors', 'Clean Toilet Bowls' => 'toilet_bowl', 'Clean Toilet Fittings' => 'toilet_fitting', 'Clean Hand Basins' => 'hand_basins', 'Clean Dispensers' => 'dispensers', 'Replenish' => 'replenish'));
     /*
      * Headers array which gets inserted into the array above to produce custom headers...
      * 
      * Keep arrays seperate for further extendibility...
      * 
      */
     $this->data['headers'] = array('Floors', 'Fittings &amp; Fixtures', 'Toilets');
     /**
      * Qa Session array
      * 
      * @param Array..
      */
     $this->scores = is_array($this->session->userdata('scores')) ? $this->session->userdata('scores') : NULL;
     /**
      * Qa files array
      * 
      * @param Array..
      */
     $this->qafiles = is_array($this->session->userdata('qafiles')) ? $this->session->userdata('qafiles') : NULL;
     /**
      * Have we already got session keys, if so move them into variable
      * 
      * * @param Array.. 
      */
     $this->sesskey = is_array($this->session->userdata('siteCheck')) ? $this->session->userdata('siteCheck') : NULL;
 }