修改考试设置选中的年级
This commit is contained in:
1 parent
f20b57aee5
commit
1eae518ffd
2 files changed
+3
-1
No files matched your search
@@ -30,6 +30,8 @@ class KaoshiSet extends BaseController
|
||||
$ksset = new ksset;
|
||||
$list['subject'] = $ksset->srcSubject($kaoshi_id);
|
||||
$nj = $ksset->srcNianji($kaoshi_id);
|
||||
$kaoshi = new \app\kaoshi\model\Kaoshi;
|
||||
$list['sj'] = $kaoshi::where('id', $kaoshi_id)->value('bfdate');
|
||||
|
||||
// 模板赋值
|
||||
$this->view->assign('list', $list);
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<label for="nianji" class="layui-form-label" style="height: 100%">年级 </label>
|
||||
<div class="layui-input-block">
|
||||
<input type="radio" name="nianji" title="无" value="" lay-skin="primary" checked="true">
|
||||
{php} $njlist = nianJiNameList();{/php}
|
||||
{php} $njlist = nianJiNameList($list['sj']);{/php}
|
||||
{foreach $njlist as $key=>$vo}
|
||||
<input type="radio" name="nianji" title="{$vo}" value="{$key}" lay-skin="primary">
|
||||
{/foreach}
|
||||
|
||||
Reference in new issue
Block a user