%%8E^8E0^8E047F59%%setPage_h5.html.php 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. <?php /* Smarty version 2.6.17, created on 2018-04-19 17:52:30
  2. compiled from admin/activity/setPage_h5.html */ ?>
  3. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  4. $this->_smarty_include(array('smarty_include_tpl_file' => "./admin/header.html", 'smarty_include_vars' => array()));
  5. $this->_tpl_vars = $_smarty_tpl_vars;
  6. unset($_smarty_tpl_vars);
  7. ?>
  8. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  9. $this->_smarty_include(array('smarty_include_tpl_file' => "./admin/left.html", 'smarty_include_vars' => array()));
  10. $this->_tpl_vars = $_smarty_tpl_vars;
  11. unset($_smarty_tpl_vars);
  12. ?>
  13. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  14. $this->_smarty_include(array('smarty_include_tpl_file' => "./admin/nav.html", 'smarty_include_vars' => array()));
  15. $this->_tpl_vars = $_smarty_tpl_vars;
  16. unset($_smarty_tpl_vars);
  17. ?>
  18. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  19. $this->_smarty_include(array('smarty_include_tpl_file' => "get_kindeditor.html", 'smarty_include_vars' => array()));
  20. $this->_tpl_vars = $_smarty_tpl_vars;
  21. unset($_smarty_tpl_vars);
  22. ?>
  23. <style>
  24. .set-nav {
  25. margin: 0 auto;
  26. }
  27. .set-nav-hr {
  28. background-color: #ddd;
  29. height: 1px;
  30. position: relative;
  31. }
  32. .form-group label {
  33. font-weight: 600;
  34. }
  35. .checkbox-inline, .radio-inline {
  36. font-weight: 400!important;
  37. }
  38. .rowlabel {
  39. font-weight: 300!important;
  40. }
  41. .music_play_hide {
  42. display:none;
  43. }
  44. </style>
  45. <div id="activity_container">
  46. <form id="activity_form">
  47. <div class="activity_center">
  48. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  49. $this->_smarty_include(array('smarty_include_tpl_file' => "./admin/activity/common_nav.html", 'smarty_include_vars' => array()));
  50. $this->_tpl_vars = $_smarty_tpl_vars;
  51. unset($_smarty_tpl_vars);
  52. ?>
  53. <input name="events_id" type="hidden" value="<?php echo $this->_tpl_vars['events_Data']['events']['id']; ?>
  54. ">
  55. <div class="panel panel-default">
  56. <div class="panel-body">
  57. <div class="form-group">
  58. <label class="control-label rowlabel">文章标题:</label>
  59. <input name="article_title" class="form-control" type="text" style="width:300px;" value="<?php echo $this->_tpl_vars['eventData']['article_title']; ?>
  60. "/>
  61. </div>
  62. <div class="form-group">
  63. <label class="control-label rowlabel">作者:</label>
  64. <input name="article_author" class="form-control" type="text" style="width:300px;" value="<?php echo $this->_tpl_vars['eventData']['article_author']; ?>
  65. "/>
  66. </div>
  67. <div class="row">
  68. <div class="form-group col-md-2">
  69. <label class="control-label rowlabel">浏览量基数:</label>
  70. <input name="article_pass_base_num" class="form-control" type="text" value="<?php echo $this->_tpl_vars['eventData']['article_pass_base_num']; ?>
  71. "/>
  72. </div>
  73. <div class="form-group col-md-2">
  74. <label class="control-label rowlabel">赞基数:</label>
  75. <input name="article_praise" class="form-control" type="text" value="<?php echo $this->_tpl_vars['eventData']['article_praise']; ?>
  76. "/>
  77. </div>
  78. </div>
  79. <div class="form-group">
  80. <label class="control-label rowlabel">原文链接:</label>
  81. <input name="article_original_url" class="form-control" type="text" style="width:300px;" value="<?php echo $this->_tpl_vars['eventData']['article_original_url']; ?>
  82. "/>
  83. </div>
  84. <div class="form-group">
  85. <label class="control-label rowlabel">正文内容:</label>
  86. <textarea name="article_text" style="width:100%;height:200px;"><?php echo $this->_tpl_vars['eventData']['article_text']; ?>
  87. </textarea>
  88. </div>
  89. <a id="activity_submit" href="javascript:;" class="button button-3d button-primary button-rounded"><i class="fa fa-refresh fa-spin" style="display:none;"></i> 保存设置</a>
  90. </div>
  91. </div>
  92. </div>
  93. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  94. $this->_smarty_include(array('smarty_include_tpl_file' => "./admin/activity/common_right.html", 'smarty_include_vars' => array()));
  95. $this->_tpl_vars = $_smarty_tpl_vars;
  96. unset($_smarty_tpl_vars);
  97. ?>
  98. <div style="clear:both;"></div>
  99. </form>
  100. </div>
  101. <script>
  102. var editor;
  103. KISSY.use('node, io, event, jquery', function (S, Node, IO, Event, jQuery) {
  104. var $ = S.all;
  105. var activity_submit_status = false; //按钮状态
  106. function submit_button_active() {
  107. activity_submit_status = true;
  108. $("#activity_submit").addClass('active').all('i').show();
  109. }
  110. function submit_button_default() {
  111. activity_submit_status = false;
  112. $("#activity_submit").removeClass('active').all('i').hide();
  113. }
  114. $("#activity_submit").on('click', function () {
  115. if (activity_submit_status) {
  116. return false;
  117. }
  118. submit_button_active();
  119. var article_text = editor.html();
  120. $("textarea[name=article_text]").val(article_text);
  121. formData = IO.serialize("#activity_form");
  122. new IO({
  123. type: "post"
  124. , url: VG.conf.root_domain + '/?c=Admin_Activity_SetPage&a=ReqUpArticle'
  125. , data: formData
  126. , success: function (data) {
  127. if (data.ok) { //ok
  128. location.href = location.href;
  129. } else {
  130. alert('操作失败,原因:'+data.msg);
  131. }
  132. return false;
  133. }
  134. , error: function (NULL, textStatus) {
  135. alert("请求服务器失败,原因:"+textStatus);
  136. }
  137. , dataType: "json"
  138. });
  139. });
  140. });
  141. KindEditor.ready(function(K) {
  142. editor = K.create('textarea[name=article_text]', {
  143. allowFileManager : true,
  144. uploadJson : VG.conf.root_domain + '/?c=kindeditor&a=updateJson',
  145. fileManagerJson : VG.conf.root_domain + '/?c=kindeditor&a=fileManagerJson'
  146. });
  147. });
  148. </script>
  149. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  150. $this->_smarty_include(array('smarty_include_tpl_file' => "./admin/bottom.html", 'smarty_include_vars' => array()));
  151. $this->_tpl_vars = $_smarty_tpl_vars;
  152. unset($_smarty_tpl_vars);
  153. ?>