unconfirmed.html 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <style>
  2. .right-content{
  3. padding-top:54px!important; padding-left:0!important; width:970px!important;
  4. }
  5. #tabs-container #tab-1 ul li.name{width: 150px;}
  6. </style>
  7. <div class="content">
  8. <% include ../leftBar.html %>
  9. <!-- right content start -->
  10. <div class="right-content">
  11. <div class="pageInfo">Broadcast Bookings</div>
  12. <div id="tabs-container">
  13. <% include topBar.html %>
  14. <div class="tab">
  15. <div id="tab-1" class="tab-content">
  16. <div class="subject">
  17. <ul>
  18. <li>From</li>
  19. <li>Time sent</li>
  20. <li>Broadcast Time</li>
  21. <li></li>
  22. </ul>
  23. </div>
  24. <% if(data.list.length){%>
  25. <div class="list">
  26. <% for(var value of data.list){%>
  27. <ul>
  28. <li>
  29. <div>
  30. <a href="/broadcast/viewerProfile?manid=<%=value.fromid%>">
  31. <div class="avatar_instant">
  32. <img src="<%=value.opposite_photourl%>" class="profile-pic" alt=""/>
  33. </div>
  34. </a>
  35. <ul>
  36. <li class="name Ellipses" title="<%=value.opposite_nickname%>">
  37. <div><a href="/broadcast/viewerProfile?manid=<%=value.fromid%>"><%=value.opposite_nickname%></a></div>
  38. </li>
  39. <li class="contry">
  40. <div><%=value.opposite_country%></div>
  41. </li>
  42. <li>
  43. <ul class="statue" style="display:block;">
  44. <div class="userlevel">
  45. <img src="<%=public_path%>/img/intimacy_<%=value.intimacy%>.png"/>
  46. </div>
  47. <div class="userlevel">
  48. <img src="<%=userLevelInfo[value.level].icon%>"/>
  49. </div>
  50. </ul>
  51. </li>
  52. </ul>
  53. </div>
  54. </li>
  55. <li class="scheduledLiveListTimeSent" data-time="<%=value.add_time*1000%>"></li>
  56. <li class="scheduledLiveListTime" data-time="<%=value.book_time*1000%>"></li>
  57. <li>
  58. <button class="cancle" data-user="<%=value.inviteid%>">Cancel</button>
  59. </li>
  60. </ul>
  61. <%}%>
  62. </div>
  63. <%}else{%>
  64. <div class="empty">No bookings.</div>
  65. <%}%>
  66. </div>
  67. </div>
  68. </div>
  69. <div id="page" class="pagenation"></div>
  70. </div>
  71. <!-- right content end -->
  72. </div>
  73. <script>
  74. $(function(){
  75. anchorReservationTime();
  76. anchorReservationTimeSent();
  77. $('.cancle').on('click', function(){
  78. var id = $(this).attr('data-user');
  79. parent.layer.confirm('Are you sure you wish to cancel this booking request?', {
  80. btn:['Cancel', 'Yes'],
  81. title:'',
  82. btnAlign:'c',
  83. closeBtn: 0,
  84. shadeClose:true,
  85. shade:0.01
  86. }, function(){
  87. parent.layer.msg('Cancel');
  88. }, function(){
  89. $.post('/lady/v1/cancelScheduledInvite', {invite_id:id}, function(data){
  90. if(data.errno == 0){
  91. window.location.href='/broadcast/scheduledLiveHistory';
  92. myParentAlert('Your booking has been canceled successfully.');
  93. }else{
  94. window.location.reload();
  95. myParentAlert('Could not cancel the booking. Please try again later.');
  96. }
  97. })
  98. });
  99. })
  100. //分页
  101. var pages = Math.ceil('<%=data.total%>'/15);
  102. if(pages>1) {
  103. page('page', pages);
  104. }
  105. })
  106. </script>