...
|
...
|
@@ -43,7 +43,41 @@ |
|
|
<input class="form-control" type="hidden" value="{$categories}" name="post[categories]"
|
|
|
id="js-categories-id-input"/>
|
|
|
<tr>
|
|
|
<th width="100">权重</th>
|
|
|
<th width="100">标题<span class="form-required">*</span></th>
|
|
|
<td>
|
|
|
<input class="form-control" type="text" name="post[post_title]"
|
|
|
required value="{$post.post_title}" placeholder="请输入标题"/>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<th>相册<span class="form-required">*</span></th>
|
|
|
<td>
|
|
|
<ul id="photos" class="pic-list list-unstyled form-inline">
|
|
|
<notempty name="post.more.photos">
|
|
|
<foreach name="post.more.photos" item="vo">
|
|
|
<php>$img_url=cmf_get_image_preview_url($vo['url']);</php>
|
|
|
<li id="saved-image{$key}">
|
|
|
<input id="photo-{$key}" type="hidden" name="photo_urls[]"
|
|
|
value="{$vo.url}">
|
|
|
<input class="form-control" id="photo-{$key}-name" type="text"
|
|
|
name="photo_names[]"
|
|
|
value="{$vo.name|default=''}" style="width: 200px;" title="图片名称">
|
|
|
<img id="photo-{$key}-preview"
|
|
|
src="{:cmf_get_image_preview_url($vo['url'])}"
|
|
|
style="height:36px;width: 36px;"
|
|
|
onclick="parent.imagePreviewDialog(this.src);">
|
|
|
<a href="javascript:uploadOneImage('图片上传','#photo-{$key}');">替换</a>
|
|
|
<a href="javascript:(function(){$('#saved-image{$key}').remove();})();">移除</a>
|
|
|
</li>
|
|
|
</foreach>
|
|
|
</notempty>
|
|
|
</ul>
|
|
|
<a href="javascript:uploadMultiImage('图片上传','#photos','photos-item-tpl');"
|
|
|
class="btn btn-sm btn-default">选择图片</a>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<th>权重</th>
|
|
|
<td>
|
|
|
<input class="form-control" type="number" name="post[weigh]" value="{$post.weigh}">
|
|
|
</td>
|
...
|
...
|
|