<!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><tpl>$guestbook_title</tpl> - <tpl>WEB_NAME</tpl></title>
<meta name="keywords" content="<tpl>WEB_KEYWORDS</tpl>" />
<meta name="description" content="<tpl>WEB_DESCRIPTION</tpl>" />

<link type="text/css" rel="stylesheet" href="<tpl>WEB_HOST</tpl>/templates/default/css/style.css" />
<link type="text/css" rel="stylesheet" href="<tpl>WEB_HOST</tpl>/templates/default/css/pages.css" />
<link type="text/css" rel="stylesheet" href="<tpl>WEB_HOST</tpl>/templates/default/css/ie.css" />
<script type="text/javascript" src="<tpl>WEB_HOST</tpl>/js/jquery.js"></script>
</head>

<body>
<div id="container">
	<tpl>include header.html</tpl><!-- end of header -->
    <div id="main">
    	<div class="right-main w980">
    	  <!-- end of whereUR -->
<div class="clear"></div>
            <div id="contentWrapper">
            	<div class="search-box">
            	  <form id="form1" name="form1" method="get" action="index.php">
				  <input type="hidden" name="ctl" value="guestbook" />
            	    <label>
            	    <tpl>$guestbook_keyword</tpl><!--关键字-->：
            	    <input type="text" name="keywords" id="keywords" class="textInput" />
            	    </label>
            	    <label>
            	    <input type="radio" name="search_type" id="member" value="member" checked="checked" />
            	    <tpl>$guestbook_member</tpl><!--会员-->
            	    <label>
            	    <label>
            	    <input type="radio" name="search_type" id="content" value="content" />
            	    <tpl>$guestbook_content</tpl><!--内容-->
            	    </label>
            	    </label>
            	    <input type="submit" name="button" id="button" value=" <tpl>$guestbook_search</tpl> " />
            	    </label>
            	  </form>
                </div>
            	<!--search-box-->
                <div class="msg-box">
                	<div class="tit"><h2><tpl>$guestbook_title</tpl><!--留言板--></h2></div>
                    <div class="con">
                    	<ul>
							<tpl>if $leave_array != ''</tpl>
							<tpl>foreach $leave_array as $val</tpl>
                        	<li>
                            	<div class="msg-meta">
                                	<span class="msg-no">No.<tpl>$val['leave_id']</tpl></span><span class="msg-who"><tpl>$val['leave_writer']</tpl></span></div>
                                <div class="msg-con">
                                	<p class="msg-time"><tpl>date("Y-m-d H:i:s",$val['leave_time'])</tpl>&nbsp;&nbsp;&nbsp;&nbsp;IP:<tpl>if $val['leave_ip']!=''</tpl><tpl>$val['leave_ip']</tpl><tpl>else</tpl>无<tpl>/if</tpl></p>
                                    <div class="msg-text"><tpl>nl2br($val['leave_body'])</tpl></div>
                                </div>
                            </li>
							<tpl>/foreach</tpl>
							<tpl>/if</tpl>
                        </ul>
                <div class="pagebar">
					<tpl>$show_page</tpl>
                </div><!-- end of pagebar -->
                 </div>
                </div><!--/msg-box-->
				 <div class="msg-box">
                	<div class="tit"><h2><tpl>$guestbook_add</tpl><!--添加留言--></h2></div>
                    <div class="con">
										<tpl>if LEAVE_LOGIN=='1' and $_SESSION['member_name']==''</tpl>
					<div id="noLogin">
						<a href="#"><tpl>$guestbook_member_login</tpl></a><tpl>$guestbook_member_login_1</tpl><a href="index.php?ctl=member&act=front_member_register"><tpl>$guestbook_member_reg</tpl></a>。
					</div><!-- end of onLogin -->
					<tpl>/if</tpl>
                    	<div class="msg-add">
                    	  <form action="index.php?ctl=guestbook&act=front_guestbook_save" method="post">
                                <textarea name="comment" class="comment"></textarea>
                                <p><tpl>if LEAVE_CODE=='1'</tpl><tpl>$guestbook_post_code</tpl>：<input name="post_code" id="post_code" type="text" style="text-transform:uppercase; width:40px" class="textInput" />&nbsp;<tpl>$login_code</tpl>&nbsp;&nbsp;<tpl>/if</tpl>
								<input type="submit" value="<tpl>$guestbook_submit</tpl>" class="btnInput" name="button">
                                </p>
                            </form>
                        </div><!--/msg-add-->
                    </div>
                </div><!--/msg-box-->
                <div id="contentWrapperTop"></div>
                <div id="contentWrapperBottom"></div>
            </div>
            <!-- end of contentWrapper -->
      </div>
    	<!-- end of right-main -->
    </div><!-- end of main -->
    <div id="footer">
    	<tpl>include footer.html </tpl>
    </div><!-- end of footer -->
</div><!-- end of container -->
</body>
</html>
