mobile.html 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  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. });
  20. </script>
  21. <div class="main">
  22. <div class="main_title">{%CONF_MOBILE}</div>
  23. <div class="search_row">
  24. <foreach name="conf" item="conf_group">
  25. <input type="button" class="button button-add conf_btn" rel="{$key}" <if condition="$key eq '腾讯直播'">value="腾讯云通讯"<else />value="{$key}"</if> <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> />
  26. </foreach>
  27. </div>
  28. <form method='post' id="form" name="form" action="__APP__" enctype="multipart/form-data" onsubmit="return submit_check();">
  29. <foreach name="conf" item="conf_group">
  30. <table class="form conf_tab" cellpadding=0 cellspacing=0 rel="{$key}" <if condition="$key eq 6&& INVEST_TYPE eq 1 ">style="display:none;"</if> >
  31. <tr>
  32. <td colspan=2 class="topTd"></td>
  33. </tr>
  34. <foreach name="conf_group" item="conf_item">
  35. <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> >
  36. <td class="item_title">{$conf_item['title']}:</td>
  37. <td class="item_input">
  38. <if condition="$conf_item['type'] eq 1">
  39. <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>
  40. </if>
  41. <if condition="$conf_item['type'] eq 2">
  42. <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>
  43. </if>
  44. <if condition="$conf_item['type'] eq 0">
  45. <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>
  46. </if>
  47. <if condition="$conf_item['type'] eq 3">
  48. <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>
  49. </if>
  50. <if condition="$conf_item['type'] eq 4">
  51. <select name="{$conf_item.code}">
  52. <foreach name="conf_item.value_scope" item="preset_value">
  53. <option value="{$preset_value}" <if condition="$conf_item['val'] eq $preset_value">selected="selected"</if>>
  54. {$conf_item['title_scope'][$preset_value]}
  55. </option>
  56. </foreach>
  57. </select><if condition="$conf_item['desc'] neq ''"><span style="color:#999;font-size:12px;">&nbsp;{$conf_item.desc}</span></if>
  58. </if>
  59. <if condition="$conf_item['type'] eq 5">
  60. <select name="{$conf_item.code}">
  61. <foreach name="is_limit_time_h" item="h_value">
  62. <option value="{$h_value}" <if condition="$conf_item.val eq $h_value">selected="selected"</if>>
  63. {$h_value}
  64. </option>
  65. </foreach>
  66. </select>
  67. <if condition="$conf_item['desc'] neq ''"><span style="color:#999;font-size:12px;">&nbsp;{$conf_item.desc}</span></if>
  68. </if>
  69. </td>
  70. </tr>
  71. </foreach>
  72. <tr>
  73. <td class="item_title">APP下载链接:</td>
  74. <td class="item_input">
  75. <span>{$domain_url}/appdown.php</span>
  76. </td>
  77. </tr>
  78. <tr>
  79. <td colspan=2 class="bottomTd"></td>
  80. </tr>
  81. </table>
  82. </foreach>
  83. <div class="blank5"></div>
  84. <table class="form" cellpadding=0 cellspacing=0>
  85. <tr>
  86. <td colspan=2 class="topTd"></td>
  87. </tr>
  88. <tr>
  89. <td class="item_title"></td>
  90. <td class="item_input">
  91. <!--隐藏元素-->
  92. <input type="hidden" name="{:conf("VAR_MODULE")}" value="Conf" />
  93. <input type="hidden" name="{:conf("VAR_ACTION")}" value="savemobile" />
  94. <!--隐藏元素-->
  95. <input type="submit" class="button button-add" value="{%EDIT}" /><input type="reset" class="button button-del" value="{%RESET}" />
  96. </td>
  97. </tr>
  98. <tr>
  99. <td colspan=2 class="bottomTd"></td>
  100. </tr>
  101. </table>
  102. </form>
  103. <script>
  104. function submit_check(){
  105. if($("select[name='sina_app_api']").val()==1){
  106. if($("select[name='has_sina_login']").val()==0){
  107. alert("必须支持新浪登录才能支持新浪分享");
  108. return false;
  109. }
  110. }
  111. if($("select[name='qq_app_api']").val()==1){
  112. if($("select[name='has_qq_login']").val()==0){
  113. alert("必须支持qq登录才能支持qq分享");
  114. return false;
  115. }
  116. }
  117. if($("select[name='wx_app_api']").val()==1){
  118. if($("select[name='has_wx_login']").val()==0){
  119. alert("必须支持微信登录才能支持微信分享");
  120. return false;
  121. }
  122. }
  123. if($("select[name='has_sina_login']").val()==0){
  124. $("select[name='sina_app_api']").val(0);
  125. }
  126. if($("select[name='has_qq_login']").val()==0){
  127. $("select[name='qq_app_api']").val(0);
  128. }
  129. if($("select[name='has_wx_login']").val()==0){
  130. $("select[name='wx_app_api']").val(0);
  131. }
  132. return true;
  133. }
  134. </script>
  135. <div class="blank5"></div>
  136. </div>
  137. <include file="Public:footer" />