|
|
1
|
+<include file="public@header"/>
|
|
|
2
|
+</head>
|
|
|
3
|
+<body>
|
|
|
4
|
+<!--<script type="text/html" id="photos-item-tpl">-->
|
|
|
5
|
+<!--<li id="saved-image{id}">-->
|
|
|
6
|
+<!--<input id="photo-{id}" type="hidden" name="photo_urls[]" value="{filepath}">-->
|
|
|
7
|
+<!--<input class="form-control" id="photo-{id}-name" type="text" name="photo_names[]" value="{name}"-->
|
|
|
8
|
+<!--style="width: 200px;" title="图片名称">-->
|
|
|
9
|
+<!--<img id="photo-{id}-preview" src="{url}" style="height:36px;width: 36px;"-->
|
|
|
10
|
+<!--onclick="imagePreviewDialog(this.src);">-->
|
|
|
11
|
+<!--<a href="javascript:uploadOneImage('图片上传','#photo-{id}');">替换</a>-->
|
|
|
12
|
+<!--<a href="javascript:(function(){$('#saved-image{id}').remove();})();">移除</a>-->
|
|
|
13
|
+<!--</li>-->
|
|
|
14
|
+<!--</script>-->
|
|
|
15
|
+<div class="wrap js-check-wrap">
|
|
|
16
|
+ <ul class="nav nav-tabs">
|
|
|
17
|
+ <li><a href="{:url('about/index')}">关于我们</a></li>
|
|
|
18
|
+ <li class="active"><a href="#">编辑</a></li>
|
|
|
19
|
+ </ul>
|
|
|
20
|
+ <form action="{:url('about/edit')}" method="post" class="form-horizontal js-ajax-form margin-top-20">
|
|
|
21
|
+ <div class="row">
|
|
|
22
|
+ <div class="col-md-9">
|
|
|
23
|
+ <table class="table table-bordered">
|
|
|
24
|
+ <input type="hidden" name="id" value="{$data.id}">
|
|
|
25
|
+ <tr>
|
|
|
26
|
+ <th width="110">页面内容<span class="form-required">*</span></th>
|
|
|
27
|
+ <td>
|
|
|
28
|
+ <script type="text/plain" id="content" name="content">{:cmf_replace_content_file_url(htmlspecialchars_decode($data.content))}</script>
|
|
|
29
|
+ </td>
|
|
|
30
|
+ </tr>
|
|
|
31
|
+ <!--<tr>-->
|
|
|
32
|
+ <!--<th>相册</th>-->
|
|
|
33
|
+ <!--<td>-->
|
|
|
34
|
+ <!--<ul id="photos" class="pic-list list-unstyled form-inline">-->
|
|
|
35
|
+ <!--<notempty name="product.more.photos">-->
|
|
|
36
|
+ <!--<foreach name="product.more.photos" item="vo">-->
|
|
|
37
|
+ <!--<li id="saved-image{$key}">-->
|
|
|
38
|
+ <!--<input id="photo-{$key}" type="hidden" name="photo_urls[]"-->
|
|
|
39
|
+ <!--value="{$vo.url}">-->
|
|
|
40
|
+ <!--<input class="form-control" id="photo-{$key}-name" type="text"-->
|
|
|
41
|
+ <!--name="photo_names[]"-->
|
|
|
42
|
+ <!--value="{$vo.name|default=''}" style="width: 200px;" title="图片名称">-->
|
|
|
43
|
+ <!--<img id="photo-{$key}-preview"-->
|
|
|
44
|
+ <!--src="{:cmf_get_image_preview_url($vo['url'])}"-->
|
|
|
45
|
+ <!--style="height:36px;width: 36px;"-->
|
|
|
46
|
+ <!--onclick="parent.imagePreviewDialog(this.src);">-->
|
|
|
47
|
+ <!--<a href="javascript:uploadOneImage('图片上传','#photo-{$key}');">替换</a>-->
|
|
|
48
|
+ <!--<a href="javascript:(function(){$('#saved-image{$key}').remove();})();">移除</a>-->
|
|
|
49
|
+ <!--</li>-->
|
|
|
50
|
+ <!--</foreach>-->
|
|
|
51
|
+ <!--</notempty>-->
|
|
|
52
|
+ <!--</ul>-->
|
|
|
53
|
+ <!--<a href="javascript:uploadMultiImage('图片上传','#photos','photos-item-tpl');"-->
|
|
|
54
|
+ <!--class="btn btn-sm btn-default">选择图片</a>-->
|
|
|
55
|
+ <!--</td>-->
|
|
|
56
|
+ <!--</tr>-->
|
|
|
57
|
+ </table>
|
|
|
58
|
+ <div class="form-group">
|
|
|
59
|
+ <div class="col-sm-offset-2 col-sm-10">
|
|
|
60
|
+ <button type="submit" class="btn btn-primary js-ajax-submit">{:lang('SAVE')}</button>
|
|
|
61
|
+ <a class="btn btn-default" href="{:url('about/index')}">{:lang('BACK')}</a>
|
|
|
62
|
+ </div>
|
|
|
63
|
+ </div>
|
|
|
64
|
+ </div>
|
|
|
65
|
+ <div class="col-md-3">
|
|
|
66
|
+ <table class="table table-bordered">
|
|
|
67
|
+ <tr>
|
|
|
68
|
+ <th>缩略图<span class="form-required">*</span></th>
|
|
|
69
|
+ </tr>
|
|
|
70
|
+ <tr>
|
|
|
71
|
+ <td>
|
|
|
72
|
+ <div style="text-align: center;">
|
|
|
73
|
+ <input type="hidden" name="thumbnail" id="thumbnail"
|
|
|
74
|
+ value="{$data.thumbnail|default=''}">
|
|
|
75
|
+ <a href="javascript:uploadOneImage('image upload','#thumbnail');">
|
|
|
76
|
+ <if condition="empty($data['thumbnail'])">
|
|
|
77
|
+ <img src="__TMPL__/public/assets/images/default-thumbnail.png"
|
|
|
78
|
+ id="thumbnail-preview"
|
|
|
79
|
+ width="135" style="cursor: pointer"/>
|
|
|
80
|
+ <else/>
|
|
|
81
|
+ <img src="{:cmf_get_image_url($data.thumbnail)}"
|
|
|
82
|
+ id="thumbnail-preview"
|
|
|
83
|
+ width="135" style="cursor: pointer"/>
|
|
|
84
|
+ </if>
|
|
|
85
|
+ </a>
|
|
|
86
|
+ <input type="button" class="btn btn-sm btn-cancel-thumbnail"
|
|
|
87
|
+ value="取消图片">
|
|
|
88
|
+ </div>
|
|
|
89
|
+ </td>
|
|
|
90
|
+ </tr>
|
|
|
91
|
+ </table>
|
|
|
92
|
+ </div>
|
|
|
93
|
+ </div>
|
|
|
94
|
+ </form>
|
|
|
95
|
+</div>
|
|
|
96
|
+<script type="text/javascript" src="__STATIC__/js/admin.js"></script>
|
|
|
97
|
+<script type="text/javascript">
|
|
|
98
|
+ //编辑器路径定义
|
|
|
99
|
+ var editorURL = GV.WEB_ROOT;
|
|
|
100
|
+</script>
|
|
|
101
|
+<script type="text/javascript" src="__STATIC__/js/ueditor/ueditor.config.js"></script>
|
|
|
102
|
+<script type="text/javascript" src="__STATIC__/js/ueditor/ueditor.all.min.js"></script>
|
|
|
103
|
+<script type="text/javascript">
|
|
|
104
|
+ $(function () {
|
|
|
105
|
+
|
|
|
106
|
+ editorcontent = new baidu.editor.ui.Editor();
|
|
|
107
|
+ editorcontent.render('content');
|
|
|
108
|
+ try {
|
|
|
109
|
+ editorcontent.sync();
|
|
|
110
|
+ } catch (err) {
|
|
|
111
|
+ }
|
|
|
112
|
+
|
|
|
113
|
+ $('.btn-cancel-thumbnail').click(function () {
|
|
|
114
|
+ $('#thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png');
|
|
|
115
|
+ $('#thumbnail').val('');
|
|
|
116
|
+ });
|
|
|
117
|
+
|
|
|
118
|
+ });
|
|
|
119
|
+</script>
|
|
|
120
|
+</body>
|
|
|
121
|
+</html> |