orderUserList.html 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. <%var cssParam = {%>
  2. <%};%>
  3. <%var jsParam = {%>
  4. <script type="text/javascript">
  5. function openWindowOpt(optType, optId){
  6. var url = "${contextPath}/VideoConference/";
  7. var param = "scrollbars=yes,status=no,resizable=no,location=no,toolbar=no,top=0,left=0,width=1024,height=768";
  8. if(optType == 1){
  9. url = url + "beginConference?id=" + optId;
  10. }else if(optType == 2){
  11. url = url + "beginConference?id=" + optId;
  12. }else{
  13. url = url + "joinConference?opttype=other&id=" + optId;
  14. }
  15. window.open(url, "_blank", param);
  16. }
  17. function freeOpenWindow(url, optParam){
  18. var param = "scrollbars=yes,status=no,resizable=no,location=no,toolbar=no,top=0,left=0,width=1024,height=768";
  19. if(optParam != ""){
  20. param = optParam;
  21. }
  22. window.open(url, "_blank", param);
  23. }
  24. function openDialog(url,msg){
  25. url = "${contextPath}/VideoConference/" + url;
  26. bootbox.dialog({
  27. title: "系统提示",
  28. message: msg,
  29. locale:"zh_CN",
  30. buttons: {
  31. cancel: {label: "取消",className: "btn-cancel",callback: function() {}},
  32. ok: {label: "确定",className: "btn-success",
  33. callback: function() {
  34. window.location.href = url;
  35. }
  36. }
  37. }
  38. });
  39. }
  40. function setUser(name, vcUserId){
  41. $("#name").val(name);
  42. $("#vcUserid").val(vcUserId);
  43. }
  44. function openDialogToAjax(url,msg){
  45. url = "${contextPath}/VideoConference/" + url;
  46. bootbox.dialog({
  47. title: "系统提示",
  48. message: msg,
  49. locale:"zh_CN",
  50. buttons: {
  51. cancel: {label: "取消",className: "btn-cancel",callback: function() {}},
  52. ok: {label: "确定",className: "btn-success",
  53. callback: function() {
  54. // Ajax操作
  55. }
  56. }
  57. }
  58. });
  59. }
  60. <%if(""!=msg!""){%>
  61. alert('${msg}');
  62. <%}%>
  63. </script>
  64. <%};%>
  65. <%layout("/VideoConference/commonPage/_layout.html", {nav: "会议邀请成员列表",meunsel:"orderListPage",jsParam:jsParam,cssParam:cssParam}) {%>
  66. <div class="col-xs-12">
  67. <div class="row">
  68. <form id="addForm" action="${contextPath}/VideoConference/addInvitedUser" method="post" class="form-horizontal">
  69. <input type="hidden" name="pageNumber" value="${pageNumber!1}" />
  70. <input type="hidden" name="orderUser.orderid" value="${orderid!}" />
  71. <input type="hidden" name="orderUser.vcUserid" id="vcUserid" value="" />
  72. 角色:
  73. <select name="orderUser.userType" >
  74. <option value="2">专家</option>
  75. <option value="1">主讲人</option>
  76. <option value="3">观众</option>
  77. </select>
  78. 姓名:<input type="text" name="name" id="name" placeholder="请输入名称" value="" readonly="readonly"/>
  79. <a class="btn btn-xs btn-success" href="javascript:freeOpenWindow('${contextPath}/VideoConference/getNotInvitedUserList?pageNumber=${pageNumber!1}&optCode=sel&id=${orderid!}', '')">
  80. <i class="icon-user bigger-120">选择成员</i>
  81. </a>
  82. <button class="btn btn-xs btn-primary" onclick="document.getElementById('addForm').submit();"><i class="icon-ok bigger-120">添加邀请</i></button>
  83. <a class="btn btn-xs btn-danger" href="${contextPath}/VideoConference/getOrderList?pageNumber=${pageNumber!1}">
  84. <i class="icon-reply bigger-120">返回</i>
  85. </a>
  86. </form>
  87. </div>
  88. </div>
  89. <div class="col-xs-12">
  90. <div class="row">
  91. <div class="table-responsive">
  92. <table id="sample-table-1" class="table table-striped table-bordered table-hover">
  93. <thead>
  94. <tr>
  95. <th>序号</th>
  96. <th>姓名</th>
  97. <th>身份证号码</th>
  98. <th>联系电话</th>
  99. <th>参与角色</th>
  100. <th>状态</th>
  101. <th>操作</th>
  102. </tr>
  103. </thead>
  104. <tbody>
  105. <%for(tempDate in userList!){%>
  106. <tr>
  107. <td>${tempDateLP.index}</td>
  108. <td>${tempDate.userName}</td>
  109. <td>${tempDate.cardnumber}</td>
  110. <td>${tempDate.phone}</td>
  111. <td>
  112. <%if(tempDate.userType==1){%>
  113. 主讲人
  114. <%}else if(tempDate.userType==2){%>
  115. 专家
  116. <%}else if(tempDate.userType==3){%>
  117. 观众
  118. <%}%>
  119. </td>
  120. <td>
  121. <%if(tempDate.state==0){%>
  122. 未参与
  123. <%}else if(tempDate.state==1){%>
  124. 已参与
  125. <%}%>
  126. </td>
  127. <td>
  128. <%if(tempDate.state==0){%>
  129. <a class="btn btn-xs btn-info" href="javascript:openDialog('delInvitedUser?id=${tempDate.id}&pageNumber=${pageNumber!1}', '您确定要删除对${tempDate.userName}的邀请么?')" data-toggle="tooltip" data-placement="auto" title="删除邀请">
  130. <i class="icon-trash bigger-120"></i>
  131. </a>
  132. <%}%>
  133. </td>
  134. </tr>
  135. <%}elsefor{%>
  136. <tr>
  137. <td colspan="10">没有记录!</td>
  138. </tr>
  139. <%}%>
  140. </tbody>
  141. </table>
  142. </div>
  143. <!-- /.table-responsive -->
  144. </div>
  145. </div>
  146. <%}%>