| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gbk" />
- <title>长春市城市发展投资控股(集团)有限公司</title>
- <link rel="stylesheet" href="css/style.css" type="text/css"/>
- <script type="text/javascript" src="js/jquery-1.2.6.js"></script>
- </head>
- <%@page import="javax.servlet.jsp.tagext.TryCatchFinally"%>
- <%@page import="com.ws.content.Wzbdao"%>
- <%@page import="com.ws.content.WzbVDao"%>
- <%@page import="com.ws.content.WzDao"%>
- <%@page import="com.ws.content.Wzb"%>
- <%@page import="com.ws.directory.Lmbdao"%>
- <%@page import="com.ws.directory.Lmb"%>
- <%@ page contentType="text/html;charset=gbk" language="java" %>
- <%
- String path = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+ request.getContextPath()+"/";
- %>
- <%
- Lmbdao lmdao = new Lmbdao();
- WzDao wzdao = new WzDao();
- //获取文章内容的业务逻辑
- WzbVDao wzvdao = new WzbVDao();
- String wzid = request.getParameter("wzid");//文章编号
- Wzb wz = wzdao.getWzbByWzid(wzid);//获取查询的文章
- String lmid = wz.getLmid();//文章所属栏目编号
- System.out.println(lmid);
- int click = 0;//接收访问次数
- Lmb flm = null;
- Lmb lm = lmdao.getLmbByLmid(lmid);//获取要查询的文章对象
-
- String flmid = lm.getFlmid();//上级栏目编号
- String lmmc = lm.getLmmc();//栏目名称
- if(("1".equals(flmid))){
- flm = lmdao.getLmbByLmid(flmid);//上级栏目
- }
- String time = wz.getTjsj();//发布时间
- String bj = wz.getTjyhmc();//编辑
- String shenhe = wz.getShyhmc();//审核
- String title = wz.getWzbt();//文章标题
- int clicks = wz.getFwcs();//点击次数
- String author = wz.getWzly();//作者
- String photo = wz.getWzly();//摄影
- String target = request.getParameter("target");
- target = target+".jsp";
-
- if(flm!=null){
- String flmmc = flm.getLmmc();//上级栏目名称
- }
- try{
- click = clicks + 1;//没查询一次,访问次数加1
- wz.setFwcs(click);
- wzdao.modifyWzbByClick(wz);//修改文章信息
- }catch(Exception e){
-
- }
-
- String nr = wzvdao.getWzbOfWznr(wzid);//获取文章内容
- %>
- <script>
- function doZoom(size){
- document.getElementById('zoom').style.fontSize=size+'px';
- }
- </script>
- <body style="background:url(image/bgg.png) repeat-x; background-color: #1559A4">
- <table width="1440" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
- <tr>
- <td width="1440" height="84" align="center" valign="top" class="head1"><table width="1180" border="0" align="center" cellpadding="0" cellspacing="0">
- <tr>
- <td width="101" height="84" align="center" valign="middle"><img src="image/logo1.png" width="101" height="67" /></td>
- <td width="715" height="84" align="center" valign="middle"><img src="image/logo3.png" width="715" height="67" /></td>
- <td width="364" height="84" align="left" valign="bottom">
- <table width="364" border="0" align="right" cellpadding="0" cellspacing="0">
- <%@include file="top.jsp" %>
- </table></td>
- </tr>
- </table></td>
- </tr>
- <tr>
- <td align="left" valign="top"><table width="1440" border="0" align="center" cellpadding="0" cellspacing="0">
- <tr>
- <td width="130" height="790" align="left" valign="top" class="left1"> </td>
- <td width="1180" height="788" align="left" valign="top" class="bg1"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
- <tr>
- <td width="1178" height="788" align="center" valign="top"><table width="96%" border="0" align="center" cellpadding="0" cellspacing="0">
- <tr>
- <td height="10" align="left" valign="middle"> </td>
- </tr>
- <tr>
- <td height="39" align="left" valign="middle" class="news1">
- 您现在的位置:<a href="index.jsp" style="text-decoration:none;color: black;"> 首页</a> >> <a href="<%=target%>?lmid=<%=lmid%>" style="text-decoration:none;color: black;"> <%=lm.getLmmc()%> </a>>> 详细内容 </td>
- </tr>
- <tr>
- <td align="left" valign="middle"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
- <tr>
- <td height="105" align="center" valign="top" class="news2"><p class="news2p1"><%=title%></p>
- <p class="news2p2"> 时 间:<%=time.substring(0,16) %>
- 作者:<%if(!author.equals("")) {%> <%=author %> <%} %>
- 字体: 【<a href="javascript:doZoom(18)" class="9pth1">大</a>
- <a href="javascript:doZoom(16)" class="9pth1">中</a>
- <a href="javascript:doZoom(14)" class="9pth1">小</a>】 点击: <%=clicks %> 次 <br /> </p></td>
- </tr>
- <tr>
- <td width="1170" height="178" align="left" valign="middle" style="background-repeat:no-repeat">
- <div id="zoom" style="font-size: 15px;line-height: 26px;">
- <%=nr %>
- </div>
- </td>
- </table></td>
- </tr>
- </table></td>
- </tr>
- </table></td>
- <td width="130" height="790" align="left" valign="top" class="right1"> </td>
- </tr>
- </table></td>
- </tr>
- <tr>
- <td height="26" align="left" valign="top" class="bottom1"> </td>
- </tr>
- </table>
- </body>
- </html>
|