修改单个录入荣誉信息
This commit is contained in:
1 parent
498e0452cb
commit
48667f2fe1
4 files changed
+65
-77
No files matched your search
@@ -15,41 +15,22 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<form action="/dwry" 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>
|
||||
<div class="formControls col-xs-8 col-sm-9 f-l">
|
||||
<span class="select-box f-l" style="width:180px;">
|
||||
{php}
|
||||
$jsry = new \app\rongyu\model\JsRongyu;
|
||||
$jsrylist = $jsry->order(['id'=>'desc'])
|
||||
->field('id,title')
|
||||
->limit(10)
|
||||
->select();
|
||||
if($list['id'])
|
||||
{
|
||||
$jsrylist1 = $jsry->where('id',$list['id'])
|
||||
->field('id,title')
|
||||
->find();
|
||||
$jsrylist->unshift($jsrylist1);
|
||||
}
|
||||
{/php}
|
||||
<select class="select" id="jsrylist" name="jsrylist" size="1" required>
|
||||
<option value="">--请选择荣誉类型--</option>
|
||||
{volist name="jsrylist" id="vo"}
|
||||
<option value="{$vo.id}">{$vo.title}</option>
|
||||
{/volist}
|
||||
</select>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<input type="hidden" class="input-text" value="" placeholder="荣誉图片地址" id="url" name="url" readonly="true"><input type="hidden" class="input-text" value="" placeholder="荣誉图片地址" id="id" name="id" readonly="true">
|
||||
<form action="" method="PUT" class="form form-horizontal" id="form-member-add">
|
||||
<input type="hidden" class="input-text" value="" placeholder="荣誉图片地址" id="pic" name="pic" readonly="true">
|
||||
<input type="hidden" class="input-text" value="" placeholder="荣誉存储编号" id="id" name="id" readonly="true">
|
||||
<input type="hidden" class="input-text" value="{$list['id']}" placeholder="荣誉册" id="rongyuce" name="rongyuce" readonly="true">
|
||||
<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="title" name="title">
|
||||
</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="bianhao" name="bianhao">
|
||||
</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 f-l">
|
||||
@@ -65,7 +46,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<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 f-l">
|
||||
<span class="select-box f-l" style="width:300px;">
|
||||
{php} $school = schlist('校级','区级');{/php}
|
||||
@@ -79,25 +60,29 @@
|
||||
</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 Wdate" value="" placeholder="" id="fzshijian" name="fzshijian" onclick="WdatePicker({isShowClear:false,readOnly:true})" style="width: 180px">
|
||||
</div>
|
||||
</div>
|
||||
<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 f-l">
|
||||
<span class="select-box f-l" style="width:300px;">
|
||||
{php} $school = schlist('区级','其它级');{/php}
|
||||
<select class="select" id="fzschool" name="fzschool" size="1" required>
|
||||
<option value="">--请选择颁奖单位--</option>
|
||||
{volist name="school" id="vo"}
|
||||
{php}
|
||||
$subject = new \app\teach\model\Subject;
|
||||
$sjlist = $subject->where('status',1)->field('id,title')->order(['paixu'])->select();
|
||||
{/php}
|
||||
<select class="select" id="subject" name="subject" size="1" required>
|
||||
<option value="">--请选择荣誉的属学科--</option>
|
||||
{volist name="sjlist" 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"><span class="c-red">*</span>获奖时间:</label>
|
||||
<div class="formControls col-xs-8 col-sm-9">
|
||||
<input type="text" class="input-text Wdate" value="" placeholder="" id="fzshijian" name="fzshijian" onclick="WdatePicker({isShowClear:false,readOnly:true})" style="width: 180px">
|
||||
</div>
|
||||
</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 f-l">
|
||||
@@ -150,7 +135,8 @@
|
||||
// 不压缩image, 默认如果是jpeg,文件上传前会压缩一把再上传!
|
||||
resize: false,
|
||||
//上传时提交自身需要的字段并传递到后台。
|
||||
formData: {
|
||||
formData: {
|
||||
rongyuce : $('#rongyuce').val(),
|
||||
},
|
||||
// 只允许选择图片文件。
|
||||
accept: {
|
||||
@@ -205,8 +191,8 @@
|
||||
});
|
||||
|
||||
uploader.on( 'uploadAccept', function( file, response ) {
|
||||
$('#url').val(response.url);
|
||||
$('#id').val(response.id);
|
||||
$('#pic').val(response.url);
|
||||
$('#id').val(response.ryid);
|
||||
});
|
||||
|
||||
// 文件上传失败,显示上传出错。
|
||||
@@ -268,7 +254,7 @@
|
||||
};
|
||||
|
||||
// 设置表单提交方式
|
||||
var mytype = 'POST';
|
||||
var mytype = 'PUT';
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
@@ -21,10 +21,10 @@
|
||||
批量删除
|
||||
</a>
|
||||
<!-- 添加按钮 -->
|
||||
<a href="javascript:;" onclick=addfull('添加单位荣誉',"/jsryinfo/create") class="btn btn-primary radius">
|
||||
<!-- <a href="javascript:;" onclick=addfull('添加单位荣誉',"/jsryinfo/create") class="btn btn-primary radius">
|
||||
<i class="Hui-iconfont"></i>
|
||||
添加荣誉
|
||||
</a>
|
||||
</a> -->
|
||||
</span>
|
||||
<span class="r">
|
||||
共有数据:<strong>{$list.count}</strong> 条
|
||||
|
||||
+12
-11
@@ -33,17 +33,18 @@ class Category extends Seeder
|
||||
|
||||
// 二级类别
|
||||
// 大学科
|
||||
['id'=>1011001,'title'=>'语文','pid'=>110,'paixu'=>1],
|
||||
['id'=>1011002,'title'=>'数学','pid'=>110,'paixu'=>2],
|
||||
['id'=>1011003,'title'=>'外语','pid'=>110,'paixu'=>3],
|
||||
['id'=>1011004,'title'=>'品德','pid'=>110,'paixu'=>4],
|
||||
['id'=>1011005,'title'=>'历史与社会','pid'=>110,'paixu'=>5],
|
||||
['id'=>1011006,'title'=>'科学','pid'=>110,'paixu'=>6],
|
||||
['id'=>1011007,'title'=>'体育与健康','pid'=>110,'paixu'=>7],
|
||||
['id'=>1011008,'title'=>'艺术','pid'=>110,'paixu'=>8],
|
||||
['id'=>1011009,'title'=>'综合实践活动','pid'=>110,'paixu'=>9],
|
||||
['id'=>1011010,'title'=>'地方校本课程','pid'=>110,'paixu'=>10],
|
||||
['id'=>1011011,'title'=>'其它','pid'=>110,'paixu'=>11],
|
||||
['id'=>1011001,'title'=>'语文','pid'=>110,'paixu'=>2],
|
||||
['id'=>1011002,'title'=>'数学','pid'=>110,'paixu'=>3],
|
||||
['id'=>1011003,'title'=>'外语','pid'=>110,'paixu'=>4],
|
||||
['id'=>1011004,'title'=>'品德','pid'=>110,'paixu'=>5],
|
||||
['id'=>1011005,'title'=>'历史与社会','pid'=>110,'paixu'=>6],
|
||||
['id'=>1011006,'title'=>'科学','pid'=>110,'paixu'=>7],
|
||||
['id'=>1011007,'title'=>'体育与健康','pid'=>110,'paixu'=>8],
|
||||
['id'=>1011008,'title'=>'艺术','pid'=>110,'paixu'=>9],
|
||||
['id'=>1011009,'title'=>'综合实践活动','pid'=>110,'paixu'=>10],
|
||||
['id'=>1011010,'title'=>'地方校本课程','pid'=>110,'paixu'=>11],
|
||||
['id'=>1011011,'title'=>'其它','pid'=>110,'paixu'=>12],
|
||||
['id'=>1011012,'title'=>'幼儿园全科','pid'=>110,'paixu'=>1],
|
||||
// 文件
|
||||
['id'=>1011101,'title'=>'教师名单','pid'=>111,'paixu'=>1],
|
||||
['id'=>1011102,'title'=>'学生名单','pid'=>111,'paixu'=>2],
|
||||
|
||||
Loaded 3 of 4 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user