<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!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=utf-8" />
<title>汉思设计</title>
<link href="${pageContext.request.contextPath}/static/hsa/css/inside.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="${pageContext.request.contextPath}/static/hsa/css/jquery.mCustomScrollbar.css">
<script src="${pageContext.request.contextPath}/static/hsa/js/jquery-1.4.2.min.js" type="text/javascript"></script>
<script src="${pageContext.request.contextPath}/static/hsa/js/jquery.mCustomScrollbar.concat.min.js"></script>
<script src="${pageContext.request.contextPath}/static/hsa/js/jsin.js" type="text/javascript"></script>

</head>

<body>

<%@ include file="../hsa/head.jsp" %>

<div class="mainall">
    <div class="maleft">
		<div class="pro_edit">
			${newsById.details}
		</div>
    </div>
    
    
  <div class="maright">
	<div class="marightscroll">
    	<div class="projects">
        	<h3>${newsById.title}</h3>
            <div class="proalls">
              	<p>${newsById.describes}</p>
            </div>
        </div>
        <div class="prolist">
            <span class="ret">
                <a onclick="first_add()"><img src="${pageContext.request.contextPath}/static/hsa/images/lift.png" alt="上一页"/></a>
                <a onclick="last_add()"><img src="${pageContext.request.contextPath}/static/hsa/images/liht.png" alt="下一页"/></a>
            </span>
        </div>
	</div>
  </div>
</div>


<%@ include file="../hsa/footer.jsp" %>

<input type="hidden" value="${pageNum}" id="add_01"/>
<input type="hidden" value="${lastNum}" id="add_03"/>
<input type="hidden" value="${pageNum+1}" id="add_04"/>
<script type="text/javascript">
    function first_add() {
        if($("#add_01").val()==0){
            alert("这已经是第一个了!")
        }else{
            window.location.href='new_detail.html?pid='+($("#add_01").val()-1);
        }
    }
    function last_add() {
        if($("#add_01").val()==$("#add_03").val()){
            alert("这已经是最后一个了!");
        }else{
            window.location.href='new_detail.html?pid='+$("#add_04").val();
        }
    }
</script>
</body>

</html>
