mobile.html 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. {// 引入标签库 }
  2. <tagLib name="html" />
  3. <include file="Public:header" />
  4. <load href='__TMPL__Common/js/conf.js' />
  5. <script type="text/javascript">
  6. function memcache()
  7. {
  8. var cache = $("select[name='CACHE_TYPE']").val();
  9. if(cache=='Memcached')
  10. $("input[name='MEMCACHE_HOST']").parent().parent().show();
  11. else
  12. $("input[name='MEMCACHE_HOST']").parent().parent().hide();
  13. }
  14. $(document).ready(function(){
  15. $("select[name='CACHE_TYPE']").bind("change",function(){
  16. memcache();
  17. });
  18. memcache();
  19. function society_info(type){
  20. $("select[name='society_profit_platform']").parent().parent().show();
  21. $("input[name='society_profit_ratio']").parent().parent().show();
  22. $("input[name='society_public_rate']").parent().parent().show();
  23. $("input[name='society_user_rate']").parent().parent().show();
  24. $("input[name='society_lv_videotime']").parent().parent().show();
  25. $("input[name='society_lv_contribution']").parent().parent().show();
  26. $("select[name='open_society_code']").parent().parent().show();
  27. $("input[name='society_list_name']").parent().parent().show();
  28. if(type == 1){
  29. $("input[name='society_public_rate']").parent().parent().hide();
  30. $("input[name='society_user_rate']").parent().parent().hide();
  31. }else if(type == 2){
  32. $("select[name='society_profit_platform']").parent().parent().hide();
  33. $("input[name='society_profit_ratio']").parent().parent().hide();
  34. }else{
  35. $("select[name='society_profit_platform']").parent().parent().hide();
  36. $("input[name='society_profit_ratio']").parent().parent().hide();
  37. $("input[name='society_public_rate']").parent().parent().hide();
  38. $("input[name='society_user_rate']").parent().parent().hide();
  39. $("input[name='society_lv_videotime']").parent().parent().hide();
  40. $("input[name='society_lv_contribution']").parent().parent().hide();
  41. $("select[name='open_society_code']").parent().parent().hide();
  42. $("input[name='society_list_name']").parent().parent().hide();
  43. }
  44. }
  45. society_info($("select[name='society_pattern']").val());
  46. $("select[name='society_pattern']").bind("change",function(){
  47. society_info($(this).val());
  48. })
  49. });
  50. </script>
  51. <div class="main">
  52. <div class="main_title">{%CONF_MOBILE}</div>
  53. <div class="search_row">
  54. <foreach name="conf" item="conf_group">
  55. <input type="button" class="button button-add conf_btn" rel="{$key}" value="{$key}" <if condition="($key eq 6 && INVEST_TYPE eq 1) or ($key eq 7 && HOUSE_TYPE eq 0 && SELFLESS_TYPE eq 0 && ESTATE_TYPE eq 0) or ($key eq 8 && LICAI_TYPE eq 0)">style="display:none;"</if> />
  56. </foreach>
  57. </div>
  58. <form method='post' id="form" name="form" action="__APP__" enctype="multipart/form-data" onsubmit="return submit_check();">
  59. <foreach name="conf" item="conf_group">
  60. <table class="form conf_tab" cellpadding=0 cellspacing=0 rel="{$key}" <if condition="$key eq 6&& INVEST_TYPE eq 1 ">style="display:none;"</if> >
  61. <tr>
  62. <td colspan=2 class="topTd"></td>
  63. </tr>
  64. <foreach name="conf_group" item="conf_item">
  65. <tr <if condition="$conf_item['name'] eq 'DB_VOL_MAXSIZE'">style="display:none;"</if> <if condition="($conf_item.name eq 'INVEST_STATUS'&& INVEST_TYPE gt 0) or ($conf_item.name eq 'IS_FINANCE'&& FINANCE_TYPE eq 0) or ($conf_item.name eq 'IS_SELFLESS'&& SELFLESS_TYPE eq 0) or ($conf_item.name eq 'IS_HOUSE' && HOUSE_TYPE eq 0) or ($conf_item.name eq 'STOCK_TRANSFER_IS_VERIFY' && INVEST_TYPE eq 1) or ($conf_item.name eq 'STOCK_TRANSFER_COMMISION' && INVEST_TYPE eq 1) or ($conf_item.name eq 'IS_STOCK_TRANSFER' && INVEST_TYPE eq 1) or ($conf_item.name eq 'IS_ESTATE' && ESTATE_TYPE eq 0)"> style="display:none;"</if> <if condition="($conf_item.code eq 'lucky_num' && OPEN_LUCK_NUM eq 1) or ($conf_item.code eq 'open_share_ticket' && OPEN_SHARE_EXPERIENCE eq 0) or ($conf_item.code eq 'share_ticket' && OPEN_SHARE_EXPERIENCE eq 0)">style="display:none;"</if> >
  66. <td class="item_title">{$conf_item['title']}:</td>
  67. <td class="item_input">
  68. <if condition="$conf_item['type'] eq 1">
  69. <html:editor id="{$conf_item.code}" name="{$conf_item.code}" type="KINDEDITOR" style=" height:150px;width:750px;" content="{$conf_item.val}" /><if condition="$conf_item['desc'] neq ''"><span style="color:#999;font-size:12px;">&nbsp;{$conf_item.desc}</span></if>
  70. </if>
  71. <if condition="$conf_item['type'] eq 2">
  72. <html:imgUpload id="{$conf_item.code}" name="{$conf_item.code}" value='$conf_item.val' /><if condition="$conf_item['desc'] neq ''"><span style="color:#999;font-size:12px;">&nbsp;{$conf_item.desc}</span></if>
  73. </if>
  74. <if condition="$conf_item['type'] eq 0">
  75. <input type="text" class="textbox" name="{$conf_item.code}" value="{$conf_item.val}" /><if condition="$conf_item['desc'] neq ''"><span style="color:#999;font-size:12px;">&nbsp;{$conf_item.desc}</span></if>
  76. </if>
  77. <if condition="$conf_item['type'] eq 3">
  78. <textarea class="textbox " name="{$conf_item.code}" style="height:100px;width:250px;">{$conf_item.val}</textarea><if condition="$conf_item['desc'] neq ''"><span style="color:#999;font-size:12px;">&nbsp;{$conf_item.desc}</span></if>
  79. </if>
  80. <if condition="$conf_item['type'] eq 4">
  81. <select name="{$conf_item.code}">
  82. <foreach name="conf_item.value_scope" item="preset_value" key="preset_key">
  83. <option value="{$preset_value}" <if condition="$conf_item['val'] eq $preset_value">selected="selected"</if>>
  84. {$conf_item['title_scope'][$preset_key]}
  85. </option>
  86. </foreach>
  87. </select><if condition="$conf_item['desc'] neq ''"><span style="color:#999;font-size:12px;">&nbsp;{$conf_item.desc}</span></if>
  88. </if>
  89. <if condition="$conf_item['type'] eq 5">
  90. <select name="{$conf_item.code}">
  91. <foreach name="is_limit_time_h" item="h_value">
  92. <option value="{$h_value}" <if condition="$conf_item.val eq $h_value">selected="selected"</if>>
  93. {$h_value}
  94. </option>
  95. </foreach>
  96. </select>
  97. <if condition="$conf_item['desc'] neq ''"><span style="color:#999;font-size:12px;">&nbsp;{$conf_item.desc}</span></if>
  98. </if>
  99. </td>
  100. </tr>
  101. </foreach>
  102. <tr>
  103. <td class="item_title">APP下载链接:</td>
  104. <td class="item_input">
  105. <span>{$domain_url}/appdown.php</span>
  106. </td>
  107. </tr>
  108. <tr>
  109. <td colspan=2 class="bottomTd"></td>
  110. </tr>
  111. </table>
  112. </foreach>
  113. <div class="blank5"></div>
  114. <table class="form" cellpadding=0 cellspacing=0>
  115. <tr>
  116. <td colspan=2 class="topTd"></td>
  117. </tr>
  118. <tr>
  119. <td class="item_title"></td>
  120. <td class="item_input">
  121. <!--隐藏元素-->
  122. <input type="hidden" name="{:conf("VAR_MODULE")}" value="Conf" />
  123. <input type="hidden" name="{:conf("VAR_ACTION")}" value="savemobile" />
  124. <!--隐藏元素-->
  125. <input type="submit" class="button button-add" value="{%EDIT}" /><input type="reset" class="button button-del" value="{%RESET}" />
  126. </td>
  127. </tr>
  128. <tr>
  129. <td colspan=2 class="bottomTd"></td>
  130. </tr>
  131. </table>
  132. </form>
  133. <script>
  134. function submit_check(){
  135. /* if($("select[name='sina_app_api']").val()==1){
  136. if($("select[name='has_sina_login']").val()==0){
  137. alert("必须支持新浪登录才能支持新浪分享");
  138. return false;
  139. }
  140. }
  141. if($("select[name='qq_app_api']").val()==1){
  142. if($("select[name='has_qq_login']").val()==0){
  143. alert("必须支持qq登录才能支持qq分享");
  144. return false;
  145. }
  146. }
  147. if($("select[name='wx_app_api']").val()==1){
  148. if($("select[name='has_wx_login']").val()==0){
  149. alert("必须支持微信登录才能支持微信分享");
  150. return false;
  151. }
  152. }
  153. if($("select[name='has_sina_login']").val()==0){
  154. $("select[name='sina_app_api']").val(0);
  155. }
  156. if($("select[name='has_qq_login']").val()==0){
  157. $("select[name='qq_app_api']").val(0);
  158. }
  159. if($("select[name='has_wx_login']").val()==0){
  160. $("select[name='wx_app_api']").val(0);
  161. }*/
  162. return true;
  163. }
  164. </script>
  165. <div class="blank5"></div>
  166. </div>
  167. <include file="Public:footer" />