正在显示
5 个修改的文件
包含
18 行增加
和
3 行删除
@@ -230,6 +230,7 @@ class AdminBusinessmanController extends AdminBaseController | @@ -230,6 +230,7 @@ class AdminBusinessmanController extends AdminBaseController | ||
230 | $showModel = new ShowModel(); | 230 | $showModel = new ShowModel(); |
231 | $list = $showModel | 231 | $list = $showModel |
232 | ->where($map) | 232 | ->where($map) |
233 | + ->order('sort desc') | ||
233 | ->paginate(30); | 234 | ->paginate(30); |
234 | 235 | ||
235 | $this->assign('list',$list); | 236 | $this->assign('list',$list); |
@@ -262,7 +263,7 @@ class AdminBusinessmanController extends AdminBaseController | @@ -262,7 +263,7 @@ class AdminBusinessmanController extends AdminBaseController | ||
262 | } | 263 | } |
263 | $res = $showModel->save($param); | 264 | $res = $showModel->save($param); |
264 | if($res){ | 265 | if($res){ |
265 | - $this->success('添加成功'); | 266 | + $this->success('添加成功','AdminBusinessman/aspirations'); |
266 | } | 267 | } |
267 | }else{ | 268 | }else{ |
268 | return $this->fetch(); | 269 | return $this->fetch(); |
@@ -293,7 +294,7 @@ class AdminBusinessmanController extends AdminBaseController | @@ -293,7 +294,7 @@ class AdminBusinessmanController extends AdminBaseController | ||
293 | } | 294 | } |
294 | $res = $showModel->isUpdate(true)->save($param); | 295 | $res = $showModel->isUpdate(true)->save($param); |
295 | if($res){ | 296 | if($res){ |
296 | - $this->success('更新成功'); | 297 | + $this->success('更新成功','AdminBusinessman/aspirations'); |
297 | } | 298 | } |
298 | }else{ | 299 | }else{ |
299 | $info = $showModel->where('id',$id)->find(); | 300 | $info = $showModel->where('id',$id)->find(); |
@@ -81,7 +81,7 @@ class BusinessmanController extends HomeBaseController | @@ -81,7 +81,7 @@ class BusinessmanController extends HomeBaseController | ||
81 | //分类信息 | 81 | //分类信息 |
82 | $info = $cateModel->where('id',$cate_id)->find(); | 82 | $info = $cateModel->where('id',$cate_id)->find(); |
83 | //列表信息 | 83 | //列表信息 |
84 | - $list = $showModel->getList($cate_id,'',4); | 84 | + $list = $showModel->getList($cate_id,'',4,'sort desc'); |
85 | //分页样式 | 85 | //分页样式 |
86 | $page = $this->getPageStyle($list); | 86 | $page = $this->getPageStyle($list); |
87 | //增加阅读量 | 87 | //增加阅读量 |
@@ -29,6 +29,7 @@ | @@ -29,6 +29,7 @@ | ||
29 | <th>公司名称</th> | 29 | <th>公司名称</th> |
30 | <th>姓名</th> | 30 | <th>姓名</th> |
31 | <th>职位</th> | 31 | <th>职位</th> |
32 | + <th>排序</th> | ||
32 | <th>创建时间</th> | 33 | <th>创建时间</th> |
33 | <th width="120">操作</th> | 34 | <th width="120">操作</th> |
34 | </tr> | 35 | </tr> |
@@ -39,6 +40,7 @@ | @@ -39,6 +40,7 @@ | ||
39 | <td>{$vo.title}</td> | 40 | <td>{$vo.title}</td> |
40 | <td>{$vo.name}</td> | 41 | <td>{$vo.name}</td> |
41 | <td>{$vo.post}</td> | 42 | <td>{$vo.post}</td> |
43 | + <td>{$vo.sort}</td> | ||
42 | <td>{:date('Y-m-d H:i',$vo['update_time'])}</td> | 44 | <td>{:date('Y-m-d H:i',$vo['update_time'])}</td> |
43 | <td> | 45 | <td> |
44 | <a href="{:url('AdminBusinessman/aspirations_detail',array('id'=>$vo['id']))}">{:lang('EDIT')}</a> | 46 | <a href="{:url('AdminBusinessman/aspirations_detail',array('id'=>$vo['id']))}">{:lang('EDIT')}</a> |
@@ -61,6 +61,12 @@ | @@ -61,6 +61,12 @@ | ||
61 | placeholder="请填写心声"></textarea> | 61 | placeholder="请填写心声"></textarea> |
62 | </td> | 62 | </td> |
63 | </tr> | 63 | </tr> |
64 | + <tr> | ||
65 | + <th width="100">排序<span class="form-required">*</span></th> | ||
66 | + <td> | ||
67 | + <input class="form-control" type="number" name="sort" required value="1"/> | ||
68 | + </td> | ||
69 | + </tr> | ||
64 | </table> | 70 | </table> |
65 | <div class="form-group"> | 71 | <div class="form-group"> |
66 | <div class="col-sm-offset-2 col-sm-10"> | 72 | <div class="col-sm-offset-2 col-sm-10"> |
@@ -61,6 +61,12 @@ | @@ -61,6 +61,12 @@ | ||
61 | placeholder="请填写心声">{$info.briefcontent}</textarea> | 61 | placeholder="请填写心声">{$info.briefcontent}</textarea> |
62 | </td> | 62 | </td> |
63 | </tr> | 63 | </tr> |
64 | + <tr> | ||
65 | + <th width="100">排序<span class="form-required">*</span></th> | ||
66 | + <td> | ||
67 | + <input class="form-control" type="number" name="sort" required value="{$info.sort}"/> | ||
68 | + </td> | ||
69 | + </tr> | ||
64 | </table> | 70 | </table> |
65 | <div class="form-group"> | 71 | <div class="form-group"> |
66 | <div class="col-sm-offset-2 col-sm-10"> | 72 | <div class="col-sm-offset-2 col-sm-10"> |
-
请 注册 或 登录 后发表评论