index.html 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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 level = '".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. </php>
  33. <script type="text/javascript">
  34. function show_content(id,$status)
  35. {
  36. $.ajax({
  37. url: ROOT+'?m=EduUserInvestor&a=show_content&id='+id+'&status='+$status,
  38. data: "ajax=1",
  39. dataType: "json",
  40. success: function(msg){
  41. if(msg.status==0){
  42. alert(msg.info);
  43. }
  44. },
  45. error: function(){
  46. $.weeboxs.open(ROOT+'?m=EduUserInvestor&a=show_content&id='+id+'&status='+$status, {contentType:'ajax',showButton:false,title:LANG['SHOW_CONTENT'],width:850,height:500});
  47. }
  48. });
  49. }
  50. function send(id)
  51. {
  52. $.ajax({
  53. url: ROOT+"?"+VAR_MODULE+"="+MODULE_NAME+"&"+VAR_ACTION+"=send&id="+id,
  54. data: "ajax=1",
  55. success: function(msg){
  56. alert(msg);
  57. }
  58. });
  59. }
  60. </script>
  61. <div class="search_row">
  62. <form name="search" action="__APP__" method="get" class="clearfix">
  63. <div>主播ID:<input type="text" class="textbox" name="id" value="{:trim($_REQUEST['id'])}" style="width:100px" /></div>
  64. <div>主播昵称:<input type="text" class="textbox" name="nick_name" value="{:trim($_REQUEST['nick_name'])}" style="width:100px" />
  65. <input type="hidden" value="EduUserInvestor" name="m" /><input type="hidden" value="index" name="a" /><input type="submit" class="button" value="{%SEARCH}" /></div>
  66. </form>
  67. </div>
  68. <html:list
  69. id="dataTable"
  70. style="dataTable"
  71. name="user"
  72. action="true"
  73. datasource="list"
  74. show="id:主播ID|90px
  75. ,nick_name:{%NICK_NAME}|180px
  76. ,authentication_type:认证名称
  77. ,head_image|head_image:{%USER_HEADIMAGE}|150px
  78. ,fans_count:{%USER_FANS}
  79. ,ticket:{%USER_TICKET}
  80. ,user_level|get_level=$user['user_level']:{%LEVEL}
  81. ,user_type|get_investor:申请类型
  82. ,is_authentication|get_investor_status:申请状态"
  83. actionlist="id|show_content_1=$user" />
  84. <div class="page">{$page}</div>
  85. </div>
  86. <include file="Public:footer" />