a3546f31 by Zelig

Merge branch 'develop' of http://g.28ms.com:8000/yangjianbin/page into develop

2 parents c03b50d5 6df9553b
...@@ -86,6 +86,9 @@ class CheckLogin ...@@ -86,6 +86,9 @@ class CheckLogin
86 if (!$session->loanNatureEnum) { 86 if (!$session->loanNatureEnum) {
87 $session->loanNatureEnum = $this->getLoanNatureEnum(); 87 $session->loanNatureEnum = $this->getLoanNatureEnum();
88 } 88 }
89 if (!$session->sourceBaseType) {
90 $session->sourceBaseType = $this->getSourceBaseType();
91 }
89 /*if (preg_match("/admin|base/i", uri_string())) { 92 /*if (preg_match("/admin|base/i", uri_string())) {
90 if(!$this->CI->session->isadmin){ 93 if(!$this->CI->session->isadmin){
91 redirect('login'); 94 redirect('login');
...@@ -333,4 +336,16 @@ class CheckLogin ...@@ -333,4 +336,16 @@ class CheckLogin
333 } 336 }
334 } 337 }
335 338
339 private function getSourceBaseType()
340 {
341 try {
342 $url = $this->CI->config->item('apiBaseUrl') . 'order/ordersource/baseType';
343 $res = json_decode(file_get_contents($url));
344 $products = $res->data;
345 return $products;
346 } catch (Exception $e) {
347 return array();
348 }
349 }
350
336 } 351 }
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -6,8 +6,14 @@ ...@@ -6,8 +6,14 @@
6 <label>资料上传</label> 6 <label>资料上传</label>
7 <span class="form-control select-box"> 7 <span class="form-control select-box">
8 <select class="select uploader" size="1"> 8 <select class="select uploader" size="1">
9 <option value="1">浙江法院公开网</option> 9 <?php foreach ($this->session->sourceBaseType as $k=>$v):?>
10 <option value="2">全国被执行网</option> 10 <option value="<?=$v->code?>"><?=$v->desc?></option>
11 <?php if($v->children && !empty($v->children)):?>
12 <?php foreach ($this->session->sourceBaseType as $kk=>$vv):?>
13 <option value="<?=$vv->code?>">&nbsp;&nbsp;--<?=$vv->desc?></option>
14 <?php endforeach;?>
15 <?php endif;?>
16 <?php endforeach;?>
11 </select> 17 </select>
12 </span> 18 </span>
13 </div> 19 </div>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!