form_ghost_template.html 1.9 KB

1234567891011121314151617181920212223242526272829
  1. <div id="bx-uploader-file-{file_id}" class="bx-uploader-ghost bx-def-margin-sec-top bx-clearfix">
  2. <input type="hidden" name="__name__" value="{file_id}" />
  3. <div class="bx-base-text-icon-wrapper bx-def-margin-sec-right">
  4. <img src="{file_icon}" class="bx-def-round-corners bx-base-text-icon bx-base-text-icon-{file_id}" />
  5. </div>
  6. <span class="bx-base-text-uploader-ghost">
  7. <b><bx_text:_sys_txt_form_entry_input_picture_pic_url /></b>
  8. <br />
  9. <input class="bx-def-font-inputs bx-form-input-text bx-def-margin-sec-bottom" type="text" value="{file_url}" readonly="1" /> <br />
  10. <span id="bx-base-text-intert-to-post-link-{file_id}" style="display:none;">
  11. <a class="bx-btn bx-btn-small bx-def-margin-sec-right" href="javascript:void(0);" onclick="bx_base_text_insert_to_post('{file_id}', '{file_url}', '__editor_id__');"><bx_text:_sys_txt_form_entry_input_picture_insert /></a>
  12. </span>
  13. <a class="bx-btn bx-btn-small bx-def-margin-sec-right" href="javascript:void(0);" onclick="bx_base_text_delete_ghost('{file_id}', '{file_url}', '{file_icon}', '__editor_id__', '__summary_id__', {js_instance_name});"><bx_text:_sys_txt_form_entry_input_picture_delete /></a>
  14. <bx_if:set_thumb>
  15. <span class="bx-base-text-use-as-thumb">
  16. <input type="checkbox" name="__name_thumb__[]" value="{file_id}" onclick="bx_base_text_select_thumb(this)" id="__name_thumb__-{file_id}" />
  17. <label for="__name_thumb__-{file_id}"><bx_text:_sys_txt_form_entry_input_picture_use_as_thumb /></label>
  18. </span>
  19. </bx_if:set_thumb>
  20. </span>
  21. </div>
  22. <script>
  23. if ('object' == typeof(tinymce))
  24. $('#bx-base-text-intert-to-post-link-{file_id}').show();
  25. $('#bx-uploader-file-{file_id} .bx-base-text-use-as-thumb input[value="__thumb_id__"]').attr('checked', true);
  26. </script>