fffaa05a by wang

init

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