index.html 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. {// 引入标签库 }
  2. <tagLib name="html" />
  3. <include file="Public:header" />
  4. <include file="Public:new" />
  5. <load href='__TMPL__Common/js/jquery.bgiframe.js' />
  6. <load href='__TMPL__Common/js/jquery.weebox.js' />
  7. <load href='__TMPL__Common/js/user.js' />
  8. <load href='__TMPL__Common/style/weebox.css' />
  9. <div class="main">
  10. <div class="main_title_list"><div class="list-line-ico"></div>主播认证审核未通过列表</div>
  11. <php>
  12. function get_level($level){
  13. $user_level = $GLOBALS['db']->getOne("select `name` from ".DB_PREFIX."user_level where id = '".intval($level)."'");
  14. return $user_level;
  15. }
  16. function head_image($head_image){
  17. return "<img src='".$head_image."' style='height:35px;width:35px;'/>";
  18. }
  19. function show_content_1($id,$user){
  20. switch($user['is_authentication']){
  21. case 1:
  22. return "<a href='javascript:show_content(".$id.",1);'>审核</a>";
  23. break;
  24. case 2:
  25. return "审核通过";
  26. break;
  27. case 3:
  28. return "<a href='javascript:show_content(".$id.",1);'>未通过</a>";
  29. break;
  30. }
  31. }
  32. function user_type($user_type,$user){
  33. if($user['authentication_type']=='公会红人申请'){
  34. return "公会红人申请";
  35. }else{
  36. return "普通会员";
  37. }
  38. }
  39. </php>
  40. <script type="text/javascript">
  41. function show_content(id,$status)
  42. {
  43. $.ajax({
  44. url: ROOT+'?m=UserInvestorList&a=show_content&id='+id+'&status='+$status,
  45. data: "ajax=1",
  46. dataType: "json",
  47. success: function(msg){
  48. if(msg.status==0){
  49. alert(msg.info);
  50. }
  51. },
  52. error: function(){
  53. $.weeboxs.open(ROOT+'?m=UserInvestorList&a=show_content&id='+id+'&status='+$status, {contentType:'ajax',showButton:false,title:LANG['SHOW_CONTENT'],width:850,height:500});
  54. }
  55. });
  56. }
  57. function send(id)
  58. {
  59. $.ajax({
  60. url: ROOT+"?"+VAR_MODULE+"="+MODULE_NAME+"&"+VAR_ACTION+"=send&id="+id,
  61. data: "ajax=1",
  62. success: function(msg){
  63. alert(msg);
  64. }
  65. });
  66. }
  67. </script>
  68. <div class="search_row">
  69. <form name="search" action="__APP__" method="get" class="clearfix">
  70. <div>主播ID:<input type="text" class="textbox" name="id" value="{:trim($_REQUEST['id'])}" style="width:100px" /></div>
  71. <div>主播昵称:<input type="text" class="textbox" name="nick_name" value="{:trim($_REQUEST['nick_name'])}" style="width:100px;margin:0" /><input type="hidden" value="UserInvestorList" name="m" /><input type="hidden" value="index" name="a" /><input type="submit" class="button" value="{%SEARCH}" /></div>
  72. </form>
  73. </div>
  74. <html:list
  75. id="dataTable"
  76. style="dataTable"
  77. name="user"
  78. action="true"
  79. datasource="list"
  80. show="id:主播ID
  81. ,nick_name:{%NICK_NAME}
  82. ,authentication_type:认证名称
  83. ,head_image|head_image:{%USER_HEADIMAGE}
  84. ,fans_count:{%USER_FANS}
  85. ,ticket:{%USER_TICKET}
  86. ,user_level|get_level=$user['user_level']:{%LEVEL}
  87. ,user_type|user_type=$user:申请类型
  88. ,is_authentication|get_investor_status:申请状态
  89. ,investor_send_info:拒绝理由"
  90. actionlist="id|show_content_1=$user" />
  91. <div class="page">{$page}</div>
  92. </div>
  93. <include file="Public:footer" />