info_upgrade.tpl.php 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  1. <?php
  2. include mymps_tpl('inc_header');
  3. echo '<style>.refreshed{ margin-left:5px;}</style>
  4. <link rel="stylesheet" type="text/css" href="template/css/new.exchange.css" />
  5. <link rel="stylesheet" type="text/css" href="template/css/new.my.css" />
  6. <script language="javascript" src="template/javascript.js"></script>
  7. </head>
  8. <body class="';
  9. echo $mymps_global['cfg_tpl_dir'];
  10. echo '">
  11. <div class="container">
  12. ';
  13. include mymps_tpl('inc_head');
  14. echo ' <div id="main" class="main section-setting">
  15. <div class="clearfix main-inner">
  16. <div class="content">
  17. <div class="clearfix content-inner">
  18. <div class="content-main">
  19. <div class="content-main-inner">
  20. <div class="pwrap">
  21. <div class="phead"><div class="phead-inner"><div class="phead-inner">
  22. <h3 class="ptitle"><span>置顶服务介绍</span></h3>
  23. <p class="pextra"><a href="?m=info&type=corp"><span>&laquo; 返回信息列表</span></a></p>
  24. </div></div></div>
  25. <div class="pbody">
  26. <div class="cleafix pagetab-wrap">
  27. <ul class="pagetab">
  28. <li><a href="?m=info&ac=upgrade&id=';
  29. echo $id;
  30. echo '&upgrade=cat&type=corp" ';
  31. if ($upgrade == 'cat') {
  32. echo 'class="current"';
  33. }
  34. echo '><span>大类置顶</span></a></li>
  35. <li><a href="?m=info&ac=upgrade&id=';
  36. echo $id;
  37. echo '&upgrade=list&type=corp" ';
  38. if ($upgrade == 'list') {
  39. echo 'class="current"';
  40. }
  41. echo '><span>小类置顶</span></a></li>
  42. <li><a href="?m=info&ac=upgrade&id=';
  43. echo $id;
  44. echo '&upgrade=index&type=corp" ';
  45. if ($upgrade == 'index') {
  46. echo 'class="current"';
  47. }
  48. echo '><span>上首页</span></a></li>
  49. </ul>
  50. </div>
  51. <div id="msg_success"></div>
  52. <div id="msg_error"></div>
  53. ';
  54. if ($upgrade == 'cat') {
  55. echo ' <div class="upgradetd">
  56. <div class="introTitle"><span class="t1">大类置顶</span><br>
  57. <span class="t2">1天仅需';
  58. echo $mymps_global[cfg_member_upgrade_top];
  59. echo '金币</span></div>
  60. <div class="t3">显示在<font color="#FF3300">大类类目列表页面最顶部</font>,吸引更多关注!</div>
  61. </div>
  62. ';
  63. }
  64. else if ($upgrade == 'list') {
  65. echo ' <div class="upgradetd">
  66. <div class="introTitle"><span class="t1">小类置顶</span><br>
  67. <span class="t2">1天仅需';
  68. echo $mymps_global[cfg_member_upgrade_list_top];
  69. echo '金币</span></div>
  70. <div class="t3">显示在<font color="#FF3300">小类类目列表页面最顶部</font>,吸引更多关注!</div>
  71. </div>
  72. ';
  73. }
  74. else {
  75. echo ' <div class="upgradetd">
  76. <div class="introTitle"><span class="t1">首页置顶</span><br>
  77. <span class="t2">1天仅需';
  78. echo $mymps_global[cfg_member_upgrade_index_top];
  79. echo '金币</span></div>
  80. <div class="t3">在网站<font color="#FF3300">首页最醒目位置</font>轮播展示您发布的信息,吸引全场眼球!</div>
  81. </div>
  82. ';
  83. }
  84. echo ' <form method="post" action="?m=';
  85. echo $m;
  86. echo '&l=';
  87. echo $l;
  88. echo '&page=';
  89. echo $page;
  90. echo '">
  91. <input type="hidden" name="id" value="';
  92. echo $id;
  93. echo '">
  94. <input type="hidden" name="catid" value="';
  95. echo $row['catid'];
  96. echo '">
  97. <input type="hidden" name="money_own" value="';
  98. echo $money_own;
  99. echo '">
  100. <input type="hidden" name="iftop" value="';
  101. echo $row['upgrade_type'];
  102. echo '">
  103. <input type="hidden" name="iflisttop" value="';
  104. echo $row['upgrade_type_list'];
  105. echo '">
  106. <input type="hidden" name="ifindextop" value="';
  107. echo $row['upgrade_type_index'];
  108. echo '">
  109. <input type="hidden" name="ac" value="actionupgrade">
  110. <div class="datatablewrap">
  111. <table class="datatable">
  112. <thead>
  113. <tr>
  114. <td>推广我发布的信息</td>
  115. </tr>
  116. </thead>
  117. <tbody>
  118. <tr>
  119. <td>
  120. <a href="../course.php?id=';
  121. echo $id;
  122. echo '" target="_blank" style="float:left; font-weight:bold; line-height:22px; font-size:16px;">';
  123. echo $row['title'];
  124. echo '</a> ';
  125. if ($row['upgrade_type'] == 2) {
  126. echo '<span class="refreshed">大类置顶中</span>';
  127. }
  128. echo ' ';
  129. if ($row['upgrade_type_list'] == 2) {
  130. echo '<span class="refreshed">小类置顶中</span>';
  131. }
  132. echo ' ';
  133. if ($row['upgrade_type_index'] == 2) {
  134. echo '<span class="refreshed">首页置顶中</span>';
  135. }
  136. echo '
  137. </td>
  138. </tr>
  139. <tr>
  140. <td>
  141. <select name="upgrade_type" id="upgrade_type" class="input">
  142. <option value="cfg_member_upgrade_top" ';
  143. if ($upgrade == 'cat') {
  144. echo 'selected';
  145. }
  146. echo '>大类置顶</option>
  147. <option value="cfg_member_upgrade_list_top" ';
  148. if ($upgrade == 'list') {
  149. echo 'selected';
  150. }
  151. echo '>小类置顶</option>
  152. <option value="cfg_member_upgrade_index_top" ';
  153. if ($upgrade == 'index') {
  154. echo 'selected';
  155. }
  156. echo '>上首页</option>
  157. </select></td>
  158. </tr>
  159. <tr>
  160. <td>';
  161. echo GetUpgradeTime();
  162. echo '</td>
  163. </tr>
  164. </tbody>
  165. </table>
  166. </div>
  167. <div class="clearfix current_action_money">您目前拥有金币<font color="red">';
  168. echo $money_own;
  169. echo '</font>,将扣除您的金币:<span style="color:red"><font id="total">0</font></span></div>
  170. <div class="clearfix datacontrol">
  171. <div class="dataaction">
  172. <span class="minbtn-wrap" style="margin-left:0"><span class="btn"><input type="submit" value="确认提交置顶" class="button" name="actionupgrade" ';
  173. if ($row['upgrade_type'] == 2 && $row['upgrade_type_list'] == 2 && $row['upgrade_type_index'] == 2) {
  174. echo 'disabled';
  175. }
  176. echo '></span></span>
  177. </div>
  178. </div>
  179. </form>
  180. <script language="javascript">
  181. function calculate()
  182. {
  183. var ID0=document.getElementById("upgrade_type").value;
  184. var ID1=document.getElementById("upgrade_time").value;
  185. var ID2=document.getElementById("total").value;
  186. if(ID0 == "cfg_member_upgrade_top"){
  187. document.getElementById("total").innerHTML=(';
  188. echo $mymps_global[cfg_member_upgrade_top];
  189. echo '*ID1);
  190. }else if(ID0 == "cfg_member_upgrade_list_top"){
  191. document.getElementById("total").innerHTML=(';
  192. echo $mymps_global[cfg_member_upgrade_list_top];
  193. echo '*ID1);
  194. }else{
  195. document.getElementById("total").innerHTML=(';
  196. echo $mymps_global[cfg_member_upgrade_index_top];
  197. echo '*ID1);
  198. }
  199. if(ID0==""||ID1=="")
  200. ID2="";
  201. setTimeout("calculate()",30);
  202. }
  203. calculate();
  204. </script>
  205. </div>
  206. <div class="pfoot"><p><b>-</b></p></div>
  207. </div>
  208. </div>
  209. </div>
  210. </div>
  211. </div>
  212. ';
  213. include mymps_tpl('inc_sidebar');
  214. echo ' </div>
  215. </div>
  216. ';
  217. include mymps_tpl('inc_foot');
  218. echo '
  219. </div>
  220. </body>
  221. </html>';
  222. ?>