Bez popisu
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

conf.htm 5.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. {include file="public/layout" /}
  2. <body class="bodystyle">
  3. <div id="append_parent"></div>
  4. <div id="ajaxwaitid"></div>
  5. {include file="member/left" /}
  6. <div class="page" style="min-width:auto;margin-left:100px;">
  7. {include file="users_release/bar" /}
  8. <div class="flexigrid">
  9. <form class="form-horizontal" id="post_form" action="{:url('UsersRelease/conf')}" method="post">
  10. <div class="ncap-form-default">
  11. <dl class="row">
  12. <dt class="tit">
  13. <label>投稿自动审核</label>
  14. </dt>
  15. <dd class="opt">
  16. <div class="onoff">
  17. <label for="is_automatic_review1" class="cb-enable {if condition='isset($UsersC.is_automatic_review) && $UsersC.is_automatic_review == 1'}selected{/if}">开启</label>
  18. <label for="is_automatic_review0" class="cb-disable {if condition='!isset($UsersC.is_automatic_review) || empty($UsersC.is_automatic_review)'}selected{/if}">关闭</label>
  19. <input id="is_automatic_review1" name="users[is_automatic_review]" value="1" type="radio" {if condition="isset($UsersC.is_automatic_review) && $UsersC.is_automatic_review == 1"} checked="checked"{/if}>
  20. <input id="is_automatic_review0" name="users[is_automatic_review]" value="0" type="radio" {if condition="!isset($UsersC.is_automatic_review) || empty($UsersC.is_automatic_review)"} checked="checked" {/if}>
  21. </div>
  22. &nbsp; &nbsp; &nbsp; &nbsp;
  23. <span class="notic2 hui">开启后会员投稿将直接展示到前台文档列表</span>
  24. </dd>
  25. </dl>
  26. <dl class="row">
  27. <dt class="tit">
  28. <label>投稿次数限制</label>
  29. </dt>
  30. <dd class="opt">
  31. <div class="onoff">
  32. <label for="is_open_posts_count1" class="cb-enable {if condition='isset($UsersC.is_open_posts_count) && $UsersC.is_open_posts_count == 1'}selected{/if}">开启</label>
  33. <label for="is_open_posts_count0" class="cb-disable {if condition='!isset($UsersC.is_open_posts_count) || empty($UsersC.is_open_posts_count)'}selected{/if}">关闭</label>
  34. <input id="is_open_posts_count1" name="users[is_open_posts_count]" value="1" type="radio" {if condition="isset($UsersC.is_open_posts_count) && $UsersC.is_open_posts_count == 1"} checked="checked"{/if}>
  35. <input id="is_open_posts_count0" name="users[is_open_posts_count]" value="0" type="radio" {if condition="!isset($UsersC.is_open_posts_count) || empty($UsersC.is_open_posts_count)"} checked="checked" {/if}>
  36. </div>
  37. &nbsp; &nbsp; &nbsp; &nbsp;
  38. <a {if condition='!isset($UsersC.is_open_posts_count) || empty($UsersC.is_open_posts_count)'}style="display: none;"{/if} id='UpUsersLevelBout' href="javascript:void(0);" onclick="UpUsersLevelBout();" class="ncap-btn ncap-btn-green">设置次数</a>
  39. <span class="notic2 hui">开启后可设置会员每日的投搞数量</span>
  40. </dd>
  41. </dl>
  42. <dl class="row">
  43. <dt class="tit">
  44. <label for="title" id="select_title">投稿栏目选择</label>
  45. </dt>
  46. <dd class="opt">
  47. <select name="typeids[]" id="typeid" style="width: 300px;" size="15" multiple="true">
  48. {$select_html}
  49. </select>
  50. <span class="err"></span>
  51. <p class="notic2 red">(按 Ctrl 可以进行多选)</p>
  52. </dd>
  53. </dl>
  54. </div>
  55. <div class="ncap-form-default">
  56. <dl class="row">
  57. <div class="bot">
  58. <a href="JavaScript:void(0);" onclick="UsersReleaseConfig();" class="ncap-btn-big ncap-btn-green" id="submitBtn">确认提交</a>
  59. </div>
  60. </dl>
  61. </div>
  62. </form>
  63. </div>
  64. </div>
  65. <script type="text/javascript">
  66. $(function(){
  67. $('input[name="users[is_open_posts_count]"]').click(function(){
  68. var is_open_posts_count = $(this).val();
  69. if (1 == is_open_posts_count) {
  70. $('#UpUsersLevelBout').show();
  71. } else {
  72. $('#UpUsersLevelBout').hide();
  73. }
  74. });
  75. });
  76. // 判断输入框是否为空
  77. function UsersReleaseConfig(){
  78. layer_loading('正在处理');
  79. $('#post_form').submit();
  80. }
  81. function UpUsersLevelBout()
  82. {
  83. var url = "{:url('UsersRelease/ajax_users_level_bout')}";
  84. //iframe窗
  85. layer.open({
  86. type: 2,
  87. title: '会员投稿次数设置',
  88. fixed: true, //不固定
  89. shadeClose: false,
  90. shade: layer_shade,
  91. maxmin: true, //开启最大化最小化按钮
  92. area: ['50%', '80%'],
  93. content: url
  94. });
  95. }
  96. </script>
  97. {include file="public/footer" /}