-
- {php}
- $school = schlist('校级','区级');
- {/php}
-
-
-
- {foreach $school as $key=>$vo }
-
- {/foreach}
-
-
-
-
- {php}$category = getCategory(107);{/php}
-
-
-
- {foreach $category as $key=>$vo }
-
- {/foreach}
-
-
-
-
- {php}$category = getCategory(106);{/php}
-
-
-
- {foreach $category as $key=>$vo }
-
- {/foreach}
-
-
-
-
- {php}$category = getCategory(105);{/php}
-
-
-
- {foreach $category as $key=>$vo }
-
- {/foreach}
-
-
-
-
- {php}
- $subject = new \app\teach\model\Subject;
- $subject = $subject->where('status',1)->field('id,jiancheng')->select();
- {/php}
-
-
-
- {foreach $subject as $key=>$vo }
-
- {/foreach}
-
-
-
+{extend name="common@list" /}
+{block name="jsset"}
+
+{/block}
+{block name="nav"}
+
+ 师生名单
+ 教师管理
+ 教师列表
+
+{/block}
+{block name="search"}
+
{/block}
-{block name="tables"}
-
-
-
+{block name="table"}
+
{/block}
{block name="myjs"}
-
+
+
+
+
{/block}
\ No newline at end of file
diff --git a/application/rongyu/controller/DwRongyu.php b/application/rongyu/controller/DwRongyu.php
index cc3b5855..ebf9b001 100644
--- a/application/rongyu/controller/DwRongyu.php
+++ b/application/rongyu/controller/DwRongyu.php
@@ -16,13 +16,11 @@ class DwRongyu extends Base
*/
public function index()
{
- // 设置数据总数
- $list['count'] = dwry::count();
- // 设置页面标题
- $list['title'] = '单位荣誉';
+ // 设置要给模板赋值的信息
+ $list['webtitle'] = '单位荣誉列表';
// 模板赋值
- $this->assign('list', $list);
+ $this->assign('list',$list);
// 渲染模板
return $this->fetch();
diff --git a/application/rongyu/controller/JsRongyu.php b/application/rongyu/controller/JsRongyu.php
index 3a566cea..85d4ed16 100644
--- a/application/rongyu/controller/JsRongyu.php
+++ b/application/rongyu/controller/JsRongyu.php
@@ -18,13 +18,11 @@ class JsRongyu extends Base
*/
public function index()
{
- // 设置数据总数
- $list['count'] = jsry::count();
- // 设置页面标题
- $list['title'] = '教师荣誉册';
+ // 设置要给模板赋值的信息
+ $list['webtitle'] = '教师荣誉册列表';
// 模板赋值
- $this->assign('list', $list);
+ $this->assign('list',$list);
// 渲染模板
return $this->fetch();
diff --git a/application/rongyu/controller/JsRongyuInfo.php b/application/rongyu/controller/JsRongyuInfo.php
index b007c240..dadf0acd 100644
--- a/application/rongyu/controller/JsRongyuInfo.php
+++ b/application/rongyu/controller/JsRongyuInfo.php
@@ -22,13 +22,11 @@ class JsRongyuInfo extends Base
*/
public function index()
{
- // 设置数据总数
- $list['count'] = ryinfo::count();
- // 设置页面标题
- $list['title'] = '教师荣誉信息';
+ // 设置要给模板赋值的信息
+ $list['webtitle'] = '教师列表';
// 模板赋值
- $this->assign('list', $list);
+ $this->assign('list',$list);
// 渲染模板
return $this->fetch();
diff --git a/application/teach/model/Xueqi.php b/application/teach/model/Xueqi.php
index 476e3d4d..0f123510 100644
--- a/application/teach/model/Xueqi.php
+++ b/application/teach/model/Xueqi.php
@@ -47,7 +47,7 @@ class Xueqi extends Base
$data = $this
->order([$src['field'] =>$src['order']])
->when(strlen($searchval)>0,function($query) use($searchval){
- $query->where('title|jiancheng','like','%'.$searchval.'%');
+ $query->where('title|xuenian','like','%'.$searchval.'%');
})
->with(
[