orderUserList.html 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. <%var cssParam = {%>
  2. <%};%>
  3. <%var jsParam = {%>
  4. <script type="text/javascript">
  5. function openWindowOpt(optType, optId){
  6. var url = "${contextPath}/vcNew/";
  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}/vcNew/" + 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}/vcNew/" + 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_2.html", {nav: "会议邀请成员列表",meunsel:"orderListPage",jsParam:jsParam,cssParam:cssParam}) {%>
  66. <div class="col-xs-12">
  67. <div class="row">
  68. <form id="addForm" action="${contextPath}/vcNew/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}/vcNew/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. </form>
  84. </div>
  85. </div>
  86. <div class="col-xs-12">
  87. <div class="row">
  88. <div class="table-responsive">
  89. <table id="sample-table-1" class="table table-striped table-bordered table-hover">
  90. <thead>
  91. <tr>
  92. <th>序号</th>
  93. <th>姓名</th>
  94. <th>身份证号码</th>
  95. <th>联系电话</th>
  96. <th>参与角色</th>
  97. <th>状态</th>
  98. <th>操作</th>
  99. </tr>
  100. </thead>
  101. <tbody>
  102. <%for(tempDate in userList!){%>
  103. <tr>
  104. <td>${tempDateLP.index}</td>
  105. <td>${tempDate.userName}</td>
  106. <td>${tempDate.cardnumber}</td>
  107. <td>${tempDate.phone}</td>
  108. <td>
  109. <%if(tempDate.userType==1){%>
  110. 主讲人
  111. <%}else if(tempDate.userType==2){%>
  112. 专家
  113. <%}else if(tempDate.userType==3){%>
  114. 观众
  115. <%}%>
  116. </td>
  117. <td>
  118. <%if(tempDate.state==0){%>
  119. 未参与
  120. <%}else if(tempDate.state==1){%>
  121. 已参与
  122. <%}%>
  123. </td>
  124. <td>
  125. <%if(tempDate.state==0){%>
  126. <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="删除邀请">
  127. <i class="icon-trash bigger-120"></i>
  128. </a>
  129. <%}%>
  130. </td>
  131. </tr>
  132. <%}elsefor{%>
  133. <tr>
  134. <td colspan="10">没有记录!</td>
  135. </tr>
  136. <%}%>
  137. </tbody>
  138. </table>
  139. </div>
  140. <!-- /.table-responsive -->
  141. </div>
  142. </div>
  143. <%}%>