0
This commit is contained in:
1 parent
4011b6f888
commit
1c041c01f4
2 files changed
+64
-20
No files matched your search
@@ -40,12 +40,7 @@
|
||||
<select name="zuzhi_id" lay-verify="required">
|
||||
<option value=""></option>
|
||||
{volist name="schoollist" id="vo"}
|
||||
<option value="{$vo.id}"
|
||||
{present name="$list.data.zuzhi_id"}
|
||||
{eq name="$list.data.zuzhi_id" value="$vo.id" }
|
||||
selected
|
||||
{/eq}
|
||||
{/present}>
|
||||
<option value="{$vo.id}">
|
||||
{$vo.title}
|
||||
</option>
|
||||
{/volist}
|
||||
@@ -75,12 +70,7 @@
|
||||
<select name="xueqi_id" lay-verify="required">
|
||||
<option value=""></option>
|
||||
{volist name="xueqilist" id="vo"}
|
||||
<option value="{$vo.id}"
|
||||
{present name="$list.data.xueqi_id"}
|
||||
{eq name="$list.data.xueqi_id" value="$vo.id" }
|
||||
selected
|
||||
{/eq}
|
||||
{/present}>
|
||||
<option value="{$vo.id}">
|
||||
{$vo.title}
|
||||
</option>
|
||||
{/volist}
|
||||
@@ -94,12 +84,7 @@
|
||||
<select name="category_id" lay-verify="required">
|
||||
<option value=""></option>
|
||||
{volist name="category" id="vo"}
|
||||
<option value="{$vo.id}"
|
||||
{present name="$list.data.category_id"}
|
||||
{eq name="$list.data.category_id" value="$vo.id" }
|
||||
selected
|
||||
{/eq}
|
||||
{/present}>
|
||||
<option value="{$vo.id}">
|
||||
{$vo.title}
|
||||
</option>
|
||||
{/volist}
|
||||
@@ -112,13 +97,27 @@
|
||||
<span class="x-red">*</span>考试时间
|
||||
</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" class="layui-input" id="bfdate" name="bfdate" placeholder="开始时间" value="{$list.data.bfdate|default=''}" autocomplete="off">
|
||||
<input type="text" class="layui-input" id="bfdate" name="bfdate" placeholder="开始时间" value="" autocomplete="off">
|
||||
</div>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" class="layui-input" id="enddate" name="enddate" placeholder="结束时间" value="{$list.data.enddate|default=''}" autocomplete="off">
|
||||
<input type="text" class="layui-input" id="enddate" name="enddate" placeholder="结束时间" value="" autocomplete="off">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="fanwei_id" class="layui-form-label"><span class="x-red">*</span>查看范围</label>
|
||||
<div class="layui-input-block">
|
||||
{php} $category = categoryChildren(124);{/php}
|
||||
<select name="fanwei_id" lay-verify="required">
|
||||
<option value=""></option>
|
||||
{volist name="category" id="vo"}
|
||||
<option value="{$vo.id}">
|
||||
{$vo.title}
|
||||
</option>
|
||||
{/volist}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item" style="text-align: right;">
|
||||
<button class="layui-btn" lay-filter="nextsubmit" lay-submit="">
|
||||
{$list.set.butname}
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
|
||||
use think\migration\Migrator;
|
||||
use think\migration\db\Column;
|
||||
|
||||
class LuRuFenGong extends Migrator
|
||||
{
|
||||
/**
|
||||
* Change Method.
|
||||
*
|
||||
* Write your reversible migrations using this method.
|
||||
*
|
||||
* More information on writing migrations is available here:
|
||||
* http://docs.phinx.org/en/latest/migrations.html#the-abstractmigration-class
|
||||
*
|
||||
* The following commands can be used in this method and Phinx will
|
||||
* automatically reverse them when rolling back:
|
||||
*
|
||||
* createTable
|
||||
* renameTable
|
||||
* addColumn
|
||||
* renameColumn
|
||||
* addIndex
|
||||
* addForeignKey
|
||||
*
|
||||
* Remember to call "create()" or "update()" and NOT "save()" when working
|
||||
* with the Table class.
|
||||
*/
|
||||
public function change()
|
||||
{
|
||||
// 定义数据表名称
|
||||
$table = $this->table('luru_fengong');
|
||||
|
||||
// 添加当前表字段
|
||||
$table
|
||||
->addColumn('kaoshi_id','integer',['limit'=>11,'null'=>false,'comment'=>'考试id'])
|
||||
->addColumn('user_id','integer',['limit'=>11,'null'=>false,'comment'=>'用户id'])
|
||||
->addColumn('banji_id','integer',['limit'=>11,'null'=>false,'comment'=>'班级id'])
|
||||
->addColumn('subject_id','integer',['limit'=>11,'null'=>false,'comment'=>'学科id'])
|
||||
->addColumn('create_time','integer',['limit'=>11,'default'=>1539158918,'null'=>false,'comment'=>'创建时间'])
|
||||
->addColumn('update_time','integer',['limit'=>11,'default'=>1539158918,'null'=>false,'comment'=>'更新时间'])
|
||||
->addColumn('delete_time','integer',['limit'=>11,'null'=>true,'comment'=>'删除时间'])
|
||||
->create();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user