暫無描述
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

htmlfilename_index.htm 3.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. {include file="public/layout" /}
  2. <body class="bodystyle" style="cursor: default; -moz-user-select: inherit;">
  3. <div id="append_parent"></div>
  4. <div id="ajaxwaitid"></div>
  5. <div class="page min-hg-c-10">
  6. {include file="foreign/bar" /}
  7. <form class="form-horizontal" id="post_form" method="post">
  8. <div class="ncap-form-default">
  9. <dl class="row">
  10. <dt class="tit">
  11. <label>更新文档URL</label>
  12. </dt>
  13. <dd class="opt">
  14. <label class="curpoin"><input type="radio" name="foreign_htmlfilename_mode" value="0" {if condition="empty($foreignData.foreign_htmlfilename_mode)"} checked="checked" {/if} onclick="select2Format(this);">外贸文档名</label>&nbsp;&nbsp;
  15. <label class="curpoin"><input type="radio" name="foreign_htmlfilename_mode" value="1" {if condition="!empty($foreignData.foreign_htmlfilename_mode)"} checked="checked" {/if} onclick="select2Format(this);">ID文档名</label>&nbsp;&nbsp;
  16. <span class="err"></span>
  17. <p class="notic2 {if condition="!empty($foreignData.foreign_htmlfilename_mode)"} none {/if}" id="notic_foreign_htmlfilename_mode_0">以文档标题的中文拼音或英文作为结尾文件名,示例:{$Request.domain}__ROOT_DIR__/news/wenzhangbiaoti.html</p>
  18. <p class="notic2 {if condition="empty($foreignData.foreign_htmlfilename_mode)"} none {/if}" id="notic_foreign_htmlfilename_mode_1">以文档ID作为结尾文件名,示例:{$Request.domain}__ROOT_DIR__/news/123.html</p>
  19. </dd>
  20. </dl>
  21. <div class="bot">
  22. <a class="ncap-btn-big ncap-btn-green" type="button" id="submitBtn" onclick="handle_archives(this);">开始更新</a>
  23. </div>
  24. </div>
  25. </form>
  26. </div>
  27. <script type="text/javascript">
  28. function select2Format(obj)
  29. {
  30. $('#notic_foreign_htmlfilename_mode_0').hide();
  31. $('#notic_foreign_htmlfilename_mode_1').hide();
  32. if ($('input[name=foreign_htmlfilename_mode]:checked').val() == 0) {
  33. $('#notic_foreign_htmlfilename_mode_0').show();
  34. } else {
  35. $('#notic_foreign_htmlfilename_mode_1').show();
  36. }
  37. }
  38. /**
  39. * 批量更新URL
  40. */
  41. function handle_archives(obj)
  42. {
  43. var foreign_htmlfilename_mode = $('input[name=foreign_htmlfilename_mode]:checked').val();
  44. var confirm = layer.confirm('批量更新文档成外贸链接,是否更新?', {
  45. shade: layer_shade,
  46. area: ['480px', '190px'],
  47. move: false,
  48. title: '提示',
  49. btnAlign:'r',
  50. closeBtn: 3,
  51. btn: ['确认', '取消'], //按钮
  52. success: function () {
  53. $(".layui-layer-content").css('text-align', 'left');
  54. }
  55. }, function () {
  56. layer.close(confirm);
  57. var url = "{:url('Foreign/htmlfilename_handel')}";
  58. if (url.indexOf('?') > -1) {
  59. url += '&';
  60. } else {
  61. url += '?';
  62. }
  63. url += 'foreign_htmlfilename_mode='+foreign_htmlfilename_mode;
  64. var index = layer.open({type: 2,title: '开始更新',area: ['500px', '300px'],fix: false, maxmin: false,content: url});
  65. }, function (index) {
  66. layer.closeAll(index);
  67. });
  68. }
  69. </script>
  70. {include file="public/footer" /}