Time扩展添加教务管理表编写教务管理修改用户角色添加方式

This commit is contained in:
巴掌 committed 2018-10-31 16:57:15 +08:00
1 parent 8f7868665b
commit 8c1fbfd00a
56 files changed
+2564 -299

No files matched your search

+31
View File
@@ -1 +1,32 @@
<?php
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;
}