fffaa05a by wang

init

1 parent eb41623f
...@@ -18,8 +18,16 @@ class Finance extends CI_Controller { ...@@ -18,8 +18,16 @@ class Finance extends CI_Controller {
18 $ret = json_decode($result); 18 $ret = json_decode($result);
19 // var_dump($ret); 19 // var_dump($ret);
20 // $ret = $json->data; 20 // $ret = $json->data;
21 21 $roles = array();
22 $this->load->view('finance/checkTheAccount',$ret); 22 foreach($ret->data as $v){
23 $roles[] = $v->id;
24 }
25 // var_dump($roles);
26 $data = array(
27 'ret'=>$roles,
28 );
29
30 $this->load->view('finance/checkTheAccount',$data);
23 } 31 }
24 32
25 public function makeLoan() 33 public function makeLoan()
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
9 <span class="select-box"> 9 <span class="select-box">
10 <select class="select table_search" size="1"> 10 <select class="select table_search" size="1">
11 <option value="" selected>时间类型</option> 11 <option value="" selected>时间类型</option>
12 <?php foreach ($this->ret->data as $k=>$v):?> 12 <?php foreach ($ret as $k=>$v):?>
13 <option value="<?=$k?>"><?=$v?></option> 13 <option value="<?=$k?>"><?=$v?></option>
14 <?php endforeach;?> 14 <?php endforeach;?>
15 </select> 15 </select>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!