123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221 |
- {include file="header.htm" /}
- <body class="bodystyle" style="overflow-y: scroll; cursor: default; -moz-user-select: inherit;">
- <div id="append_parent"></div>
- <div id="ajaxwaitid"></div>
- <div class="page" style="min-width: auto;">
- {include file="bar.htm" /}
- <div class="flexigrid">
- <div class="ncap-form-default">
- <dl class="row">
- <dt class="tit" style="padding-left: 10px;">
- <label>URL模式</label>
- </dt>
- <dd class="opt">
- <label>
- <input type="radio" name="seo_pseudo" value="1" {if condition="empty($askConfData.data.seo_pseudo) || 1 == $askConfData.data.seo_pseudo"}checked="checked"{/if}>动态URL
- </label>
- <label>
- <input type="radio" name="seo_pseudo" value="3" {if condition="3 == $askConfData.data.seo_pseudo"}checked="checked"{/if}>伪静态化
- </label>
- </dd>
- </dl>
- <dl class="row">
- <dt class="tit" style="padding-left: 10px;">
- <label>SEO配置</label>
- </dt>
- <dd class="opt">
- <a href="javascript:void(0);" onclick="frameEdit(this);" data-url="{:weapp_url('Ask/Ask/seo_edit')}" data-title="主页SEO - 配置" class="ncap-btn ncap-btn-green">主页SEO</a>
- </dd>
- </dl>
- <dl class="row">
- <dt class="tit" style="padding-left: 10px;">
- <label>频率限制</label>
- </dt>
- <dd class="opt">
- <a href="javascript:void(0);" onclick="frameEdit(this);" data-url="{:weapp_url('Ask/Ask/rate_edit')}" data-title="频率限制 - 设置频率" class="ncap-btn ncap-btn-green">设置频率</a>
- </dd>
- </dl>
- <dl class="row">
- <dt class="tit" style="padding-left: 10px;">
- <label>悬赏模式</label>
- </dt>
- <dd class="opt">
- <a href="javascript:void(0);" onclick="frameEdit(this)" data-url="{:weapp_url('Ask/Ask/reward_edit')}" data-title="悬赏模式 - 设置" class="ncap-btn ncap-btn-green">设置</a>
- </dd>
- </dl>
- <dl class="row">
- <dt class="tit" style="padding-left: 10px;">
- <label>敏感词过滤</label>
- </dt>
- <dd class="opt">
- <a href="javascript:void(0);" onclick="frameEdit(this)" data-url="{:weapp_url('Ask/Ask/sensitive_edit')}" data-title="悬赏模式 - 设置" class="ncap-btn ncap-btn-green">设置</a>
- </dd>
- </dl>
- </div>
- <div class="hDiv">
- <div class="hDivBox">
- <table cellspacing="0" cellpadding="0" style="width: 100%">
- <thead>
- <tr>
- <th abbr="article_show" axis="col5" class="w10">
- <div class="tc"></div>
- </th>
- <th abbr="ac_id" axis="col4">
- <div class="">会员级别名称</div>
- </th>
- <th abbr="article_time" axis="col6" class="w100">
- <div class="tc">每天提问次数</div>
- </th>
- <th abbr="article_time" axis="col6" class="w100">
- <div class="tc">每天回答次数</div>
- </th>
- <th abbr="article_time" axis="col6" class="w100">
- <div class="tc">允许发布</div>
- </th>
- <th abbr="article_time" axis="col6" class="w100">
- <div class="tc">需要审核</div>
- </th>
- </tr>
- </thead>
- </table>
- </div>
- </div>
- <div class="bDiv" style="height: auto;">
- <form id="PostForm">
- <div id="flexigrid" cellpadding="0" cellspacing="0" border="0">
- <table style="width: 100%">
- <tbody>
- {empty name="list"}
- <tr>
- <td class="no-data" align="center" axis="col0" colspan="50">
- <i class="fa fa-exclamation-circle"></i>没有符合条件的记录
- </td>
- </tr>
- {else/}
- {volist name="list" id="vo"}
- <tr>
- <td class="sort">
- <div class="w10 tc">
- </div>
- </td>
- <td style="width: 100%">
- <div style="">
- {$vo.level_name}
- </div>
- </td>
- <td class="">
- <div class="w100 tc">
- <input class="tc w70" type="text" onchange="weappChangeTableVal('weapp_ask_users_level','level_id','{$vo.level_id}','ask_count',this);" name="ask_count" value="{$vo.ask_count}" autocomplete="off" />
- </div>
- </td>
- <td class="">
- <div class="w100 tc">
- <input class="tc w70" type="text" onchange="weappChangeTableVal('weapp_ask_users_level','level_id','{$vo.level_id}','answer_count',this);" name="answer_count" value="{$vo.answer_count}" autocomplete="off" />
- </div>
- </td>
- <td class="">
- <div class="w100 tc">
- {eq name="$vo['ask_is_release']" value='1'}
- <span class="yes" onclick="weappChangeTableVal('weapp_ask_users_level','level_id','{$vo.level_id}','ask_is_release',this);">
- <i class="fa fa-check-circle"></i>是
- </span>
- {else /}
- <span class="no" onclick="weappChangeTableVal('weapp_ask_users_level','level_id','{$vo.level_id}','ask_is_release',this);">
- <i class="fa fa-ban"></i>否
- </span>
- {/eq}
- </div>
- </td>
- <td class="">
- <div class="w100 tc">
- {eq name="$vo['ask_is_review']" value='1'}
- <span class="yes" onclick="weappChangeTableVal('weapp_ask_users_level','level_id','{$vo.level_id}','ask_is_review',this);">
- <i class="fa fa-check-circle"></i>是
- </span>
- {else /}
- <span class="no" onclick="weappChangeTableVal('weapp_ask_users_level','level_id','{$vo.level_id}','ask_is_review',this);">
- <i class="fa fa-ban"></i>否
- </span>
- {/eq}
- </div>
- </td>
- </tr>
- {/volist}
- {/empty}
- </tbody>
- </table>
- </div>
- </form>
- <div class="iDiv" style="display: none;"></div>
- </div>
- <div class="tDiv">
- <div class="tDiv2"><div class="fbutton"></div></div>
- <div style="clear:both"></div>
- </div>
- <!--分页位置-->
- </div>
- </div>
- <script type="text/javascript">
- $(document).ready(function(){
- // 表格行点击选中切换
- $('#flexigrid > table>tbody >tr').click(function(){
- $(this).toggleClass('trSelected');
- });
-
- // 点击刷新数据
- $('.fa-refresh').click(function(){
- location.href = location.href;
- });
- });
-
- $(function(){
- $('input[name=seo_pseudo]').click(function(){
- layer_loading('正在处理');
- var value = $(this).val();
- $.ajax({
- type: "POST",
- url: "{:weapp_url('Ask/Ask/setData')}",
- data: {name:'seo_pseudo',value:value,_ajax:1},
- dataType: "JSON",
- success: function(res){
- layer.closeAll();
- if(parseInt(res.code) == 1){
- layer.msg(res.msg, {icon: 1, time:500}, function(){
- window.location.reload();
- });
- }else{
- layer.alert(res.msg, {icon: 5});
- }
- },
- error: function(e){
- layer.closeAll();
- layer.alert('未知错误,无法继续~', {icon: 5});
- }
- });
- });
- $('input[name=reward_switch]').click(function () {
- var val= $(this).val();
- if (1 == val) {
- $('#reward_type_dl').show();
- }else {
- $('#reward_type_dl').hide();
- }
- });
- });
-
- function frameEdit(obj) {
- var url = $(obj).data('url');
- var title = $(obj).data('title');
- //iframe窗
- layer.open({
- type: 2,
- title: title,
- fixed: true,
- shadeClose: false,
- shade: 0.3,
- area: ['700px', '400px'],
- content: url
- });
- }
- </script>
- {include file="footer.htm" /}
|