51 lines
3.2 KiB
HTML
51 lines
3.2 KiB
HTML
|
|
{{include file="public/header" /}}
|
|||
|
|
|
|||
|
|
<!-- right content start -->
|
|||
|
|
<div class="content-right">
|
|||
|
|
<div class="content">
|
|||
|
|
<!-- form start -->
|
|||
|
|
<form class="am-form form-validation view-save" action="{{:MyUrl('plugins/index/index', ['control'=>'commontopmaxpicture', 'action'=>'save'])}}" method="POST" request-type="ajax-url" request-value="{{:MyUrl('plugins/index/index', ['control'=>'commontopmaxpicture', 'action'=>'index'])}}" enctype="multipart/form-data">
|
|||
|
|
<input type="hidden" name="max_file_size" value="{{:MyC('home_max_limit_image', 2048000)}}" />
|
|||
|
|
<legend>
|
|||
|
|
<span class="fs-16">顶部大图</span>
|
|||
|
|
<a href="{{:MyUrl('plugins/index/index', ['control'=>'commontopmaxpicture', 'action'=>'index'])}}" class="fr fs-14 m-t-5 am-icon-mail-reply"> 返回</a>
|
|||
|
|
</legend>
|
|||
|
|
|
|||
|
|
<div class="am-form-group am-form-file">
|
|||
|
|
<label class="block">图片<span class="fs-12 fw-100 cr-999">(建议1200像数X80像数)</span></label>
|
|||
|
|
<ul class="plug-file-upload-view plugins-images-view" data-form-name="images" data-max-number="1" data-delete="0" data-dialog-type="images">
|
|||
|
|
<li>
|
|||
|
|
<input type="text" name="images" value="{{if !empty($data['images'])}}{{$data.images}}{{/if}}" data-validation-message="请上传图片" required />
|
|||
|
|
<img src="{{if !empty($data['images_old'])}}{{$data.images_old}}{{else /}}{{$attachment_host}}/static/plugins/images/default-images.png{{/if}}" />
|
|||
|
|
</li>
|
|||
|
|
</ul>
|
|||
|
|
<div class="plug-file-upload-submit" data-view-tag="ul.plugins-images-view">+上传图片</div>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<div class="am-form-group">
|
|||
|
|
<label>背景色</label>
|
|||
|
|
<input type="hidden" name="bg_color" value="{{if !empty($data['bg_color'])}}{{$data.bg_color}}{{/if}}" />
|
|||
|
|
<button class="am-btn am-btn-default colorpicker-submit bg-color-tag am-btn-block bk-cr-white t-r" type="button" data-input-tag="button.bg-color-tag" data-color-tag="input[name='bg_color']" data-color-style="background-color" {{if !empty($data['bg_color'])}}style="background:{{$data.bg_color}}"{{/if}}>
|
|||
|
|
<img src="{{$attachment_host}}/static/common/images/colorpicker.png" />
|
|||
|
|
</button>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<div class="am-form-group">
|
|||
|
|
<label>链接地址<span class="fs-12 fw-100 cr-999">(带http://或https://)</span></label>
|
|||
|
|
<input type="url" placeholder="链接地址" name="url" data-validation-message="链接地址格式有误" class="am-radius" {{if !empty($data)}} value="{{$data.url}}"{{/if}} />
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
{{include file="lib/is_new_window_open" /}}
|
|||
|
|
|
|||
|
|
<div class="am-form-group">
|
|||
|
|
<button type="submit" class="am-btn am-btn-primary am-radius btn-loading-example am-btn-sm w100" data-am-loading="{loadingText:'处理中...'}">保存</button>
|
|||
|
|
</div>
|
|||
|
|
</form>
|
|||
|
|
<!-- form end -->
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<!-- right content end -->
|
|||
|
|
|
|||
|
|
<!-- footer start -->
|
|||
|
|
{{include file="public/footer" /}}
|
|||
|
|
<!-- footer end -->
|