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
e81c0ce0
authored
2018-03-17 20:58:03 +0800
by
yangjianbin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
init
1 parent
bb0ecafc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
application/controllers/Work.php
application/controllers/Work.php
View file @
e81c0ce
<?php
defined
(
'BASEPATH'
)
OR
exit
(
'No direct script access allowed'
);
class
Work
extends
CI_Controller
{
class
Work
extends
CI_Controller
{
/**
* 控制台默认页面
*/
public
function
index
(
$state
=
null
)
{
switch
(
$state
)
{
switch
(
$state
)
{
case
1
:
$this
->
load
->
view
(
'work/待审核'
);
break
;
...
...
@@ -93,7 +94,7 @@ class Work extends CI_Controller {
public
function
check
(
$state
=
null
)
{
switch
(
$state
)
{
switch
(
$state
)
{
case
1
:
$this
->
load
->
view
(
'work/审批/资料清单'
);
break
;
...
...
@@ -203,17 +204,20 @@ class Work extends CI_Controller {
public
function
data
()
{
$d
ata
[
'draw'
]
=
$_GET
[
'draw'
]
++
;
$d
raw
=
$_GET
[
'draw'
]
;
$data
[
'recordsTotal'
]
=
57
;
$data
[
'recordsFiltered'
]
=
57
;
$data
[
'data'
]
=
array
();
for
(
$i
=
0
;
$i
<
57
;
$i
++
)
{
if
(
$i
>=
(
$draw
-
1
)
&&
$i
<
$draw
*
10
){
$arr
=
array
(
'id'
=>
$i
,
'name'
=>
'小明'
.
$i
'id'
=>
$i
,
'name'
=>
'小明'
.
$i
);
$data
[
'data'
][]
=
$arr
;
}
}
$data
[
'draw'
]
=
$draw
+
1
;
$this
->
output
->
set_content_type
(
'application/json'
)
->
set_output
(
json_encode
(
$data
));
}
}
...
...
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