人人商城

tplnotice.ctrl.php 3.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <?php
  2. /**
  3. * [WeEngine System] Copyright (c) 2014 WE7.CC
  4. * WeEngine is NOT a free software, it under the license terms, visited http://www.we7.cc/ for more details.
  5. */
  6. defined('IN_IA') or exit('Access Denied');
  7. uni_user_permission_check('mc_tplnotice');
  8. $_W['page']['title'] = '会员微信通知-会员中心';
  9. $dos = array('set');
  10. $do = in_array($do, $dos) ? $do : 'set';
  11. if($do == 'set') {
  12. if(checksubmit()) {
  13. $data = array(
  14. 'recharge' => $_GPC['recharge'],
  15. 'credit1' => $_GPC['credit1'],
  16. 'credit2' => $_GPC['credit2'],
  17. 'group' => $_GPC['group'],
  18. 'nums_plus' => $_GPC['nums_plus'],
  19. 'nums_times' => $_GPC['nums_times'],
  20. 'times_plus' => $_GPC['times_plus'],
  21. 'times_times' => $_GPC['times_times'],
  22. );
  23. uni_setting_save('tplnotice', $data);
  24. message('设置通知模板成功', referer(), 'success');
  25. }
  26. $setting = uni_setting_load('tplnotice');
  27. $set = $setting['tplnotice'];
  28. if(!is_array($set)) {
  29. $set = array();
  30. }
  31. $tpls = array(
  32. 'recharge' => array(
  33. 'name' => '会员余额充值',
  34. 'help' => '请在“微信公众平台”选择行业为:“IT科技 - 互联网|电子商务”,添加标题为:”会员充值通知“,编号为:“TM00009”的模板。',
  35. ),
  36. 'credit2' => array(
  37. 'name' => '会员余额消费',
  38. 'help' => '请在“微信公众平台”选择行业为:“IT科技 - 互联网|电子商务”,添加标题为:”余额变更通知“,编号为:“OPENTM207266084”的模板。',
  39. ),
  40. 'credit1' => array(
  41. 'name' => '会员积分变更',
  42. 'help' => '请在“微信公众平台”选择行业为:“IT科技 - 互联网|电子商务”,添加标题为:”积分提醒“,编号为:“TM00335”的模板。',
  43. ),
  44. 'group' => array(
  45. 'name' => '会员等级变更',
  46. 'help' => '请在“微信公众平台”选择行业为:“IT科技 - 互联网|电子商务”,添加标题为:”会员级别变更提醒“,编号为:“TM00891”的模板',
  47. ),
  48. 'nums_plus' => array(
  49. 'name' => '会员卡计次充值',
  50. 'help' => '请在“微信公众平台”选择行业为:“IT科技 - 互联网|电子商务”,添加标题为:”计次充值通知“,编号为:“OPENTM207207134”的模板 ',
  51. ),
  52. 'nums_times' => array(
  53. 'name' => '会员卡计次消费',
  54. 'help' => '请在“微信公众平台”选择行业为:“IT科技 - 互联网|电子商务”,添加标题为:”计次消费通知“,编号为:“OPENTM202322532”的模板',
  55. ),
  56. 'times_plus' => array(
  57. 'name' => '会员卡计时充值',
  58. 'help' => '请在“微信公众平台”选择行业为:“IT科技 - 互联网|电子商务”,添加标题为:”自动续费成功通知“,编号为:“TM00956”的模板',
  59. ),
  60. 'times_times' => array(
  61. 'name' => '会员卡计时即将到期',
  62. 'help' => '请在“微信公众平台”选择行业为:“IT科技 - 互联网|电子商务”,添加标题为:”到期提醒通知“,编号为:“TM00008”的模板',
  63. ),
  64. );
  65. template('mc/tplnotice');
  66. }