123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- <%var cssParam = {%>
- <%};%>
- <%var jsParam = {%>
- <script type="text/javascript">
- function todel(url,msg){
- bootbox.dialog({
- title: "系统提示",
- message: msg,
- locale:"zh_CN",
- buttons: {
- cancel: {label: "取消",className: "btn-cancel",callback: function() {}},
- ok: {label: "确定",className: "btn-success",
- callback: function() {
- window.location.href = url;
- }
- }
- }
- });
- }
- </script>
- <%};%>
- <%layout("/onlineSurvey/afterPage/commonPage/_layout.html", {nav: "网上调查管理",meunsel:"onlineSurveyManage",jsParam:jsParam,cssParam:cssParam}) {%>
- <div class="col-xs-12">
- <div class="row">
- <form id="searchForm" action="/admin/onlineSurvey/getThemeList" method="post" class="form-horizontal">
- <input type="hidden" name="pageNumber" value="1" />
- 查询用户编号:<input type="text" name="userid" placeholder="请输入用户编号" value="" />
- 查询主题说明:<input type="text" name="explains" placeholder="请输入主题说明" value="" />
- <button class="btn btn-xs btn-primary" onclick="document.getElementById('searchForm').submit();"><i class="icon-search bigger-120">查询</i></button>
- <a class="btn btn-xs btn-success" href="${contextPath}/admin/onlineSurvey/toeditTheme?pageNumber=${pageNumber!1}">
- <i class="icon-ok bigger-120">添加调查主题</i>
- </a>
- </form>
- </div>
- </div>
- <div class="col-xs-12">
- <div class="row">
- <div class="table-responsive">
- <table id="sample-table-1" class="table table-striped table-bordered table-hover">
- <thead>
- <tr>
- <th>序号</th>
- <th>主题说明</th>
- <th>可选择的选项数量</th>
- <th>目前状态</th>
- <th>状态操作</th>
- <th>操作 </th>
- </tr>
- </thead>
- <tbody>
- <%for(tempDate in dateList!){%>
- <tr>
- <td>${tempDateLP.index}</td>
- <td><a href = ${contextPath}/admin/onlineSurvey/getOptionsList4Theme?themeId=${tempDate.id}&pageNumber=${pageNumber!1}&urlParas=${urlParas!''}>${tempDate.explains!''}</a></td>
- <td>${tempDate.selnum!''}</td>
- <td>
- <%if(tempDate.state == 0){%>
- <font color="blue">开启</font>
- <%}else if(tempDate.state == 1){%>
- <font color="green">未开启</font>
- <%}else if(tempDate.state == 2){%>
- <font color="red">结束</font>
- <%}%>
- </td>
- <td>
- <a href = ${contextPath}/admin/onlineSurvey/editThemeState?id=${tempDate.id}&state=${state!0}&pageNumber=${pageNumber!1}&urlParas=${urlParas!''}>开启</a>
- <a href = ${contextPath}/admin/onlineSurvey/editThemeState?id=${tempDate.id}&state=${state!1}&pageNumber=${pageNumber!1}&urlParas=${urlParas!''}>关闭</a>
- <a href = ${contextPath}/admin/onlineSurvey/editThemeState?id=${tempDate.id}&state=${state!2}&pageNumber=${pageNumber!1}&urlParas=${urlParas!''}>结束</a>
-
- </td>
- <td>
- <div class="visible-md visible-lg hidden-sm hidden-xs btn-group">
- <a class="btn btn-xs btn-info" href="${contextPath}/admin/onlineSurvey/viewTheme?id=${tempDate.id}" target="_blank" data-toggle="tooltip" data-placement="auto" title="查看详情">
- <i class="icon-flag bigger-120"></i>
- </a>
-
- <a class="btn btn-xs btn-info" href="${contextPath}/admin/onlineSurvey/toeditTheme?id=${tempDate.id}&pageNumber=${pageNumber!1}&urlParas=${urlParas!''}" data-toggle="tooltip" data-placement="auto" title="编辑">
- <i class="icon-edit bigger-120"></i>
- </a>
- <a class="btn btn-xs btn-danger" href="javascript:todel('${contextPath}/admin/onlineSurvey/delTheme?id=${tempDate.id}&pageNumber=${pageNumber!1}&urlParas=${urlParas!}','记录将被永久删除,并且无法恢复。您确定吗?')" onclick="" data-toggle="tooltip" data-placement="auto" title="删除">
- <i class="icon-trash bigger-120"></i>
- </a>
- </div>
- </td>
- </tr>
- <%}elsefor{%>
- <tr>
- <td colspan="8">没有记录!</td>
- </tr>
- <%}%>
- </tbody>
- </table>
- </div>
- <div class="pull-right">
- <%include("/onlineSurvey/afterPage/commonPage/_paginate.html", {"currentPage": pageNumber!1, "totalPage": totalPage!1, "totalRow": totalRow!0, "actionUrl": contextPath+"/admin/onlineSurvey/getThemeList?pageNumber=", "urlParas": urlParas!''}){}%>
- </div>
- <!-- /.table-responsive -->
- </div>
- <!-- /span -->
- </div>
- <!-- /row -->
- <%}%>
-
|