function insertRecord()
 {
     $data = array();
     $data['venue_name'] = $this->input->post('venue_name', true);
     $data['email'] = $this->input->post('email', true);
     $data['phone'] = $this->input->post('phone', true);
     $data['city'] = $this->input->post('city', true);
     $data['state'] = $this->input->post('state', true);
     $data['country'] = $this->input->post('country', true);
     $data['postcode'] = $this->input->post('postcode', true);
     $data['address'] = $this->input->post('address', true);
     $data['description'] = $this->input->post('description', true);
     $data['user_id'] = curUsrId();
     $config['upload_path'] = $this->config->item('UPLOAD_PATH_VENUES');
     $config['allowed_types'] = 'gif|jpg|png';
     $config['overwrite'] = FALSE;
     $this->load->library('upload', $config);
     if (count($_FILES) > 0) {
         //Check for valid image upload
         if ($_FILES['image']['error'] == UPLOAD_ERR_OK && is_uploaded_file($_FILES['image']['tmp_name'])) {
             if (!$this->upload->do_upload('image')) {
                 show_error($this->upload->display_errors('<p class="err">', '</p>'));
                 return FALSE;
             } else {
                 $upload_data = $this->upload->data();
                 $data['venue_image'] = $upload_data['file_name'];
             }
         }
     }
     $this->db->insert('eventbooking_venues', $data);
 }
Exemple #2
0
 function tanetData()
 {
     $inner = $page = array();
     $inner['data'] = $this->commonmodel->getAll('invoice_new', false, array(curUsrId()), 'applicant_id');
     $page['content'] = $this->load->view('tanet-invoice', $inner, true);
     $this->load->view($this->default, $page);
 }
 function updateRecord($uid)
 {
     $data['created_by'] = curUsrId();
     $data['title'] = $this->input->post('title', TRUE);
     $data['healtharticles_desc'] = $this->input->post('article_description');
     $data['datetime'] = date('Y-m-d h:i:s');
     $config = array('field' => 'uri', 'title' => 'title', 'table' => 'healtharticles', 'id' => 'healtharticles_id');
     $this->load->library('slug', $config);
     $data1 = array('title' => $data['title']);
     $data['uri'] = $this->slug->create_uri($data1, $uid);
     $config['upload_path'] = $this->config->item('UPLOAD_PATH_ARTICLES');
     $config['allowed_types'] = '*';
     $config['overwrite'] = FALSE;
     $this->load->library('upload', $config);
     if (count($_FILES) > 0) {
         //Check for valid image upload
         if ($_FILES['image']['error'] == UPLOAD_ERR_OK && is_uploaded_file($_FILES['image']['tmp_name'])) {
             if (!$this->upload->do_upload('image')) {
                 show_error($this->upload->display_errors('<p class="err">', '</p>'));
                 return FALSE;
             } else {
                 $upload_data = $this->upload->data();
                 $data['image'] = $upload_data['file_name'];
             }
         }
     }
     $this->db->where("healtharticles_id", $uid);
     $this->db->update('healtharticles', $data);
 }
Exemple #4
0
 function index($offset = 0)
 {
     $this->load->model('Calendermodel');
     $this->load->model('user/usermodel');
     $this->load->library('form_validation');
     $this->load->helper('form');
     $this->load->library('pagination');
     $this->load->helper('url');
     $this->load->helper('text');
     $perpage = 100;
     $config = array();
     $config['base_url'] = base_url() . "calender/index/";
     $config['uri_segment'] = 3;
     $config['total_rows'] = $this->Calendermodel->countAll();
     $config['per_page'] = $perpage;
     $config['first_link'] = 'First';
     $config['last_link'] = 'Last';
     $this->pagination->initialize($config);
     $event = array();
     $event = $this->Calendermodel->getEvents($this->ids);
     if ($this->aauth->isFranshisee()) {
         $ids = $this->usermodel->getFranchiseUsersId(curUsrId());
         $event = $this->Calendermodel->getEvents($offset, $perpage, $ids);
     }
     $inner = array();
     $inner['event'] = $event;
     $inner['pagination'] = $this->pagination->create_links();
     $inner['labels'] = array('' => '', 'date' => 'Date', 'title' => 'Event Title', 'status' => 'Status', 'action' => 'Actions');
     $page = array();
     $page['content'] = $this->load->view('event/event-index', $inner, TRUE);
     $this->load->view($this->event, $page);
 }
 function insertRecord($customer)
 {
     $data = array();
     $data['first_name'] = $this->input->post('first_name', TRUE);
     $data['last_name'] = $this->input->post('last_name', TRUE);
     $data['email'] = $this->input->post('email', TRUE);
     $data['passwd'] = $this->input->post('passwd', TRUE);
     $data['delivery_address1'] = $this->input->post('delivery_address1', TRUE);
     $data['delivery_address2'] = $this->input->post('delivery_address2', TRUE);
     $data['delivery_phone'] = $this->input->post('delivery_phone', TRUE);
     $data['delivery_city'] = $this->input->post('delivery_city', TRUE);
     $data['delivery_zipcode'] = $this->input->post('delivery_zipcode', TRUE);
     $data['linkedin'] = $this->input->post('linkedin', TRUE);
     $data['twitter'] = $this->input->post('twitter', TRUE);
     $data['facebook'] = $this->input->post('facebook', TRUE);
     $data['user_id'] = curUsrId();
     // echo matches[passconf];
     $user_id = $this->aauth->create_user($data['email'], $data['passwd'], $data['first_name'], 6, 0, $this->aauth->get_user()->id, false, 0, array('internal' => true));
     if ($user_id) {
         echo "<pre>";
         var_dump($user_id);
         $data['customer_id'] = $user_id;
         $data['auth_user_id'] = $user_id;
         $this->db->insert('customer', $data);
         $customer_user_id = $this->db->insert_id();
     }
     return;
 }
Exemple #6
0
 function index()
 {
     if (curUsrId()) {
         redirect(createUrl('user/dashboard'));
     }
     $this->load->library('form_validation');
     $this->load->helper('form');
     $this->load->library('encrypt');
     //validation check
     $this->form_validation->set_rules('username', 'Username', 'trim|required');
     $this->form_validation->set_rules('passwd', 'Password', 'trim|required|callback_login_check');
     $this->form_validation->set_error_delimiters('<li>', '</li>');
     if ($this->form_validation->run() == FALSE && !isset($this->session->userdata['loggedin'])) {
         $data = array();
         $this->load->view(THEME . 'login', $data);
     } else {
         session_start();
         $_SESSION['ENABLE_IMAGE_MANAGER'] = true;
         $_SESSION['IMAGE_MANAGER_PATH'] = str_replace('\\', '/', realpath(BASEPATH . '/../')) . '/upload/';
         $_SESSION['DWS_BASE_URL'] = $this->config->item('site_url');
         //            e($_SESSION);
         session_write_close();
         redirect(createUrl('user/dashboard'));
     }
 }
 function init()
 {
     if ($this->aauth->isFranshisee()) {
         $this->ids = $this->usermodel->getFranchiseUsersId(curUsrId());
     } elseif ($this->aauth->isUser()) {
         $this->ids = $this->usermodel->getFranchiseUsersId(curUsrPid());
     }
 }
 function addReply($offset)
 {
     $data = array();
     $data['user_id'] = $offset;
     $data['company_id'] = curUsrId();
     $data['message'] = $this->input->post('message');
     $data['reply'] = 1;
     $this->db->insert('messages', $data);
 }
Exemple #9
0
 function tanetData()
 {
     $inner = $page = array();
     $this->load->model('invoicemodel');
     $inner["weekly_data"] = $this->invoicemodel->getTenantInvoices(curUsrId());
     //$inner['weekly_data'] = $this->commonmodel->getAll('invoice_new', false, array(curUsrId()), 'applicant_id');
     //$page['content'] = $this->load->view('tanet-invoice', $inner, true);
     $page['content'] = $this->load->view('invoice-index', $inner, true);
     $this->load->view($this->default, $page);
 }
 function init()
 {
     if ($this->aauth->isCompany()) {
         $this->company_id = curUsrId();
         $this->ids = $this->usermodel->getCompanyUsersId(curUsrId());
     } elseif ($this->aauth->isUser()) {
         $this->company_id = curUsrPid();
         $this->ids = $this->usermodel->getCompanyUsersId(curUsrPid());
     }
 }
 function updateRecord($uid)
 {
     $data['created_by'] = curUsrId();
     $data['title'] = $this->input->post('title', TRUE);
     parse_str(parse_url($this->input->post('video_url'), PHP_URL_QUERY), $my_array_of_vars);
     $data['videoid'] = $my_array_of_vars['v'];
     $data['video_url'] = $this->input->post('video_url');
     $data['datetime'] = date('Y-m-d h:i:s');
     $this->db->where("id", $uid);
     $this->db->update('video', $data);
 }
 function updateRecord($uid)
 {
     $data['created_by'] = curUsrId();
     $data['title'] = $this->input->post('title', TRUE);
     $data['therapy_desc'] = $this->input->post('therapy_description');
     $data['datetime'] = date('Y-m-d h:i:s');
     $data['image'] = self::uploadImage();
     $config = array('field' => 'uri', 'title' => 'title', 'table' => 'therapies', 'id' => 'therapies_id');
     $this->load->library('slug', $config);
     $data1 = array('title' => $data['title']);
     $data['uri'] = $this->slug->create_uri($data1, $uid);
     $this->db->where("therapies_id", $uid);
     $this->db->update('therapies', $data);
 }
 function updateSetting($uid)
 {
     $id = curUsrId();
     $data['paypal'] = $this->input->post('paypal', TRUE);
     $data['facebook'] = $this->input->post('facebook', TRUE);
     $data['google'] = $this->input->post('google');
     $data['log'] = $this->input->post('log');
     $data['fees'] = $this->input->post('fees');
     $data['twitter'] = $this->input->post('twitter', TRUE);
     $data['pinterest'] = $this->input->post('pinterest', TRUE);
     $data['lat'] = $this->input->post('lat');
     $this->db->where("id", $id);
     $this->db->update('user_extra_detail', $data);
 }
 function getBookings($offset = FALSE, $limit = FALSE, $ids = array())
 {
     $uid = curUsrId();
     $this->db->from('eventbooking_bookings');
     $this->db->join('eventbooking_events', 'eventbooking_events.event_id = eventbooking_bookings.event_id', 'left');
     $this->db->join('customer', 'eventbooking_bookings.customer_id = customer.customer_id', 'left');
     if ($offset) {
         $this->db->offset($offset);
     }
     if ($limit) {
         $this->db->limit($limit);
     }
     if (count($ids)) {
         $this->db->where_in('eventbooking_events.user_id', $ids);
     }
     $result = $this->db->get();
     return $result->result_array();
 }
Exemple #15
0
 function detail($uid)
 {
     // e($uid);
     $this->load->model('propertymodel');
     $property = $this->propertymodel->getProperty($uid);
     $gallery_images = $this->propertymodel->getGalleryImages($uid);
     $attributes = $this->propertymodel->getAttributeValue($uid);
     $userDetails = $this->propertymodel->getUserDetails(curUsrId());
     $inner = array();
     $inner['property'] = $property;
     $inner['gallery'] = $gallery_images;
     $inner['attributes'] = $attributes;
     $inner['userDetails'] = $userDetails;
     $inner['features'] = $this->propertymodel->features(arrIndex($property, 'features'));
     $inner['uid'] = $uid;
     //        e($inner);
     $shell['contents'] = $this->load->view("detail", $inner, true);
     $this->load->view("themes/" . THEME . "/templates/subpage", $shell);
 }
Exemple #16
0
 function process()
 {
     $this->load->model('Cartmodel');
     $this->load->model('Customermodel');
     $this->load->model('Checkoutmodel');
     $this->load->library('parser');
     $this->load->library('email');
     //Get customers Details
     if (!$this->aauth->isCustomer(curUsrId())) {
         redirect('/customer/logout', "location");
         exit;
     }
     $customer = $this->aauth->get_user();
     $variables = $this->Cartmodel->variables();
     extract($variables);
     $order = $this->Checkoutmodel->addBooking($customer, $order_total);
     redirect("customer/checkout/payments/{$order['booking']['unique_id']}");
     exit;
 }
 function add($id = null)
 {
     $table_name = 'franchise_testimonials';
     if (gParam('content') && gParam('name')) {
         $data = rSF($table_name);
         $data['user_id'] = curUsrId();
         if (!$id) {
             $result = $this->commonmodel->insertRecord($data, $table_name);
         } else {
             $result = $this->commonmodel->updateRecord($data, $id, $table_name);
         }
         if ($result) {
             redirect(createUrl('frontend/testimonials'));
         }
     }
     $model = $this->commonmodel->getByPk($id, $table_name);
     $inner = $page = array();
     $inner['model'] = $model;
     $page['content'] = $this->load->view('addtestimonials', $inner, true);
     $this->load->view($this->default, $page);
 }
Exemple #18
0
 function insertRecord()
 {
     $data = array();
     $data['name'] = $this->input->post('name', TRUE);
     $data['short_desc'] = $this->input->post('short_desc', TRUE);
     $data['description'] = $this->input->post('desc', TRUE);
     $data['start_date'] = $this->input->post('start_date', TRUE);
     $data['end_date'] = $this->input->post('end_date', TRUE);
     $data['duration'] = $this->input->post('event_dur', TRUE);
     $data['venue_name'] = $this->input->post('vname', TRUE);
     $data['venue_address'] = $this->input->post('vaddress', TRUE);
     $data['total_seats'] = $this->input->post('total_seats', TRUE);
     //      $data['team_id'] = $this->input->post('team_id', TRUE);
     //      $data['group_id'] = $this->input->post('group_id', TRUE);
     $data['price'] = $this->input->post('price', TRUE);
     $data['created_by'] = curUsrId();
     //        $data['text_color'] = $this->input->post('text_color', TRUE);
     //        $data['text_bg'] = $this->input->post('text_bg', TRUE);
     //        $data['event_color'] = $this->input->post('event_color', TRUE);
     //upload image
     $config['upload_path'] = $this->config->item('UPLOAD_PATH_EVENTS');
     $config['allowed_types'] = '*';
     $config['overwrite'] = FALSE;
     $this->load->library('upload', $config);
     if (count($_FILES) > 0) {
         //Check for valid image upload
         if ($_FILES['image']['error'] == UPLOAD_ERR_OK && is_uploaded_file($_FILES['image']['tmp_name'])) {
             if (!$this->upload->do_upload('image')) {
                 show_error($this->upload->display_errors('<p class="err">', '</p>'));
                 return FALSE;
             } else {
                 $upload_data = $this->upload->data();
                 $data['image'] = $upload_data['file_name'];
             }
         }
     }
     $order = $this->getOrder();
     $data['event_sort_order'] = $order;
     $this->db->insert('events', $data);
 }
 function insertRecord($customer)
 {
     $data = array();
     $data['first_name'] = $this->input->post('first_name', TRUE);
     $data['last_name'] = $this->input->post('last_name', TRUE);
     $data['email'] = $this->input->post('email', TRUE);
     $data['passwd'] = $this->input->post('passwd', TRUE);
     $data['delivery_address1'] = $this->input->post('delivery_address1', TRUE);
     $data['delivery_address2'] = $this->input->post('delivery_address2', TRUE);
     $data['delivery_phone'] = $this->input->post('delivery_phone', TRUE);
     $data['delivery_city'] = $this->input->post('delivery_city', TRUE);
     $data['delivery_zipcode'] = $this->input->post('delivery_zipcode', TRUE);
     $data['linkedin'] = $this->input->post('linkedin', TRUE);
     $data['twitter'] = $this->input->post('twitter', TRUE);
     $data['facebook'] = $this->input->post('facebook', TRUE);
     $data['user_id'] = curUsrId();
     $user_id = $this->aauth->create_user($data['email'], $data['passwd'], $data['first_name'], array(0 => $this->aauth->user_group['customer']), $this->aauth->get_user()->id, false, 0, array('internal' => true));
     if ($user_id) {
         $data['auth_user_id'] = $user_id;
         $this->db->insert('customer', $data);
         $customer_user_id = $this->db->insert_id();
         //                    'childName';
         $childData = array();
         if (isset($_POST['childName'])) {
             $childexist = false;
             foreach ($_POST['childName'] as $k => $kval) {
                 if (empty($kval)) {
                     continue;
                 }
                 $childexist = true;
                 $childData[] = array('customer_id' => $customer_user_id, 'name' => $_POST['childName'][$k], 'dob' => date('Y-m-d', strtotime($_POST['childDob'][$k])), 'interest' => $_POST['childInterest'][$k]);
             }
             if ($childexist) {
                 $this->db->insert_batch('customer_children', $childData);
             }
         }
     }
     return $user_id;
 }
 function insertRecord()
 {
     $data = array();
     $data['pname'] = $this->input->post('pname');
     $data['type'] = $this->input->post('ptype');
     $data['units'] = $this->input->post('units');
     $data['owner'] = $this->input->post('owner');
     $data['street'] = $this->input->post('street');
     $data['city'] = $this->input->post('city');
     $data['state'] = $this->input->post('state');
     $data['post_code'] = $this->input->post('postcode');
     $data['is_active'] = $this->input->post('active');
     $data['datetime'] = date('Y-m-d H:i:s');
     //e($data);
     if ($this->aauth->isCompany()) {
         $data['company_id'] = curUsrId();
     } elseif ($this->aauth->isUser()) {
         $data['company_id'] = curUsrPid();
     }
     $config['upload_path'] = $this->config->item('PROPERTY_IMAGE_PATH');
     $config['allowed_types'] = 'gif|jpg|png';
     $config['overwrite'] = FALSE;
     $this->load->library('upload', $config);
     if (count($_FILES) > 0) {
         if ($_FILES['photo']['error'] == UPLOAD_ERR_OK && is_uploaded_file($_FILES['photo']['tmp_name'])) {
             if (!$this->upload->do_upload('photo')) {
                 show_error($this->upload->display_errors('<p class="err">', '</p>'));
                 return FALSE;
             } else {
                 $upload_data = $this->upload->data();
                 $data['photo'] = $upload_data['file_name'];
             }
         }
     }
     $this->db->insert('properties', $data);
     echo $this->db->last_query();
     return $this->db->insert_id();
 }
Exemple #21
0
 function event()
 {
     $from = arrIndex($this->GET, 'from') / 1000;
     $to = arrIndex($this->GET, 'to') / 1000;
     if ($from) {
         $from = date('Y-m-d', $from);
     }
     if ($to) {
         $to = date('Y-m-d', $to);
     }
     $this->load->model('Calendermodel');
     $multiple_where = array('created_on >= ' => $from, 'created_on <= ' => $to);
     //        e($this->session->all_userdata());
     //       die();
     if ($this->aauth->isCustomer()) {
         $multiple_where['t1.applicant_id'] = curUsrId();
     }
     //        e($multiple_where);
     $applications = $this->Calendermodel->getCompanyInvoices($this->ids, $multiple_where);
     //        e($applications);
     $return['success'] = true;
     $return['result'] = $applications;
     echo json_encode($return);
 }
Exemple #22
0
 function addsidelinks($id = null)
 {
     $model = $this->commonmodel->getByPk($id, 'front_events');
     $inner = $page = array();
     if (gParam('color')) {
         //            gAParams();
         $data = rSF('front_events');
         $data['user_id'] = curUsrId();
         if (isset($_FILES['image']['name'])) {
             $data['pic'] = self::uploadImage();
         }
         if (!$id) {
             $result = $this->commonmodel->insertRecord($data, 'front_events');
         } else {
             $result = $this->commonmodel->updateRecord($data, $id, 'front_events');
         }
         if ($result) {
             redirect(createUrl('frontend/sideEventsLinks'));
         }
     }
     $inner['model'] = $model;
     $page['content'] = $this->load->view('addsidelinks', $inner, true);
     $this->load->view($this->default, $page);
 }
 function hasCurPageAccess($pid)
 {
     $this->db->select('*');
     $this->db->where('page_id', $pid);
     $this->db->where('user_id', curUsrId());
     $rs = $this->db->get('page')->result_array();
     return count($rs);
 }
Exemple #24
0
    foreach ($forumTopics as $topicK => $topicV) {
        if ($topicV['parent_id'] == $forumDet['id']) {
            $topicArray[] = $topicV['id'];
            ?>
                                <div class="col-sm-12 topicList">
                                    <a href="<?php 
            echo createUrl('forum/getTopic/') . $topicV['id'];
            ?>
"><i class="fa fa-info-circle"></i>
                                        <?php 
            echo $topicV['name'] . ' (' . setDefault($postCount[$topicV['id']], 0) . ')';
            ?>
</a>
                                    
                                    <?php 
            if (curUsrId() == $topicV['creator_id']) {
                ?>
                                    <span class="deleteForum" data-id="<?php 
                echo $topicV['id'];
                ?>
">delete</span>
                                    <?php 
            }
            ?>
                                </div>
                                <?php 
        }
    }
    ?>
                    </div>
Exemple #25
0
                    <!--<button class="btn btn-sm btn-warning" data-calendar-view="day">Day</button>-->
                </div>
            </div>
        </div>
        <div class="">
            <div id="calendar"></div>
        </div>
    </div>
    <div id="right-column" class="col-lg-5 pad-top20">
        <div class="col-lg-12 menu padding-0">
            <?php 
$this->load->view(THEME . 'layout/inc-menu-tanet');
?>
        </div>

        <div class="col-lg-12 menu padding-0">
            <div id="piechart_3d" style="width: 525px; height:300px;"></div>
        </div>
    </div>
    <div class="col-lg-12 menu padding-0">
        <div id="linechart_material" style="">                   
        </div>        
    </div>
    <div class="clearfix"></div>
    <div id="euid" uid="<?php 
echo curUsrId();
?>
"></div>
</div>
<?php 
$this->load->view('calender/header/event_index');
 function upload_document($id, $appID)
 {
     $this->load->library('form_validation');
     $this->load->model('virtcab/VirtualCabinetmodel');
     $allowedTypes = array('jpg' => 'image/jpeg', 'png' => 'image/png', 'gif' => 'image/gif', 'txt' => 'text/plain', 'rtf' => 'application/rtf', 'rtf' => 'application/x-rtf', 'rtf' => 'text/richtext', 'doc' => 'application/msword', 'pdf' => 'application/pdf', 'xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'ppsx' => 'application/vnd.openxmlformats-officedocument.presentationml.slideshow', 'pptx' => 'application/vnd.openxmlformats-officedocument.presentationml.presentation', 'sldx' => 'application/vnd.openxmlformats-officedocument.presentationml.slide', 'docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'mp4' => 'video/mp4', 'oog' => 'video/ogg', 'flv' => 'video/flv');
     $currentUserId = curUsrId();
     $this->load->library('upload');
     $this->upload->initialize(array("upload_path" => $this->config->item('UPLOAD_PATH_VIRCAB_IMG'), 'allowed_types' => 'gif|jpg|png'));
     if ($this->upload->do_multi_upload("document")) {
         //Print data for all uploaded files.
         $userId = $this->session->userdata['id'];
         foreach ($this->upload->get_multi_upload_data() as $images) {
             $ext = strtolower(end(explode('.', $images['file_name'])));
             $data = array();
             $data[$this->VirtualCabinetmodel->visible_name] = $images['file_name'];
             $data[$this->VirtualCabinetmodel->filetype] = $ext;
             $data[$this->VirtualCabinetmodel->assigne_grp] = 6;
             $data[$this->VirtualCabinetmodel->actual_name] = $images['client_name'];
             $data[$this->VirtualCabinetmodel->update_dtime] = date('Y-m-d H:i:s');
             $data[$this->VirtualCabinetmodel->create_dtime] = date('Y-m-d H:i:s');
             $data[$this->VirtualCabinetmodel->assignes] = $id;
             $data[$this->VirtualCabinetmodel->creator_id] = $userId;
             $data['is_applicant'] = 1;
             $virtual_event_id = $this->VirtualCabinetmodel->insertRecord($data, true);
         }
     }
     $getApplication = $this->commonmodel->getByPk($appID, 'dpd_applications');
     /* if (arrIndex($getApplication, 'is_deal_start')) {
               //            self::saveInvoices($getApplication);
               if (arrIndex($getApplication, 'applicant_id')):
               self::updateAppToTan(arrIndex($getApplication, 'applicant_id'));
               endif;
               self::deleteAll($getApplication);
               //            self::saveInvoices($getApplication);
               }
     
              */
     redirect(createUrl('applications/index/'));
 }
Exemple #27
0
?>
<div class="">    
    <div class="col-bs-15 col-sm-2"><div class="men <?php echo ($path == 'dashboard/index') ? 'active-btn' : ''; ?>"><a href="user/dashboard"><i class="fa fa-tachometer siz"></i><h3>Dashboard</h3></a></div></div>
    <div class="col-bs-15 col-sm-2"><div class="men <?php echo ($path == 'customer/index') ? 'active-btn' : ''; ?>"><a href="customer"><i class="fa fa-user siz"></i><h3>Customer</h3></a></div></div>
    <?php if($this->aauth->isFranshisor()){ ?>
    <div class="col-bs-15 col-sm-2"><div class="men <?php echo ($path == 'invoice/index') || ($path == 'invoice/manual') || ($path == 'invoice/invoicedetail') ? 'active-btn' : ''; ?>"><a href="invoice"><i class="fa fa-gbp siz"></i><h3>Financial & Invoices</h3></a></div></div>
    <? } else { ?>
    <div class="col-bs-15 col-sm-2"><div class="men <?php echo ($path == 'invoiceuser/index') ? 'active-btn' : ''; ?>"><a href="invoiceuser/index"><i class="fa fa-gbp siz"></i><h3>Financial & Invoices</h3></a></div></div>
    <? } ?>
    <div class="col-bs-15 col-sm-2"><div class="men"><a href="calender/type"><i class="fa fa-university siz"></i><h3>Classrooms</h3></a></div></div>
    <div class="col-bs-15 col-sm-2"><div class="men <?php echo ($path == 'survey/index') ? 'active-btn' : ''; ?>"><a href="survey"><i class="fa fa-leanpub siz"></i><h3>Survey</h3></a></div></div>

    <div class="col-bs-15 col-sm-2"><div class="men <?php echo ($path == 'virtcab/index') ? 'active-btn' : ''; ?>"><a href="virtcab"><i class="fa fa-desktop siz"></i><h3>Virtual Cabinet</h3></a></div></div>
    <div class="col-bs-15 col-sm-2"><div class="men <?php echo ($path == 'dash/index') ? 'active-btn' : ''; ?>"><a href="calender"><i class="fa fa-calendar siz"></i><h3>Calender</h3></a></div></div>
    <?php
    clearDbThis($this);
    if ($this->aauth->isFranshisee()) {
        $link = pageFranchise(curUsrId());
        ?>
        <div class="col-bs-15 col-sm-2"><div class="men <?php echo ($path == 'page/index') ? 'active-btn' : ''; ?>"><a href="cms/page/edit/<?= arrIndex($link, 'page_id'); ?>/2"><i class="fa fa-tachometer siz"></i><h3>Content</h3></a></div></div>
    <?php } else { ?>
        <div class="col-bs-15 col-sm-2"><div class="men <?php echo ($path == 'page/index') ? 'active-btn' : ''; ?>"><a href="cms/page"><i class="fa fa-file-text-o siz"></i><h3>Content</h3></a></div></div>
    <?php } ?>
    <div class="col-bs-15 col-sm-2"><div class="men <?php echo ($path == 'marketing/index') ? 'active-btn' : ''; ?>"><a href="marketing"><i class="fa fa-bullseye siz"></i><h3>Marketing</h3></a></div></div>
    <div class="col-bs-15 col-sm-2"><div class="men <?php echo ($path == 'forum/index') ? 'active-btn' : ''; ?>"><a href="forum"><i class="fa fa-comments siz"></i><h3>Forum</h3></a></div></div>
    <div class="col-bs-15 col-sm-2"><div class="men <?php echo ($path == 'customer/index') ? 'active-btn' : ''; ?>"><a href="user"><i class="fa fa-user siz"></i><h3>Users</h3></a></div></div>
    <div class="col-bs-15 col-sm-2"><div class="men <?php echo ($path == 'reports/franchisesTarget') ? 'active-btn' : ''; ?>"><a href="reports/franchisesTarget"><i class="fa fa-user siz"></i><h3>Franchises Target</h3></a></div></div>    
    <div class="col-bs-15 col-sm-2"><div class="men <?php echo ($path == 'calender/venues') ? 'active-btn' : ''; ?>"><a href="calender/venues"><i class="fa fa-user siz"></i><h3>Mange Venues</h3></a></div></div>
    <div class="col-bs-15 col-sm-2"><div class="men <?php echo ($path == 'settings/index') ? 'active-btn' : ''; ?>"><a href="setting/settings"><i class="fa fa-cog siz"></i><h3>Mange Settings</h3></a></div></div>    
    <div class="col-bs-15 col-sm-2"><div class="men <?php echo ($path == 'settings/index') ? 'active-btn' : ''; ?>"><a href="frontend/sideEventsLinks"><i class="fa fa-cog siz"></i><h3>Side Links</h3></a></div></div>
</div>
Exemple #28
0
 public function profile()
 {
     $this->aauth->isFranshisor();
     $inner = $page = array();
     $inner['cususer'] = $this->aauth->get_user();
     $inner['extrafields'] = array();
     if ($this->aauth->isFranshisee()) {
         $inner['extrafields'] = $this->usermodel->getFranchise();
         $inner['extrafields']->franchise = 1;
     } elseif ($this->aauth->isUser()) {
         $inner['extrafields'] = $this->usermodel->getFranchise($this->aauth->get_user()->pid);
         $inner['extrafields']->user = 1;
     } elseif ($this->aauth->isCustomer()) {
         $inner['extrafields'] = $this->db->where('auth_user_id', curUsrId())->get('customer')->row();
         $inner['extrafields']->customer = 1;
     }
     $page['content'] = $this->load->view('user/profile', $inner, TRUE);
     //        $inner = array();
     //        $page['content'] = $this->load->view('del', $inner, TRUE);
     $this->load->view('themes/default/templates/customerlogin', $page);
 }
Exemple #29
0
                            Teritory Name: <?= $franchise->territory_name ?><br>
                            Franchise No.: <?= $franchise->franchise_no ?><br>
                            <?= $franchise->region ?> 
                        <?php endif;
                         * 
                         */
?>
                         
                    </div>
                </div>
                <?php 
$logout = createUrl('user/logout');
$editurl = createUrl('user/edit/') . curUsrId();
if ($this->aauth->isCustomer()) {
    $logout = createUrl('customer/logout');
    $editurl = createUrl('customer/add/') . curUsrId();
}
?>
                <div class="col-lg-6 col-sm-6">
                    <div class="account">
<!--                        <span style="font-style: italic">Welcome <a style="color:white" href="<?php 
echo $editurl;
?>
"><?php 
echo ucfirst($curUser->name);
?>
</a></span> | <a href="<?php 
echo $logout;
?>
"><span style="color: #F66403;">Logout</span></a>-->
                                                <span style="font-style: italic">Welcome <?php 
Exemple #30
0
 function getCompanyUsersId($id = NULL)
 {
     if (!$id) {
         $id = curUsrId();
     }
     $results = $this->db->select('id')->from(convertToAuthStr('users'))->where('id', $id)->or_where('pid', $id)->get()->result_array();
     $tmp = array();
     foreach ($results as $result) {
         $tmp[arrIndex($result, 'id')] = arrIndex($result, 'id');
     }
     return $tmp;
 }