<%@ 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,print" />
<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="wrap1">
<div id="wrap2">
<div id="wrap3">
<div id="wrap4">

<c:import url="/include.do">
	<c:param name="path" value="/include_header.jsp" />
</c:import>

<c:import url="/blog.do?method=nav" />

<div id="content">
<div id="mainwrap">
<div id="main">

<div class="post" id="firstpost">
<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="title"><a href="<c:url value="${url}"/>"><c:out value="${page.title}" /></a></h2>
<p class="postdate"><fmt:formatDate	value="${page.createdOn}" pattern="${blog.dateFormat} ${blog.timeFormat}" /></p>
<div class="content">
<c:out value="${page.content}" escapeXml="false" />
</div>
</div>
</div>
</div>

<div id="sidewrap">
<div id="side">
	<div id="blogsearch" class="sidebox">
	<h2><label for="searchbox">搜索</label></h2>
	<form action="<c:url value="/search.do"/>" method="post" name="search" onsubmit="return validateSearchForm();">
	<div class="pad"><input name="s" value="" id="searchbox" maxlength="128" type="text"> <input src="<c:url value="/themes/${blog.options.theme_dir_name.value}/resources/images/search.gif"/>" alt="search" id="submitsearch" type="image" ></div>
	</form>
	</div>
	<c:import url="/pages.do?method=pages" /> 
	<c:import url="/articles.do?method=tags" /> 
	<c:import url="/articles.do?method=recentArticles" /> 
	<c:import url="/articles.do?method=recentComments" /> 
	<c:import url="/articles.do?method=recentTrackbacks" /> 
	<c:import url="/articles.do?method=archives" />
	<c:import url="/links.do" />
	<c:import url="/message.do?method=recentMessages"/>
	<c:import url="/include.do"><c:param name="path" value="/include_feeds.jsp" /></c:import>
</div>
</div>


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

</div></div></div></div></div>
</body>
</html>
