Time扩展添加教务管理表编写教务管理修改用户角色添加方式
This commit is contained in:
1 parent
8f7868665b
commit
8c1fbfd00a
56 files changed
+2564
-299
No files matched your search
@@ -55,7 +55,7 @@
|
||||
<label class="form-label col-xs-4 col-sm-3">职务:</label>
|
||||
<div class="formControls col-xs-8 col-sm-9 f-l">
|
||||
<span class="select-box f-l" style="width:180px;">
|
||||
{php}$list = getCategory(7);{/php}
|
||||
{php}$list = getCategory(701);{/php}
|
||||
<select class="select" id="zhiwu" name="zhiwu" size="1">
|
||||
<option value="">--请选择职务--</option>
|
||||
{volist name="list" id="vo"}
|
||||
@@ -69,7 +69,7 @@
|
||||
<label class="form-label col-xs-4 col-sm-3">职称:</label>
|
||||
<div class="formControls col-xs-8 col-sm-9 f-l">
|
||||
<span class="select-box f-l" style="width:180px;">
|
||||
{php}$list = getCategory(6);{/php}
|
||||
{php}$list = getCategory(601);{/php}
|
||||
<select class="select" id="zhicheng" name="zhicheng" size="1">
|
||||
<option value="">--请选择职称--</option>
|
||||
{volist name="list" id="vo"}
|
||||
@@ -83,7 +83,7 @@
|
||||
<label class="form-label col-xs-4 col-sm-3">学历:</label>
|
||||
<div class="formControls col-xs-8 col-sm-9 f-l">
|
||||
<span class="select-box f-l" style="width:180px;">
|
||||
{php}$list = getCategory(5);{/php}
|
||||
{php}$list = getCategory(501);{/php}
|
||||
<select class="select" id="xueli" name="xueli" size="1">
|
||||
<option value="">--请选择学历--</option>
|
||||
{volist name="list" id="vo"}
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
<label class="form-label col-xs-4 col-sm-3">职务:</label>
|
||||
<div class="formControls col-xs-8 col-sm-9 f-l">
|
||||
<span class="select-box f-l" style="width:180px;">
|
||||
{php}$category = getCategory(7);{/php}
|
||||
{php}$category = getCategory(701);{/php}
|
||||
<select class="select" id="zhiwu" name="zhiwu" size="1">
|
||||
<option value="">--请选择职务--</option>
|
||||
{volist name="category" id="vo"}
|
||||
@@ -69,7 +69,7 @@
|
||||
<label class="form-label col-xs-4 col-sm-3">职称:</label>
|
||||
<div class="formControls col-xs-8 col-sm-9 f-l">
|
||||
<span class="select-box f-l" style="width:180px;">
|
||||
{php}$category = getCategory(6);{/php}
|
||||
{php}$category = getCategory(601);{/php}
|
||||
<select class="select" id="zhicheng" name="zhicheng" size="1">
|
||||
<option value="">--请选择职称--</option>
|
||||
{volist name="category" id="vo"}
|
||||
@@ -83,7 +83,7 @@
|
||||
<label class="form-label col-xs-4 col-sm-3">学历:</label>
|
||||
<div class="formControls col-xs-8 col-sm-9 f-l">
|
||||
<span class="select-box f-l" style="width:180px;">
|
||||
{php}$category = getCategory(5);{/php}
|
||||
{php}$category = getCategory(501);{/php}
|
||||
<select class="select" id="xueli" name="xueli" size="1">
|
||||
<option value="">--请选择学历--</option>
|
||||
{volist name="category" id="vo"}
|
||||
|
||||
@@ -1,65 +1,75 @@
|
||||
{extend name="common@create" /}
|
||||
{block name="formaa"}
|
||||
<form action="/authrule" method="POST" class="form form-horizontal" id="form-member-add">
|
||||
<form action="/kaoshi" method="POST" class="form form-horizontal" id="form-member-add">
|
||||
<div class="row cl">
|
||||
<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>权限名称:</label>
|
||||
<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>标题:</label>
|
||||
<div class="formControls col-xs-8 col-sm-9">
|
||||
<input type="text" class="input-text" value="" placeholder="显示的名称" id="title" name="title">
|
||||
<input type="text" class="input-text" value="" placeholder="显示的考试名称" id="title" name="title">
|
||||
</div>
|
||||
</div>
|
||||
<div class="row cl">
|
||||
<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>权限规则:</label>
|
||||
<div class="formControls col-xs-8 col-sm-9">
|
||||
<input type="text" class="input-text" value="" placeholder="后台需要验证的规则" id="name" name="name">
|
||||
</div>
|
||||
</div>
|
||||
<div class="row cl">
|
||||
<label class="form-label col-xs-4 col-sm-3">所属权限:</label>
|
||||
<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>学期:</label>
|
||||
<div class="formControls col-xs-8 col-sm-9 f-l">
|
||||
<span class="select-box f-l" style="width:180px;">
|
||||
{php} $authrulemod = new app\admin\model\AuthRule; $pid = $authrulemod->getRule();{/php}
|
||||
<select class="select" id="pidt" name="pid" size="1">
|
||||
<option value="">--请选择父级权限--</option>
|
||||
{volist name="pid" id="vo"}
|
||||
{php}
|
||||
$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">
|
||||
<option value="">--请选择学期--</option>
|
||||
{volist name="xueqi" id="vo"}
|
||||
<option value="{$vo.id}">{$vo.title}</option>
|
||||
{php} $child = $authrulemod->getRule($vo['id']);{/php}
|
||||
{volist name="child" id="va"}
|
||||
<option value="{$va.id}">├ -{$va.title}</option>
|
||||
{/volist}
|
||||
{/volist}
|
||||
</select>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row cl">
|
||||
<label class="form-label col-xs-4 col-sm-3">规则表达式:</label>
|
||||
<div class="formControls col-xs-8 col-sm-9">
|
||||
<input type="text" class="input-text" value="" placeholder="规则的附加表达式" id="condition" name="condition">
|
||||
<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>分类:</label>
|
||||
<div class="formControls col-xs-8 col-sm-9 f-l">
|
||||
<span class="select-box f-l" style="width:180px;">
|
||||
{php}$list = getCategory(901);{/php}
|
||||
<select class="select" id="category" name="category" size="1">
|
||||
<option value="">--请选择考试分类--</option>
|
||||
{volist name="list" id="vo"}
|
||||
<option value="{$vo.id}">{$vo.title}</option>
|
||||
{/volist}
|
||||
</select>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row cl">
|
||||
<label class="form-label col-xs-4 col-sm-3">排序:</label>
|
||||
<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>考试时间:</label>
|
||||
<div class="formControls col-xs-8 col-sm-9">
|
||||
<input type="text" class="input-text" value="" placeholder="默认为999" id="paixu" name="paixu">
|
||||
<input type="text" class="input-text Wdate" style="max-width:120px" value="" placeholder="开始" id="bfdate" name="bfdate" onclick="WdatePicker({isShowClear:false,readOnly:true})">
|
||||
<span class="ml-10">~</span>
|
||||
<input type="text" class="input-text Wdate ml-10" style="max-width:120px" value="" placeholder="结束" id="enddate" name="enddate" onclick="WdatePicker({isShowClear:false,readOnly:true})">
|
||||
</div>
|
||||
</div>
|
||||
<div class="row cl">
|
||||
<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>是否是菜单:</label>
|
||||
<div class="formControls col-xs-8 col-sm-9 skin-minimal">
|
||||
<div class="radio-box">
|
||||
<input name="ismenu" type="radio" id="ismenu-1" value="1">
|
||||
<label for="ismenu-1">是</label>
|
||||
</div>
|
||||
<div class="radio-box">
|
||||
<input type="radio" id="ismenu-2" value="0" name="ismenu" checked>
|
||||
<label for="ismenu-2">否</label>
|
||||
</div>
|
||||
<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>参考年级:</label>
|
||||
<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}">
|
||||
{$vo}
|
||||
</label>{/foreach}
|
||||
</dt>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row cl">
|
||||
<label class="form-label col-xs-4 col-sm-3">菜单字体:</label>
|
||||
{php}
|
||||
$subject = new \app\teach\model\Subject;
|
||||
$sjlist = $subject->where('status',1)->where('id','<=',3)->field('id,title')->order(['paixu'])->select();
|
||||
{/php}
|
||||
<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>参考学科:</label>
|
||||
<div class="formControls col-xs-8 col-sm-9">
|
||||
<input type="text" class="input-text" value="" placeholder="只对菜单有效" id="font" name="font">
|
||||
<dt>{foreach $sjlist as $key=>$vo }
|
||||
<label class="ml-10">
|
||||
<input type="checkbox" value="{$vo.id}" name="subject[]" id="subject{$vo.id}">
|
||||
{$vo.title}
|
||||
</label>{/foreach}
|
||||
</dt>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row cl">
|
||||
@@ -71,33 +81,34 @@
|
||||
{/block}
|
||||
{block name="yanzheng"}
|
||||
<script type="text/javascript">
|
||||
// 匹配用户名
|
||||
$.validator.addMethod("zh",function(value,element){
|
||||
var tel = /^[\u4e00-\u9fa5]*$/;
|
||||
return this.optional(element) || tel.test(value);
|
||||
}, "请输入中文");
|
||||
|
||||
// 匹配帐号
|
||||
$.validator.addMethod("ustr",function(value,element){
|
||||
var tel = /^[a-zA-Z\/]*$/;
|
||||
return this.optional(element) || tel.test(value);
|
||||
}, "由字母和 / 组成");
|
||||
|
||||
// 设置表单验证规则
|
||||
var myrules = {
|
||||
title:{
|
||||
required:true,
|
||||
zh:true,
|
||||
rangelength:[2,6]
|
||||
},
|
||||
name:{
|
||||
xueqi:{
|
||||
required:true,
|
||||
ustr:true,
|
||||
rangelength:[1,80]
|
||||
},
|
||||
paixu:{
|
||||
digits:true,
|
||||
max:999
|
||||
category:{
|
||||
required:true,
|
||||
digits:true
|
||||
},
|
||||
bfdate:{
|
||||
required:true,
|
||||
dateISO:true
|
||||
},
|
||||
enddate:{
|
||||
required:true,
|
||||
dateISO:true
|
||||
},
|
||||
nianji:{
|
||||
required:true,
|
||||
},
|
||||
subject:{
|
||||
required:true,
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Loaded 3 of 56 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user