123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296 |
- <style>
- .upload-image {
- background: url('__CDN__/assets/addons/example/img/plus.png') no-repeat center center;
- background-size: 30px 30px;
- height: 30px;
- width: 30px;
- border: 1px solid #ccc;
- }
- </style>
- <div class="row">
- <!-- 幻灯片-->
- <div class="col-md-6">
- <div class="box box-success">
- <div class="panel-body">
- <form id="aaa-form" role="form" data-toggle="validator" method="POST" action="">
- <div class="form-group row">
- <label class="control-label col-xs-12">幻灯片</label>
- <div class="col-xs-12">
- <div class="input-group">
- <input data-rule="required" class="form-control" name="row[name]" type="hidden" value="{$iantern_slide->name}">
- <input id="a-files" data-rule="required" class="form-control" size="50" name="row[image]" type="text" value="{$iantern_slide->image}">
- <div class="input-group-addon no-border no-padding">
- <span><button type="button" id="plupload-files" class="btn btn-danger plupload" data-input-id="a-files" data-mimetype="*" data-multiple="true" data-preview-id="aa-files"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
- <span><button type="button" id="fachoose-files" class="btn btn-primary fachoose" data-input-id="a-files" data-mimetype="*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
- </div>
- <span class="msg-box n-right" for="a-files"></span>
- </div>
- <!--ul需要添加 data-template和data-name属性,并一一对应且唯一 -->
- <ul class="row list-inline plupload-preview" id="aa-files" data-template="introtpl" data-name="row[image]"></ul>
- <!--请注意 ul和textarea间不能存在其它任何元素,实际开发中textarea应该添加个hidden进行隐藏-->
- <!--这里自定义图片预览的模板 开始-->
- <script type="text/html" id="introtpl">
- <li class="col-xs-3">
- <a href="<%=fullurl%>" data-url="<%=url%>" target="_blank" class="thumbnail">
- <img src="<%=fullurl%>" class="img-responsive">
- </a>
- <a href="javascript:;" class="btn btn-danger btn-xs btn-trash"><i class="fa fa-trash"></i></a>
- </li>
- </script>
- <!--这里自定义图片预览的模板 结束-->
- </div>
- </div>
- <div class="form-group row">
- <label class="control-label col-xs-12"></label>
- <div class="col-xs-12">
- <button type="submit" class="btn btn-success btn-embossed">{:__('OK')}</button>
- <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
- </div>
- </div>
- </form>
- </div>
- </div>
- </div>
- <!--系统介绍-->
- <div class="col-md-6">
- <div class="box box-success">
- <div class="panel-body">
- <form id="product_features-form" role="form" data-toggle="validator" method="POST" action="">
- <div class="form-group row">
- <label class="control-label col-xs-12">系统介绍</label>
- <div class="col-xs-12">
- <div class="input-group">
- <input data-rule="required" class="form-control" name="row[name]" type="hidden" value="{$system_introduction->name}">
- <input id="c-files" data-rule="required" class="form-control" size="50" name="row[image]" type="text" value="{$system_introduction->image}">
- <div class="input-group-addon no-border no-padding">
- <span><button type="button" id="plupload-files_product_features" class="btn btn-danger plupload" data-input-id="c-files" data-mimetype="*" data-multiple="true" data-preview-id="p-files"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
- <span><button type="button" id="fachoose-files_product_features" class="btn btn-primary fachoose" data-input-id="c-files" data-mimetype="*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
- </div>
- <span class="msg-box n-right" for="c-files"></span>
- </div>
- <!-- ul需要添加 data-template和data-name属性,并一一对应且唯一-->
- <ul class="row list-inline plupload-preview" id="p-files" data-template="introtpl_product_features" data-name="row[system_introduction_content]"></ul>
- <!-- 请注意 ul和textarea间不能存在其它任何元素,实际开发中textarea应该添加个hidden进行隐藏-->
- <textarea name="row[system_introduction_content]" class="form-control" style="margin-top:5px;display:none;">{$system_introduction->system_introduction_content}</textarea>
- <!-- 这里自定义图片预览的模板 开始-->
- <script type="text/html" id="introtpl_product_features">
- <li class="col-xs-3">
- <a href="<%=fullurl%>" data-url="<%=url%>" target="_blank" class="thumbnail">
- <img src="<%=fullurl%>" class="img-responsive">
- </a>
- <input type="text" name="row[system_introduction_content][<%=index%>]" class="form-control mb-1" placeholder="请输入描述" value="<%=value?value:''%>"/>
- <a href="javascript:;" class="btn btn-danger btn-xs btn-trash"><i class="fa fa-trash"></i></a>
- </li>
- </script>
- <!-- 这里自定义图片预览的模板 结束-->
- </div>
- </div>
- <div class="form-group row">
- <label class="control-label col-xs-12"></label>
- <div class="col-xs-12">
- <button type="submit" class="btn btn-success btn-embossed">{:__('OK')}</button>
- <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
- </div>
- </div>
- </form>
- </div>
- </div>
- </div>
- <!--产品差异化-->
- <div class="col-md-6">
- <div class="box box-success">
- <div class="panel-body">
- <form id="first-form" role="form" data-toggle="validator" method="POST" action="">
- <div class="form-group row">
- <label class="control-label col-xs-12">产品差异化</label>
- <div class="col-xs-12">
- <div class="input-group">
- <input data-rule="required" class="form-control" name="row[name]" type="hidden" value="{$product_differentiation->name}">
- <input id="c-images" data-rule="required" class="form-control" size="50" name="row[image]" type="text" value="{$product_differentiation->image}">
- <div class="input-group-addon no-border no-padding">
- <span><button type="button" id="plupload-images" class="btn btn-danger plupload" data-input-id="c-images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="true" data-preview-id="p-images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
- <span><button type="button" id="fachoose-images" class="btn btn-primary fachoose" data-input-id="c-images" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
- </div>
- <span class="msg-box n-right" for="c-images"></span>
- </div>
- <!--ul需要添加 data-template和data-name属性,并一一对应且唯一 -->
- <ul class="row list-inline plupload-preview" id="p-images" data-template="desctpl" data-name="row[content]"></ul>
- <!--请注意 ul和textarea间不能存在其它任何元素,实际开发中textarea应该添加个hidden进行隐藏-->
- <textarea name="row[content]" class="form-control" style="margin-top:5px;display: none">{$product_differentiation->content}</textarea>
- <!--这里自定义图片预览的模板 开始-->
- <script type="text/html" id="desctpl">
- <li class="col-xs-3">
- <a href="<%=fullurl%>" data-url="<%=url%>" target="_blank" class="thumbnail">
- <img src="<%=fullurl%>" class="img-responsive">
- </a>
- <input type="text" name="row[content][<%=index%>][info]" class="form-control mb-1" placeholder="请输入标题" value="<%=value?value['info']:''%>"/>
- <input type="text" name="row[content][<%=index%>][describe]" class="form-control mb-1" placeholder="请输入描述" value="<%=value?value['describe']:''%>"/>
- <a href="javascript:;" class="btn btn-danger btn-xs btn-trash"><i class="fa fa-trash"></i></a>
- </li>
- </script>
- <!--这里自定义图片预览的模板 结束-->
- </div>
- </div>
- <div class="form-group row">
- <label class="control-label col-xs-12"></label>
- <div class="col-xs-12">
- <button type="submit" class="btn btn-success btn-embossed">{:__('OK')}</button>
- <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
- </div>
- </div>
- </form>
- </div>
- </div>
- </div>
- <!--方案亮点-->
- <div class="col-md-6">
- <div class="box box-success">
- <div class="panel-body">
- <form id="product_function-form" role="form" data-toggle="validator" method="POST" action="">
- <div class="form-group row">
- <label class="control-label col-xs-12">方案亮点</label>
- <div class="col-xs-12">
- <div class="input-group">
- <input data-rule="required" class="form-control" name="row[name]" type="hidden" value="{$scheme_highlights->name}">
- <input id="d-images" data-rule="required" class="form-control" size="50" name="row[image]" type="text" value="{$scheme_highlights->image}">
- <div class="input-group-addon no-border no-padding">
- <span><button type="button" id="plupload-product_function" class="btn btn-danger plupload" data-input-id="d-images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="true" data-preview-id="product_function-images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
- <span><button type="button" id="fachoose-product_function" class="btn btn-primary fachoose" data-input-id="d-images" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
- </div>
- <span class="msg-box n-right" for="c-images"></span>
- </div>
- <!--ul需要添加 data-template和data-name属性,并一一对应且唯一 -->
- <ul class="row list-inline plupload-preview" id="product_function-images" data-template="product_function" data-name="row[image]"></ul>
- <!--请注意 ul和textarea间不能存在其它任何元素,实际开发中textarea应该添加个hidden进行隐藏-->
- <!--这里自定义图片预览的模板 开始-->
- <script type="text/html" id="product_function">
- <li class="col-xs-3">
- <a href="<%=fullurl%>" data-url="<%=url%>" target="_blank" class="thumbnail">
- <img src="<%=fullurl%>" class="img-responsive">
- </a>
- <a href="javascript:;" class="btn btn-danger btn-xs btn-trash"><i class="fa fa-trash"></i></a>
- </li>
- </script>
- <!--这里自定义图片预览的模板 结束-->
- </div>
- </div>
- <div class="form-group row">
- <label class="control-label col-xs-12"></label>
- <div class="col-xs-12">
- <button type="submit" class="btn btn-success btn-embossed">{:__('OK')}</button>
- <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
- </div>
- </div>
- </form>
- </div>
- </div>
- </div>
- <!--一站式三方增值服务-->
- <div class="col-md-6">
- <div class="box box-success">
- <div class="panel-body">
- <form id="-form" role="form" data-toggle="validator" method="POST" action="">
- <div class="form-group row">
- <label class="control-label col-xs-12">一站式三方增值服务</label>
- <div class="col-xs-12">
- <div class="input-group">
- <input data-rule="required" class="form-control" name="row[name]" type="hidden" value="{$added_services->name}">
- <input id="b-files" data-rule="required" class="form-control" size="50" name="row[image]" type="text" value="{$added_services->image}">
- <div class="input-group-addon no-border no-padding">
- <span><button type="button" id="plupload-files_a" class="btn btn-danger plupload" data-input-id="b-files" data-mimetype="*" data-multiple="true" data-preview-id="bb-files"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
- <span><button type="button" id="fachoose-files_a" class="btn btn-primary fachoose" data-input-id="b-files" data-mimetype="*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
- </div>
- <span class="msg-box n-right" for="b-files"></span>
- </div>
- <!--ul需要添加 data-template和data-name属性,并一一对应且唯一 -->
- <ul class="row list-inline plupload-preview" id="bb-files" data-template="introtpl_a" data-name="row[image]"></ul>
- <!--请注意 ul和textarea间不能存在其它任何元素,实际开发中textarea应该添加个hidden进行隐藏-->
- <!--这里自定义图片预览的模板 开始-->
- <script type="text/html" id="introtpl_a">
- <li class="col-xs-3">
- <a href="<%=fullurl%>" data-url="<%=url%>" target="_blank" class="thumbnail">
- <img src="<%=fullurl%>" class="img-responsive">
- </a>
- <a href="javascript:;" class="btn btn-danger btn-xs btn-trash"><i class="fa fa-trash"></i></a>
- </li>
- </script>
- <!--这里自定义图片预览的模板 结束-->
- </div>
- </div>
- <div class="form-group row">
- <label class="control-label col-xs-12"></label>
- <div class="col-xs-12">
- <button type="submit" class="btn btn-success btn-embossed">{:__('OK')}</button>
- <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
- </div>
- </div>
- </form>
- </div>
- </div>
- </div>
- <!--售后服务-->
- <div class="col-md-6">
- <div class="box box-success">
- <div class="panel-body">
- <form id="e-form" role="form" data-toggle="validator" method="POST" action="">
- <div class="form-group row">
- <label class="control-label col-xs-12">售后服务</label>
- <div class="col-xs-12">
- <div class="input-group">
- <input data-rule="required" class="form-control" name="row[name]" type="hidden" value="{$after_sale->name}">
- <input id="ee-files" data-rule="required" class="form-control" size="50" name="row[image]" type="text" value="{$after_sale->image}">
- <div class="input-group-addon no-border no-padding">
- <span><button type="button" id="plupload-files_e" class="btn btn-danger plupload" data-input-id="ee-files" data-mimetype="*" data-multiple="true" data-preview-id="e-files"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
- <span><button type="button" id="fachoose-files_e" class="btn btn-primary fachoose" data-input-id="ee-files" data-mimetype="*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
- </div>
- <span class="msg-box n-right" for="b-files"></span>
- </div>
- <!--ul需要添加 data-template和data-name属性,并一一对应且唯一 -->
- <ul class="row list-inline plupload-preview" id="e-files" data-template="introtpl_e" data-name="row[image]"></ul>
- <!--请注意 ul和textarea间不能存在其它任何元素,实际开发中textarea应该添加个hidden进行隐藏-->
- <!--这里自定义图片预览的模板 开始-->
- <script type="text/html" id="introtpl_e">
- <li class="col-xs-3">
- <a href="<%=fullurl%>" data-url="<%=url%>" target="_blank" class="thumbnail">
- <img src="<%=fullurl%>" class="img-responsive">
- </a>
- <a href="javascript:;" class="btn btn-danger btn-xs btn-trash"><i class="fa fa-trash"></i></a>
- </li>
- </script>
- <!--这里自定义图片预览的模板 结束-->
- </div>
- </div>
- <div class="form-group row">
- <label class="control-label col-xs-12"></label>
- <div class="col-xs-12">
- <button type="submit" class="btn btn-success btn-embossed">{:__('OK')}</button>
- <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
- </div>
- </div>
- </form>
- </div>
- </div>
- </div>
- </div>
|