function configSetting($key) { $this->db->where('config_key', $key); $this->db->select('config_value'); $result = $this->db->get('config')->row_array(); return arrIndex($result, 'config_value'); }
function getBasicListing($param = array()) { $keywords = arrIndex($param, 'keywords'); $offset = arrIndex($param, 'offset'); //Setup pagination $perpage = 25; $config['base_url'] = base_url() . "customer/index/{$keywords}/"; $config['uri_segment'] = 4; $config['total_rows'] = $this->Customermodel->countAll($this->ids); $config['per_page'] = $perpage; $this->pagination->initialize($config); //Fetch All Customers $customers = array(); $customers = $this->Customermodel->listAll($this->ids); //Check For Missing Search Criteria if ($keywords == '0' || trim($keywords) == '') { $keywords = ''; } //render view $inner = array(); $inner['customers'] = $customers; $inner['keywords'] = $keywords; $inner['pagination'] = $this->pagination->create_links(); return $inner; }
function insertRecord($param = array()) { $data = array(); $data['name'] = $this->input->post('name', true); $alis = $this->input->post('alias', true); if (!$alis) { $data['alias'] = str_replace(" ", "-", $data['name']); } $description = $this->input->post('description', true); if (!$description) { $data['description'] = $data['name']; } else { $data['description'] = $description; } $parent_id = arrIndex($param, 'parent_id'); if (!$parent_id) { $parent_id = 0; } $data['parent_id'] = $parent_id; $data['creator_id'] = $param['creator_id']; $data['last_activity_id'] = $param['creator_id']; $data['created_date'] = date('Y-m-d'); $data['created_time'] = date('H:i:s'); $data['last_activity_datetime'] = date('Y-m-d H:i:s'); if ($this->db->insert('forum', $data)) { $forum_id = $this->db->insert_id(); if ($parent_id) { $this->updateThread($parent_id); } return $forum_id; } }
function updateRecord($customer) { $data = array(); $data = rSF('customer'); $this->aauth->update_user($data['auth_user_id'], arrIndex($data, 'email'), arrIndex($data, 'passwd'), arrIndex($data, 'first_name'), FALSE); $this->db->where('auth_user_id', arrIndex($data, 'auth_user_id'))->update('customer', $data); return; }
function cron() { $this->load->model('invoicemodel'); $rows = $this->invoicemodel->getTodayInvoices(); // echo "<pre>"; // print_r($rows); exit; $this->load->library('email'); // $config['charset'] = 'utf-8'; // $config['wordwrap'] = TRUE; // $config['mailtype'] = 'html'; $config['protocol'] = 'sendmail'; $config['mailtype'] = 'html'; $config['charset'] = 'utf-8'; $config['newline'] = "\r\n"; $this->email->initialize($config); foreach ($rows as $row) { // e($row); $invoice_gen_code = arrIndex($row, 'invoice_code'); $applicant = $this->invoicemodel->getByPk(arrIndex($row, 'application_id'), 'applicants', 'applicant_id'); $sendto = arrIndex($applicant, 'email'); $fname = arrIndex($applicant, 'fname'); $lname = arrIndex($applicant, 'lname'); $home_address = arrIndex($applicant, 'address'); $invoice_ref_code = arrIndex($row, 'invoice_id'); $created_on = arrIndex($row, 'created_on'); $due_on = arrIndex($row, 'due_on'); // e($row); $senddata = array("firstname" => $fname, "lastname" => $lname, "homeaddress" => $home_address, "invoice_no" => $invoice_gen_code, "created_date" => $created_on, "due_date" => $due_on, "installment_amount" => arrIndex($row, 'installment_fees'), "vat_value" => arrIndex($row, 'vat'), "after_vat" => arrIndex($row, 'total_amount')); // e($senddata,0); $msg_body = $this->load->view('invoice', $senddata, true); // echo $msg_body; exit; $filename = arrIndex($row, 'invoice_id'); $pdfFilePath = FCPATH . "upload/virtcab/doc/{$filename}.pdf"; include_once APPPATH . 'third_party/mpdf/mpdf.php'; ini_set('memory_limit', '64M'); $param = '"en-GB-x","A4","","",10,10,10,10,6,3'; $mpdf = new mPDF('c'); $mpdf->WriteHTML($msg_body); $mpdf->Output($pdfFilePath, 'F'); $this->invoicemodel->updatevirtualcabnet($applicantId, arrIndex($row, 'company_id'), $filename, 3, 0); $this->invoicemodel->updatevirtualcabnet($applicantId, arrIndex($row, 'application_id'), $filename, 6, 1); $this->email->set_newline("\r\n"); $this->email->from('*****@*****.**', 'Landlord Masters'); // change it to yours $this->email->to($sendto); // change it to yours $this->email->subject('Invoice Notification'); $this->email->message($msg_body); if ($this->email->send()) { //$this->invoicemodel->updateIsFirst($application_id,'W',$invoice_ref_code); echo "sent"; } else { show_error($this->email->print_debugger()); } } }
function eventdetail() { $this->load->model('Franchiseemodel'); $eid = !empty($_POST['eid']) ? $_POST['eid'] : ''; $franchisee = $this->Franchiseemodel->eventDetail($eid); $inner = array(); $inner['row'] = $franchisee; $inner['small'] = arrIndex($_POST, 'small', false); $output = array(); $output['event'] = $this->load->view("event-detail", $inner, true); echo json_encode($output); }
function add() { $this->load->library('form_validation'); if (arrIndex($_POST, 'type') == "dropdown") { if (empty(array_filter($_POST['drop']))) { $this->form_validation->set_rules('dropdown', 'Dropdown values', 'trim|required'); } } $model = tableFields('units_attributes', true); $model['sort'] = 0; unset($model['id']); self::save($model, 0); }
function setUserSession($regions, $franchises) { $this->session->set_userdata('reporttype', 'default'); $temp = array(); foreach ($regions as $region) { $temp[] = arrIndex($region, 'id'); } $this->session->set_userdata('regions', $temp); $temp = array(); foreach ($franchises as $franchise) { $temp[] = arrIndex($franchise, 'id'); } $this->session->set_userdata('franchises', $temp); }
function add() { $data = rSF('franchise_region'); if (arrIndex($data, 'name')) { if (arrIndex($data, 'id')) { $this->commonmodel->updateRecord($data, $data['id'], $this->table); $this->session->set_flashdata('SUCCESS', 'region_updated'); } else { $this->commonmodel->insertRecord($data, $this->table); $this->session->set_flashdata('SUCCESS', 'region_added'); } redirect($this->controllername . '/index'); } $this->loadView(); }
function checkApplicantLogin($email, $password) { $this->db->where('email', $email); $this->db->where('password', md5($password)); $result = $this->db->get('applicants')->row_array(); // e($result); if (count($result) && arrIndex($result, 'type') == 'tnt') { $result['isAdmin'] = 0; $result['isCompany'] = 0; $result['isUser'] = 0; $result['isCustomer'] = 1; $result['loggedin'] = 1; $this->session->set_userdata($result); // e(123); redirect(createUrl('applicants/dashboard')); } }
function addBooking($customer, $order_total) { $customer = (array) $customer; extract($this->Cartmodel->variables()); foreach ($this->cart->contents() as $item) { $cart = $item; } $this->load->helper('string'); $booking = array(); $booking['customer_id'] = arrIndex($customer, 'id'); // $booking['cart'] = base64_encode(serialize($this->cart->contents())); $booking['unique_id'] = date("ymd-His-") . rand(1000, 9999); $booking['event_id'] = arrIndex($cart, 'id'); $booking['ctn'] = arrIndex($cart, 'qty'); $booking['booking_total'] = $order_total; $booking['booking_status'] = 'pending'; $booking['created'] = time(); //insert into database $this->db->insert('eventbooking_bookings', $booking); $booking_id = $this->db->insert_id(); $ticket = array(); for ($i = 0; $i < $booking['ctn']; $i++) { foreach ($booking as $row) { $ticket[$i] = $booking; $ticket[$i]['unique_id'] .= $i; } } $no = 1; $ticket_data = array(); foreach ($ticket as $row) { $ticket_data['booking_id'] = $booking_id; $ticket_data['event_id'] = $row['event_id']; $ticket_data['ticket_id'] = $row['unique_id'] . '-' . $no; $this->db->insert('eventbooking_bookings_tickets', $ticket_data); $no++; } $response = array(); $response = $data; $response['booking_id'] = $booking_id; $response['booking'] = $booking; return $response; }
function eventComplete($array = array()) { $return['status'] = false; $event_id = arrIndex($array, 'event_id'); if ($event_id) { $this->db->where('event_id', $event_id); $result = $this->db->get('event_complete')->result_array(); if (!count($result)) { $result = $this->db->insert('event_complete', $array); } else { $this->db->where('event_id', $event_id); $result = $this->db->update('event_complete', $array); } if ($result) { $this->session->set_flashdata('SUCCESS', 'event_completed_saved'); $return['status'] = true; } else { $this->session->set_flashdata('ERROR', 'event_completed_notsaved'); } } echo json_encode($return); }
function sendMail($template) { $customers = array(); $customers = $this->input->post('assigne_id', true); $this->email->initialize($this->config->item('EMAIL_CONFIG')); $cIds = implode(',', $customers); $fields = ' aauth_user_to_group.group_id,' . ' aauth_users.id as aauth_id, aauth_users.email as aauth_email,' . ' aauth_users.pass as aauth_pass, aauth_users.name as aauth_name,' . ' aauth_users.is_active as aauth_active,' . ' aauth_users.pic as aauth_pic'; $fields .= ',' . ' user_extra_detail.fname as user_fname, user_extra_detail.lname as user_lname,' . ' user_extra_detail.home_address as user_home_addr,' . ' user_extra_detail.bussiness_address as user_buss_addr,' . ' user_extra_detail.bussiness_number as user_buss_num,' . ' user_extra_detail.vat_number as user_vat_num, user_extra_detail.telephone as user_tel_num,' . ' user_extra_detail.linkedin as user_linkedin, user_extra_detail.pinterest as user_pintrest,' . ' user_extra_detail.google as user_google,' . ' user_extra_detail.facebook as user_facebook, user_extra_detail.twitter as user_twitter,' . ' user_extra_detail.paypal as user_paypal,' . ' user_extra_detail.territory_name as user_territory, user_extra_detail.franchise_no as user_franchise,' . ' user_extra_detail.lat as user_lat, user_extra_detail.log as user_long,' . ' user_extra_detail.region as user_region'; $fields .= ',' . 'customer.customer_id as cust_id, customer.auth_user_id as cust_aauth_id,' . ' customer.first_name as cust_fname,' . ' customer.last_name as cust_lname, customer.email as cust_email, customer.passwd as cust_passwd, customer.linkedin as cust_linkedin,' . ' customer.twitter as cust_twitter, customer.facebook as cust_facebook,' . ' customer.delivery_first_name as cust_del_fname, customer.delivery_last_name as cust_del_lname,' . ' customer.delivery_address1 as cust_del_addr1,' . ' customer.delivery_address2 as cust_del_addr2, customer.delivery_phone as cust_del_phone, customer.delivery_city as cust_del_city,' . ' customer.delivery_state as cust_del_state, customer.delivery_zipcode as cust_del_zipcode,' . ' customer.billing_address1, customer.billing_address2, customer.billing_phone,' . ' customer.billing_mobile, customer.billing_city, customer.billing_state,' . ' customer.billing_zipcode'; $this->db->select($fields)->join('customer', 'customer.auth_user_id = aauth_users.id', 'LEFT')->join('user_extra_detail', 'user_extra_detail.id = aauth_users.id', 'LEFT')->join('aauth_user_to_group', 'aauth_user_to_group.user_id = aauth_users.id', 'LEFT')->where('aauth_users.id in (' . $cIds . ')'); $rs = $this->db->get('aauth_users'); if ($rs->num_rows()) { $rst = $rs->result_array(); // e($rst); foreach ($rst as $customer) { // $emailBody = str_ireplace($search, $replace, $template['email_content']); $emailBody = $template['email_content']; $this->email->from(DWS_EMAIL_NOREPLY, DWS_EMAIL_FROM); // $this->email->set_header('Return-Path', '<' . DWS_CLOUDMAILIN_EMAIL . '>'); $this->email->reply_to('noreply@' . base_url()); $this->email->to(arrIndex($customer, 'aauth_email')); $this->email->subject($template['email_subject']); $this->email->message($emailBody); $status = $this->email->send(); if ($status) { $this->session->set_flashdata('SUCCESS', 'marketing_mail_sent'); // $log_entry = array(); // $log_entry['email_log_id'] = $link; // // $log_entry['email_subject'] = 'test ing'; // $log_entry['email_content'] = $emailBody; // $this->db->insert('email_log', $log_entry); } else { $this->session->set_flashdata('ERROR', 'marketing_mail_not_sent'); } } } redirect('marketing/index/email'); }
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); }
<tr> <td>Clubs Contracts</td><td>£</td><td>£</td><td>£</td><td>£</td><td>£</td> </tr> <tr> <td type="RETAILS_RETAILS">Retails</td> <?php $total = 0; $retail_buyed = $retail_sailed = 0; foreach ($dasbBoardData['retail'] as $key => $array) { $total += arrIndex($array, 'retail_buyed', 0); ?> <td>£<span class="<?php echo $key; ?> "><?php echo arrIndex($array, 'retail_buyed', 0); ?> </span></td> <?php } ?> <td>£<span class="total"><?php echo round($total, 2); ?> </span></td> </tr> <tr> <td>Total Income</td><td>£<span id="totalg1"></span></td><td>£<span id="totalg2"></span></td><td>£<span id="totalg3"></span></td><td>£<span id="totalg4"></span></td><td>£<span id="totalg5"></span></td> </tr> </table> </div>
?> <tr> <td><?php echo trim(arrIndex($item, 'fname') . ' ' . arrIndex($item, 'lname')); ?> </td> <td><?php echo arrIndex($item, 'email'); ?> </td> <td><?php echo arrIndex($item, 'phone'); ?> </td> <td><?php echo arrIndex($item, 'email'); ?> </td> </tr> <?php } ?> </tbody> <tfoot> <?php /* ?> <tr> <?php foreach ($companylabels as $label): ?> <th><?php echo $label ?></th> <?php endforeach; ?> </tr>
} ?> </tr> </thead> <tbody> <?php foreach ($Listing as $item) { ?> <tr> <td><?php echo arrIndex($item, 'tag'); ?> </td> <td><a href="<?php echo createUrl('features/edit/') . arrIndex($item, 'id'); ?> ">Edit</a> | <a href="<?php echo createUrl('features/delete/') . $item['id']; ?> " onclick="return confirm('Are you sure you want to delete this Feature?');">Delete</a> </td> </tr> <?php } ?> </tbody> <tfoot> <tr> <?php foreach ($labels as $label) { ?>
function lineChartData($ids = array()) { if (count($ids)) { $sql = "select max(year(maxdate)) as maxdate , min(year(mindate)) as mindate from (select max(`datetime`) as maxdate , min(`datetime`) as mindate from dpd_applicants where created_by in (" . implode(',', $ids) . ") union all select max(register_date) as maxdate , min(register_date) as mindate from dpd_aauth_users where id in (" . implode(',', $ids) . ") union all select max(`datetime`) as maxdate , min(`datetime`) as mindate from dpd_properties where company_id in (" . implode(',', $ids) . ") ) as derived"; } else { $sql = "select max(year(maxdate)) as maxdate , min(year(mindate)) as mindate from (select max(`datetime`) as maxdate , min(`datetime`) as mindate from dpd_applicants union all select max(register_date) as maxdate , min(register_date) as mindate from dpd_aauth_users union all select max(`datetime`) as maxdate , min(`datetime`) as mindate from dpd_properties) as derived"; } $minmax = $this->db->query($sql)->row_array(); if (count($ids)) { $sql = "select 'applicant' as `type` ,count(*) as count,year(`datetime`) as `year` from dpd_applicants where created_by in (" . implode(',', $ids) . ") group by year(`datetime`) union all select 'users' as `type` ,count(*) as count,year(`register_date`) as `year` from dpd_aauth_users where id in (" . implode(',', $ids) . ") group by year(`register_date`) union all select 'property' as `type` ,count(*) as count,year(`datetime`) as `year` from dpd_properties where company_id in (" . implode(',', $ids) . ") group by year(`datetime`)"; } else { $sql = "select 'applicant' as `type` ,count(*) as count,year(`datetime`) as `year` from dpd_applicants group by year(`datetime`) union all select 'users' as `type` ,count(*) as count,year(`register_date`) as `year` from dpd_aauth_users group by year(`register_date`) union all select 'property' as `type` ,count(*) as count,year(`datetime`) as `year` from dpd_properties group by year(`datetime`)"; } $count_data = $this->db->query($sql)->result_array(); $temp = array(); foreach ($count_data as $data) { if (!arrIndex($data, 'year')) { continue; } $temp[arrIndex($data, 'type')][] = $data; } // e($temp); $return['minmax'] = $minmax; $return['count_data'] = $temp; // e($return); return $return; }
<?php foreach ($models as $model) { ?> <div class='col-lg-2'> <br/> <img src='<?php echo base_url(); ?> /images/folder.png' class='img-responsive'/> <center title='<?php echo arrIndex($model, 'email'); ?> '> <a style="text-decoration:none;color:#000" href='<?php echo createUrl('virtcab/index/' . arrIndex($model, 'id')); ?> '> <?php echo ucfirst(arrIndex($model, 'name')); ?> </a> </center> </div> <?php // e($model); ?> <?php } ?> </div>
?> </td> <td><?php echo arrIndex($item, 'name'); ?> </td> <td><?php echo arrIndex($item, 'email'); ?> </td> <td><?php echo $this->aauth->get_group_name(arrIndex($item, 'group_id')); ?> </td> <td><a href="<?php echo createUrl('practitioner/edit/') . arrIndex($item, 'id'); ?> ">Edit</a><?php if ($item['id'] > 1) { ?> | <a href="<?php echo createUrl('practitioner/delete/') . $item['id']; ?> " onclick="return confirm('Are you sure you want to delete this user?');">Delete</a><?php } ?> </td> </tr> <?php } ?>
</li> <?php } ?> </ul> </div> </div> <div id="tab4" class="tab-pane well"> <div class="form-group"> <div class="col-sm-12"> <label>Contact Us</label> <?php $default_value_contact = arrIndex($user, 'contact_txt'); echo $this->ckeditor->editor('contact_description', @$default_value_contact); ?> </div> </div> </div> <div id="tab5" class="tab-pane well"> <div class="form-group"> <div class="col-sm-6"> <div id="mulitplefileuploader">Upload</div> <div id="status"></div> <div id="uploadeddocuments"></div> </div> <div class="col-sm-6"> <strong>Uploaded Documents:</strong><br /> <ul>
<tbody> <tr> <td> <?php function percent($num_amount, $num_total) { $count1 = $num_amount / $num_total; $count2 = $count1 * 100; $count = number_format($count2, 0); return $count; } $total_records = $total; $week = arrIndex($row, 'W'); $monthly = arrIndex($row, 'M'); $quarterly = arrIndex($row, 'Q'); $halfyearly = arrIndex($row, 'HF'); if (!empty($week) || $week["total"] != '0') { $weekly_percent = percent($week["total"], $total_records); } else { $weekly_percent = "0"; } if (!empty($monthly) || $monthly["total"] != '0') { $monthly_percent = percent($monthly["total"], $total_records); } else { $monthly_percent = "0"; } if (!empty($quarterly) || $quarterly["total"] != '0') { $quarterly_percent = percent($quarterly["total"], $total_records); } else { $quarterly_percent = "0"; }
<?php foreach ($this->cart->contents() as $item) { $options = ''; if ($this->cart->has_options($item['rowid'])) { $options = $this->cart->product_options($item['rowid']); } ?> <tr> <td class="col-sm-4 col-md-4"> <div class="media"> <?php if ($item['image']) { ?> <a class="thumbnail pull-left" href="#"> <img class="media-object" src="<?php echo arrIndex($item, 'image') ? resize($this->config->item('UPLOAD_URL_EVENTS') . $item['image'], 100, 75, 'event_img') : ''; ?> " > </a> <?php } else { ?> <a class="thumbnail pull-left" href="#"> <img class="media-object" src="/images/event_default.png" style="width: 100px; height: 75px;" > </a> <?php } ?> <div class="media-body"> <h3 class="media-heading"><a href="#"><?php echo $item['name'];
function addInvoice($attributes = array()) { $this->db->insert('invoice_new', $attributes); $insert_id = $this->db->insert_id(); $ran1 = rand(00, 99999); $invoice_code = $ran1 . $insert_id; $data = array("invoice_code" => $invoice_code); $this->db->where('invoice_id', $insert_id); $this->db->update('invoice_new', $data); // $this->db->where('application_id', $attributes['application_id']); // $this->db->where('application_id', $attributes['application_id']); // $this->db->delete('testimonials'); $inner = array(); $allpdfdata = $this->Applicationsmodel->getPdfData($insert_id); $inner['maildata'] = $allpdfdata; $msg_body = $this->load->view('invoice', $inner, true); $filename = $insert_id; $pdfFilePath = $pdfFilePath = "/var/www/vhosts/webnseo.co.uk/landlord/landlord/upload/virtcab/doc/{$filename}.pdf"; include_once '/var/www/vhosts/webnseo.co.uk/landlord/landlord/application/third_party/mpdf/mpdf.php'; ini_set('memory_limit', '64M'); $param = '"en-GB-x","A4","","",10,10,10,10,6,3'; $mpdf = new mPDF('c'); $mpdf->WriteHTML($msg_body); $mpdf->Output($pdfFilePath, 'F'); $this->Applicationsmodel->updatevirtualcabnet(arrIndex($attributes, 'application_id'), $invoice_code, arrIndex($attributes, 'applicant_id'), arrIndex($attributes, 'company_id'), $filename, 3, 0); $this->Applicationsmodel->updatevirtualcabnet(arrIndex($attributes, 'application_id'), $invoice_code, arrIndex($attributes, 'applicant_id'), arrIndex($attributes, 'applicant_id'), $filename, 6, 1); return $insert_id; }
?> <?php echo trim(arrIndex($chat, 'company_name')); ?> <?php } else { ?> <?php echo trim(arrIndex($chat, 'fname') . ' ' . arrIndex($chat, 'lname')); ?> <?php } ?> </h4> <p><?php echo arrIndex($chat, 'message'); ?> </p> </div> </div> <?php } ?> <div class="block-update-card"> Message: <form name="chat" method="post" action=""> <table width="100%"> <tr> <td><textarea name="message" style="width:100%"></textarea></td> </tr> <tr>
?> <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>
</td> <td><?php echo arrIndex($invoice, 'fname') . ' ' . arrIndex($invoice, 'lname'); ?> </td> <td> <?php if (arrIndex($invoice, 'invoice_type') == 'M') { echo 'Monthly'; } else { echo 'Weekly'; } ?> </td> <td><?php echo '£' . (arrIndex($invoice, 'inv_total_amount', 0) - arrIndex($invoice, 'paid_amount', 0)); ?> </td> </tr> <?php $x++; ?> <?php } ?> </tbody> </table> </div> </div> <script>
<button class="btn btn-success mar-left10" onclick="payInvoice()" <?php if ($is_paid == 1) { ?> disabled="disabled" <?php } ?> >Pay Online</button> <?php } ?> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> <script type="text/javascript"> function payInvoice() { var url = '<?php echo createUrl('invoice/pay/' . arrIndex($invoice_detail, 'invoice_code')); ?> '; window.location = url; } $("#btnPrint").live("click", function () { var divContents = $("#dvContainer").html(); var printWindow = window.open('', '', 'height=800,width=800'); printWindow.document.write('<html><head><title>Invoice</title>'); printWindow.document.write('</head><body >'); printWindow.document.write(divContents); printWindow.document.write('</body></html>'); printWindow.document.close(); printWindow.print(); });
<div class="col-sm-6"> <label>Package</label> <?php $options = array('brone' => 'Bronze', 'silver' => 'Sliver', 'gold' => 'Gold', 'diamond' => 'Diamond'); ?> <?php echo form_dropdown('package', $options, $user['package'], 'class="form-control" autocomplete="off"'); ?> </div> </div> <div class="form-group"> <div class="col-sm-6"> <label>Contact Person</label> <input type="text" class="form-control" id="contact_person" name="contact_person" value="<?php echo arrIndex($user, 'contact_person'); ?> " placeholder="Contact Person"> </div> </div> <div class="form-group"> </div> <div class="form-group"> <div class="col-sm-12 text-center"> Fields mark with <span class="error">*</span> required </div> </div>
<?php if(arrIndex($attribute, 'type')=="dropdown"){ ?> <select name="attributes[<?php echo arrIndex($attribute, 'id') ?>]" class="form-control"> <?php foreach(getAttributesValue(arrIndex($attribute, 'id')) as $drpdown) { ?> <option value="<?php echo $drpdown['id'] ?>"><?php echo $drpdown['value'] ?></option> <?php } ?> </select> <?php } else{ ?> <input type="text" placeholder="<?php echo ucfirst(arrIndex($attribute, 'label')); ?>" value="" name="attributes[<?php echo arrIndex($attribute, 'id') ?>]" class="form-control"> <?php } ?> </div> <?php endforeach; ?> </div> <div class="col-sm-1"> <button class="btn btn-defualt" type="submit"> Search <i class="fa fa-search"></i></button> </div> </form> </div> </div> </div> </div>