spec_item.html 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <div class="spec_item_item" style="float:left;margin:5px;width:250px; position: relative">
  2. <input type="hidden" class="form-control spec_item_show" name="spec_item_show_{$spec['id']}[]" value="{$specitem['show']}" />
  3. <input type="hidden" class="form-control spec_item_id" name="spec_item_id_{$spec['id']}[]" value="{$specitem['id']}" />
  4. <div class="input-group">
  5. <span class="input-group-addon">
  6. <input type="checkbox" <?php if($specitem['id']>0){ ?>checked<?php } ?> value="1" onclick='showItem(this)'>
  7. </span>
  8. <input type="text" class="form-control spec_item_title" onblur="refreshOptions()" name="spec_item_title_{$spec['id']}[]" VALUE="{$specitem['title']}" />
  9. <span class="input-group-addon spec_item_thumb <?php if( !empty($specitem['thumb']) ){ ?>has_thumb<?php } ?>">
  10. <input type='hidden' name="spec_item_thumb_{$spec['id']}[]" value="{$specitem['thumb']}"
  11. />
  12. <img onclick="selectSpecItemImage(this)" onerror="this.src='/static/images/nopic100.jpg'"
  13. src="<?php if(empty($specitem['thumb'])){ ?>/static/images/nopic100.jpg<?php }else{ ?>{:tomedia( resize($specitem['thumb'],100) )}<?php } ?>" style='width:100%;'
  14. <?php if( !empty($specitem['thumb']) ){ ?>
  15. data-toggle='popover'
  16. data-html ='true'
  17. data-placement='top'
  18. data-trigger ='hover'
  19. data-content="<img src='{:tomedia($specitem['thumb'])}' style='width:100px;height:100px;' />"
  20. <?php } ?>
  21. >
  22. <i class="fa fa-times-circle" <?php if(empty($specitem['thumb'])){ ?>style="display:none"<?php } ?>></i>
  23. </span>
  24. <span class="input-group-addon">
  25. <a href="javascript:;" onclick="removeSpecItem(this)" title='删除'><i class="fa fa-times"></i></a>
  26. <a href="javascript:;" class="fa fa-arrows" title="拖动调整显示顺序" ></a>
  27. </span>
  28. </div>
  29. </div>