合并增加班级别名
This commit is contained in:
commit
a464d85dd3
13 files changed
+165
-26
No files matched your search
@@ -19,6 +19,3 @@ default_lang = zh-cn
|
||||
|
||||
[SESSION]
|
||||
EXPIRE = 1200
|
||||
|
||||
[SHANGMA]
|
||||
CLASSMAX = 30
|
||||
@@ -61,7 +61,24 @@ class Kaohao extends BaseModel
|
||||
public function getBanTitleAttr()
|
||||
{
|
||||
$bj = new \app\teach\model\Banji;
|
||||
$title = $bj->numToWord($this->getAttr('paixu')) . '班';
|
||||
|
||||
// 获取班级名显示样式
|
||||
$sys = new \app\system\model\SystemBase;
|
||||
$alias = $sys->order('id')->value('classalias');
|
||||
if($alias == true)
|
||||
{
|
||||
$bj = new \app\teach\model\Banji;
|
||||
$title = $bj->where('id', $this->getAttr('banji_id'))->value('alias');
|
||||
|
||||
if($title == '')
|
||||
{
|
||||
$title = $bj->numToWord($this->getAttr('paixu')) . '班';
|
||||
}else{
|
||||
$title = $title . '班';
|
||||
}
|
||||
}else{
|
||||
$title = $bj->numToWord($this->getAttr('paixu')) . '班';
|
||||
}
|
||||
return $title;
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ class SystemBase extends AdminBase
|
||||
public function edit()
|
||||
{
|
||||
// 获取用户信息
|
||||
$list['data'] = sysbasemod::field('id, keywords, description, thinks, danwei, classmax')
|
||||
$list['data'] = sysbasemod::field('id, keywords, description, thinks, danwei, grademax, classmax, classalias')
|
||||
->order(['id' => 'desc'])
|
||||
->find();
|
||||
|
||||
@@ -44,6 +44,9 @@ class SystemBase extends AdminBase
|
||||
,'description'
|
||||
,'thinks'
|
||||
,'danwei'
|
||||
,'grademax'
|
||||
,'classmax'
|
||||
,'classalias'
|
||||
], 'put');
|
||||
$list['id'] = $id;
|
||||
|
||||
|
||||
Loaded 3 of 13 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user