修改考试列表、学生列表和用户登录IP
This commit is contained in:
1 parent
5132336c41
commit
55e8faa2df
3 files changed
+4
-8
No files matched your search
@@ -37,7 +37,6 @@
|
||||
<tr>
|
||||
<th><input type="checkbox" name="" value=""></th>
|
||||
<th>标题</th>
|
||||
<th>学期</th>
|
||||
<th>分类</th>
|
||||
<th>参考年级</th>
|
||||
<th>参考学科</th>
|
||||
@@ -67,7 +66,6 @@
|
||||
var mycolumns = [
|
||||
{ "data": "id" },
|
||||
{ "data": "title" },
|
||||
{ "data": "xueqi" },
|
||||
{ "data": "category"},
|
||||
{ "data": "nianjinames"},
|
||||
{ "data": "subjectnames"},
|
||||
|
||||
@@ -64,7 +64,7 @@ class Index extends Controller
|
||||
// 将本次信息上传到服务器上
|
||||
$userinfo = AD::getByUsername($data['username']);
|
||||
$userinfo->lastip = $userinfo->ip;
|
||||
$userinfo->ip = request()->host();
|
||||
$userinfo->ip = request()->ip();
|
||||
$userinfo->denglucishu = ['inc', 1];
|
||||
$userinfo->lasttime = $userinfo->thistime;
|
||||
$userinfo->thistime = time();
|
||||
@@ -114,8 +114,5 @@ class Index extends Controller
|
||||
}
|
||||
return $check;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -75,12 +75,13 @@
|
||||
$njlist = nianjiList();
|
||||
$bjnames = banjinamelist();
|
||||
$njnum = array_keys($njlist);
|
||||
$bjlist = $banji->where('ruxuenian','in',$njnum)->max('paixu');
|
||||
|
||||
$bjlist = $banji->where('ruxuenian','in',$njnum)->max('paixu') + 1;
|
||||
{/php}
|
||||
<label class="f-l">班级:</label>
|
||||
<dt>
|
||||
<dd class=" mt-10">
|
||||
{for start="1" end="7" }
|
||||
{for start="1" end="$bjlist" }
|
||||
<label class="ml-10">
|
||||
<input type="checkbox" value="{$i}" name="banji" onclick="dtreload()">
|
||||
{$bjnames[$i]}
|
||||
|
||||
Reference in new issue
Block a user