setting.base.php 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  1. <?php defined('InShopNC') or exit('Access Invalid!');?>
  2. <div class="page">
  3. <div class="fixed-bar">
  4. <div class="item-title">
  5. <h3><?php echo $lang['web_set'];?></h3>
  6. <?php echo $output['top_link'];?>
  7. </div>
  8. </div>
  9. <div class="fixed-empty"></div>
  10. <form method="post" enctype="multipart/form-data" name="form1">
  11. <input type="hidden" name="form_submit" value="ok" />
  12. <table class="table tb-type2">
  13. <tbody>
  14. <tr class="noborder">
  15. <td colspan="2" class="required"><label for="site_name"><?php echo $lang['web_name'];?>:</label></td>
  16. </tr>
  17. <tr class="noborder">
  18. <td class="vatop rowform"><input id="site_name" name="site_name" value="<?php echo $output['list_setting']['site_name'];?>" class="txt" type="text" /></td>
  19. <td class="vatop tips"><span class="vatop rowform"><?php echo $lang['web_name_notice'];?></span></td>
  20. </tr>
  21. <tr>
  22. <td colspan="2" class="required"><label for="site_logo"><?php echo $lang['site_logo'];?>:</label></td>
  23. </tr>
  24. <tr class="noborder">
  25. <td class="vatop rowform"><span class="type-file-show"><img class="show_image" src="<?php echo ADMIN_TEMPLATES_URL;?>/images/preview.png">
  26. <div class="type-file-preview"><img src="<?php echo UPLOAD_SITE_URL.'/'.(ATTACH_COMMON.DS.$output['list_setting']['site_logo']);?>"></div>
  27. </span><span class="type-file-box"><input type='text' name='textfield' id='textfield1' class='type-file-text' /><input type='button' name='button' id='button1' value='' class='type-file-button' />
  28. <input name="site_logo" type="file" class="type-file-file" id="site_logo" size="30" hidefocus="true" nc_type="change_site_logo">
  29. </span></td>
  30. <td class="vatop tips"><span class="vatop rowform">默认网站LOGO,通用头部显示,最佳显示尺寸为240*60像素</span></td>
  31. </tr>
  32. <tr>
  33. <td colspan="2" class="required"><label for="site_logo"><?php echo $lang['member_logo'];?>:</label></td>
  34. </tr>
  35. <tr class="noborder">
  36. <td class="vatop rowform"><span class="type-file-show"><img class="show_image" src="<?php echo ADMIN_TEMPLATES_URL;?>/images/preview.png">
  37. <div class="type-file-preview"><img src="<?php echo UPLOAD_SITE_URL.'/'.(ATTACH_COMMON.DS.$output['list_setting']['member_logo']);?>"></div>
  38. </span><span class="type-file-box"><input type='text' name='textfield2' id='textfield2' class='type-file-text' /><input type='button' name='button2' id='button2' value='' class='type-file-button' />
  39. <input name="member_logo" type="file" class="type-file-file" id="member_logo" size="30" hidefocus="true" nc_type="change_member_logo">
  40. </span></td>
  41. <td class="vatop tips"><span class="vatop rowform">网站小尺寸LOGO,会员个人主页显示,最佳显示尺寸为200*40像素</span></td>
  42. </tr>
  43. <!-- 商家中心logo -->
  44. <tr>
  45. <td colspan="2" class="required"><label for="seller_center_logo">商家中心Logo:</label></td>
  46. </tr>
  47. <tr class="noborder">
  48. <td class="vatop rowform"><span class="type-file-show"><img class="show_image" src="<?php echo ADMIN_TEMPLATES_URL;?>/images/preview.png">
  49. <div class="type-file-preview"><img src="<?php echo UPLOAD_SITE_URL.'/'.(ATTACH_COMMON.DS.$output['list_setting']['seller_center_logo']);?>"></div>
  50. </span><span class="type-file-box"><input type='text' name='textfield' id='textfield3' class='type-file-text' /><input type='button' name='button' id='button1' value='' class='type-file-button' />
  51. <input name="seller_center_logo" type="file" class="type-file-file" id="seller_center_logo" size="30" hidefocus="true" nc_type="change_seller_center_logo">
  52. </span></td>
  53. <td class="vatop tips"><span class="vatop rowform">商家中心LOGO,最佳显示尺寸为150*40像素,请根据背景色选择使用图片色彩</span></td>
  54. </tr>
  55. <!-- 商家中心logo -->
  56. <!-- WAP手机端LOGO -->
  57. <tr>
  58. <td colspan="2" class="required"><label for="site_mobile_logo">WAP手机端LOGO:</label></td>
  59. </tr>
  60. <tr class="noborder">
  61. <td class="vatop rowform"><span class="type-file-show"><img class="show_image" src="<?php echo ADMIN_TEMPLATES_URL;?>/images/preview.png">
  62. <div class="type-file-preview" style="background-color:red"><img src="<?php echo UPLOAD_SITE_URL.'/'.(ATTACH_COMMON.DS.$output['list_setting']['site_mobile_logo']);?>"></div>
  63. </span><span class="type-file-box"><input type='text' name='textfield' id='textfield8' class='type-file-text' /><input type='button' name='button' id='button1' value='' class='type-file-button' />
  64. <input name="site_mobile_logo" type="file" class="type-file-file" id="site_mobile_logo" size="30" hidefocus="true" nc_type="change_site_mobile_logo">
  65. </span></td>
  66. <td class="vatop tips"><span class="vatop rowform">WAP手机端LOGO,通用头部显示,最佳显示尺寸为116*43像素</span></td>
  67. </tr>
  68. <!-- 商城底部微信二维码 -->
  69. <tr>
  70. <td colspan="2" class="required"><label for="site_logowx"><?php echo $lang['site_bank_weixinerwei'];?>:</label></td>
  71. </tr>
  72. <tr class="noborder">
  73. <td class="vatop rowform"><span class="type-file-show"><img class="show_image" src="<?php echo ADMIN_TEMPLATES_URL;?>/images/preview.png">
  74. <div class="type-file-preview"><img src="<?php echo UPLOAD_SITE_URL.'/'.(ATTACH_COMMON.DS.$output['list_setting']['site_logowx']);?>"></div>
  75. </span><span class="type-file-box"><input type='text' name='textfield' id='textfield5' class='type-file-text' /><input type='button' name='button' id='button1' value='' class='type-file-button' />
  76. <input name="site_logowx" type="file" class="type-file-file" id="site_logowx" size="30" hidefocus="true" nc_type="change_site_logowx">
  77. </span></td>
  78. <td class="vatop tips"><span class="vatop rowform">放在网站右上角顶部及首页底部右下角,最佳显示尺寸为66*66像素</span></td>
  79. </tr>
  80. <!-- 商城底部微信二维码 -->
  81. <tr>
  82. <td colspan="2" class="required"><label for="icp_number"><?php echo $lang['icp_number'];?>:</label></td>
  83. </tr>
  84. <tr class="noborder">
  85. <td class="vatop rowform"><input id="icp_number" name="icp_number" value="<?php echo $output['list_setting']['icp_number'];?>" class="txt" type="text" /></td>
  86. <td class="vatop tips"><span class="vatop rowform"><?php echo $lang['icp_number_notice'];?></span></td>
  87. </tr>
  88. <tr>
  89. <td colspan="2" class="required"><label for="site_phone"><?php echo $lang['site_phone'];?>:</label></td>
  90. </tr>
  91. <tr class="noborder">
  92. <td class="vatop rowform"><input id="site_phone" name="site_phone" value="<?php echo $output['list_setting']['site_phone'];?>" class="txt" type="text" /></td>
  93. <td class="vatop tips"><span class="vatop rowform"><?php echo $lang['site_phone_notice'];?></span></td>
  94. </tr>
  95. <!-- 400 电话 -->
  96. <tr>
  97. <td colspan="2" class="required"><label for="site_tel400"><?php echo $lang['site_tel400'];?>:</label></td>
  98. </tr>
  99. <tr class="noborder">
  100. <td class="vatop rowform"><input id="site_tel400" name="site_tel400" value="<?php echo $output['list_setting']['site_tel400'];?>" class="txt" type="text" /></td>
  101. <td class="vatop tips"><span class="vatop rowform"><?php echo $lang['icp_number_notice400'];?></span></td>
  102. </tr>
  103. <!-- 400 电话 -->
  104. <!--
  105. 平台付款账号,前台暂时无调用
  106. <tr>
  107. <td colspan="2" class="required"><label for="site_bank_account"><?php echo $lang['site_bank_account'];?>:</label></td>
  108. </tr>
  109. <tr class="noborder">
  110. <td class="vatop rowform"><input id="site_bank_account" name="site_bank_account" value="<?php echo $output['list_setting']['site_bank_account'];?>" class="txt" type="text" /></td>
  111. <td class="vatop tips"><span class="vatop rowform"><?php echo $lang['site_bank_account_notice'];?></span></td>
  112. </tr>
  113. -->
  114. <tr>
  115. <td colspan="2" class="required"><label for="site_email"><?php echo $lang['site_email'];?>:</label></td>
  116. </tr>
  117. <tr class="noborder">
  118. <td class="vatop rowform"><input id="site_email" name="site_email" value="<?php echo $output['list_setting']['site_email'];?>" class="txt" type="text" /></td>
  119. <td class="vatop tips"><span class="vatop rowform"><?php echo $lang['site_email_notice'];?></span></td>
  120. </tr>
  121. <tr>
  122. <td colspan="2" class="required"><label for="statistics_code"><?php echo $lang['flow_static_code'];?>:</label></td>
  123. </tr>
  124. <tr class="noborder">
  125. <td class="vatop rowform"><textarea name="statistics_code" rows="6" class="tarea" id="statistics_code"><?php echo $output['list_setting']['statistics_code'];?></textarea></td>
  126. <td class="vatop tips"><span class="vatop rowform"><?php echo $lang['flow_static_code_notice'];?></span></td>
  127. </tr>
  128. <tr>
  129. <td colspan="2" class="required"><label for="time_zone"> <?php echo $lang['time_zone_set'];?>:</label></td>
  130. </tr>
  131. <tr class="noborder">
  132. <td class="vatop rowform"><select id="time_zone" name="time_zone">
  133. <option value="-12">(GMT -12:00) Eniwetok, Kwajalein</option>
  134. <option value="-11">(GMT -11:00) Midway Island, Samoa</option>
  135. <option value="-10">(GMT -10:00) Hawaii</option>
  136. <option value="-9">(GMT -09:00) Alaska</option>
  137. <option value="-8">(GMT -08:00) Pacific Time (US &amp; Canada), Tijuana</option>
  138. <option value="-7">(GMT -07:00) Mountain Time (US &amp; Canada), Arizona</option>
  139. <option value="-6">(GMT -06:00) Central Time (US &amp; Canada), Mexico City</option>
  140. <option value="-5">(GMT -05:00) Eastern Time (US &amp; Canada), Bogota, Lima, Quito</option>
  141. <option value="-4">(GMT -04:00) Atlantic Time (Canada), Caracas, La Paz</option>
  142. <option value="-3.5">(GMT -03:30) Newfoundland</option>
  143. <option value="-3">(GMT -03:00) Brassila, Buenos Aires, Georgetown, Falkland Is</option>
  144. <option value="-2">(GMT -02:00) Mid-Atlantic, Ascension Is., St. Helena</option>
  145. <option value="-1">(GMT -01:00) Azores, Cape Verde Islands</option>
  146. <option value="0">(GMT) Casablanca, Dublin, Edinburgh, London, Lisbon, Monrovia</option>
  147. <option value="1">(GMT +01:00) Amsterdam, Berlin, Brussels, Madrid, Paris, Rome</option>
  148. <option value="2">(GMT +02:00) Cairo, Helsinki, Kaliningrad, South Africa</option>
  149. <option value="3">(GMT +03:00) Baghdad, Riyadh, Moscow, Nairobi</option>
  150. <option value="3.5">(GMT +03:30) Tehran</option>
  151. <option value="4">(GMT +04:00) Abu Dhabi, Baku, Muscat, Tbilisi</option>
  152. <option value="4.5">(GMT +04:30) Kabul</option>
  153. <option value="5">(GMT +05:00) Ekaterinburg, Islamabad, Karachi, Tashkent</option>
  154. <option value="5.5">(GMT +05:30) Bombay, Calcutta, Madras, New Delhi</option>
  155. <option value="5.75">(GMT +05:45) Katmandu</option>
  156. <option value="6">(GMT +06:00) Almaty, Colombo, Dhaka, Novosibirsk</option>
  157. <option value="6.5">(GMT +06:30) Rangoon</option>
  158. <option value="7">(GMT +07:00) Bangkok, Hanoi, Jakarta</option>
  159. <option value="8">(GMT +08:00) Beijing, Hong Kong, Perth, Singapore, Taipei</option>
  160. <option value="9">(GMT +09:00) Osaka, Sapporo, Seoul, Tokyo, Yakutsk</option>
  161. <option value="9.5">(GMT +09:30) Adelaide, Darwin</option>
  162. <option value="10">(GMT +10:00) Canberra, Guam, Melbourne, Sydney, Vladivostok</option>
  163. <option value="11">(GMT +11:00) Magadan, New Caledonia, Solomon Islands</option>
  164. <option value="12">(GMT +12:00) Auckland, Wellington, Fiji, Marshall Island</option>
  165. </select></td>
  166. <td class="vatop tips"><span class="vatop rowform"><?php echo $lang['set_sys_use_time_zone'];?>+8</span></td>
  167. </tr>
  168. <tr>
  169. <td colspan="2" class="required"><?php echo $lang['site_state'];?>:</td>
  170. </tr>
  171. <tr class="noborder">
  172. <td class="vatop rowform onoff"><label for="site_status1" class="cb-enable <?php if($output['list_setting']['site_status'] == '1'){ ?>selected<?php } ?>" ><span><?php echo $lang['open'];?></span></label>
  173. <label for="site_status0" class="cb-disable <?php if($output['list_setting']['site_status'] == '0'){ ?>selected<?php } ?>" ><span><?php echo $lang['close'];?></span></label>
  174. <input id="site_status1" name="site_status" <?php if($output['list_setting']['site_status'] == '1'){ ?>checked="checked"<?php } ?> value="1" type="radio">
  175. <input id="site_status0" name="site_status" <?php if($output['list_setting']['site_status'] == '0'){ ?>checked="checked"<?php } ?> value="0" type="radio"></td>
  176. <td class="vatop tips"><span class="vatop rowform"><?php echo $lang['site_state_notice'];?></span></td>
  177. </tr>
  178. <tr>
  179. <td colspan="2" class="required"><label for="closed_reason"><?php echo $lang['closed_reason'];?>:</label></td>
  180. </tr>
  181. <tr class="noborder">
  182. <td class="vatop rowform"><textarea name="closed_reason" rows="6" class="tarea" id="closed_reason" ><?php echo $output['list_setting']['closed_reason'];?></textarea></td>
  183. <td class="vatop tips"><span class="vatop rowform"><?php echo $lang['closed_reason_notice'];?></span></td>
  184. </tr>
  185. </tbody>
  186. <tfoot id="submit-holder">
  187. <tr class="tfoot">
  188. <td colspan="2" ><a href="JavaScript:void(0);" class="btn" onclick="document.form1.submit()"><span><?php echo $lang['nc_submit'];?></span></a></td>
  189. </tr>
  190. </tfoot>
  191. </table>
  192. </form>
  193. </div>
  194. <script type="text/javascript">
  195. // 模拟网站LOGO上传input type='file'样式
  196. $(function(){
  197. $("#site_logo").change(function(){
  198. $("#textfield1").val($(this).val());
  199. });
  200. $("#member_logo").change(function(){
  201. $("#textfield2").val($(this).val());
  202. });
  203. $("#seller_center_logo").change(function(){
  204. $("#textfield3").val($(this).val());
  205. });
  206. //v 3-b1 1
  207. $("#site_mobile_logo").change(function(){
  208. $("#textfield8").val($(this).val());
  209. });
  210. $("#site_logowx").change(function(){
  211. $("#textfield5").val($(this).val());
  212. });
  213. // 上传图片类型
  214. $('input[class="type-file-file"]').change(function(){
  215. var filepatd=$(this).val();
  216. var extStart=filepatd.lastIndexOf(".");
  217. var ext=filepatd.substring(extStart,filepatd.lengtd).toUpperCase();
  218. if(ext!=".PNG"&&ext!=".GIF"&&ext!=".JPG"&&ext!=".JPEG"){
  219. alert("<?php echo $lang['default_img_wrong'];?>");
  220. $(this).attr('value','');
  221. return false;
  222. }
  223. });
  224. $('#time_zone').attr('value','<?php echo $output['list_setting']['time_zone'];?>');
  225. });
  226. </script>