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
a977005f
authored
2018-03-24 12:00:20 +0800
by
yangjianbin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
init
1 parent
6284cc97
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
9 deletions
application/controllers/Work.php
application/hooks/CheckLogin.php
application/views/work/资料/资料补录.php
application/controllers/Work.php
View file @
a977005
...
...
@@ -129,7 +129,7 @@ class Work extends CI_Controller
}
/**
*
订单详情
*
资料补录
*/
public
function
record
(
$id
=
null
)
{
...
...
application/hooks/CheckLogin.php
View file @
a977005
...
...
@@ -75,6 +75,10 @@ class CheckLogin
if
(
!
$session
->
wagePaymentFormEnum
)
{
$session
->
wagePaymentFormEnum
=
$this
->
getWagePaymentFormEnum
();
}
if
(
!
$session
->
genderEnum
)
{
$session
->
genderEnum
=
$this
->
getGenderEnum
();
}
/*if (preg_match("/admin|base/i", uri_string())) {
if(!$this->CI->session->isadmin){
redirect('login');
...
...
@@ -286,4 +290,16 @@ class CheckLogin
}
}
private
function
getGenderEnum
()
{
try
{
$url
=
$this
->
CI
->
config
->
item
(
'apiBaseUrl'
)
.
'client/enum/gender'
;
$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/work/资料/资料补录.php
View file @
a977005
...
...
@@ -73,8 +73,9 @@
<label>
性别
</label>
<span
class=
"form-control select-box"
>
<select
class=
"select"
size=
"1"
>
<option
value=
"1"
>
男
</option>
<option
value=
"2"
>
女
</option>
<?php
foreach
(
$this
->
session
->
genderEnum
as
$k
=>
$v
)
:?>
<
option
value
=
"<?=
$k
?>"
><?=
$v
?>
</option>
<?php
endforeach
;
?>
</select>
</span>
</div>
...
...
@@ -82,8 +83,9 @@
<label>
婚姻
</label>
<span
class=
"form-control select-box"
>
<select
class=
"select"
size=
"1"
>
<option
value=
"1"
>
已婚
</option>
<option
value=
"2"
>
未婚
</option>
<?php
foreach
(
$this
->
session
->
marryEnum
as
$k
=>
$v
)
:?>
<
option
value
=
"<?=
$k
?>"
><?=
$v
?>
</option>
<?php
endforeach
;
?>
</select>
</span>
</div>
...
...
@@ -98,15 +100,15 @@
<label>
教育程度
</label>
<span
class=
"form-control select-box"
>
<select
class=
"select"
size=
"1"
>
<
option
value=
"1"
>
初中
</option
>
<option
value=
"1"
>
高中
</option>
<
option
value=
"2"
>
大学
</option
>
<
?php
foreach
(
$this
->
session
->
educationEnum
as
$k
=>
$v
)
:?
>
<
option
value
=
"<?=
$k
?>"
><?=
$v
?>
</option>
<
?php
endforeach
;
?
>
</select>
</span>
</div>
<div
class=
"form-group col-sm-3 col-md-2"
>
<label>
身份证
</label>
<input
type=
"text"
class=
"form-control input-text"
value=
"
333333333333333331
"
>
<input
type=
"text"
class=
"form-control input-text"
value=
""
>
</div>
</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