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.
128 lines
5.8 KiB
128 lines
5.8 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" method="post" action="{:url('admin/Gpgl/shooting_edit')}" >
|
|
<input type="hidden" name="aa" value="0" />
|
|
<input type="hidden" name="ysth_id" value="{$zbed.ysth_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 col-sm-4">
|
|
<input type="text" name="ysth_sort" placeholder="必填:排序" value="{$zbed.ysth_sort}" 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 col-sm-4">
|
|
<input type="text" name="ysth_code" placeholder="输入拍品代码" class="col-xs-10 col-sm-6" value="{$zbed.ysth_code}" />
|
|
<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 col-sm-4">
|
|
<input type="text" name="ysth_product_name" placeholder="输入艺术家名字" class="col-xs-10 col-sm-6" value="{$zbed.ysth_product_name}"/>
|
|
<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 col-sm-4">
|
|
<input name="ysth_term" class="date-picker col-xs-10 col-sm-6" value="{$zbed.ysth_term}" type="text" data-date-format="yyyy-mm-dd">
|
|
<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"> 预期年化益率: </label>
|
|
<div class="col-sm-10 col-sm-4">
|
|
<input type="text" name="ysth_estimate_yearrate" placeholder="输入作品名字" class="col-xs-10 col-sm-6" value="{$zbed.ysth_estimate_yearrate}"/>
|
|
<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" style="padding-top:5px;">
|
|
<input name='ysth_status' {if condition="$zbed['ysth_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">介绍: </label>
|
|
<div class="col-sm-10">
|
|
<script src="__PUBLIC__/ueditor/ueditor.config.js" type="text/javascript"></script>
|
|
<script src="__PUBLIC__/ueditor/ueditor.all.js" type="text/javascript"></script>
|
|
<textarea name="ysth_content" rows="100%" style="width:100%" id="myEditor">{$zbed.ysth_content}</textarea>
|
|
<script type="text/javascript">
|
|
var editor = new UE.ui.Editor();
|
|
editor.render("myEditor");
|
|
</script>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="space-4"></div>
|
|
|
|
<div class="col-md-offset-3 col-md-9">
|
|
<input type="submit" value="保存" class="btn btn-info"/>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
{/block}
|
|
{block name="scripts"}
|
|
<script>
|
|
$('.date-picker').datepicker({
|
|
autoclose: true,
|
|
todayHighlight: true,
|
|
language:'zh-CN',
|
|
})
|
|
/* 通用表单不带检查操作,失败跳转 */
|
|
$(function () {
|
|
$('.ajaxForm2').ajaxForm({
|
|
success: complete, // 这是提交后的方法
|
|
dataType: 'json'
|
|
});
|
|
});
|
|
//失败跳转
|
|
function complete(data) {
|
|
if (data.code == 1) {
|
|
layer.alert(data.msg, {icon: 6}, function (index) {
|
|
layer.close(index);
|
|
window.location.href = data.url;
|
|
});
|
|
} else {
|
|
layer.alert(data.msg, {icon: 5}, function (index) {
|
|
layer.close(index);
|
|
window.location.href = data.url;
|
|
});
|
|
return false;
|
|
}
|
|
}
|
|
</script>
|
|
{/block}
|
|
|