| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139 |
- {// 引入标签库 }
- <tagLib name="html" />
- <include file="Public:header" />
- <include file="Public:new" />
- <load href='__TMPL__Common/js/jquery.bgiframe.js' />
- <load href='__TMPL__Common/js/jquery.weebox.js' />
- <load href='__TMPL__Common/js/user.js' />
- <load href='__TMPL__Common/style/weebox.css' />
- <div class="main">
- <div class="main_title_list"><div class="list-line-ico"></div>主播认证申请列表</div>
- <php>
- function get_level($level){
- $user_level = $GLOBALS['db']->getOne("select `name` from ".DB_PREFIX."user_level where level = '".intval($level)."'");
- return $user_level;
- }
- function head_image($head_image){
- return "<img src='".$head_image."' style='height:35px;width:35px;'/>";
- }
- function show_content_1($id,$user){
- switch($user['is_authentication']){
- case 1:
- return "<a href='javascript:show_content(".$id.",1);'>审核</a>";
- break;
- case 2:
- return "审核已通过";
- break;
- case 3:
- return "<a href='javascript:show_content(".$id.",1);'>未通过</a>";
- break;
- }
- }
- function user_type($user_type,$user){
- if($user['authentication_type']=='公会红人申请'){
- return "公会红人申请";
- }else{
- return "普通会员";
- }
- }
- </php>
- <script type="text/javascript">
- function show_content(id,$status)
- {
- $.ajax({
- url: ROOT+'?m=UserInvestor&a=show_content&id='+id+'&status='+$status,
- data: "ajax=1",
- dataType: "json",
- success: function(msg){
- if(msg.status==0){
- alert(msg.info);
- }
- },
- error: function(){
- $.weeboxs.open(ROOT+'?m=UserInvestor&a=show_content&id='+id+'&status='+$status, {contentType:'ajax',showButton:false,title:LANG['SHOW_CONTENT'],width:850,height:500});
- }
- });
- }
- function batch_content(id,$status)
- {
- if(!id)
- {
- idBox = $(".key:checked");
- if(idBox.length == 0)
- {
- alert("请选择要审核的用户");
- return;
- }
- idArray = new Array();
- $.each( idBox, function(i, n){
- idArray.push($(n).val());
- });
- id = idArray.join(",");
- }
- $.ajax({
- url: ROOT+'?m=UserInvestor&a=batch_content&id='+id+'&status='+$status,
- data: "ajax=1",
- dataType: "json",
- success: function(msg){
- if(msg.status==0){
- alert(msg.info);
- }
- },
- error: function(){
- $.weeboxs.open(ROOT+'?m=UserInvestor&a=batch_content&id='+id+'&status='+$status, {contentType:'ajax',showButton:false,title:LANG['SHOW_CONTENT'],width:1200,height:600});
- }
- });
- }
- function send(id)
- {
- $.ajax({
- url: ROOT+"?"+VAR_MODULE+"="+MODULE_NAME+"&"+VAR_ACTION+"=send&id="+id,
- data: "ajax=1",
- success: function(msg){
- alert(msg);
- }
- });
- }
- </script>
- <div class="search_row">
- <form name="search" action="__APP__" method="get" class="clearfix">
- <div>主播ID:<input type="text" class="textbox" name="id" value="{:trim($_REQUEST['id'])}" style="width:100px" /></div>
- <div>主播昵称:<input type="text" class="textbox" name="nick_name" value="{:trim($_REQUEST['nick_name'])}" style="width:100px" />
- <input type="hidden" value="UserInvestor" name="m" /><input type="hidden" value="index" name="a" /><input type="submit" class="button" value="{%SEARCH}" /></div>
- </form>
- </div>
- <html:list
- id="dataTable"
- style="dataTable"
- checkbox="true"
- name="user"
- action="true"
- datasource="list"
- show="id:主播ID|90px
- ,nick_name:{%NICK_NAME}|180px
- ,authentication_type:认证名称
- ,head_image|head_image:{%USER_HEADIMAGE}|150px
- ,fans_count:{%USER_FANS}
- ,ticket:{%USER_TICKET}
- ,user_level|get_level=$user['user_level']:{%LEVEL}
- ,user_type|user_type=$user:申请类型
- ,is_authentication|get_investor_status:申请状态"
- actionlist="id|show_content_1=$user" />
- <table class="dataTable">
- <tbody>
- <td colspan="5">
- <input type="button" class="button button-add" value="批量审核" onclick="batch_content();" />
- </td>
- </tbody>
- </table>
- <div class="page">{$page}</div>
- </div>
- <include file="Public:footer" />
|