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
be477444
authored
2018-03-22 21:55:08 +0800
by
yangjianbin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
init
1 parent
d960a6ec
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
6 deletions
application/hooks/CheckLogin.php
application/views/finance/checkTheAccount.php
application/hooks/CheckLogin.php
View file @
be47744
...
...
@@ -36,6 +36,9 @@ class CheckLogin
$session
->
repaymentPlans
=
$this
->
getRepaymentPlans
();
}
if
(
!
$session
->
repaymentPlanSource
){
$session
->
repaymentPlanSource
=
getRepaymentPlanSource
();
}
/*if (preg_match("/admin|base/i", uri_string())) {
...
...
@@ -128,4 +131,15 @@ class CheckLogin
}
}
private
function
getRepaymentPlanSource
(){
try
{
$url
=
$this
->
CI
->
config
->
item
(
'apiBaseUrl'
)
.
'enum/repaymentPlan/source'
;
$res
=
json_decode
(
file_get_contents
(
$url
));
$products
=
$res
->
data
;
return
$products
;
}
catch
(
Exception
$e
)
{
return
array
();
}
}
}
\ No newline at end of file
...
...
application/views/finance/checkTheAccount.php
View file @
be47744
...
...
@@ -36,9 +36,8 @@
<span
class=
"select-box"
>
<select
class=
"select table_search"
size=
"1"
>
<option
value=
""
selected
>
是否逾期
</option>
<option
value=
"1"
>
菜单一
</option>
<option
value=
"2"
>
菜单二
</option>
<option
value=
"3"
>
菜单三
</option>
<option
value=
"0"
>
否
</option>
<option
value=
"1"
>
是
</option>
</select>
</span>
</div>
...
...
@@ -46,9 +45,9 @@
<span
class=
"select-box"
>
<select
class=
"select table_search"
size=
"1"
>
<option
value=
""
selected
>
来源
</option>
<
option>
李四
</option
>
<option>
菜单二
</option>
<
option>
菜单三
</option
>
<
?php
foreach
(
$this
->
session
->
repaymentPlanSource
as
$k
=>
$v
)
:
?
>
<option
value=
"
<?=
$k
?>
"
>
<?=
$v
?>
</option>
<
?php
endforeach
;
?
>
</select>
</span>
</div>
...
...
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