| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129 |
- <!DOCTYPE HTML>
- <html xmlns:th="http://www.thymeleaf.org"
- xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
- layout:decorate="~{admin/common/common}">
- <head>
- <title>企业展示新增</title>
- <style>
- .ke-container-default{width:100% !important}
- </style>
- </head>
- <body layout:fragment="content">
- <article class="page-container">
- <form class="form form-horizontal" id="form-companyShow-edit">
- <input type="hidden" th:id="companyShow_id" th:name="id" th:value="${companyShow.id}"/>
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2">企业名称:</label>
- <div class="formControls col-xs-8 col-sm-9">
- [[${companyShow?.company_name}]]
- </div>
- </div>
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>产品名称:</label>
- <div class="formControls col-xs-8 col-sm-9">
- <input type="text" class="input-text" th:value="${companyShow?.product_name}" th:id="product_name" placeholder="请输入产品名称" th:name="product_name"/>
- </div>
- </div>
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>联系人:</label>
- <div class="formControls col-xs-8 col-sm-9">
- <input type="text" class="input-text" th:id="contact" th:name="contact" th:value="${companyShow?.contact}"/>
- </div>
- </div>
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>联系方式:</label>
- <div class="formControls col-xs-8 col-sm-9">
- <input type="text" class="input-text" th:id="phone" th:name="phone" th:value="${companyShow?.phone}"/>
- </div>
- </div>
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>产品图片:</label>
- <div class="formControls col-xs-8 col-sm-9">
- <div class="uploader-thum-container">
- <div id="fileList" class="uploader-list"></div>
- <div id="filePicker">选择图片</div>
- <div id="fileListPre"></div>
- <input type="hidden" name="file_url" id="img" th:value="${companyShow?.fileDown.file_url}"/>
- <ul class="gallery" style="float:left; margin-left: 10px;">
- <li>
- <a th:href="${fileUrl} +${companyShow?.fileDown.file_url}"><img th:src="${fileUrl} +${companyShow?.fileDown.file_url}" width=200/></a>
- </li>
- </ul>
- </div>
- </div>
- </div>
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>产品介绍:</label>
- <div class="formControls col-xs-8 col-sm-9">
- <textarea id="description" name="description" cols="" rows="" class="textarea" placeholder="说点什么...">[[${companyShow?.description}]]</textarea>
- </div>
- </div>
-
- <div class="row cl">
- <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
- <button class="btn btn-primary radius" type="submit"><i class="Hui-iconfont"></i>提交</button>
- <button onClick="removeIframe();" class="btn btn-default radius" type="button"> 取消 </button>
- </div>
-
- </div>
- </form>
- </article>
- <script type="text/javascript" th:src="@{/js/common/zoom.min.js}"></script>
- <script type="text/javascript" th:src="@{/js/build/company/company_show_add.js}"></script>
- <script th:inline="javascript">
- $(function () {
- // 初始化图片上传
- var options = {
- auto: false,
- uploadBtnId: '#filePicker',
- picturePreId: 'fileListPre',
- hiddenPictureUrl: 'fileDown.file_id',
- hiddenPictureName: 'imgName',
- accept: {
- title: 'Images',
- extensions: 'gif,jpg,jpeg,bmp,png',
- mimeTypes: 'image/gif,image/jpg,image/jpeg,image/bmp,image/png'
- },
- width: 81,
- height: 81,
- fileSizeLimit: 100 * 1024 * 1024,
- fileSingleSizeLimit: 100 * 1024 * 1024,
- append:false
- };
- var webUploadPicture = new $WebUploadPicture(options);
- webUploadPicture.init();
- //富文本kindeditor初始化
- var editor;
- KindEditor.ready(function (K) {
- editor = K.create('#description', {
- uploadJson: pagePath+'/upload/kindEditorUpload',
- allowFileManager: false,
- allowUpload: true,
- width: "750px",
- height: "350px",
- items:array,
- afterBlur: function () {
- this.sync();
- }
- });
- });
-
-
- });
- /**
- * 取消
- */
- function removeIframe() {
- var index = parent.layer.getFrameIndex(window.name);
- parent.layer.close(index);
- }
-
- </script>
- </body>
- </html>
|