<!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" />
{:$theKeyWords|keywords:}
<title>{:$webName:}</title>
<link rel="stylesheet" type="text/css" href="Tpl/Css/Main.css" />
<link rel="stylesheet" type="text/css" href="Tpl/Css/Style.css" />
<script type="text/javascript" src="Tpl/JScript/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="Tpl/JScript/Slide.js"></script>
<script type="text/javascript" src="Tpl/JScript/Comm.js"></script>
</head>
<body class="Body-Extend">
	{:include file="Tpl/Comm/Comm_Top.tpl":}
	
	<div id="ejMain">
		<div class="size">
			{:include file="Tpl/Comm/Comm_Left.tpl":}
			<div id="right">
            {:include file="Tpl/Comm/Comm_Address.tpl":}
				<div id="rightContent">
					<div id="GuestBookList">
						{:if $dataList|count>0:}
							{:section name=a loop=$dataList:}
							<div class="one">
								<table width="100%" border="0" cellspacing="1" cellpadding="0">
								  <tr>
								    <td class="title" colspan="2">
								    	<em>【{:$dataList[a].nickname:}】{:$dataList[a].subject:}</em>
								    	<span>时间：{:$dataList[a].addTime:}</span>
								    </td>
								  </tr>
								  <tr>
								    <th width="100">留言内容：</th>
								    <td>{:$dataList[a].content:}</td>
								  </tr>
								  <tr>
								    <th>站长回复：</th>
								    <td class="repaly">{:$dataList[a].repaly:}</td>
								  </tr>
								</table>
							</div>
							{:/section:}
						{:/if:}
					</div>
					
					<div id="GuestBookForm">
						<div class="title">填写留言</div>
						<form name="TheForm" action="?" method="post" onsubmit="return CkGuestBook(this)">
						<input type="hidden" name="action" value="add" />
						<table width="100%" border="0" cellspacing="1" cellpadding="0" >
						  <tr>
						    <th width="100">主题：</th>
						    <td><input type="text" name="subject" value="" class="input" style="width:300px" />
						      <font style='color:red'>*</font></td>
						  </tr>
						  <tr>
						    <th>昵称：</th>
						    <td><input type="text" name="nickname" value="" class="input" style="width:100px" />
						      <font style='color:red'>*</font></td>
						  </tr>
						  <tr>
						    <th>联系电话：</th>
						    <td><input type="text" name="tel" value="" class="input" style="width:150px" /></td>
						  </tr>
						  <tr>
						    <th>邮箱：</th>
						    <td><input type="text" name="email" value="" class="input" style="width:150px" /></td>
						  </tr>
						  <tr>
						    <th>内容：</th>
						    <td><textarea name="content"  rows="6" class="textarea" style="width:399px" ></textarea>
						      <font style='color:red'>*</font></td>
						  </tr>
						  <tr>
						    <th>验证码：</th>
						    <td>
						    	<input type="text" name="ImgCode" style="width:60px"  class="input" />
								<img id="codeimg" src="CkCode.php" align="absmiddle" />
								<span style="cursor:pointer;" onclick="document.getElementById('codeimg').src='CkCode.php?rad='+Math.random();">看不清？点击刷新</span>
						       </td>
						  </tr>
						  <tr>
						    <th>&nbsp;</th>
						    <td height="30"><input type="submit" name="Submit" value="提交" class="submit"></td>
						  </tr>
						</table>
						</form>
					</div>
				</div>
			</div>
			
		</div>
	</div>
	{:include file="Tpl/Comm/Comm_Bottom.tpl":}
</body>
</html>