人人商城

stat-setting.html 2.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. {template 'common/header'}
  2. <script type="text/javascript">
  3. $(':radio[name="msg_history"]').click(function(){
  4. if($(':radio[name=msg_history]:checked').val() == '1') {
  5. $('.msgd').show();
  6. } else {
  7. $('.msgd').hide();
  8. }
  9. });
  10. {if $settings['msg_history'] == '0'}
  11. $(".msgd").hide();
  12. {/if}
  13. </script>
  14. <div class="clearfix">
  15. <form action="" method="post" class="form-horizontal form">
  16. <div class="panel panel-default">
  17. <div class="panel-heading">
  18. 统计分析 <span>设定公众号码统计分析的相关功能,这个设置是针对当前公众号的</span>
  19. </div>
  20. <div class="panel-body">
  21. <div class="form-group">
  22. <label class="col-xs-12 col-sm-3 col-md-3 col-lg-2 control-label">开启历史消息记录</label>
  23. <div class="col-sm-9 col-xs-12">
  24. <label for="msg_history_1" class="radio-inline"><input type="radio" name="msg_history" id="msg_history_1" value="1" {if $settings['msg_history'] == '1'}checked="checked"{/if}> 是</label>
  25. <label for="msg_history_0" class="radio-inline"><input type="radio" name="msg_history" id="msg_history_0" value="0" {if $settings['msg_history'] == '0'}checked="checked"{/if}> 否</label>
  26. <div class="help-block">开启此项后,系统将记录用户与系统的往来消息记录。</div>
  27. </div>
  28. </div>
  29. <div class="form-group msgd">
  30. <label class="col-xs-12 col-sm-3 col-md-3 col-lg-2 control-label">历史消息记录天数</label>
  31. <div class="col-sm-9 col-xs-12">
  32. <input type="text" name="msg_maxday" class="form-control" value="{$settings['msg_maxday']}" />
  33. <div class="help-block">设置保留历史消息记录的天数,为0则为保留全部。</div>
  34. </div>
  35. </div>
  36. <div class="form-group">
  37. <label class="col-xs-12 col-sm-3 col-md-3 col-lg-2 control-label">开启利用率统计</label>
  38. <div class="col-sm-9 col-xs-12">
  39. <label for="rule_use_1" class="radio-inline"><input type="radio" id="rule_use_1" name="use_ratio" value="1" {if $settings['use_ratio'] == '1'}checked="checked"{/if}> 是</label>
  40. <label for="rule_use_0" class="radio-inline"><input type="radio" id="rule_use_0" name="use_ratio" value="0" {if $settings['use_ratio'] == '0'}checked="checked"{/if}> 否</label>
  41. <div class="help-block">开启此项后,系统将记录系统中的规则的使用情况,并生成走势图。</div>
  42. </div>
  43. </div>
  44. </div>
  45. </div>
  46. <div class="form-group">
  47. <div class="col-sm-12">
  48. <input name="submit" type="submit" value="提交" class="btn btn-primary col-lg-1" />
  49. <input type="hidden" name="token" value="{$_W['token']}" />
  50. </div>
  51. </div>
  52. </form>
  53. </div>
  54. {template 'common/footer'}