年级成绩统计表、修改学生、分类等

This commit is contained in:
巴掌 committed 2018-12-05 12:54:23 +08:00
1 parent 9d833e0226
commit da9897bff9
17 files changed
+309 -78

No files matched your search

+7 -3
View File
@@ -14,8 +14,9 @@
// 获取类别列表
function getCategory($id = '0')
{
$category = new \app\system\model\Category;
// 根据父级id查询类别列表
$list = db('category')
$list = $category
->where('pid','in',$id)
->where('status',1)
->field('id,title')
@@ -29,8 +30,9 @@ function getCategory($id = '0')
// 获取类别名称
function getCategoryTitle($id)
{
$category = new \app\system\model\Category;
// 根据id查询类别名
$value = db('category')
$value = $category
->where('id',$id)
->vlaue('title');
// 返回类别名
@@ -42,7 +44,7 @@ function nianjiList()
{
// 定义学年时间节点日期为每年的8月10日
// $yd = '8-10';
$jiedian = strtotime(date('Y').'-8-10');
$jiedian = strtotime(date('Y').'-8-1');
$time = new think\helper\Time();
@@ -95,6 +97,8 @@ function banjinamelist()
}
/**
* $date是时间戳
* $type为1的时候是虚岁,2的时候是周岁