Geen omschrijving
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.

release_iframe.htm 2.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. {include file="public/layout" /}
  2. <body style="background-color:#F1F1F1;overflow: auto;min-width: auto;">
  3. <div id="toolTipLayer" style="position: absolute; z-index: 9999; display: none; visibility: visible; left: 95px; top: 573px;"></div>
  4. <div id="append_parent"></div>
  5. <div id="ajaxwaitid"></div>
  6. <div class="page ksedit" style="min-width: auto;">
  7. <form class="form-horizontal" id="post_form" action="{:url('Archives/release')}" method="post">
  8. <div class="ncap-form-default pb20">
  9. <dl class="row">
  10. <dt class="tit">
  11. <label for="title"><em>*</em>发布至</label>
  12. </dt>
  13. <dd class="opt" style="width: auto;">
  14. <select name="typeid" id="typeid" style="width: 300px;" size="22">
  15. {$select_html}
  16. </select>
  17. <!-- <input type="hidden" name="gourl" value=""> -->
  18. <span class="err"></span>
  19. <p class="notic"></p>
  20. </dd>
  21. </dl>
  22. </div>
  23. </form>
  24. </div>
  25. <script type="text/javascript">
  26. $(function () {
  27. $('#typeid').find('option').click(function(){
  28. var typeid = $('#typeid').val();
  29. if (!typeid) {
  30. layer.alert('请选择栏目…!', {icon:5, title:false}, function(index){
  31. $('#typeid').val('');
  32. layer.close(index);
  33. });
  34. return false;
  35. }
  36. var current_channel = $('#typeid').find('option:selected').attr('data-current_channel');
  37. current_channel = parseInt(current_channel);
  38. var js_allow_channel_arr = {$js_allow_channel_arr};
  39. if ($.inArray(current_channel, js_allow_channel_arr) == -1) {
  40. layer.alert('该栏目模型不允许发布文档!', {icon:5, title:false}, function(index){
  41. $('#typeid').val('');
  42. layer.close(index);
  43. });
  44. return false;
  45. }
  46. var parentObj = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  47. parent.layer.close(parentObj);
  48. var url = "//{$website_host}{$Request.baseFile}?m=admin&c=Archives&a=release&lang={$Request.param.lang}";
  49. if (url.indexOf('?') > -1) {
  50. url += '&';
  51. } else {
  52. url += '?';
  53. }
  54. url += 'typeid=' + typeid;
  55. if (2 === parseInt(current_channel)) {
  56. parent.archivesRelease('Product', {$shopOpen|default='0'}, url);
  57. } else {
  58. var iframe = '{$iframe}';
  59. if (2 === parseInt(iframe)) {
  60. parent.window.location = url;
  61. } else {
  62. parent.content_body.location = url;
  63. }
  64. }
  65. });
  66. });
  67. </script>
  68. {include file="public/footer" /}