git add stuff
This commit is contained in:
46
simpla/design/html/article_photo.tpl
Normal file
46
simpla/design/html/article_photo.tpl
Normal file
@@ -0,0 +1,46 @@
|
||||
{literal}
|
||||
|
||||
|
||||
<link href="/js/file2/file.css?v=2" media="all" rel="stylesheet" type="text/css" />
|
||||
<script src="/js/file2/uploader.js"></script>
|
||||
<script src="/js/file2/file.js?v=3"></script>
|
||||
<div class="clearfix" style="clear: both;"></div>
|
||||
<hr />
|
||||
<span class="btn fileinput-btn btn-info button_green" style="display: inline-block;" id="art-files-input"><i class="fa fa-plus"> Добавить файл</i>
|
||||
<input type="file" multiple name="file"></span>
|
||||
<div class="well2" style="margin-top: 10px;width: 90%;">
|
||||
|
||||
|
||||
<div class="sx-form-images" style="margin-top: 20px;">
|
||||
{/literal}
|
||||
{foreach from=$article_photos item=ph}
|
||||
<div class="sx-form-preview" style="" data-id="{$ph->id}">
|
||||
<img src="{$ph->img}" style3="width: 120px">
|
||||
|
||||
<div class="sx-move-photo">
|
||||
<img src="/images/move.png">
|
||||
</div>
|
||||
|
||||
<div class="sx-remove-photo">
|
||||
<button type="button" class="btn btn-danger btn-xs sx-form-image-remove" data-id="{$ph->id}"><b>X</b></button>
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
{literal}
|
||||
|
||||
</div>
|
||||
<div class="clearfix" style="clear:both"></div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$(function(){
|
||||
var sxFile = new sxFormFile();
|
||||
{/literal}
|
||||
sxFile.init({$article->id});
|
||||
{literal}
|
||||
})
|
||||
</script>
|
||||
|
||||
{/literal}
|
||||
Reference in New Issue
Block a user