修改权限种子、编写学生添加

This commit is contained in:
cxdbz committed 2018-11-04 22:10:29 +08:00
1 parent 10526d7cbb
commit 8a7f76ea8b
11 files changed
+220 -158

No files matched your search

@@ -8,7 +8,7 @@
</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="说明角色有哪些权限" id="miaoshu" name="miaoshu">
</div>
+1 -1
View File
@@ -8,7 +8,7 @@
</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="{$list.miaoshu}" placeholder="说明角色有哪些权限" id="miaoshu" name="miaoshu">
</div>
+58 -1
View File
@@ -35,4 +35,61 @@ function getCategoryTitle($id)
->vlaue('title');
// 返回类别名
return $value;
}
}
function nianjiList()
{
// 定义学年时间节点日期为每年的8月10日
// $yd = '8-10';
$jiedian = strtotime(date('Y').'-8-10');
$time = new think\helper\Time();
$thisday = $time->today();
if($thisday[0]<=$jiedian)
{
$str = 1;
}else{
$str = 0;
}
$nian = date('Y') - $str;
$njlist = array();
$njlist[$nian]='一年级';
$njlist[$nian-1]='二年级';
$njlist[$nian-2]='三年级';
$njlist[$nian-3]='四年级';
$njlist[$nian-4]='五年级';
$njlist[$nian-5]='六年级';
return $njlist;
}
// 班级列表
function banjinamelist()
{
$bjarr = array(
'1'=>'一班',
'2'=>'二班',
'3'=>'三班',
'4'=>'四班',
'5'=>'五班',
'6'=>'六班',
'7'=>'七班',
'8'=>'八班',
'9'=>'九班',
'10'=>'十班',
'11'=>'十一班',
'12'=>'十二班',
'13'=>'十三班',
'14'=>'十四班',
'15'=>'十五班',
);
return $bjarr;
}
Loaded 3 of 11 files, more files were not shown because too many files have changed in this diff. Show more