image.html 1.2 KB

123456789101112131415161718192021
  1. <div class="form-group col-lg-12 col-md-12 col-sm-12 col-xs-12" id="form_group_{$form.name}">
  2. <div class="col-xs-12 label-title" for="{$form.name}">{$form.title|htmlspecialchars}</div>
  3. <div class="col-xs-12 js-upload-image">
  4. <div id="file_list_{$form.name}" class="uploader-list" style="float:left">
  5. {notempty name="form.value"}
  6. <div class="file-item thumbnail">
  7. <a data-magnify="gallery" data-caption="" href="{$form['value']|get_file_url}">
  8. <img data-original="" src="{$form['value']|get_thumb}" width="100">
  9. </a>
  10. <i class="fa fa-times-circle remove-picture"></i>
  11. </div>
  12. {/notempty}
  13. </div>
  14. <input type="hidden" name="{$form.name}" data-multiple="false" data-watermark='{$form["watermark"]|default=""}' data-thumb='{$form["thumb"]|default=""}' data-size="{$form['size']|default=0}" data-ext='{$form["ext"]|default=""}' id="{$form.name}" value="{$form.value|default=''}">
  15. <div style="float:left" id="picker_{$form.name}">载入中...</div>
  16. <div class="clearfix"></div>
  17. {notempty name="form.tips"}
  18. <div class="help-block">{$form.tips}</div>
  19. {/notempty}
  20. </div>
  21. </div>