account.html 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. {// 引入标签库 }
  2. <tagLib name="html" />
  3. <include file="Public:header" />
  4. <PHP>
  5. function get_level($id){
  6. $get_level=$GLOBALS['db']->getOne("select ul.name from ".DB_PREFIX."user_level as ul left join ".DB_PREFIX."user as u on u.user_level = ul.level where u.id=".$id);
  7. return $get_level;
  8. }
  9. function get_nickname($id){
  10. $get_nickname=$GLOBALS['db']->getOne("select nick_name from ".DB_PREFIX."user where id=".$id);
  11. return emoji_decode($get_nickname);
  12. }
  13. function image($image){
  14. if($image==''){
  15. return "<a style='height:35px;width:35px;'/>图片未上传</a>";
  16. }else{
  17. return "<img src='".$image."' style='height:35px;width:35px;'/>";
  18. }
  19. }
  20. </PHP>
  21. <script>
  22. function refresh(){
  23. $(document).ready(function(){
  24. window.location.reload();
  25. });
  26. }
  27. //添加子房间
  28. function add_child_room_account(){
  29. location.href = ROOT+"?"+VAR_MODULE+"="+MODULE_NAME+"&"+VAR_ACTION+"=add_child_room_account";
  30. }
  31. //编辑子房间
  32. function edit_child_room_account(id){
  33. location.href = ROOT+"?"+VAR_MODULE+"="+MODULE_NAME+"&"+VAR_ACTION+"=edit_child_room_account&id="+id;
  34. }
  35. //观众列表
  36. function account_list(id){
  37. location.href = ROOT+"?"+VAR_MODULE+"="+MODULE_NAME+"&"+VAR_ACTION+"=account_list&id="+id;
  38. }
  39. </script>
  40. <load href='__TMPL__Common/js/jquery.bgiframe.js' />
  41. <load href='__TMPL__Common/js/jquery.weebox.js' />
  42. <load href='__TMPL__Common/js/deal.js' />
  43. <load href='__TMPL__Common/js/user.js' />
  44. <load href='__TMPL__Common/style/weebox.css' />
  45. <script type="text/javascript" src="__TMPL__Common/js/calendar/calendar.php?lang=zh-cn" ></script>
  46. <load href='__TMPL__Common/js/calendar/calendar.css' />
  47. <load href='__TMPL__Common/js/calendar/calendar.js' />
  48. <div class="main">
  49. <div class="main_title_list"><div class="list-line-ico"></div>子房间列表<a href="/{$url_name}?m=ChildRoom&a=account&&">刷新</a></div>
  50. <div class="search_row">
  51. <form name="search" action="__APP__" method="get" class="clearfix">
  52. <div>主播ID: <input type="text" class="textbox" name="user_id" value="{:trim($_REQUEST['user_id'])}" style="width:100px;" /></div>
  53. <div>主播昵称:<input type="text" class="textbox" name="nick_name" value="{:trim($_REQUEST['nick_name'])}" style="width:100px;" /></div>
  54. <div><input type="hidden" value="ChildRoom" name="m" /><input type="hidden" value="account" name="a" /><input type="submit" class="button" value="{%SEARCH}"/></div>
  55. </form>
  56. </div>
  57. <html:list
  58. id="dataTable"
  59. style="dataTable"
  60. name="account"
  61. checkbox="true"
  62. action="true"
  63. datasource="list"
  64. show="id:编号
  65. ,head_image|image:主账号头像
  66. ,p_user_id:主账号
  67. ,nick_name:主账号昵称
  68. ,c_user_id:子账户ID
  69. ,price:价格
  70. ,room_title:房间名称
  71. ,video_code:验证码
  72. ,is_effect|get_is_effect=$account['id']:{%IS_EFFECT}"
  73. actionlist="edit_child_room_account:{%EDIT},account_list:子账户列表" />
  74. <table class="dataTable">
  75. <tbody>
  76. <td colspan="11">
  77. <input type="button" class="button button-add" value="{%ADD}" onclick="add_child_room_account();" />
  78. <!--<input type="button" class="button button-del" value="{%DEL}" onclick="del_child_room();" />-->
  79. </td>
  80. </tbody>
  81. </table>
  82. <div class="page">{$page}</div><!--(数值越大在app热门直播中越靠前) ,vote_number:{%TICKET}-->
  83. </div>
  84. <include file="Public:footer" />