No Description
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.

html.htm 4.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. {include file="public/layout" /}
  2. <body class="bodystyle">
  3. <div id="append_parent"></div>
  4. <div id="ajaxwaitid"></div>
  5. <div class="page">
  6. {include file="seo/bar" /}
  7. <form method="get" id="handlepost" name="form1">
  8. <div class="ncap-form-default">
  9. <dl class="row">
  10. <dt class="tit">
  11. <label>整站页面</label>
  12. </dt>
  13. <dd class="opt">
  14. <a href="javascript:void(0);" id="up_site" class="ncap-btn ncap-btn-green">一键生成</a>
  15. <span class="err"></span>
  16. <p class="notic"></p>
  17. </dd>
  18. </dl>
  19. <dl class="row">
  20. <dt class="tit">
  21. <label>首页</label>
  22. </dt>
  23. <dd class="opt">
  24. <a href="javascript:void(0);" id="up_index" class="ncap-btn ncap-btn-green">一键生成</a>
  25. <span class="err"></span>
  26. <p class="notic"></p>
  27. </dd>
  28. </dl>
  29. <dl class="row">
  30. <dt class="tit">栏目页</dt>
  31. <dd class="opt">
  32. <select name="html_typeid" id="html_typeid">
  33. <option value="0">所有栏目…</option>
  34. {$select_html}
  35. </select>
  36. &nbsp;<a href="javascript:void(0);" id="up_channel" class="ncap-btn ncap-btn-green">一键生成</a>
  37. <p class="notic"></p>
  38. </dd>
  39. </dl>
  40. <dl class="row">
  41. <dt class="tit">文档页</dt>
  42. <dd class="opt">
  43. <select name="html_arc_typeid" id="html_arc_typeid">
  44. <option value="0">所有文档…</option>
  45. {$arc_select_html}
  46. </select>
  47. &nbsp;<a href="javascript:void(0);" id="up_article" class="ncap-btn ncap-btn-green">一键生成</a>
  48. <p class="notic"></p>
  49. </dd>
  50. </dl>
  51. </div>
  52. </form>
  53. </div>
  54. <script type="text/javascript">
  55. $(function(){
  56. //生成首页
  57. $("#up_index").click(function(){
  58. // $(".listbox").html('');
  59. var timestamp1 = Date.parse(new Date());
  60. $.ajax({
  61. url:__root_dir__+"/index.php?m=home&c=Buildmhtml&a=buildIndex",
  62. type:'POST',
  63. dataType:'json',
  64. data: {_ajax:1},
  65. beforeSend:function(){
  66. layer_loading('正在处理');
  67. // var index = layer.load(0, {shade: false});
  68. },
  69. success:function(data){
  70. if(data.msg !== ""){
  71. layer.alert(data.msg, {icon: 5, title:false,closeBtn: 0 },function () {
  72. layer.closeAll();
  73. } );
  74. // layer.closeAll();
  75. }else{
  76. // $(".listbox").prepend(data.msg);
  77. layer.closeAll();
  78. var timestamp2 = Date.parse(new Date());
  79. var timestamp3 = (timestamp2 - timestamp1) / 1000;
  80. if (timestamp3 < 1) timestamp3 = 1;
  81. layer.msg("生成完毕,共耗时:<font color='red'>"+timestamp3+"</font> 秒",{icon:1,time:2000});
  82. }
  83. },
  84. complete:function(){
  85. // layer.alert(1, {icon: 5, title:false});
  86. }
  87. });
  88. })
  89. //生成栏目页
  90. $("#up_channel").click(function(){
  91. var typeid = $("#html_typeid").val(); //栏目id
  92. var url = eyou_basefile+"?m=admin&c=Seo&a=channel&action=buildChannel&id="+typeid+"&lang="+__lang__;
  93. var index = layer.open({type: 2,title: '开始生成',area: ['500px', '300px'],fix: false, maxmin: false,content: url});
  94. })
  95. //生成文章页
  96. $("#up_article").click(function(){
  97. var typeid = $("#html_arc_typeid").val(); //栏目id
  98. var url = eyou_basefile+"?m=admin&c=Seo&a=channel&action=buildArticle&id="+typeid+"&lang="+__lang__;
  99. var index = layer.open({type: 2,title: '开始生成',area: ['500px', '300px'],fix: false, maxmin: false,content: url});
  100. })
  101. //生成整站
  102. $("#up_site").click(function(){
  103. var url = eyou_basefile+"?m=admin&c=Seo&a=site&lang="+__lang__;
  104. var index = layer.open({type: 2,title: '开始生成',area: ['500px', '300px'],fix: false, maxmin: false,content: url});
  105. })
  106. })
  107. </script>
  108. {include file="public/footer" /}