migrate、seed、下拉菜单验证、单位荣誉
This commit is contained in:
1 parent
343bd2918c
commit
d320c8ca23
28 files changed
+340
-313
No files matched your search
@@ -155,4 +155,6 @@ function schlist($low='班级',$high='其它级')
|
||||
->column('id,title,jiancheng');
|
||||
|
||||
return $schlist;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ class YanZheng extends Controller
|
||||
$uneed_c = array(); # 荣誉器名首字母要大写
|
||||
// 排除方法
|
||||
$uneed_a = array(
|
||||
'welcome','update','save',
|
||||
'welcome','update','save','upload',
|
||||
'index','mybanji','banjilist',
|
||||
'editpassword','updatepassword',
|
||||
// 查询班级成绩、查询年级成绩
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
{php}
|
||||
$school = schlist('班级','区级');
|
||||
{/php}
|
||||
<select class="select" id="zuzhi" name="zuzhi" size="1">
|
||||
<select class="select" id="zuzhi" name="zuzhi" size="1" required>
|
||||
<option value="">--请选择组织单位--</option>
|
||||
{volist name="school" id="vo"}
|
||||
<option value="{$vo.id}">{$vo.title}</option>
|
||||
@@ -31,7 +31,7 @@
|
||||
$xq = new app\teach\model\Xueqi;
|
||||
$xueqi = $xq->where('status',1)->order(['id'=>'desc'])->limit(5)->field('id,title')->select();
|
||||
{/php}
|
||||
<select class="select" id="xueqi" name="xueqi" size="1">
|
||||
<select class="select" id="xueqi" name="xueqi" size="1" required>
|
||||
<option value="">--请选择学期--</option>
|
||||
{volist name="xueqi" id="vo"}
|
||||
<option value="{$vo.id}">{$vo.title}</option>
|
||||
@@ -45,7 +45,7 @@
|
||||
<div class="formControls col-xs-8 col-sm-9 f-l">
|
||||
<span class="select-box f-l" style="width:180px;">
|
||||
{php}$list = getCategory(109);{/php}
|
||||
<select class="select" id="category" name="category" size="1">
|
||||
<select class="select" id="category" name="category" size="1" required>
|
||||
<option value="">--请选择考试分类--</option>
|
||||
{volist name="list" id="vo"}
|
||||
<option value="{$vo.id}">{$vo.title}</option>
|
||||
@@ -67,7 +67,7 @@
|
||||
<div class="formControls col-xs-8 col-sm-9">
|
||||
<dt>{foreach $njlist=nianjilist() as $key=>$vo }
|
||||
<label class="ml-10">
|
||||
<input type="checkbox" value="{$key}" name="nianji[]" id="nianji{$key}">
|
||||
<input type="checkbox" value="{$key}" name="nianji[]" id="nianji{$key}" required>
|
||||
{$vo}
|
||||
</label>{/foreach}
|
||||
</dt>
|
||||
@@ -83,7 +83,7 @@
|
||||
<dt>{foreach $sjlist as $key=>$vo }
|
||||
<dd>
|
||||
<label class="ml-10">
|
||||
<input class=" mt-10" type="checkbox" value="{$vo.id}" name="subject[]" id="subject{$vo.id}" onclick="xueke(this)">
|
||||
<input class=" mt-10" type="checkbox" value="{$vo.id}" name="subject[]" id="subject{$vo.id}" onclick="xueke(this)" required>
|
||||
{$vo.title}
|
||||
|
||||
</label><input type="text" name="manfen[]" value="" id="manfen[]" class="input-text ml-15 mt-5" placeholder="满分默认100" style="max-width: 250px" onchange="manfenbut(this)">
|
||||
@@ -108,18 +108,6 @@
|
||||
required:true,
|
||||
rangelength:[2,25]
|
||||
},
|
||||
zuzhi:{
|
||||
required:true,
|
||||
digits:true
|
||||
},
|
||||
xueqi:{
|
||||
required:true,
|
||||
digits:true
|
||||
},
|
||||
category:{
|
||||
required:true,
|
||||
digits:true
|
||||
},
|
||||
bfdate:{
|
||||
required:true,
|
||||
dateISO:true
|
||||
@@ -128,12 +116,6 @@
|
||||
required:true,
|
||||
dateISO:true
|
||||
},
|
||||
nianji:{
|
||||
required:true,
|
||||
},
|
||||
subject:{
|
||||
required:true,
|
||||
},
|
||||
};
|
||||
|
||||
// 设置表单提交方式
|
||||
|
||||
Loaded 3 of 28 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user