123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166 |
- <!DOCTYPE html>
- <html lang="zh-CN">
- <head>
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <title>中华人寿知识库</title>
- <link rel="stylesheet"
- href="${ctx}/assets/lib/bootstrap-3.3.7/css/bootstrap.min.css">
- <script type="text/javascript"
- src="${ctx}/assets/lib/jquery/1.9.1/jquery.min.js"></script>
- <script type="text/javascript"
- src="${ctx}/assets/lib/bootstrap-3.3.7/js/bootstrap.min.js"></script>
- <script type="text/javascript">
- $(function(){
- /**
- *回首页
- */
- $("#shouye").click(function () {
- window.location.href = "${ctx}/myconsole/complaint/repository/browse";
- });
-
- /**
- *跳转至指定栏目页
- */
- $("#column").click(function () {
- var strColumnID=$(this).attr("class");//栏目id
- window.location.href = "${ctx}/myconsole/complaint/repository/browseList?strColumnID="+strColumnID;
- });
-
-
-
- });
- $(document).ready(function(){
- //alert( "文档就绪啦");
- var isornot=$("#isornot").val();
-
- if(isornot==0){
- $("#shoucang").attr("class","btn btn-danger");//改变class
- $('#shoucang').html("已收藏");
-
- }
- });
- //添加or取消收藏
- function addordelect(_this){
- var btn = $(_this);
- var button_val = btn.html();
- var webkeyid=$("#webKeyID").val();
- var columnID=$("#ColumnID").val();
- var tState=$("#TState").val();
- var title=$("#Title").val();
- var flag="";
- if(button_val=="收藏"){
- var flag="0";
- }else{
- var flag="1";
- }
- //初始化获取数据
- $.ajax({
- url : "${ctx}/myconsole/complaint/repository/addordelect",
- type : "post",
- data : {"webkeyid":webkeyid,"columnID":columnID,"tState":tState,"title":title,"flag":flag},
- dataType : "json",
- success : function(data) {
-
- if(data.success=="成功"){
- if(button_val=="收藏"){
- btn.html("已收藏");
- $("#shoucang").attr("class","btn btn-danger");//改变class
- alert("收藏成功");
- }else{
- btn.html("收藏")
- $("#shoucang").attr("class","btn btn-default");//改变class
- alert("取消收藏成功");
- }
- }else{
- alert(data.success);
- }
-
- }
- });
-
- }
-
- </script>
- </head>
- <body>
- <!-- 页头 -->
- <img alt="" src="${ctx}/assets/image/1.jpg"
- style="width:100%; height: 200px;">
- <div class="panel panel-primary">
- <div class="panel-heading">
- <h6>
- 位置:<span id="shouye">首页</span>>>>><span id="column" class="${webContent.ColumnID!''}">${webContent.ColumnName!''}</span>
- </h6>
-
- <button id="shoucang" onclick="addordelect(this)" type="button" class="btn btn-default" aria-label="Left Align" >收藏</button>
-
- <input type="hidden" id="webKeyID" name="KeyID" value="${webContent.KeyID!''}"/>
- <input type="hidden" id="ColumnID" name="ColumnID" value="${webContent.ColumnID!''}"/>
- <input type="hidden" id="TState" name="TState" value="${webContent.TState!''}"/>
- <input type="hidden" id="Title" name="Title" value="${webContent.Title!''}"/>
- <input type="hidden" id="isornot" name="isonot" value="${webcollection}"/>
- </div>
- <div class="panel-body">
- <div style="width:90%;height:auto;margin:10px auto 0px auto; text-align:center;font-size:22px;font-weight:bold; font-family:'微软雅黑'">
- ${webContent.Title!''}
- </div>
- <div style="width:90%;height:auto;margin:0px auto;text-align:center;font-size:18px;font-weight:bold; font-family:'微软雅黑'"">
- ${webContent.Subhead!''}
- </div>
- <div style="width:100%;height:25px;line-height:25px;margin:10px auto;text-align:center; background-color: #fafafa;">
- 时间:<span>${webContent.ReleaseTime!''}</span>
- 来源:<span>${webContent.InfoSource!''} </span>
- 【字号:
- <a href="#" onclick="changeFontSize(document.getElementById('content'),this.style.fontSize);return false;" style="font-size: 25px;">大</a>
- <a href="#" onclick="changeFontSize(document.getElementById('content'),this.style.fontSize);return false;" style="font-size: 20px;">中</a>
- <a href="#" onclick="changeFontSize(document.getElementById('content'),this.style.fontSize);return false;" style="font-size: 15px;">小</a>】
-
- <span class="con_print" onclick="print()" onmouseover="this.style.cursor='hand'">打印</span>
- </div>
- <div style="width:90%;height:auto;margin:10px auto;" id="content">
- ${content.webContent!''}
- </div>
- <div style="text-align:center;">
-
-
-
-
-
-
-
-
-
-
-
-
-
- 责任编辑: <span>${webContent.Author!''}</span></div>
- <div class="sharewz" style="width:100%; height:50px; float:left; border-bottom:1px #eaeaea solid; margin:5px 0px;text-align:center;">
- <DIV class=bshare-custom sizcache0016052976275004127="0" sizset="0" style="margin-top:15px;"><A class=bshare-more id=bshare-shareto title=分享到 href="http://www.bShare.cn/" buttonIndex="0">分享到</A> <A class=bshare-qzone title=分享到QQ空间 href="javascript:void(0);">QQ空间</A> <A class=bshare-sinaminiblog title=分享到新浪微博 href="javascript:void(0);">新浪微博</A> <A class=bshare-renren title=分享到人人网 href="javascript:void(0);">人人网</A> <A class=bshare-qqmb title=分享到腾讯微博 href="javascript:void(0);">腾讯微博</A> <A class=bshare-douban title=分享到豆瓣 href="javascript:void(0);">豆瓣</A> <A class="bshare-more bshare-more-icon more-style-addthis" title=更多平台 buttonIndex="0"></A><SPAN class="BSHARE_COUNT bshare-share-count">0</SPAN></DIV>
- <SCRIPT src="http://static.bshare.cn/b/buttonLite.js#style=-1&uuid=&pophcol=2&lang=zh" type=text/javascript charset=utf-8></SCRIPT>
- <SCRIPT src="http://static.bshare.cn/b/bshareC0.js" type=text/javascript charset=utf-8></SCRIPT>
- </div>
-
- </div>
- </div>
-
-
- <!--改变字号 大 中 小 开始-->
- <script language="javascript">
- function changeFontSize(pucl,size)
- {
- if(pucl.style)
- pucl.style.fontSize=size;
- for(var i=0;i<pucl.childNodes.length;i++)
- {
- changeFontSize(pucl.childNodes[i],size)
- }
- }
- </script>
- </body>
- </html>
|