Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
杨建斌
/
page
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
1
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
fffaa05a
authored
2018-04-01 17:36:10 +0800
by
wang
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
init
1 parent
eb41623f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
application/controllers/Finance.php
application/views/finance/checkTheAccount.php
application/controllers/Finance.php
View file @
fffaa05
...
...
@@ -18,8 +18,16 @@ class Finance extends CI_Controller {
$ret
=
json_decode
(
$result
);
// var_dump($ret);
// $ret = $json->data;
$this
->
load
->
view
(
'finance/checkTheAccount'
,
$ret
);
$roles
=
array
();
foreach
(
$ret
->
data
as
$v
){
$roles
[]
=
$v
->
id
;
}
// var_dump($roles);
$data
=
array
(
'ret'
=>
$roles
,
);
$this
->
load
->
view
(
'finance/checkTheAccount'
,
$data
);
}
public
function
makeLoan
()
...
...
application/views/finance/checkTheAccount.php
View file @
fffaa05
...
...
@@ -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>
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment