修复毕业年级错误
This commit is contained in:
1 parent
13ad93bff4
commit
b09fde2b3e
3 files changed
+6
-3
No files matched your search
@@ -71,6 +71,10 @@ class Index extends AdminBase
|
||||
$list['webtitle'] = '毕业学生';
|
||||
$list['dataurl'] = '/student/index/databy';
|
||||
|
||||
$njlist = nianJiNameList('str', time());
|
||||
$njlistCnt = count($njlist);
|
||||
$list['thistime'] = strtotime("-" . $njlistCnt ." year");
|
||||
|
||||
// 模板赋值
|
||||
$this->view->assign('list', $list);
|
||||
|
||||
|
||||
@@ -33,8 +33,7 @@
|
||||
<label for="ruxuenian" class="layui-form-label" style="height: 100%">毕业年</label>
|
||||
<div class="layui-input-block">
|
||||
{php}
|
||||
$thisTime = strtotime("-6 year");
|
||||
$njlist = nianJiNameList('str', $thisTime);
|
||||
$njlist = nianJiNameList('str', $list['thistime']);
|
||||
{/php}
|
||||
{volist name="njlist" id="vo"}
|
||||
<input type="radio" name="ruxuenian" title="{$key+6}年" value="{$key}" lay-skin="primary" lay-filter="src" {eq name="i" value="1"}checked{/eq} >
|
||||
|
||||
@@ -10,7 +10,7 @@ class SystemBase extends BaseModel
|
||||
static function sysInfo()
|
||||
{
|
||||
$info = self::order(['id' => 'desc'])
|
||||
->field('id, keywords, description, sys_title, thinks, danwei')
|
||||
->field('id, keywords, description, sys_title, thinks, danwei, gradelist')
|
||||
->find();
|
||||
return $info;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user