...
|
...
|
@@ -15,6 +15,19 @@ |
|
|
<a href="javascript:(function(){$('#saved-image{id}').remove();})();">移除</a>
|
|
|
</li>
|
|
|
</script>
|
|
|
<!--移动端相册-->
|
|
|
<script type="text/html" id="m_photos-item-tpl">
|
|
|
<li id="m_saved-image{id}">
|
|
|
<input id="m_photo-{id}" type="hidden" name="m_photo_urls[]" value="{filepath}">
|
|
|
<input class="form-control" id="m_photo-{id}-name" type="text" name="m_photo_names[]" value="{name}"
|
|
|
style="width: 200px;" title="图片名称">
|
|
|
<img id="m_photo-{id}-preview" src="{url}" style="height:36px;width: 36px;"
|
|
|
onclick="imagePreviewDialog(this.src);">
|
|
|
<a href="javascript:uploadOneImage('图片上传','#m_photo-{id}');">替换</a>
|
|
|
<a href="javascript:(function(){$('#m_saved-image{id}').remove();})();">移除</a>
|
|
|
</li>
|
|
|
</script>
|
|
|
|
|
|
<script type="text/html" id="files-item-tpl">
|
|
|
<li id="saved-file{id}">
|
|
|
<input id="file-{id}" type="hidden" name="file_urls[]" value="{filepath}">
|
...
|
...
|
@@ -77,6 +90,36 @@ |
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<th>移动相册<span class="form-required">*</span></th>
|
|
|
<td>
|
|
|
<ul id="m_photos" class="pic-list list-unstyled form-inline">
|
|
|
<notempty name="post.more.m_photos">
|
|
|
<foreach name="post.more.m_photos" item="vo">
|
|
|
<php>$img_url=cmf_get_image_preview_url($vo['url']);</php>
|
|
|
<li id="m_saved-image{$key}">
|
|
|
<input id="m_photo-{$key}" type="hidden" name="m_photo_urls[]"
|
|
|
value="{$vo.url}">
|
|
|
<input class="form-control" id="m_photo-{$key}-name" type="text"
|
|
|
name="m_photo_names[]"
|
|
|
value="{$vo.name|default=''}" style="width: 200px;" title="图片名称">
|
|
|
<img id="m_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('图片上传','#m_photos-{$key}');">替换</a>
|
|
|
<a href="javascript:(function(){$('#m_saved-image{$key}').remove();})();">移除</a>
|
|
|
</li>
|
|
|
</foreach>
|
|
|
</notempty>
|
|
|
</ul>
|
|
|
<a href="javascript:uploadMultiImage('图片上传','#m_photos','m_photos-item-tpl');"
|
|
|
class="btn btn-sm btn-default">选择图片</a>
|
|
|
<div style="margin-top:30px;">
|
|
|
<span class="form-required">图片参考尺寸:420*740</span>
|
|
|
</div>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<th>权重</th>
|
|
|
<td>
|
|
|
<input class="form-control" type="number" name="post[weigh]" value="{$post.weigh}">
|
...
|
...
|
|