diff --git a/application/controllers/branchCI.php b/application/controllers/branchCI.php index 9dc1a9c..3fa71f2 100644 --- a/application/controllers/branchCI.php +++ b/application/controllers/branchCI.php @@ -13,19 +13,13 @@ function __construct() { $this->load->library('form_validation'); } function index(){ - if (!$_SERVER['HTTP_REFERER']){ redirect('branchCI');} else{ - if($this->session->userdata['Setting']['Branch']==1){ - if(!isset($this->session->userdata['guid'])){ - $this->load->view('template/header'); - $this->load->view('login'); - $this->load->view('template/footer'); - }else{ - $this->get_branch(); - } - }else{ - redirect('home'); - } - } + $this->load->view('template/app/header'); + $this->load->view('header/header'); + $this->load->view('template/branch',$this->posnic->branches()); + $data['active']='branchCI'; + $this->load->view('index',$data); + $this->load->view('template/app/navigation',$this->posnic->modules()); + $this->load->view('template/app/footer'); } diff --git a/application/modules/branches/config/posnic.php b/application/modules/branches/config/posnic.php new file mode 100644 index 0000000..9e0aea2 --- /dev/null +++ b/application/modules/branches/config/posnic.php @@ -0,0 +1,4 @@ + diff --git a/application/modules/branches/controllers/branches.php b/application/modules/branches/controllers/branches.php new file mode 100644 index 0000000..f50fb5b --- /dev/null +++ b/application/modules/branches/controllers/branches.php @@ -0,0 +1,306 @@ +load->library('posnic'); + + } + function index(){ + $this->get(); + + } + function get(){ + $this->load->view('template/app/header'); + $this->load->view('header/header'); + $this->load->view('template/branch',$this->posnic->branches()); + $data['active']='branches'; + $this->load->view('index',$data); + $this->load->view('template/app/navigation',$this->posnic->modules()); + $this->load->view('template/app/footer'); + } + function branches_data_table(){ + $aColumns = array( 'guid','guid','first_name','company_name','phone','email','c_name','type','type','active_status' ); + $start = ""; + $end=""; + if ( $this->input->get_post('iDisplayLength') != '-1' ) { + $start = $this->input->get_post('iDisplayStart'); + $end= $this->input->get_post('iDisplayLength'); + } + $order=""; + if ( isset( $_GET['iSortCol_0'] ) ) + { + for ( $i=0 ; $iinput->get_post('iSortingCols') ) ; $i++ ) + { + if ( $_GET[ 'bSortable_'.intval($this->input->get_post('iSortCol_'.$i)) ] == "true" ) + { + $order.= $aColumns[ intval( $this->input->get_post('iSortCol_'.$i) ) ]." ".$this->input->get_post('sSortDir_'.$i ) .","; + } + } + $order = substr_replace( $order, "", -1 ); + } + $like = array(); + if ( $_GET['sSearch'] != "" ) + { + $like =array('name'=> $this->input->get_post('sSearch')); + } + $this->load->model('customer') ; + $rResult1 = $this->customer->get($end,$start,$like,$this->session->userdata['branch_id']); + $iFilteredTotal =$this->posnic->data_table_count('branches'); + $iTotal =$iFilteredTotal; + $output1 = array( + "sEcho" => intval($_GET['sEcho']), + "iTotalRecords" => $iTotal, + "iTotalDisplayRecords" => $iFilteredTotal, + "aaData" => array() + ); + foreach ($rResult1 as $aRow ) + { + $row = array(); + for ( $i=0 ; $iinput->post('guid'); + $report= $this->posnic->posnic_module_active($id,'branches'); + if (!$report['error']) { + echo 'TRUE'; + } else { + echo 'FALSE'; + } + } + function deactive(){ + $id= $this->input->post('guid'); + $report= $this->posnic->posnic_module_deactive($id,'branches'); + if (!$report['error']) { + echo 'TRUE'; + } else { + echo 'FALSE'; + } + } + function delete(){ + if($this->session->userdata['branches_per']['delete']==1){ + if($this->input->post('guid')){ + $guid= $this->input->post('guid'); + $this->posnic->posnic_delete($guid,'branches'); + echo 'TRUE'; + } + }else{ + echo 'FALSE'; + } + } + function add_branches(){ + if($this->session->userdata['branches_per']['add']=="1"){ + $this->load->library('form_validation'); + $this->form_validation->set_rules("first_name",$this->lang->line('first_name'),"required"); + $this->form_validation->set_rules("last_name",$this->lang->line('last_name'),"required"); + $this->form_validation->set_rules("category",$this->lang->line('category'),"required"); + $this->form_validation->set_rules("address",$this->lang->line('address'),"required"); + $this->form_validation->set_rules("payment",$this->lang->line('payment'),"required"); + $this->form_validation->set_rules("city",$this->lang->line('city'),"required"); + $this->form_validation->set_rules("state",$this->lang->line('state'),"required"); + $this->form_validation->set_rules("zip",$this->lang->line('zip'),"required"); + $this->form_validation->set_rules("country",$this->lang->line('country'),"required"); + $this->form_validation->set_rules("address",$this->lang->line('address'),"required"); + $this->form_validation->set_rules('phone', $this->lang->line('phone'), 'max_length[12]|regex_match[/^[0-9]+$/]|xss_clean'); + $this->form_validation->set_rules('credit_days', $this->lang->line('credit_days'), 'max_length[10]|regex_match[/^[0-9 .]+$/]|xss_clean'); + $this->form_validation->set_rules('credit_limit', $this->lang->line('credit_limit'), 'max_length[10]|regex_match[/^[0-9 .]+$/]|xss_clean'); + $this->form_validation->set_rules('balance', $this->lang->line('balance'), 'max_length[10]|regex_match[/^[0-9 .]+$/]|xss_clean'); + $this->form_validation->set_rules('email', $this->lang->line('email'), 'required|valid_email'); + + if ( $this->form_validation->run() !== false ) { + $values=array( + 'first_name'=>$this->input->post('first_name'), + 'last_name'=> $this->input->post('last_name'), + 'email'=>$this->input->post('email'), + 'phone'=>$this->input->post('phone'), + 'city'=>$this->input->post('city'), + 'state'=>$this->input->post('state'), + 'country'=>$this->input->post('country'), + 'zip'=>$this->input->post('zip'), + 'comments'=>$this->input->post('comments'), + 'website'=>$this->input->post('website'), + 'account_number'=>$this->input->post('account'), + 'address'=>$this->input->post('address'), + 'company_name'=>$this->input->post('company'), + + 'payment'=>$this->input->post('payment'), + 'credit_limit'=>$this->input->post('credit_limit'), + 'cdays'=>$this->input->post('credit_days'), + 'month_credit_bal'=>$this->input->post('balance'), + 'bday'=>strtotime($this->input->post('dob')), + 'mday'=>strtotime($this->input->post('marragedate')), + 'title'=>$this->input->post('title'), + 'category_id'=>$this->input->post('category'), + + 'bank_name'=>$this->input->post('bank_name'), + 'bank_location'=>$this->input->post('bank_location'), + 'account_number'=>$this->input->post('account_no'), + 'cst'=>$this->input->post('cst'), + 'gst'=>$this->input->post('gst'), + 'tax_no'=> $this->input->post('tax_no')); + $where=array('phone'=>$this->input->post('phone'),'email'=>$this->input->post('email')); + if($this->posnic->check_record_unique($where,'branches')){ + $this->posnic->posnic_add_record($values,'branches'); + echo 'TRUE'; + }else{ + echo "ALREADY"; + } + }else{ + echo "FALSE"; + } + + }else{ + echo "NOOP"; + } + } + function get_category(){ + $search= $this->input->post('term'); + if($search!=""){ + $like=array('category_name'=>$search); + $data= $this->posnic->posnic_or_like('customer_category',$like); + echo json_encode($data); + } + } + function get_payment(){ + $search= $this->input->post('term'); + if($search!=""){ + $like=array('type'=>$search); + $data= $this->posnic->posnic_or_like('branches_payment_type',$like); + echo json_encode($data); + } + } + + function edit_branches($guid){ + if($this->session->userdata['branches_per']['edit']=="1"){ + $this->load->model('customer') ; + $data = $this->customer->edit_customer($guid); + echo json_encode($data); + }else{ + echo 'Noop'; + } + + } + function update_branches(){ + if($this->session->userdata['branches_per']['edit']==1){ + if($this->input->post('guid')){ + $guid= $this->input->post('guid'); + $this->load->library('form_validation'); + $this->form_validation->set_rules("first_name",$this->lang->line('first_name'),"required"); + $this->form_validation->set_rules("last_name",$this->lang->line('last_name'),"required"); + $this->form_validation->set_rules("category",$this->lang->line('category'),"required"); + $this->form_validation->set_rules("address",$this->lang->line('address'),"required"); + $this->form_validation->set_rules("payment",$this->lang->line('payment'),"required"); + $this->form_validation->set_rules("city",$this->lang->line('city'),"required"); + $this->form_validation->set_rules("state",$this->lang->line('state'),"required"); + $this->form_validation->set_rules("zip",$this->lang->line('zip'),"required"); + $this->form_validation->set_rules("country",$this->lang->line('country'),"required"); + $this->form_validation->set_rules("address",$this->lang->line('address'),"required"); + $this->form_validation->set_rules('phone', $this->lang->line('phone'), 'max_length[12]|regex_match[/^[0-9]+$/]|xss_clean'); + $this->form_validation->set_rules('credit_days', $this->lang->line('credit_days'), 'max_length[10]|regex_match[/^[0-9 .]+$/]|xss_clean'); + $this->form_validation->set_rules('credit_limit', $this->lang->line('credit_limit'), 'max_length[10]|regex_match[/^[0-9 .]+$/]|xss_clean'); + $this->form_validation->set_rules('balance', $this->lang->line('balance'), 'max_length[10]|regex_match[/^[0-9 .]+$/]|xss_clean'); + $this->form_validation->set_rules('email', $this->lang->line('email'), 'required|valid_email'); + if ( $this->form_validation->run() !== false ) { + $values=array( + 'first_name'=>$this->input->post('first_name'), + 'last_name'=> $this->input->post('last_name'), + 'email'=>$this->input->post('email'), + 'phone'=>$this->input->post('phone'), + 'city'=>$this->input->post('city'), + 'state'=>$this->input->post('state'), + 'country'=>$this->input->post('country'), + 'zip'=>$this->input->post('zip'), + 'comments'=>$this->input->post('comments'), + 'website'=>$this->input->post('website'), + 'account_number'=>$this->input->post('account'), + 'address'=>$this->input->post('address'), + 'company_name'=>$this->input->post('company'), + + 'payment'=>$this->input->post('payment'), + 'credit_limit'=>$this->input->post('credit_limit'), + 'cdays'=>$this->input->post('credit_days'), + 'month_credit_bal'=>$this->input->post('balance'), + 'bday'=>strtotime($this->input->post('dob')), + 'mday'=>strtotime($this->input->post('marragedate')), + 'title'=>$this->input->post('title'), + 'category_id'=>$this->input->post('category'), + + 'bank_name'=>$this->input->post('bank_name'), + 'bank_location'=>$this->input->post('bank_location'), + 'account_number'=>$this->input->post('account_no'), + 'cst'=>$this->input->post('cst'), + 'gst'=>$this->input->post('gst'), + 'tax_no'=> $this->input->post('tax_no')); + $update_where=array('guid'=>$guid); + + + $where=array('guid !='=>$guid,'phone'=>$this->input->post('phone'),'email'=>$this->input->post('email')); + if($this->posnic->check_record_unique($where,'branches')){ + + $this->posnic->posnic_update_record($values,$update_where,'branches'); + echo 'TRUE'; + }else{ + echo "ALREADY"; + } + }else{ + echo "FALSE"; + } + }else{ + echo "FALSE"; + } + }else{ + echo "NOOP"; + } + } + + + function deactive_branches($guid){ + $this->posnic->posnic_deactive($guid); + redirect('branches'); + + } + function active_branches($guid){ + $this->posnic->posnic_active($guid); + redirect('branches'); + + } + function restore_branches($guid){ + if($this->session->userdata['Posnic_User']=='admin'){ + $this->posnic->posnic_restore($guid); + + redirect('branches'); + + }else{ + redirect('home'); + } + } + function get_date_in_strtotime(){ + $dob=$this->input->post('dob'); + $mdate=$this->input->post('mdate'); + $data['dob']= date('j.n.Y', strtotime('+0 year, +0 days',$dob)); + $data['mdate']= date('j.n.Y', strtotime('+0 year, +0 days',$mdate)); + echo json_encode($data); + } + +} + +?> diff --git a/application/modules/branches/models/customer.php b/application/modules/branches/models/customer.php new file mode 100644 index 0000000..5050b98 --- /dev/null +++ b/application/modules/branches/models/customer.php @@ -0,0 +1,26 @@ +db->select('customers.* ,customer_category.guid as c_guid,customer_category.category_name as c_name,customers_payment_type.guid as p_guid,customers_payment_type.type as type')->from('customers')->where('customers.branch_id',$branch)->where('customers.delete_status',0); + $this->db->join('customer_category', 'customers.category_id=customer_category.guid','left'); + $this->db->join('customers_payment_type', 'customers.payment=customers_payment_type.guid','left'); + $this->db->limit($end,$start); + $this->db->or_like($like); + $query=$this->db->get(); + return $query->result_array(); + + } + function edit_customer($guid){ + $this->db->select('customers.* ,customer_category.guid as c_guid,customer_category.category_name as c_name,customers_payment_type.guid as p_guid,customers_payment_type.type as type')->from('customers')->where('customers.guid',$guid); + $this->db->join('customer_category', 'customers.category_id=customer_category.guid','left'); + $this->db->join('customers_payment_type', 'customers.payment=customers_payment_type.guid','left'); + + $query=$this->db->get(); + return $query->result_array(); + } +} +?> diff --git a/application/modules/branches/views/header/header.php b/application/modules/branches/views/header/header.php new file mode 100644 index 0000000..1c8dd76 --- /dev/null +++ b/application/modules/branches/views/header/header.php @@ -0,0 +1,220 @@ + + + + + + \ No newline at end of file diff --git a/application/modules/branches/views/index.php b/application/modules/branches/views/index.php new file mode 100644 index 0000000..9092034 --- /dev/null +++ b/application/modules/branches/views/index.php @@ -0,0 +1,1262 @@ + + + + + +
+
+
+ 'posnic'); + echo form_open('branches/branches_manage',$form) ?> +
+

+
+
+

lang->line('branches') ?>

+
+ + + + + + + + + + + + + + + + +
Idlang->line('select') ?>lang->line('name') ?>lang->line('company') ?>lang->line('phone') ?>lang->line('email') ?>lang->line('category') ?>lang->line('payment') ?>lang->line('status') ?>lang->line('action') ?>
+
+
+
+ +
+
+
+ +
+ 'add_customer_form', + 'runat'=>'server', + 'class'=>'form-horizontal'); + echo form_open_multipart('branches/add_pos_branches_details/',$form);?> +
+
+ +
+
+
+
+
+

lang->line('personal_details') ?>

+
+
+ +
+
+ + + +
+
+
+
+ + 'customer_category', + 'class'=>'required form-control', + 'id'=>'customer_category', + 'value'=>set_value('customer_category')); + echo form_input($customer_category)?> +
+ +
+
+
+
+
+
+
+
+ + 'first_name', + 'class'=>'required form-control', + 'id'=>'first_name', + 'value'=>set_value('first_name')); + echo form_input($first_name)?> +
+
+
+
+ + 'last_name', + 'class'=>'required form-control', + 'id'=>'last_name', + 'value'=>set_value('last_name')); + echo form_input($last_name)?> +
+
+
+
+
+
+ +
+ 'dob', + 'class'=>' form-control', + 'id'=>'dob', + 'value'=>set_value('dob')); + echo form_input($dob)?> + +
+
+
+
+
+ +
+ 'marragedate', + 'class'=>' form-control', + 'id'=>'marragedate', + 'value'=>set_value('marragedate')); + echo form_input($marragedate)?> + +
+
+
+
+
+
+
+
+
+
+
+
+

lang->line('contact_details') ?>

+
+
+ +
+
+ + 'address', + 'id' => 'address', + 'value' => set_value('address'), + 'rows' => '7', + 'cols' => '10', + 'class' =>'form-control required' + + ); echo form_textarea($address); + ?> +
+
+
+
+
+
+ + 'city', + 'class'=>'required form-control', + 'id'=>'city', + 'value'=>set_value('city')); + echo form_input($city)?> +
+
+
+
+ + 'state', + 'class'=>'required form-control', + 'id'=>'state', + 'value'=>set_value('state')); + echo form_input($state)?> +
+
+
+
+
+
+ + + 'zip', + 'class'=>'required form-control', + 'id'=>'zip', + 'value'=>set_value('zip')); + echo form_input($zip)?> +
+
+
+
+ + 'country', + 'class'=>'required form-control', + 'id'=>'country', + 'value'=>set_value('country')); + echo form_input($country)?> +
+
+
+
+
+
+ + 'email', + 'class'=>'required form-control email', + 'id'=>'email', + 'value'=>set_value('email')); + echo form_input($email)?> +
+
+
+
+ + + + 'phone', + 'class'=>'required form-control number', + 'id'=>'phone', + 'value'=>set_value('phone')); + echo form_input($phone)?> +
+
+
+
+
+
+ + 'company', + 'class'=>' form-control ', + 'id'=>'company', + 'value'=>set_value('company')); + echo form_input($company)?> +
+
+
+
+ + + + 'website', + 'class'=>' form-control', + 'id'=>'website', + 'value'=>set_value('website')); + echo form_input($website)?> +
+
+
+
+
+
+
+
+
+
+
+
+
+

lang->line('payment_details') ?>

+
+
+ + +
+
+
+
+ + 'payment_type', + 'class'=>'required form-control', + 'id'=>'payment_type', + 'value'=>set_value('payment_type')); + echo form_input($payment_type)?> + +
+
+
+
+ + 'credit_days', + 'class'=>' form-control', + 'id'=>'credit_days', + 'value'=>set_value('credit_days')); + echo form_input($credit_days)?> +
+
+
+
+ + 'credit_limit', + 'class'=>'form-control', + 'id'=>'credit_limit', + 'value'=>set_value('credit_limit')); + echo form_input($credit_limit)?> +
+
+
+
+
+
+ + + 'balance', + 'class'=>' form-control', + 'id'=>'balance', + 'value'=>set_value('balance')); + echo form_input($balance)?> +
+
+ +
+ +
+
+
+
+
+
+
+
+

lang->line('bank_details') ?>

+
+
+ + +
+ +
+ +
+
+ + + 'bank_name', + 'class'=>'form-control', + 'id'=>'bank_name', + 'value'=>set_value('bank_name')); + echo form_input($bank_name)?> +
+
+
+
+ + 'bank_location', + 'class'=>' form-control', + 'id'=>'bank_location', + 'value'=>set_value('bank_location')); + echo form_input($bank_location)?> +
+
+
+
+ + 'account_no', + 'class'=>'form-control', + 'id'=>'account_no', + 'value'=>set_value('account_no')); + echo form_input($account_no)?> +
+
+
+
+
+
+
+
+
+
+
+

lang->line('tax_details') ?>

+
+
+ + +
+ + +
+ +
+
+ + 'cst', + 'class'=>' form-control', + 'id'=>'cst', + 'value'=>set_value('cst')); + echo form_input($cst)?> +
+
+
+
+ + + + 'gst', + 'class'=>' form-control ', + 'id'=>'gst', + 'value'=>set_value('gst')); + echo form_input($gst)?> +
+
+
+
+ + 'tax_no', + 'class'=>'form-control', + 'id'=>'tax_no', + 'value'=>set_value('tax_no')); + echo form_input($tax_no)?> +
+
+

+
+
+
+
+ + +
+ +


+ + lang->line('clear') ?> +
+
+ +
+ + +
+
+
+ + +
+ +
+ 'parsley_reg', + 'runat'=>'server', + 'class'=>'form-horizontal'); + echo form_open_multipart('branches/upadate_pos_branches_details/',$form);?> +
+
+ +
+
+
+
+
+

lang->line('personal_details') ?>

+
+
+
+
+ + + +
+
+
+
+ + 'customer_category', + 'class'=>'required form-control', + 'id'=>'customer_category', + 'value'=>set_value('customer_category')); + echo form_input($customer_category)?> +
+ + +
+
+
+
+
+
+
+
+ + 'first_name', + 'class'=>'required form-control', + 'id'=>'first_name', + 'value'=>set_value('first_name')); + echo form_input($first_name)?> +
+
+
+
+ + 'last_name', + 'class'=>'required form-control', + 'id'=>'last_name', + 'value'=>set_value('last_name')); + echo form_input($last_name)?> +
+
+
+
+
+
+ +
+ 'dob', + 'class'=>' form-control', + 'id'=>'dob', + 'value'=>set_value('dob')); + echo form_input($dob)?> + +
+
+
+
+
+ +
+ 'marragedate', + 'class'=>' form-control', + 'id'=>'marragedate', + 'value'=>set_value('marragedate')); + echo form_input($marragedate)?> + +
+
+
+
+
+
+
+
+
+
+
+
+

lang->line('contact_details') ?>

+
+
+ +
+
+ + 'address', + 'id' => 'address', + 'value' => set_value('address'), + 'rows' => '7', + 'cols' => '10', + 'class' =>'form-control required' + + ); echo form_textarea($address); + ?> +
+
+
+
+
+
+ + 'city', + 'class'=>'required form-control', + 'id'=>'city', + 'value'=>set_value('city')); + echo form_input($city)?> +
+
+
+
+ + 'state', + 'class'=>'required form-control', + 'id'=>'state', + 'value'=>set_value('state')); + echo form_input($state)?> +
+
+
+
+
+
+ + + 'zip', + 'class'=>'required form-control', + 'id'=>'zip', + 'value'=>set_value('zip')); + echo form_input($zip)?> +
+
+
+
+ + 'country', + 'class'=>'required form-control', + 'id'=>'country', + 'value'=>set_value('country')); + echo form_input($country)?> +
+
+
+
+
+
+ + 'email', + 'class'=>'required form-control email', + 'id'=>'email', + 'value'=>set_value('email')); + echo form_input($email)?> +
+
+
+
+ + + + 'phone', + 'class'=>'required form-control number', + 'id'=>'phone', + 'value'=>set_value('phone')); + echo form_input($phone)?> +
+
+
+
+
+
+ + 'company', + 'class'=>' form-control ', + 'id'=>'company', + 'value'=>set_value('company')); + echo form_input($company)?> +
+
+
+
+ + + + 'website', + 'class'=>' form-control', + 'id'=>'website', + 'value'=>set_value('website')); + echo form_input($website)?> +
+
+
+
+
+
+
+
+
+
+
+
+
+

lang->line('payment_details') ?>

+
+
+ + +
+
+
+
+ + 'payment_type', + 'class'=>'required form-control', + 'id'=>'payment_type', + 'value'=>set_value('payment_type')); + echo form_input($payment_type)?> + +
+
+
+
+ + 'credit_days', + 'class'=>' form-control', + 'id'=>'credit_days', + 'value'=>set_value('credit_days')); + echo form_input($credit_days)?> +
+
+
+
+ + 'credit_limit', + 'class'=>'form-control', + 'id'=>'credit_limit', + 'value'=>set_value('credit_limit')); + echo form_input($credit_limit)?> +
+
+
+
+
+
+ + + 'balance', + 'class'=>' form-control', + 'id'=>'balance', + 'value'=>set_value('balance')); + echo form_input($balance)?> +
+
+ +
+ +
+
+
+
+
+
+
+
+

lang->line('bank_details') ?>

+
+
+ + +
+ +
+ +
+
+ + + 'bank_name', + 'class'=>'form-control', + 'id'=>'bank_name', + 'value'=>set_value('bank_name')); + echo form_input($bank_name)?> +
+
+
+
+ + 'bank_location', + 'class'=>' form-control', + 'id'=>'bank_location', + 'value'=>set_value('bank_location')); + echo form_input($bank_location)?> +
+
+
+
+ + 'account_no', + 'class'=>'form-control', + 'id'=>'account_no', + 'value'=>set_value('account_no')); + echo form_input($account_no)?> +
+
+
+
+
+
+
+
+
+
+
+

lang->line('tax_details') ?>

+
+
+ + +
+ + +
+ +
+
+ + 'cst', + 'class'=>' form-control', + 'id'=>'cst', + 'value'=>set_value('cst')); + echo form_input($cst)?> +
+
+
+
+ + + + 'gst', + 'class'=>' form-control ', + 'id'=>'gst', + 'value'=>set_value('gst')); + echo form_input($gst)?> +
+
+
+
+ + 'tax_no', + 'class'=>'form-control', + 'id'=>'tax_no', + 'value'=>set_value('tax_no')); + echo form_input($tax_no)?> +
+
+

+
+
+
+
+ +
+
+


+ + lang->line('reload') ?> +
+
+ +
+ + +
+
+ +
+ +
+ + + + + + + \ No newline at end of file diff --git a/application/modules/items_department/views/header/header.php b/application/modules/items_department/views/header/header.php index 3b33a07..b964d37 100644 --- a/application/modules/items_department/views/header/header.php +++ b/application/modules/items_department/views/header/header.php @@ -36,6 +36,7 @@ function posnic_table(){ null, + { "sName": "ID", "bSearchable": false, "bSortable": false, @@ -46,6 +47,7 @@ function posnic_table(){ }else{ return 'lang->line('active') ?>" >lang->line('deactive') ?>'; } + }, }, @@ -55,9 +57,9 @@ function posnic_table(){ "fnRender": function (oObj) { if(oObj.aData[5]==1){ - return ' '+"  "; + return ' '+" '> "; }else{ - return ' '+"  "; + return ' '+" '> "; } }, diff --git a/application/views/template/app/navigation.php b/application/views/template/app/navigation.php index 6f275e1..0f2685f 100644 --- a/application/views/template/app/navigation.php +++ b/application/views/template/app/navigation.php @@ -22,11 +22,7 @@
  • module_name){ ?> class="link_active" >lang->line($mode->module_name) ?>
  • - - lang->line($m_cate->Category_name) ?> - + diff --git a/uploads/items/a824d9747e4c313ac03e889f2951a7b1.jpg b/uploads/items/a824d9747e4c313ac03e889f2951a7b1.jpg new file mode 100644 index 0000000..df619ef Binary files /dev/null and b/uploads/items/a824d9747e4c313ac03e889f2951a7b1.jpg differ diff --git a/uploads/items/bcec58838db0392a0357f157ecbb4b6d.jpg b/uploads/items/bcec58838db0392a0357f157ecbb4b6d.jpg new file mode 100644 index 0000000..df619ef Binary files /dev/null and b/uploads/items/bcec58838db0392a0357f157ecbb4b6d.jpg differ diff --git a/uploads/items/fbe37b9a098cb8835d30eeb52073bdda.jpg b/uploads/items/fbe37b9a098cb8835d30eeb52073bdda.jpg new file mode 100644 index 0000000..df619ef Binary files /dev/null and b/uploads/items/fbe37b9a098cb8835d30eeb52073bdda.jpg differ