viewer_list.html 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  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/js/deal.js' />
  9. <load href='__TMPL__Common/style/weebox.css' />
  10. <script type="text/javascript" src="__TMPL__Common/js/calendar/calendar.php?lang=zh-cn" ></script>
  11. <load href='__TMPL__Common/js/calendar/calendar.css' />
  12. <load href='__TMPL__Common/js/calendar/calendar.js' />
  13. <div class="main">
  14. <div class="main_title_list"><div class="list-line-ico"></div>观众列表</div>
  15. <php>
  16. function get_level($level){
  17. $user_level = $GLOBALS['db']->getOne("select `name` from ".DB_PREFIX."user_level where level = '".intval($level)."'");
  18. return $user_level;
  19. }
  20. function head_image($head_image){
  21. if($head_image==''){
  22. return "<a style='height:35px;width:35px;'/>头像未上传</a>";
  23. }else{
  24. return "<img src='".$head_image."' style='height:35px;width:35px;'/>";
  25. }
  26. }
  27. function get_online($is_online){
  28. if($is_online==1){
  29. return '是';
  30. }else{
  31. return '否';
  32. }
  33. }
  34. </php>
  35. <script>
  36. function forbid_msg($id){
  37. var r=confirm("确定要修改状态?");
  38. if (r==true){
  39. $.ajax({
  40. url: ROOT+"?"+VAR_MODULE+"="+MODULE_NAME+"&"+VAR_ACTION+"=forbid_msg&user_id="+$id,
  41. data: "",
  42. dataType: "json",
  43. success: function(obj){
  44. alert(obj.info);
  45. func();
  46. function func(){
  47. if(obj.status==1){
  48. location.href=location.href;
  49. }
  50. }
  51. }
  52. });
  53. }else{
  54. }
  55. }
  56. function goods(id){
  57. location.href = ROOT+"?"+VAR_MODULE+"="+MODULE_NAME+"&"+VAR_ACTION+"=goods&user_id="+id;
  58. }
  59. function clear_view_count()
  60. {
  61. if(confirm("确定要清空累计观看?"))
  62. $.ajax({
  63. url: ROOT+"?"+VAR_MODULE+"="+MODULE_NAME+"&"+VAR_ACTION+"=clear_view_count",
  64. data: "ajax=1",
  65. dataType: "json",
  66. success: function(obj){
  67. alert(obj.info);
  68. func();
  69. function func(){
  70. if(obj.status==1){
  71. location.href=location.href;
  72. }
  73. }
  74. }
  75. });
  76. }
  77. function forbid_game($id){
  78. var r=confirm("确定要修改状态?");
  79. if (r==true){
  80. $.ajax({
  81. url: ROOT+"?"+VAR_MODULE+"="+MODULE_NAME+"&"+VAR_ACTION+"=forbid_game&user_id="+$id,
  82. data: "",
  83. dataType: "json",
  84. success: function(obj){
  85. alert(obj.info);
  86. func();
  87. function func(){
  88. if(obj.status==1){
  89. location.href=location.href;
  90. }
  91. }
  92. }
  93. });
  94. }else{
  95. }
  96. }
  97. function forbid_pay($id){
  98. var r=confirm("确定要修改状态?");
  99. if (r==true){
  100. $.ajax({
  101. url: ROOT+"?"+VAR_MODULE+"="+MODULE_NAME+"&"+VAR_ACTION+"=forbid_pay&user_id="+$id,
  102. data: "",
  103. dataType: "json",
  104. success: function(obj){
  105. alert(obj.info);
  106. func();
  107. function func(){
  108. if(obj.status==1){
  109. location.href=location.href;
  110. }
  111. }
  112. }
  113. });
  114. }else{
  115. }
  116. }
  117. function forbid_auction($id){
  118. var r=confirm("确定要修改状态?");
  119. if (r==true){
  120. $.ajax({
  121. url: ROOT+"?"+VAR_MODULE+"="+MODULE_NAME+"&"+VAR_ACTION+"=forbid_auction&user_id="+$id,
  122. data: "",
  123. dataType: "json",
  124. success: function(obj){
  125. alert(obj.info);
  126. func();
  127. function func(){
  128. if(obj.status==1){
  129. location.href=location.href;
  130. }
  131. }
  132. }
  133. });
  134. }else{
  135. }
  136. }
  137. </script>
  138. <div class="search_row">
  139. <form name="search" action="__APP__" method="get" class="clearfix">
  140. <div>主播ID:<input type="text" class="textbox" name="id" value="{:trim($_REQUEST['id'])}" style="width:100px;" /></div>
  141. <div>主播昵称:<input type="text" class="textbox" name="nick_name" value="{:trim($_REQUEST['nick_name'])}" style="width:100px;" /></div>
  142. <input type="hidden" value="{$child_room_id}" name="child_room_id"><input type="hidden" value="ChildRoom" name="m" /><input type="hidden" value="viewer_list" name="a" /><input type="submit" class="button" value="{%SEARCH}" /></div>
  143. </form>
  144. </div>
  145. <html:list
  146. id="dataTable"
  147. style="dataTable"
  148. name="user"
  149. action="true"
  150. datasource="list"
  151. show="id:主播ID
  152. ,nick_name:{%NICK_NAME}
  153. ,head_image|head_image:{%USER_HEADIMAGE}
  154. ,user_level|get_level=$user['user_level']:{%LEVEL}
  155. ,login_ip:登录IP"
  156. actionlist="user_prop:{%USER_PROP_DETAIL}" />
  157. <div class="page">{$page}</div>
  158. </div>
  159. <script>
  160. function user_prop(user_id){
  161. var child_room_id = $(".search_row input[name='child_room_id']").val();
  162. location.href = ROOT+"?"+VAR_MODULE+"="+MODULE_NAME+"&"+VAR_ACTION+"=user_prop&user_id="+user_id+"&room_id="+child_room_id;
  163. }
  164. </script>
  165. <include file="Public:footer" />