You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
149 lines
7.1 KiB
149 lines
7.1 KiB
{extend name="admin@public/base" /}
|
|
{block name="main-content"}
|
|
<div class="page-content">
|
|
<!--主题-->
|
|
<div class="page-header">
|
|
<h1>
|
|
您当前操作
|
|
<small>
|
|
<i class="ace-icon fa fa-angle-double-right"></i>
|
|
修改
|
|
</small>
|
|
</h1>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-xs-12">
|
|
<form class="form-horizontal ajaxForm2" name="form0" method="post" action="{:url('admin/Roadshow/roadshow_edit')}" enctype="multipart/form-data">
|
|
<input type="hidden" name="id" id="n_id" value="{$roadshow_list.id}" />
|
|
|
|
<div class="form-group">
|
|
<label class="col-sm-2 control-label no-padding-right" for="form-field-1"> 视频名称: </label>
|
|
<div class="col-sm-10">
|
|
<input type="text" name="name" value="{$roadshow_list.name}" class="col-xs-10 col-sm-6" required/>
|
|
<span class="help-inline col-xs-12 col-sm-7">
|
|
<span class="middle" id="resone"></span>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- <div class="form-group">
|
|
<label class="col-sm-2 control-label no-padding-right" for="form-field-1"> 活动介绍: </label>
|
|
<div class="col-sm-10">
|
|
<textarea name="activity_introduce" class="col-xs-10 col-sm-6" required>{$roadshow_list.activity_introduce}</textarea>
|
|
<span class="help-inline col-xs-12 col-sm-7">
|
|
<span class="middle" id="resone"></span>
|
|
</span>
|
|
</div>
|
|
</div>-->
|
|
|
|
<div class="space-4"></div>
|
|
|
|
<div class="form-group">
|
|
<label class="col-sm-2 control-label no-padding-right" for="form-field-1"> 举办时间: </label>
|
|
<div class="col-sm-10">
|
|
<input name="start_time" class="date-picker col-xs-10 col-sm-6" value="{$roadshow_list.start_time|date='Y-m-d',###}" type="text" data-date-format="yyyy-mm-dd">
|
|
<span class="lbl"></span>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<!-- <div class="form-group">
|
|
<label class="col-sm-2 control-label no-padding-right" for="form-field-1"> 主办单位: </label>
|
|
<div class="col-sm-10">
|
|
<input type="text" name="host_unit" placeholder="必填:主办单位" value="{$roadshow_list.host_unit}" class="col-xs-10 col-sm-6" required/>
|
|
<span class="help-inline col-xs-12 col-sm-7">
|
|
<span class="middle" id="resone"></span>
|
|
</span>
|
|
</div>
|
|
</div>-->
|
|
<div class="space-4"></div>
|
|
|
|
<div class="form-group">
|
|
<label class="col-sm-2 control-label no-padding-right" for="form-field-1"> 排序(从小到大): </label>
|
|
<div class="col-sm-10">
|
|
<input type="text" name="sort" value="{$roadshow_list['sort']|default=50}" class="col-xs-10 col-sm-1" />
|
|
</div>
|
|
</div>
|
|
|
|
<div class="space-4"></div>
|
|
<div class="form-group">
|
|
<label class="col-sm-2 control-label no-padding-right" for="form-field-1"> 是否审核: </label>
|
|
<div class="col-sm-10" style="padding-top:5px;">
|
|
<input name='status' {if condition="$roadshow_list['status'] eq 1"}checked{/if} value='1' class='ace ace-switch ace-switch-4 btn-flat' type='checkbox' />
|
|
<span class="lbl"> 默认关闭</span>
|
|
</div>
|
|
</div>
|
|
<div class="space-4"></div>
|
|
<div class="form-group">
|
|
<label class="col-sm-2 control-label no-padding-right" for="form-field-1"> logo图片上传: </label>
|
|
<div class="col-sm-10">
|
|
<input type="hidden" name="checkpic" id="checkpic" value="{$roadshow_list.pic}" />
|
|
<input type="hidden" name="oldcheckpic" id="oldcheckpic" value="{$roadshow_list.pic}" />
|
|
<a href="javascript:;" class="file" title="点击选择所要上传的图片">
|
|
<input type="file" name="pic_one[]" id="file0" multiple="multiple"/>
|
|
选择上传文件
|
|
</a>
|
|
<span class="lbl"> <img src="{$roadshow_list.pic|get_imgurl}" width="100" height="70" id="img0" ></span> <a href="javascript:;" onclick="return backpic('{$roadshow_list.pic|get_imgurl}');" title="还原修改前的图片" class="file">
|
|
撤销修改
|
|
</a>
|
|
<span class="lbl"> 上传前先用PS处理成等比例图片后上传,请按照360*240上传<br />
|
|
</span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="space-4"></div>
|
|
<div class="form-group">
|
|
<label class="col-sm-2 control-label no-padding-right" for="form-field-1"> 上传视/音频: </label>
|
|
<div class="col-sm-10">
|
|
<div class="lbl">
|
|
<input type="hidden" name="oldfile[]" value="{$roadshow_list.video}" />
|
|
{$roadshow_list.video|get_imgurl}
|
|
<a href="{$roadshow_list.video|get_imgurl}" title="{$roadshow_list.video|get_imgurl}">查看</a>
|
|
<a href="#" class="delete-file" title="删除此文件">删除</a>
|
|
</div>
|
|
<input name="file_all[]" type="file" id="input-files" class="file col-xs-6 col-sm-6">
|
|
<script>
|
|
$("#input-files").fileinput({
|
|
allowedFileExtensions : ['mp4']
|
|
});
|
|
</script>
|
|
<span class="lbl"> 视频须mp4格式</span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="space-4"></div>
|
|
|
|
<div class="clearfix form-actions">
|
|
<div class="col-md-offset-3 col-md-9">
|
|
<button class="btn btn-info" type="submit">
|
|
<i class="ace-icon fa fa-check bigger-110"></i>
|
|
保存
|
|
</button>
|
|
|
|
|
|
<button class="btn" type="reset">
|
|
<i class="ace-icon fa fa-undo bigger-110"></i>
|
|
重置
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
{/block}
|
|
{block name="scripts"}
|
|
<script>
|
|
$('a.delete-file').click(function () {
|
|
$(this).parent('div').html('');
|
|
return false;
|
|
});
|
|
|
|
$('.date-picker').datepicker({
|
|
autoclose: true,
|
|
todayHighlight: true,
|
|
language:'zh-CN',
|
|
})
|
|
</script>
|
|
{/block}
|