{template 'header.html'}
<!-- 面包屑导航开始 -->
{template 'position.html'}
<!-- 面包屑导航结束 -->
<script src="{$base_url}/js/mobilechk.js"></script>
<script>
$(function(){
	$('#frmGuestbookSubmit').submit(function(e){
        if($('#nickname').val() == ''){
			alert('请输入联系人姓名');	
			$('#nickname').focus();
			return false;
		}
		if($('#guesttel').val() == ''){
			alert('请输入联系电话');	
			$('#guesttel').focus();
			return false;
		}
		{if config::get('mobilechk_enable') && config::get('mobilechk_guestbook')}
		if($('#mobilenum').val() == ''){
			alert('请输入手机效验码');	
			$('#mobilenum').focus();
			return false;
		}
		{/if}
		if($('#guestemail').val() == ''){
			alert('请输入联系邮箱');	
			$('#guestemail').focus();
			return false;
		}
		if($('#title').val() == ''){
			alert('请输入标题');	
			$('#title').focus();
			return false;
		}
		if($('#content').val() == ''){
			alert('请输入内容');	
			$('#content').focus();
			return false;
		}
		{if config::get('verifycode')} 
		if($('#verify').val() == ''){
			alert('请输入验证码');	
			$('#verify').focus();
			return false;
		}
		{/if}
	});
});
</script>
<style type="text/css">
.g_230 {float:left; width:280px; margin-right:30px;}
.g_470 {float:right; width:570px; }
#mobilenum { float:left; width:150px; height:32px; line-height:32px; background:#F5F5F5; }
#btm_sendMobileCode {float:left; height:32px; line-height:32px; margin-right:10px; padding:0px 15px; border:1px solid #ccc; border-radius: 5px 5px 5px 5px; font-size:12px; color:#555; background:#eee;}
</style>

<!-- 页面标题开始 -->
<div class="t_1">
<div>
<h3>{lang('guestbook')}</h3>
<p>Guestbook</p>
</div>
</div>


<!-- 页面标题结束 -->

<!-- 中部开始 -->
<div class="w_set">
<div class="blank30"></div>

<div class="g_230 wow fadeIn" data-wow-delay="0.6s">
<dl class="ico_tel">
<dt>{lang(tel)}</dt>
<dd>{get(tel)}</dd>
</dl>

<dl class="ico_qq">
<dt>{lang(leftservers)}</dt>
<dd>
<a rel="nofollow" href="http://wpa.qq.com/msgrd?v=3&uin={get(qq1)}&site=qq&menu=yes" target="_blank">{get(qq1name)}</a>
<a rel="nofollow" href="http://wpa.qq.com/msgrd?v=3&uin={get(qq2)}&site=qq&menu=yes" target="_blank">{get(qq2name)}</a>
<a rel="nofollow" href="http://wpa.qq.com/msgrd?v=3&uin={get(qq3)}&site=qq&menu=yes" target="_blank">{get(qq3name)}</a>
<a rel="nofollow" href="http://wpa.qq.com/msgrd?v=3&uin={get(qq4)}&site=qq&menu=yes" target="_blank">{get(qq4name)}</a>
<a rel="nofollow" href="http://wpa.qq.com/msgrd?v=3&uin={get(qq5)}&site=qq&menu=yes" target="_blank">{get(qq5name)}</a>

</dd>
</dl>
<dl class="ico_add">
<div class="blank20"></div>
<dt>{lang(address)}</dt>
<dd>
{get(address)}
</dd>
</dl>
<dl class="ico_weixin">
<dt>{lang(attention)}{lang(official)}{lang(wechat)}</dt>
<dd>
<br>
<br>
<img src="{get(weixin_pic)}" width="170" onerror='this.src="{config::get('onerror_pic')}"' />
</dd>
</dl>

</div>
<!-- w_230 -->

<div class="g_470 wow fadeInRight" data-wow-delay="1.6s">

<div style="text-align:center;color:red;"><?php if(hasflash()) { ?>
<?php echo showflash(); ?>
<?php } ?>
</div>

<form method="post" action="" name="frmGuestbookSubmit" id="frmGuestbookSubmit" class="form_message">

{lang('contactname')}
<div class="clear"></div>
{form::input('nickname',get('username'))}
<div class="clear"></div>
{lang('guesttel')}
<div class="clear"></div>
{form::input('guesttel',get('guesttel'))}
<div class="blank10"></div>
{if config::get('mobilechk_enable') && config::get('mobilechk_guestbook')}
<input id="btm_sendMobileCode" onclick="sendMobileCode('{url('tool/smscode')}',$('#guesttel'));" type="button" value="发送手机校验码" />

<input type='text' id="mobilenum"  tabindex="4" placeholder="请输入手机校验码" class="input"  name="mobilenum" />
<div class="blank10"></div>
{/if}
{form::input('guestemail',get('guestemail'))}
<div class="clear"></div>
{lang('guestqq')}
<div class="clear"></div>
{form::input('guestqq',get('guestqq'))}
<div class="clear"></div>
{loop $field $f}
<?php
 $name=$f['name'];
 if($name==$primary_key) continue; ?>

{$name|lang}
<div class="clear"></div>
{form::getform($name,@$form,$field,@$data)} 
<div class="clear"></div>
 {/loop}



<?php if(config::get('verifycode')){?>
<input type="text" name="verify"  class="guestbook_code" value=""  placeholder="{lang(please_enter_code)}" />{verify()}
<?php } ?>
<div class="blank30"></div>
<div class="blank30"></div>
<input type="submit" name="submit" value=" {lang('submit_on')} " class="guestbook_btn" />

</form>

<div class="blank30"></div>
</div>

</div>

{if $user}

<style type="text/css">
/****************评论*/
#comment {
  margin-top:20px;
  font-size:12px;
}

#comment input {font-size:12px;}

.comm input {border:none; background:#F6F6F6;}

.comment_list {padding:10px 0px;border-top:1px solid #ccc;}
.comm_head {float:left; width:90px; height:90px; background: url({$skin_path}/images/comm/comm_m.png) left top no-repeat;background-size:70% 70%;}

#comm_content {width:15px; height:15px; position: relative; top:10px; left:-28px; background: url(../images/comm/comm_content.gif) left top no-repeat;}
.comm_content {float:left; width:850px; padding:0px 10px 0px 20px; background:#F5F5F5; border:1px solid #ccc;border-radius: 3px 3px 3px 3px;}

.comm_content p span {color:#999; font-size:12px; padding-left:15px;}
.comm_content p strong {color:#666;}


.commentnumber {padding:0px 5px;color:#CC0000;}
.comment_info {height:30px; line-height:30px; padding-left:30px;background:url({$skin_path}/images/comm/comment.gif) left center no-repeat;}

.comment_list dt strong {color: #70AADA;}
.comment_list dd.admin_reply  {margin:10px; padding:10px;border:1px dotted #ccc; background:#FFFFEE;}
.comm_name,.comm_code {float:left; height:32px; line-height:32px; padding:0px 10px; border:1px solid #ccc; color:#666; border-radius: 3px 0px 0px 3px;}
.comm_name:hover,.comm_code:hover { background-color:#FFC;}	
.comm_name {width:206px;border-radius: 3px 3px 3px 3px;}

#textarea { width:300px; border:none; padding:10px; background:#F6F6F6;}
#textarea:hover {background-color:#FFC;}

#mobilenum { float:left; width:150px; height:32px; line-height:32px; padding:0px 10px; }
#btm_sendMobileCode {float:left; height:32px; line-height:32px; margin-right:10px; padding:0px 15px; border:1px solid #ccc; border-radius: 5px 5px 5px 5px; font-size:12px; color:#555; background:#eee;}

input:hover, textarea:hover,select:hover {background-color:#FFC;
-moz-box-shadow:0px 0px 10px #A5C7FE;
-webkit-box-shadow:0px 0px 10px #A5C7FE;
box-shadow:0px 0px 10px #A5C7FE;}
</style>

<!-- 页面标题开始 -->
<div class="t_1">
<div>
<h3>{lang('guestlist')}</h3>
<p>Guestbook List</p>
</div>
</div>

<div class="w_set wow fadeIn" data-wow-delay="0.6s">

<div class="comment_list" style="border:none;">
{loop $data $d}

<div class="comm_head"></div>
<div class="comm_content">
<div id="comm_content"></div>
<p>{$d[content]}</p>
{if $d['reply']}<dd class="admin_reply">
{lang('adminreply')}：
{$d['reply']}
</dd>
{/if}
<p><strong>{$d[username]}</strong><span>{sdate($comment['adddate'],'Y-m-d H:i')}</span></p>
</div>
<div class="blank10"></div>


{/loop}
</dl>

<div class="clear"></div>
<div class="blank30"></div>
<div class="pages">
<?php echo pagination::html($record_count); ?>
</div>
{/if}

<div class="clear"></div>

</div>
</div>
<div class="blank30"></div>
<div class="blank30"></div>
<div class="blank30"></div>

<!-- 页底推荐图文产品开始 -->
{tag_内容页底图文产品三条}
<!-- 页底推荐图文产品结束 -->

<!-- 限定图片宽度 -->
{template 'width_max.html'}
<!-- 限定图片宽度 -->
<footer class="foot wow fadeIn" data-wow-delay="0.6s">
<div class="box">


<dl class="foot_left">
<dd>
{tag_网站页底关于我们等说明}<a href="{$base_url}/sitemap.html" target="_blank">{lang(sitemap)}</a>
</dd>
<dd class="blank20"></dd>
<dd>
<form name='search' action="<?php echo url('archive/search');?>" onsubmit="search_check();" method="post">
<input type="text" name="keyword" value="{lang(pleaceinputtext)}" onfocus="if(this.value=='{lang(pleaceinputtext)}') {this.value=''}" onblur="if(this.value=='') this.value='{lang(pleaceinputtext)}'" class="s_text" />
<input name='submit' type="submit" value="" align="middle" class="s_btn" />
</form>
</dd>
<dd class="blank20"></dd>
<dd>
<form name='search' action="<?php echo url('archive/ecodingsearch');?>" onsubmit="search_check();" method="post">
<input type="text" name="keyword" value="请输入防伪码" onfocus="if(this.value=='请输入防伪码') {this.value=''}" onblur="if(this.value=='') this.value='请输入防伪码'" class="s_text" />
<input name='submit' type="submit" value="" align="middle" class="s_btn" />
</form>
</dd>
<dd class="blank20"></dd>
<dd>
<input type="text" id="oid" name="oid" value="{lang(orderquery)}" onfocus="if(this.value=='{lang(orderquery)}') {this.value=''}" onblur="if(this.value=='') this.value='{lang(orderquery)}'" class="s_text" />
<input name='submit' type="submit" value="" onclick="javascript:window.location.href='<?php echo url('archive/orders');?>&oid='+document.getElementById('oid').value;" align="middle" class="s_btn" />
</dd>
</dl>

<dl class="foot_qr_codes">
<dd><img width="150" src="{url('tool/qrcode')}" /></dd>
<dd>
{lang(scanning)}{lang(access)}{lang(sitewap)}</dd>
</dl>

<dl class="copyrights">
<dd>{get(site_right)} <a title="{get('sitename')}" href="{$base_url}/">{get('sitename')}</a></dd>
<dd>{getcnzzcount()}&nbsp;&nbsp;Powered by <a href="http://www.cmseasy.cn" title="CmsEasy企业网站系统" target="_blank">CmsEasy</a></dd>
<dd><a rel="nofollow" href="http://www.miibeian.gov.cn/" rel="nofollow" target="_blank">{get('site_icp')}</a></dd>
<dd>{if get('site_login')=='1'}{login_js()}&nbsp;&nbsp;{/if}{if get('opguestadd')=='1'}<a rel="nofollow" href="{$base_url}/?g=1">{lang(opguestadd)}</a>{/if}</dd>
</dl>

<div class="blank30"></div>

{lang(hotkeys)}： {gethotsearch(10)}
<div class="clear"></div>

</div>
</footer>
<!--/footer-->




<!-- 在线客服 -->
{template 'system/servers.html'}
<!-- 短信 -->
{template 'system/sms.html'}

<!-- 载入效果 -->
<script src="{$skin_path}/js/html5/wow.min.js"></script>
<script src="{$skin_path}/js/html5/custom.js"></script>

</body>
</html>