<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/taglib.jsp"%>
<!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><c:out value="${blog.title}"/> - <c:out value="${page.title}"/></title>
<meta name="generator" content="BlogMethods Basic 1.0.0" />
<meta name="description" content="" />
<meta name="keywords" content="" />
<link rel="stylesheet" href="<c:url value="/themes/${blog.options.theme_dir_name.value}/resources/styles/style.css"/>" type="text/css" media="screen, projection" />
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<c:url value="/feeds/"/>" />
<link rel="shortcut icon" href="<c:url value="/favicon.ico"/>" type="image/x-icon" />
<script src="<c:url value="/js/blog.js"/>" type="text/javascript" language="JavaScript"></script>
</head>
<body>

<div id="divAll">
<div id="divPage">
<div id="divMiddle">
<c:import url="/include.do">
	<c:param name="path" value="/include_header.jsp" />
</c:import>
<c:import url="/blog.do?method=nav" />
	
<div id="divMain">

<div class="post">
<c:choose>
	<c:when test="${page.key!=null}">
		<c:set var="url" value="/pages.do?method=page&key=${page.key}" />
	</c:when>
	<c:otherwise>
		<c:set var="url" value="/pages.do?method=page&id=${page.id}" />
	</c:otherwise>
</c:choose>
<h2 class="post-title"><a href="<c:url value="${url}"/>"><c:out value="${page.title}" /></a></h2>
<div class="post-body">
<c:out value="${page.content}" escapeXml="false" />
</div>
<h6 class="post-footer">时间:<fmt:formatDate value="${page.createdOn}" pattern="${blog.dateFormat} ${blog.timeFormat}" /></h6>
</div>

</div>
<div id="divSidebar">
	<div class="function">
	<h3>搜索</h3>
	<ul><li class="none">
	<form name="search" action="<c:url value="/search.do"/>" method="post" onsubmit="return validateSearchForm();">
	<input value="<c:out value="${keyword}"/>" name="s" id="s" /> <input type="submit" value="搜索" id="searchbutton" name="searchbutton" /></form></li></ul>
	</div>
	<c:import url="/pages.do?method=pages" />
	<c:import url="/include.do"><c:param name="path" value="/include_feeds.jsp" /></c:import>
</div>

<c:import url="/include.do">
	<c:param name="path" value="/include_footer.jsp" />
</c:import>
</div>
</div>
</div>
</body></html>
