init
Showing
2 changed files
with
66 additions
and
2 deletions
| ... | @@ -45,6 +45,17 @@ class Finance extends CI_Controller { | ... | @@ -45,6 +45,17 @@ class Finance extends CI_Controller { |
| 45 | 45 | ||
| 46 | public function chargedetail() | 46 | public function chargedetail() |
| 47 | { | 47 | { |
| 48 | $this->load->view('finance/chargedetail'); | 48 | $url = $this->config->item('apiBaseUrl') . '/manage/financial/repayments/nonePay/params'; |
| 49 | $result = file_get_contents($url); | ||
| 50 | $ret = json_decode($result); | ||
| 51 | $roles = array(); | ||
| 52 | foreach($ret->data as $v){ | ||
| 53 | $roles[] = $v; | ||
| 54 | } | ||
| 55 | $data = array( | ||
| 56 | 'ret'=>$roles, | ||
| 57 | ); | ||
| 58 | |||
| 59 | $this->load->view('finance/chargedetail',$data); | ||
| 49 | } | 60 | } |
| 50 | } | 61 | } | ... | ... |
| ... | @@ -3,7 +3,60 @@ | ... | @@ -3,7 +3,60 @@ |
| 3 | <body> | 3 | <body> |
| 4 | <div class="page-container"> | 4 | <div class="page-container"> |
| 5 | <form class="" onreset="resetHandler()"> | 5 | <form class="" onreset="resetHandler()"> |
| 6 | <?php $this->load->view('work/search2'); ?> | 6 | <?php //$this->load->view('work/search2'); ?> |
| 7 | |||
| 8 | <div class="col-xs-2"> | ||
| 9 | <span class="select-box"> | ||
| 10 | <select class="select table_search" size="1" name="code" > | ||
| 11 | <option value="" selected>时间类型</option> | ||
| 12 | <?php foreach ($ret as $k=>$v):?> | ||
| 13 | <option value="<?=$k?>"><?=$v?></option> | ||
| 14 | <?php endforeach;?> | ||
| 15 | </select> | ||
| 16 | </span> | ||
| 17 | </div> | ||
| 18 | |||
| 19 | |||
| 20 | |||
| 21 | <div class="date mb-20"> | ||
| 22 | <input type="text" onfocus="WdatePicker({ maxDate:'#F{$dp.$D(\'max\')||\'%y-%M-%d\'}'})" id="min" class="input-text Wdate"> - | ||
| 23 | <input type="text" onfocus="WdatePicker({ minDate:'#F{$dp.$D(\'min\')}',maxDate:'%y-%M-%d'})" id="max" class="input-text Wdate"> | ||
| 24 | </div> | ||
| 25 | <div class="row cl mb-20"> | ||
| 26 | <div class="col-xs-2"> | ||
| 27 | <span class="select-box"> | ||
| 28 | <select class="select table_search" size="1"> | ||
| 29 | <option value="" selected>还款状态</option> | ||
| 30 | <?php foreach ($this->session->repaymentPlans as $k=>$v):?> | ||
| 31 | <option value="<?=$k?>"><?=$v?></option> | ||
| 32 | <?php endforeach;?> | ||
| 33 | </select> | ||
| 34 | </span> | ||
| 35 | </div> | ||
| 36 | <div class="col-xs-2"> | ||
| 37 | <span class="select-box"> | ||
| 38 | <select class="select table_search" size="1" column="6"> | ||
| 39 | <option value="" selected>网点</option> | ||
| 40 | <?php foreach ($this->session->departments as $k=>$v):?> | ||
| 41 | <option value="<?=$v->id?>"><?=$v->name?></option> | ||
| 42 | <?php if($v->children && !empty($v->children)):?> | ||
| 43 | <?php foreach ($v->children as $kk=>$vv):?> | ||
| 44 | <option value="<?=$vv->id?>"><?=$vv->name?></option> | ||
| 45 | <?php endforeach;?> | ||
| 46 | <?php endif;?> | ||
| 47 | <?php endforeach;?> | ||
| 48 | </select> | ||
| 49 | </span> | ||
| 50 | </div> | ||
| 51 | |||
| 52 | <div class="col-xs-2"> | ||
| 53 | <input type="text" class="form-control input-text table_search" value="" placeholder="姓名" column="3" name="proposerName"> | ||
| 54 | </div> | ||
| 55 | <div class="col-xs-2"> | ||
| 56 | <input type="text" class="form-control input-text table_search" value="" placeholder="手机号" column="5" name="phoneNumber"> | ||
| 57 | </div> | ||
| 58 | </div> | ||
| 59 | |||
| 7 | <div> | 60 | <div> |
| 8 | <button class="btn btn-primary radius" type="button" onclick="$('#table').DataTable().draw()">搜索</button> | 61 | <button class="btn btn-primary radius" type="button" onclick="$('#table').DataTable().draw()">搜索</button> |
| 9 | <input class="btn btn-warning radius" type="reset" value="重置"> | 62 | <input class="btn btn-warning radius" type="reset" value="重置"> | ... | ... |
-
Please register or sign in to post a comment