6c74b05a by yangjianbin

init

1 parent e81c0ce0
...@@ -207,9 +207,10 @@ class Work extends CI_Controller ...@@ -207,9 +207,10 @@ class Work extends CI_Controller
207 $draw = $_GET['draw']; 207 $draw = $_GET['draw'];
208 $data['recordsTotal'] = 57; 208 $data['recordsTotal'] = 57;
209 $data['recordsFiltered'] = 57; 209 $data['recordsFiltered'] = 57;
210 $start = $_GET['start'] ? $_GET['start'] : 0;
210 $data['data'] = array(); 211 $data['data'] = array();
211 for ($i = 0; $i < 57; $i++) { 212 for ($i = 0; $i < 57; $i++) {
212 if ($i >= ($draw - 1) && $i < $draw * 10){ 213 if ($i >= $start && $i < $start + 10){
213 $arr = array( 214 $arr = array(
214 'id' => $i, 215 'id' => $i,
215 'name' => '小明' . $i 216 'name' => '小明' . $i
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!