当前位置: 首页>>代码示例>>PHP>>正文


PHP jcode函数代码示例

本文整理汇总了PHP中jcode函数的典型用法代码示例。如果您正苦于以下问题:PHP jcode函数的具体用法?PHP jcode怎么用?PHP jcode使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了jcode函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: search_records

 public function search_records()
 {
     $this->load->model('audit_trail_model');
     $a_search = $this->input->post('searchAudit');
     $date_frm = $a_search['searchAudit_dateFRM'];
     $date_to = $a_search['searchAudit_dateTO'];
     $date_frm_format = date_format(new DateTime($date_frm), "Y/m/d");
     $date_to_format = date_format(new DateTime($date_to), "Y/m/d");
     $data = $this->audit_trail_model->search($a_search['searchAudit_user'], $date_frm_format, $date_to_format);
     $html = "";
     $err = validates(array($a_search), array());
     if ($err < 1) {
         echo jcode(array('success' => 3, 'err' => $err));
     } else {
         if (!$data->num_rows()) {
             echo jcode(array('success' => 2));
         } else {
             foreach ($data->result() as $key) {
                 $html .= "\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td class=''>" . $key->full_name . "</td>\n\t\t\t\t\t\t<td class=''>" . $key->user_type . "</td>\n\t\t\t\t\t\t<td class=''>" . $key->a_action . "</td>\n\t\t\t\t\t\t<td class=''>" . $key->a_date . "</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t";
             }
             auditrecord("Searched Records in Audit Trail.");
             echo jcode(array('success' => 1, 'response' => $html));
         }
     }
 }
开发者ID:voks,项目名称:accounting,代码行数:25,代码来源:Audit_trail.php

示例2: load_page

 public function load_page()
 {
     if ($this->session->userdata('islogged')) {
         $this->load->view('modules/sales_expense');
     } else {
         echo jcode(array('success' => 1));
     }
 }
开发者ID:voks,项目名称:accounting,代码行数:8,代码来源:Sales_expense.php

示例3: load_all_user

 public function load_all_user()
 {
     $this->load->model('user_access_model');
     $data = $this->user_access_model->show_user_access();
     $html = "";
     foreach ($data->result() as $key) {
         $html .= "\n\t\t\t<tr>\n\t\t\t\t<td>" . $key->fname . "</td>\n\t\t\t\t<td>" . $key->lname . "</td>\n\t\t\t\t<td>" . $key->uname . "</td>\n\t\t\t\t<td>" . $key->pwd . "</td>\n\t\t\t\t<td>" . $key->user_type . "</td>\n\t\t\t\t<td>\n\t\t\t\t\t<span class='action'><a href='#' class='' id='alert' data-toggle='modal' data-target='.userAccess'><i class='fa fa-edit' data-item='" . $key->id . "'></i> Update</a></span> |\n\t\t\t\t\t<span class='action'> <a href='#' class='btn_deluser' data-id='" . $key->id . "' data-id='" . $key->fname . "'><i class='fa fa-trash-o' data-item=''></i> Delete</a></span>\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t\t";
     }
     echo jcode(array('success' => 1, 'response' => $html));
 }
开发者ID:voks,项目名称:accounting,代码行数:10,代码来源:User_access.php

示例4: load_page

 public function load_page()
 {
     if ($this->session->userdata('islogged')) {
         $this->session->set_userdata('page_tab', 'Administrator');
         $this->session->set_userdata('page_title', 'Account Settings');
         $this->session->set_userdata('current_page', 'account_settings');
         $this->load->view('modules/account_settings');
     } else {
         echo jcode(array('success' => 1));
     }
 }
开发者ID:voks,项目名称:accounting,代码行数:11,代码来源:Account_settings.php

示例5: get_accountgroup

 public function get_accountgroup()
 {
     $this->load->model("system_settings_model");
     $type = $this->input->post('type');
     $data = $this->system_settings_model->account_group_get($type);
     $response = "";
     foreach ($data->result() as $key) {
         $response .= "<option>" . $key->account_groupname . "</option>";
     }
     echo jcode(array('success' => 1, 'response' => $response));
 }
开发者ID:ennaellehcim,项目名称:accounting,代码行数:11,代码来源:System_settings.php

示例6: login_user

 public function login_user()
 {
     $this->load->model('login_model');
     $count = $this->login_model->login_process($this->input->post('username'), $this->input->post('pwd'), $this->input->post('project_id'));
     if ($count->num_rows()) {
         $data = $this->login_model->login_process($this->input->post('username'), $this->input->post('pwd'), $this->input->post('project_id'))->result_array();
         $sessiondata = $this->login_model->session_data($data[0]['project_id'], $data[0]['user_id']);
         $this->session->set_userdata($sessiondata);
         echo jcode(array('success' => 1));
     } else {
         echo jcode(array('success' => 2));
     }
 }
开发者ID:ennaellehcim,项目名称:accounting,代码行数:13,代码来源:Login.php

示例7: ar_summary_report

 public function ar_summary_report()
 {
     $this->load->model("accounts_receivable_model");
     if ($this->session->userdata('islogged')) {
         $ar_customer = $this->input->get('ar');
         $html = $this->config->item('report_header');
         $data = array('ar' => $this->accounts_receivable_model->summary_ar($ar_customer)->result(), 'ar_tot' => $this->accounts_receivable_model->search_ar_tot($ar_customer)->result());
         $html .= $this->load->view('report/ar_summary_report', $data, true);
         $html .= $this->config->item('report_footer');
         pdf_create($html, 'Accounts-Receivable');
     } else {
         echo jcode(array('success' => 1));
     }
 }
开发者ID:voks,项目名称:accounting,代码行数:14,代码来源:Accounts_receivable.php

示例8: report

 public function report()
 {
     if ($this->session->userdata('islogged')) {
         $report_type = $this->input->get('rt');
         $html = $this->config->item('report_header');
         if ($report_type == 1) {
             $viewData = array();
             $html .= $this->load->view('report/aging_payables_report', $viewData, true);
         } elseif ($report_type == 2) {
             $viewData = array();
             $html .= $this->load->view('report/aging_receivables_report', $viewData, true);
         }
         $html .= $this->config->item('report_footer');
         pdf_create($html, 'EPS-Accounting-Report');
     } else {
         echo jcode(array('success' => 1));
     }
 }
开发者ID:voks,项目名称:accounting,代码行数:18,代码来源:Aging.php

示例9: save_user_access

 public function save_user_access()
 {
     $this->load->model("user_access_model");
     $user_access_data = $this->input->post('ua');
     $err = validates(array($user_access_data), array());
     if (count($err)) {
         echo jcode(array('success' => 3, 'err' => $err));
     } else {
         $fname = isset($user_access_data['fname']) ? $user_access_data['fname'] : '';
         $check_id = $this->user_access_model->user_exist($fname);
         if ($check_id) {
             echo jcode(array('success' => 2));
         } else {
             $id = $this->user_access_model->add_user_access($user_access_data);
             $html = "\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>" . $user_access_data['fname'] . "</td>\n\t\t\t\t\t\t<td>" . $user_access_data['lname'] . "</td>\n\t\t\t\t\t\t<td>" . $user_access_data['uname'] . "</td>\n\t\t\t\t\t\t<td>" . $user_access_data['pwd'] . "</td>\n\t\t\t\t\t\t<td>" . $user_access_data['user_type'] . "</td>\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t<span class='action'><a href='#' class='' id='alert' data-toggle='modal' data-target='.userAccess'><i class='fa fa-edit' data-item='" . $id . "'></i> Update</a></span> |\n\t\t\t\t\t\t    <span class='action'><i class='fa fa-trash-o' data-item='" . $id . "'></i> <a href='#' class='' id='alert' data-toggle='modal' data-target='.deleteAccess'>Delete</a></span>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t";
             echo jcode(array('success' => 1, 'response' => $html));
         }
     }
 }
开发者ID:ennaellehcim,项目名称:accounting,代码行数:19,代码来源:User_access.php

示例10: search_ap

 public function search_ap()
 {
     $this->load->model('journal_ap_model');
     $account_search = $this->input->post('searchAP');
     $data = $this->journal_ap_model->journal_ap_get($account_search['searchAP_invNo'], $account_search['searchAP_date'], $account_search['searchAP_suppName'], $account_search['searchAP_po']);
     $html = "";
     $err = validates(array($account_search), array());
     if ($err < 1) {
         echo jcode(array('success' => 3, 'err' => $err));
     } else {
         if (!$data->num_rows()) {
             echo jcode(array('success' => 2));
         } else {
             foreach ($data->result() as $key) {
                 $html .= "\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>" . $key->ap_invoice_no . "</td>\n\t\t\t\t\t\t<td>" . $key->ap_invoice_date . "</td>\n\t\t\t\t\t\t<td>" . $key->ap_master_name . "</td>\n\t\t\t\t\t\t<td>" . $key->ap_particulars . "</td>\n\t\t\t\t\t\t<td>" . $key->ap_invoice_amount . "</td>\n\t\t\t\t\t\t<td><a href='#' data-id='{$key->ap_id}' class='btn-style-1 animate-4 pull-left account-report-print'><i class='fa fa-print'></i></a></td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t";
             }
             echo jcode(array('success' => 1, 'response' => $html));
         }
     }
 }
开发者ID:ennaellehcim,项目名称:accounting,代码行数:20,代码来源:Accounts_payable.php

示例11: search_accountcode

 public function search_accountcode()
 {
     $this->load->model("main_account_model");
     $account_search = $this->input->post('search_account');
     $data = $this->main_account_model->main_account_get($account_search['searchaccount_code'], $account_search['searchaccount_title'], $account_search['search_accountgroup']);
     $html = "";
     $err = validates(array($account_search), array());
     if (count($err)) {
         if ($err < 1) {
             echo jcode(array('success' => 3, 'err' => $err));
         } else {
             if (!$data->num_rows()) {
                 echo jcode(array('success' => 2));
             } else {
                 foreach ($data->result() as $key) {
                     $html .= "\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td>" . $key->account_type . "</td>\n\t\t\t\t\t\t\t<td>" . $key->account_code . "</td>\n\t\t\t\t\t\t\t<td>" . $key->account_title . "</td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t";
                 }
                 echo jcode(array('success' => 1, 'response' => $html));
             }
         }
     }
 }
开发者ID:ennaellehcim,项目名称:accounting,代码行数:22,代码来源:Main_account.php

示例12: search_master

 public function search_master()
 {
     $this->load->model("master_account_model");
     $account_search = $this->input->post('searchMaster');
     $data = $this->master_account_model->master_account_get($account_search['searchMaster_name'], $account_search['searchMaster_type']);
     $html = "";
     $err = validates(array($account_search), array());
     if (count($err)) {
         if ($err < 1) {
             echo jcode(array('success' => 3, 'err' => $err));
         } else {
             if (!$data->num_rows()) {
                 echo jcode(array('success' => 2));
             } else {
                 foreach ($data->result() as $key) {
                     $html .= "\n\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t<td>" . $key->master_name . "</td>\n\t\t\t\t\t\t\t\t\t\t<td>" . $key->master_add . "</td>\n\t\t\t\t\t\t\t\t\t\t<td>" . $key->master_contact_person . "</td>\n\t\t\t\t\t\t\t\t\t\t<td>" . $key->master_tel_no . "</td>\n\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t";
                 }
                 echo jcode(array('success' => 1, 'response' => $html));
             }
         }
     }
 }
开发者ID:ennaellehcim,项目名称:accounting,代码行数:22,代码来源:Master_account.php

示例13: search_bank

 public function search_bank()
 {
     $this->load->model("bank_recon_model");
     $account_search = $this->input->post('searchBank');
     $data = $this->bank_recon_model->bank_recon_get($account_search['searchBank_name'], $account_search['searchBank_month'], $account_search['searchBank_year'], $account_search['searchBank_balance']);
     $html = "";
     $err = validates(array($account_search), array());
     if (count($err)) {
         if ($err < 1) {
             echo jcode(array('success' => 3, 'err' => $err));
         } else {
             if (!$data->num_rows()) {
                 echo jcode(array('success' => 2));
             } else {
                 foreach ($data->result() as $key) {
                     $html .= "\n\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t<td>" . $key->bank_name . "</td>\n\t\t\t\t\t\t\t\t\t\t<td>" . $key->bank_month . "</td>\n\t\t\t\t\t\t\t\t\t\t<td>" . $key->bank_year . "</td>\n\t\t\t\t\t\t\t\t\t\t<td>" . $key->bank_balance . "</td>\n\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t";
                 }
                 echo jcode(array('success' => 1, 'response' => $html));
             }
         }
     }
 }
开发者ID:ennaellehcim,项目名称:accounting,代码行数:22,代码来源:Bank_recon.php

示例14: report

 public function report()
 {
     $this->load->model('management_model');
     if ($this->session->userdata('islogged')) {
         $report_type = $this->input->get('rt');
         $mgt = $this->input->get('mgt');
         $date_from = $this->input->get('fr');
         $date_to = $this->input->get('to');
         $html = $this->config->item('report_header');
         if ($report_type == 1) {
             $viewData = array('fs_bank' => $this->management_model->get_fs_bank($date_from, $date_to), 'fs_bank_tot' => $this->management_model->get_fs_bank_tot($date_from, $date_to), 'fs_ar' => $this->management_model->get_fs_ar($date_from, $date_to), 'fs_ar_tot' => $this->management_model->get_fs_ar_tot($date_from, $date_to), 'fs_ap' => $this->management_model->get_fs_ap($date_from, $date_to), 'fs_ap_tot' => $this->management_model->get_fs_ap_tot($date_from, $date_to));
             $html .= $this->load->view('report/financial_statement', $viewData, true);
         } elseif ($report_type == 2) {
             $viewData = array('bs_assets' => $this->management_model->bs_assets_report(), 'bs_nonAssets' => $this->management_model->bs_nonAssets_report(), 'bs_otherAssets' => $this->management_model->bs_otherAssets_report(), 'bs_liabilities' => $this->management_model->bs_liabilities_report(), 'bs_equity' => $this->management_model->bs_equity_report());
             $html .= $this->load->view('report/balance_sheet', $viewData, true);
         } elseif ($report_type == 3) {
             $viewData = array();
             $html .= $this->load->view('report/bank_recon', $viewData, true);
         } elseif ($report_type == 4) {
             $viewData = array();
             $html .= $this->load->view('report/cash_position', $viewData, true);
         } elseif ($report_type == 5) {
             $viewData = array('income_statement' => $this->management_model->income_statement_report());
             $html .= $this->load->view('report/income_statement', $viewData, true);
         } elseif ($report_type == 6) {
             $viewData = array();
             $html .= $this->load->view('report/profit_loss', $viewData, true);
         } elseif ($report_type == 7) {
             $viewData = array('ap_trade' => $this->management_model->get_ap_trade($date_from, $date_to), 'ap_trade_tot' => $this->management_model->get_ap_trade_tot($date_from, $date_to));
             $html .= $this->load->view('report/ap_trade_report', $viewData, true);
         } elseif ($report_type == 8) {
             $viewData = array('ap_Ntrade' => $this->management_model->get_ap_Ntrade($date_from, $date_to), 'ap_Ntrade_tot' => $this->management_model->get_ap_Ntrade_tot($date_from, $date_to));
             $html .= $this->load->view('report/ap_nTrade_report', $viewData, true);
         } elseif ($report_type == 9) {
             $viewData = array('ap_other' => $this->management_model->get_ap_other($date_from, $date_to), 'ap_other_tot' => $this->management_model->get_ap_other_tot($date_from, $date_to));
             $html .= $this->load->view('report/ap_others_report', $viewData, true);
         } elseif ($report_type == 10) {
             $viewData = array();
             $html .= $this->load->view('report/ar_trade_report', $viewData, true);
         } elseif ($report_type == 11) {
             $viewData = array();
             $html .= $this->load->view('report/ar_nTrade_report', $viewData, true);
         } elseif ($report_type == 12) {
             $viewData = array();
             $html .= $this->load->view('report/ar_others_report', $viewData, true);
         } elseif ($report_type == 13) {
             $viewData = array();
             $html .= $this->load->view('report/emp_advances_report', $viewData, true);
         } elseif ($report_type == 14) {
             $viewData = array();
             $html .= $this->load->view('report/officer_advances_report', $viewData, true);
         } elseif ($report_type == 15) {
             $viewData = array();
             $html .= $this->load->view('report/cash_flow', $viewData, true);
         } elseif ($report_type == 16) {
             $viewData = array('expense' => $this->management_model->get_expenses($date_from, $date_to));
             $html .= $this->load->view('report/operating_expenses', $viewData, true);
         } elseif ($report_type == 17) {
             $viewData = array('trial_report' => $this->management_model->trial_balance_report());
             $html .= $this->load->view('report/trial_balance', $viewData, true);
         } elseif ($report_type == 18) {
             $viewData = array();
             $html .= $this->load->view('report/taxes_report', $viewData, true);
         } elseif ($report_type == 19) {
             $viewData = array();
             $html .= $this->load->view('report/prepaid_expenses', $viewData, true);
         } elseif ($report_type == 20) {
             $viewData = array();
             $html .= $this->load->view('report/security_deposit', $viewData, true);
         } elseif ($report_type == 21) {
             $viewData = array();
             $html .= $this->load->view('report/prepaid_rent', $viewData, true);
         } elseif ($report_type == 22) {
             $viewData = array();
             $html .= $this->load->view('report/computer_equipment', $viewData, true);
         } elseif ($report_type == 23) {
             $viewData = array();
             $html .= $this->load->view('report/office_furnitures', $viewData, true);
         } elseif ($report_type == 24) {
             $viewData = array();
             $html .= $this->load->view('report/intagible_assets', $viewData, true);
         } elseif ($report_type == 25) {
             $viewData = array();
             $html .= $this->load->view('report/leashold_improvement', $viewData, true);
         }
         $html .= $this->config->item('report_footer');
         pdf_create($html, 'EPS-Accounting-Report');
     } else {
         echo jcode(array('success' => 1));
     }
 }
开发者ID:voks,项目名称:accounting,代码行数:91,代码来源:Management.php

示例15: search_chartaccount

 public function search_chartaccount()
 {
     $this->load->model('site_model');
     $chart_search = $this->input->post('chart');
     $data = $this->site_model->search_chartaccount($chart_search['account_code'], $chart_search['account_title'], $chart_search['sub_code'], $chart_search['sub_name']);
     $html = "";
     // echo $this->db->last_query();
     $err = validates(array($chart_search), array());
     if (count($err)) {
         if ($err < 1) {
             echo jcode(array('success' => 3, 'err' => $err));
         } else {
             if (!$data->num_rows()) {
                 echo jcode(array('success' => 2));
             } else {
                 foreach ($data->result() as $key) {
                     $html .= "\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td><label><input type='checkbox' class='' value='0' id='check' data-subcode='" . $key->sub_code . "' data-subname='" . $key->sub_name . "'><label>\t</td>\n\t\t\t\t\t\t\t<td>" . $key->account_code . "</td>\n\t\t\t\t\t\t\t<td>" . $key->account_title . "</td>\n\t\t\t\t\t\t\t<td>" . $key->sub_code . "</td>\n\t\t\t\t\t\t\t<td>" . $key->sub_name . "</td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t";
                 }
                 echo jcode(array('success' => 1, 'response' => $html));
             }
         }
     }
 }
开发者ID:ennaellehcim,项目名称:accounting,代码行数:23,代码来源:Accounts_payable.php


注:本文中的jcode函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。