| @@ 2464-2472 (lines=9) @@ | ||
| 2461 | } |
|
| 2462 | } |
|
| 2463 | ||
| 2464 | function reseller_invoice_logo_delete($accountid){ |
|
| 2465 | $invoiceconf = $this->db_model->getSelect("*", "invoice_conf", array("accountid"=> $accountid)); |
|
| 2466 | $result=$invoiceconf->result_array(); |
|
| 2467 | $logo=$result[0]['logo']; |
|
| 2468 | $post_arr=array('logo'=>''); |
|
| 2469 | $where_arr=array('logo'=>$logo); |
|
| 2470 | $this->db->where($where_arr); |
|
| 2471 | $this->db->update('invoice_conf',$post_arr); |
|
| 2472 | } |
|
| 2473 | ||
| 2474 | ||
| 2475 | function customer_global_grid_list(){ |
|
| @@ 1320-1331 (lines=12) @@ | ||
| 1317 | echo json_encode($json_data); |
|
| 1318 | } |
|
| 1319 | ||
| 1320 | function invoice_logo_delete($accountid){ |
|
| 1321 | ||
| 1322 | $invoiceconf = $this->db_model->getSelect("*", "invoice_conf", array("id"=> $accountid)); |
|
| 1323 | $result=$invoiceconf->result_array(); |
|
| 1324 | $logo=$result[0]['logo']; |
|
| 1325 | $post_arr=array('logo'=>''); |
|
| 1326 | $where_arr=array('logo'=>$logo); |
|
| 1327 | $this->db->where($where_arr); |
|
| 1328 | $this->db->update('invoice_conf',$post_arr); |
|
| 1329 | // redirect(base_url() . 'invoices/invoice_conf/'); |
|
| 1330 | ||
| 1331 | } |
|
| 1332 | function invoice_list_view_invoice($invoiceid=false) { |
|
| 1333 | ||
| 1334 | $data['username'] = $this->session->userdata('user_name'); |
|
| @@ 668-676 (lines=9) @@ | ||
| 665 | } |
|
| 666 | } |
|
| 667 | ||
| 668 | function user_invoice_logo_delete($accountid){ |
|
| 669 | $invoiceconf = $this->db_model->getSelect("*", "invoice_conf", array("accountid"=> $accountid)); |
|
| 670 | $result=$invoiceconf->result_array(); |
|
| 671 | $logo=$result[0]['logo']; |
|
| 672 | $post_arr=array('logo'=>''); |
|
| 673 | $where_arr=array('logo'=>$logo); |
|
| 674 | $this->db->where($where_arr); |
|
| 675 | $this->db->update('invoice_conf',$post_arr); |
|
| 676 | } |
|
| 677 | ||
| 678 | function user_myprofile() { |
|
| 679 | $accountinfo = $this->session->userdata("accountinfo"); |
|