e81c0ce0 by yangjianbin

init

1 parent bb0ecafc
<?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()
{
$data['draw'] = $_GET['draw']++;
$draw = $_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));
}
}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!