正在显示
1 个修改的文件
包含
7 行增加
和
83 行删除
@@ -39,31 +39,12 @@ | @@ -39,31 +39,12 @@ | ||
39 | <div class="row"> | 39 | <div class="row"> |
40 | <div class="col-md-9"> | 40 | <div class="col-md-9"> |
41 | <table class="table table-bordered"> | 41 | <table class="table table-bordered"> |
42 | - <tr> | ||
43 | - <th width="100">分类<span class="form-required">*</span></th> | ||
44 | - <td> | ||
45 | - <input class="form-control" type="text" style="width:400px;" required | ||
46 | - value="{:implode(' ',$post_categories)}" | ||
47 | - placeholder="请选择分类" onclick="doSelectCategory();" id="js-categories-name-input" | ||
48 | - readonly/> | ||
49 | - <input class="form-control" type="hidden" value="{$post_category_ids}" | ||
50 | - name="post[categories]" | ||
51 | - id="js-categories-id-input"/> | ||
52 | - </td> | ||
53 | - </tr> | ||
54 | - <tr> | ||
55 | - <th>标题<span class="form-required">*</span></th> | ||
56 | - <td> | ||
57 | - <input type="hidden" name="post[id]" value="{$post.id}"> | ||
58 | - <input class="form-control" type="text" name="post[post_title]" | ||
59 | - required value="{$post.post_title}" placeholder="请输入标题"/> | ||
60 | - </td> | ||
61 | - </tr> | 42 | + |
62 | <tr> | 43 | <tr> |
63 | <th>关键词</th> | 44 | <th>关键词</th> |
64 | <td> | 45 | <td> |
65 | <input class="form-control" type="text" name="post[post_keywords]" | 46 | <input class="form-control" type="text" name="post[post_keywords]" |
66 | - value="{$post['post_keywords']}" placeholder="请输入关键字"> | 47 | + value="" placeholder="请输入关键字"> |
67 | <p class="help-block">多关键词之间用英文逗号隔开</p> | 48 | <p class="help-block">多关键词之间用英文逗号隔开</p> |
68 | </td> | 49 | </td> |
69 | </tr> | 50 | </tr> |
@@ -71,71 +52,20 @@ | @@ -71,71 +52,20 @@ | ||
71 | <th>文章来源</th> | 52 | <th>文章来源</th> |
72 | <td> | 53 | <td> |
73 | <input class="form-control" type="text" name="post[post_source]" | 54 | <input class="form-control" type="text" name="post[post_source]" |
74 | - value="{$post['post_source']}" placeholder="请输入文章来源"> | 55 | + value="" placeholder="请输入文章来源"> |
75 | </td> | 56 | </td> |
76 | </tr> | 57 | </tr> |
77 | <tr> | 58 | <tr> |
78 | <th>摘要</th> | 59 | <th>摘要</th> |
79 | <td> | 60 | <td> |
80 | <textarea class="form-control" name="post[post_excerpt]" style="height: 50px;" | 61 | <textarea class="form-control" name="post[post_excerpt]" style="height: 50px;" |
81 | - placeholder="请填写摘要">{$post.post_excerpt}</textarea> | 62 | + placeholder="请填写摘要"></textarea> |
82 | </td> | 63 | </td> |
83 | </tr> | 64 | </tr> |
84 | <tr> | 65 | <tr> |
85 | <th>内容</th> | 66 | <th>内容</th> |
86 | <td> | 67 | <td> |
87 | - <script type="text/plain" id="content" name="post[post_content]">{$post.post_content}</script> | ||
88 | - </td> | ||
89 | - </tr> | ||
90 | - <tr> | ||
91 | - <th>相册</th> | ||
92 | - <td> | ||
93 | - <ul id="photos" class="pic-list list-unstyled form-inline"> | ||
94 | - <notempty name="post.more.photos"> | ||
95 | - <foreach name="post.more.photos" item="vo"> | ||
96 | - <php>$img_url=cmf_get_image_preview_url($vo['url']);</php> | ||
97 | - <li id="saved-image{$key}"> | ||
98 | - <input id="photo-{$key}" type="hidden" name="photo_urls[]" | ||
99 | - value="{$vo.url}"> | ||
100 | - <input class="form-control" id="photo-{$key}-name" type="text" | ||
101 | - name="photo_names[]" | ||
102 | - value="{$vo.name|default=''}" style="width: 200px;" title="图片名称"> | ||
103 | - <img id="photo-{$key}-preview" | ||
104 | - src="{:cmf_get_image_preview_url($vo['url'])}" | ||
105 | - style="height:36px;width: 36px;" | ||
106 | - onclick="parent.imagePreviewDialog(this.src);"> | ||
107 | - <a href="javascript:uploadOneImage('图片上传','#photo-{$key}');">替换</a> | ||
108 | - <a href="javascript:(function(){$('#saved-image{$key}').remove();})();">移除</a> | ||
109 | - </li> | ||
110 | - </foreach> | ||
111 | - </notempty> | ||
112 | - </ul> | ||
113 | - <a href="javascript:uploadMultiImage('图片上传','#photos','photos-item-tpl');" | ||
114 | - class="btn btn-sm btn-default">选择图片</a> | ||
115 | - </td> | ||
116 | - </tr> | ||
117 | - <tr> | ||
118 | - <th>附件</th> | ||
119 | - <td> | ||
120 | - <ul id="files" class="pic-list list-unstyled form-inline"> | ||
121 | - <notempty name="post.more.files"> | ||
122 | - <foreach name="post.more.files" item="vo"> | ||
123 | - <php>$file_url=cmf_get_file_download_url($vo['url']);</php> | ||
124 | - <li id="saved-file{$key}"> | ||
125 | - <input id="file-{$key}" type="hidden" name="file_urls[]" | ||
126 | - value="{$vo.url}"> | ||
127 | - <input class="form-control" id="file-{$key}-name" type="text" | ||
128 | - name="file_names[]" | ||
129 | - value="{$vo.name}" style="width: 200px;" title="图片名称"> | ||
130 | - <a id="file-{$key}-preview" href="{$file_url}" target="_blank">下载</a> | ||
131 | - <a href="javascript:uploadOne('图片上传','#file-{$key}');">替换</a> | ||
132 | - <a href="javascript:(function(){$('#saved-file{$key}').remove();})();">移除</a> | ||
133 | - </li> | ||
134 | - </foreach> | ||
135 | - </notempty> | ||
136 | - </ul> | ||
137 | - <a href="javascript:uploadMultiFile('附件上传','#files','files-item-tpl');" | ||
138 | - class="btn btn-sm btn-default">选择文件</a> | 68 | + <script type="text/plain" id="content" name="post[post_content]"></script> |
139 | </td> | 69 | </td> |
140 | </tr> | 70 | </tr> |
141 | </table> | 71 | </table> |
@@ -149,17 +79,11 @@ | @@ -149,17 +79,11 @@ | ||
149 | <td> | 79 | <td> |
150 | <div style="text-align: center;"> | 80 | <div style="text-align: center;"> |
151 | <input type="hidden" name="post[more][thumbnail]" id="thumbnail" | 81 | <input type="hidden" name="post[more][thumbnail]" id="thumbnail" |
152 | - value="{$post.more.thumbnail|default=''}"> | 82 | + value=""> |
153 | <a href="javascript:uploadOneImage('图片上传','#thumbnail');"> | 83 | <a href="javascript:uploadOneImage('图片上传','#thumbnail');"> |
154 | - <if condition="empty($post.more.thumbnail)"> | ||
155 | <img src="__TMPL__/public/assets/images/default-thumbnail.png" | 84 | <img src="__TMPL__/public/assets/images/default-thumbnail.png" |
156 | id="thumbnail-preview" | 85 | id="thumbnail-preview" |
157 | width="135" style="cursor: pointer"/> | 86 | width="135" style="cursor: pointer"/> |
158 | - <else/> | ||
159 | - <img src="{:cmf_get_image_preview_url($post.more.thumbnail)}" | ||
160 | - id="thumbnail-preview" | ||
161 | - width="135" style="cursor: pointer"/> | ||
162 | - </if> | ||
163 | </a> | 87 | </a> |
164 | <input type="button" class="btn btn-sm btn-cancel-thumbnail" value="取消图片"> | 88 | <input type="button" class="btn btn-sm btn-cancel-thumbnail" value="取消图片"> |
165 | </div> | 89 | </div> |
@@ -171,7 +95,7 @@ | @@ -171,7 +95,7 @@ | ||
171 | <tr> | 95 | <tr> |
172 | <td> | 96 | <td> |
173 | <input class="form-control js-bootstrap-datetime" type="text" name="post[published_time]" | 97 | <input class="form-control js-bootstrap-datetime" type="text" name="post[published_time]" |
174 | - value="{:date('Y-m-d H:i',$post['published_time'])}"> | 98 | + value=""> |
175 | </td> | 99 | </td> |
176 | </tr> | 100 | </tr> |
177 | <!-- | 101 | <!-- |
-
请 注册 或 登录 后发表评论