| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235 |
- <%@ page language="java" contentType="text/html;charset=GBK" pageEncoding="GBK"%>
- <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
- <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <head>
- <!-- by qianqw 20150317 -->
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <!-- end -->
- <meta http-equiv="Content-Type" content="text/html;charset=GBK">
- <title>查看商机信息</title>
- <link href="${pageContext.request.contextPath }/main.css" rel="stylesheet" type="text/css" />
- <link href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css" rel="stylesheet" type="text/css" />
- <script src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
- <script type="text/javascript" src="/shares/js/constant.js"></script>
- <script type="text/javascript" src="/shares/js/common.js"></script>
- <script type="text/javascript" src="/shares/js/file.js"></script>
- <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/core/base.js" type="text/javascript"></script>
- <script type="text/javascript" src="/shares/datePicker/WdatePicker.js"></script>
- <script src="${pageContext.request.contextPath}/liger/lib/json2.js" type="text/javascript"></script>
- <script type="text/javascript" src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/ligerui.all.js"></script>
- <script type="text/javascript">
- var commentGrid = null;
- var supportGrid = null;
- var checkValue = new Array(); //定义一个数组
- var i = 0;
- var curTab = 1;
- $(function (){
- var universalid = $("#oppo\\.universalid").val();
- if('' != "" && typeof ('') != "undefined"){
- checkValue = ''.split(",");
- }
- orderTab=$("#commentTab").ligerTab({ onAfterSelectTabItem: function (tabid){
- if(tabid == "tabitem1"){
- curTab = 1;
- searchComment(universalid);
- }else if(tabid == "tabitem2"){
- curTab = 2;
- searchSupport(universalid);
- }
- }});
- searchComment(universalid);
- });
- /**
- * 查询评论信息
- */
- function searchComment(universalid){
- var columns = [
- {
- display : '用户',
- name : 'name',
- width : 100
- }, {
- display : '评论内容',
- name : 'content',
- width : 300
- }, {
- display : '评论时间',
- name : 'create_date',
- width : 150
- }
- ];
- commentGrid = $("#commentGrid")
- .ligerGrid(
- {
- columns : columns,
- checkbox : true,
- pageSize : 20,
- url : 'opBusinessOpportunityAction.do?task=commentList&time=' + new Date().getTime()+'&universalid=' + universalid,
- pageParmName : 'p', //页索引参数名,(提交给服务器)
- pagesizeParmName : 'pSize', //页记录数参数名,(提交给服务器)
- width : '99.9%',
- height : 260
- });
- $("#pageloading").hide();
- //$(".l-grid-hd-cell-btn-checkbox").css("display", "none"); //隱藏checkAll
- }
- /**
- * 查询赞信息
- */
- function searchSupport(universalid){
- var columns = [
- {
- display : '点赞用户',
- name : 'name',
- width : 100
- }, {
- display : '点赞时间',
- name : 'create_date',
- width : 150
- }
- ];
- supportGrid = $("#supportGrid")
- .ligerGrid(
- {
- columns : columns,
- rownumbers : true,
- pageSize : 20,
- url : 'opBusinessOpportunityAction.do?task=supportList&time=' + new Date().getTime() + '&universalid=' + universalid,
- pageParmName : 'p', //页索引参数名,(提交给服务器)
- pagesizeParmName : 'pSize', //页记录数参数名,(提交给服务器)
- width : '99.9%',
- height : 260
- });
- $("#pageloading").hide();
- $(".l-grid-hd-cell-btn-checkbox").css("display", "none"); //隱藏checkAll
- }
- function delComment(record_id){
- var rows = commentGrid.getCheckedRows();
- var ids = "";
- if(rows.length>0){
- for(var i=0;i<rows.length;i++){
- var universalid = rows[i].universalid;
- if(""!=ids){
- ids+=","+universalid;
- }else{
- ids+=universalid;
- }
- }
- $.ligerDialog.confirm('确定要删除评论吗?', function (yes)
- {
- if(yes){
- $.ajax({
- type:"POST",
- url:"opBusinessOpportunityAction.do?task=delComment",
- data : {"ids":ids},
- timeout:10000,
- cache:false,
- dataType:"json",
- success:function(data){
- var success = data.success;
- if(success){
- $.ligerDialog.success(success);
- searchComment(record_id);
- }else{
- showAjaxError(null, data.error);
- }
- },
- error:showAjaxError
- });
- }
- });
- }else{
- $.ligerDialog.warn('请选择需要删除的评论!');
- }
- }
- </script>
- <style type="text/css">
- .file-style{
- width: 550px;
- }
- .file-style input[type='file'] {
- width:300px ;
- height:24px;
- line-height:22px;
- vertical-align: bottom;
- background-color: #fff;
- border: 1px solid #cccccc;
- margin-top: 2px;
- margin-bottom: 2px;
- }
- .forum-container .l-table-title-td{
- font-size:30px;
- text-align:center;
- line-height:20px;
- }
- .forum-container .l-table-annotation-td{
- font-size:15px;
- text-align:center;
- line-height:20px;
- }
- </style>
- </head>
- <body>
- <form id="opBoForm" action="opBusinessOpportunityAction.do" method="post">
- <div class="container">
- <div class="forum-container">
- <table class="l-table-edit line">
- <tr >
- <td class="l-table-title-td">
- ${oppo.bo_title }
- </td>
- </tr>
- <tr>
- <td class="l-table-annotation-td" >发布人:${oppo.create_user_name } 发布时间:${oppo.create_time_str } 阅读:${oppo.read_count }</td>
- </tr>
- <tr>
- <td class="l-table-edit-td" >
- ${oppo.bo_content }
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-td">
- 相关文件:
- <jsp:include page="/include/file.jsp">
- <jsp:param name="fieldName" value="bo_accessory" />
- <jsp:param name="folder" value="one_platform/businessOppo" />
- <jsp:param name="size" value="${bo_accessory_size }" />
- <jsp:param name="isView " value="1" />
- <jsp:param name="isDelFile" value="0" />
- <jsp:param name="definedCss" value="file-style" />
- <jsp:param name="documentId" value="${oppo.bo_accessory }" />
- </jsp:include>
- <input id="oppo.bo_accessory" name="oppo.bo_accessory" type="hidden" value="${oppo.bo_accessory }"/>
- </td>
- </tr>
- </table>
- </div>
- <input type="hidden" id="tabid" name="tabid" value="${param.tabid }">
- <input type="hidden" id="task" name="task" value="editBusinessOpportunity">
- <input type="hidden" id="isNeedCheck" name="isNeedCheck" value="${isNeedCheck }"/>
- <%-- <input id="oppo.au_state" name="oppo.au_state" type="hidden" value="${oppo.au_state }"/>
- <input id="oppo.state" name="oppo.state" type="hidden" value="${oppo.state }"/> --%>
- <input id="oppo.universalid" name="oppo.universalid" type="hidden" value="${oppo.universalid }"/>
- </div>
- <div style="clear:both;"></div>
- <div id="searchbar" class="tab2 l-tab">
- <div style="overflow: hidden; clear: both;">
- <div id="commentTab" >
- <div title="评论(${comCount })" id="myGatheringTab" style="overflow: hidden;">
- <input type="button" id="delComBtn" name="delComBtn" value="删除评论" onclick="delComment('${oppo.universalid }');" style="margin-left: 10px;margin-top: 2px;margin-bottom: 2px;"/>
- <div id="commentGrid" style="margin: 0; padding: 0"></div>
- </div>
- <div title="赞(${supportCount })" id="myReturnTab" style="overflow: hidden;">
- <div id="supportGrid" style="margin: 0; padding: 0"></div>
- </div>
- </div>
- </div>
- </div>
- </form>
- <%@include file="/include/message.jsp"%>
- </body>
- </html>
|