1: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
2:
3: class Merchant extends CI_Controller {
4:
5:
6: public function list_add($id = '')
7: {
8: $data = array('id'=>$id);
9: if($id != ''){
10: $data['data'] = $this->db->from('xenon_merchant')->where('merc_id',base64_decode(urldecode($id)))->get()->row_array();
11: }
12: $this->load->model('Model_merchant');
13: $this->load->view('head');
14: $this->load->view('merchant/list',$data);
15: $this->load->view('foot');
16: }
17:
18: }
19: ?>