<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title><?=$configs['site_title']?>收录留言</title>
<meta name="renderer" content="webkit">

        <meta name="description" content="<?= $configs['index_desc'] ?>,收录提交">
            <meta name="keywords" content="<?= $configs['index_Keyword'] ?>,留言本">

<link rel="stylesheet" href="/views/<?php echo $configs['views']; ?>/css/layui.css" media="all">
      

        <link rel="stylesheet" type="text/css" href="/views/<?php echo $configs['views']; ?>/css/swiper.min.css"/>
        <link rel="stylesheet" type="text/css" href="/views/<?php echo $configs['views']; ?>/css/reset.css?v=1" />
        <link rel="stylesheet" type="text/css" href="/views/<?php echo $configs['views']; ?>/css/custom.css?v=2"/>
        <link rel="stylesheet" type="text/css" href="/views/<?php echo $configs['views']; ?>/css/globalpc.css"/>

        <script src="/views/<?php echo $configs['views']; ?>/js/jquery-3.3.1.min.js" type="text/javascript" charset="utf-8"></script><link rel="stylesheet" href="/views/<?php echo $configs['views']; ?>/css/layui.css" media="all">

        <script src="/views/<?php echo $configs['views']; ?>/js/jquery.min.js"></script>
        <script>

           $(function ()  {
              $("#spost").click(function () {
                 if($("#content").val() =='') {
                     layer.alert('内容不能为空',{offset: '100px',title:'提交出错' });
                     return false;
                 }
                 if($("#scode").val() =='') {
                      layer.alert('验证码不能为空',{offset: '100px',title:'提交出错' });
                     return false;
                 }
                $.post("enbody.php", { "act": "submit",'content': $("#content").val(),'scode':$("#scode").val() ,'time':$("#time").val() ,'md5str':$("#md5str").val()},
                    function(data){
                        if(data.code =='0') {
                            layer.alert('提交成功');
							
							window.setTimeout("location.reload()", 1500);

                         } else {
                            layer.alert(data.msg,{offset: '100px',title:'提交出错' });
                        }
                    }, "json");
                 });
            });
        </script>
		<style>
		.re{border: solid 1px #ccc;padding: 15px;margin-top: 20px;}
		.layui-card-header {
    padding: 0 10px;
    border-bottom: 1px solid #f6f6f6;
    color: #333;
    font-size: 16px;
}
.layui-hide-xs{
	float: right;font-size: 13px; font-weight: normal;
}.layui-card-header h2 {
    float: left;
    font-size: 18px;
}.layui-mt10 {
    margin-top: 10px;
}.layui-card {
    margin-bottom: 10px;
    box-shadow: 0 0 5px 0 rgb(0 0 0 / 5%);
}.layui-pd10 {
    padding: 10px;
}
.index-links-content {
    padding: 7.5px;
    overflow: hidden;
    display: block;
    background-color: #fff;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 5%);
}.form-group {
    margin-bottom: 1rem;
}
textarea.form-control {
    height: auto;
}.form-control {
    display: block;
    width: 100%;
    height: calc(2.25rem + 2px);
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}.mb-5, .my-5 {
    margin-bottom: 3rem!important;
}
.inp{
    height: 30px;
    line-height: 24px;  padding-right:10px;  float: left;  margin-right:10px }
	footer{     
    width: 100%;
    text-align: center;
     float: left;
    padding: 20px;
	}
</style>
        <script src="/views/<?php echo $configs['views']; ?>/js/layer/layer.js"></script>
        </head>
<body class="" style="">

<div class="head">
    <div class="head-box">
        <div class="logo"><a href="<?=$configs['site_url']?>"><?=$configs['site_title']?></a><span>- <?=$configs['site_subtitle']?> </span></div>

    </div>
</div>
<!-- 顶部导航 -->
<div class="nav-wrap">
    <div class="container">
        <div class="row">
            <ul class="nav">
                <li class="navbar">
                    <a href="/" class="active">首页</a>
                </li>
                
                 <li class="navbar">
                    <a href="lists.php?cate_id=<?php echo $v['cate_id'];?>"><?php echo $v['cate_name']; ?> </a>
                </li>
 
            </ul>
        </div>
    </div>
    </div>


<div  class='main layui-container'   >
  <div class="layui-row layui-col-space10" class="main layui-container"  >
    <div class="layui-col-md12 layui-mt10">
      <div class="layui-card margin-bottom-0">
        <div class="layui-card-header"  >
          <h2  >收录留言</h2>
          <span class="layui-hide-xs"   >本站收录规则请仔细阅读，请按照提示留言，感谢您的配合</span></div>
        <div class="index-links-content layui-pd10">
         
		 <table class="layui-table layui-mt0" lay-even="" lay-skin="nob">
            <tbody>
            </tbody></table>
			
			<table class="layui-table layui-mt0" lay-even="" lay-skin="nob" style="border-collapse: collapse; border-spacing: 0px; margin: 0px; width: 1120px; color: rgb(102, 102, 102); font-family: &quot;Microsoft YaHei&quot;, &quot;Open Sans&quot;, &quot;Helvetica Neue&quot;, Arial, &quot;Hiragino Sans GB&quot;, &quot;WenQuanYi Micro Hei&quot;, sans-serif; font-size: 14px;">
                <thead>
                  <tr style="transition: all 0.3s; background-color: rgb(242, 242, 242);">
                    <th style="margin: 0px; padding: 9px 15px; font-weight: 400; border: none; position: relative; min-height: 20px; line-height: 20px; text-align: left;">1、必须将本站放置前五位，前三优先收录，其他位置一律不收录也不用申请，新站、站群一律不收录！</th>
                  </tr>
                </thead>
                <tbody>
                  <tr style="transition: all 0.3s;">
                    <td style="margin: 0px; padding: 9px 15px; border: none; position: relative; min-height: 20px; line-height: 20px;">2、网站地址更新的，请及时提交，3日无法访问的，将清理。</td>
                  </tr>
                  <tr style="transition: all 0.3s; background-color: rgb(242, 242, 242);">
                    <td style="margin: 0px; padding: 9px 15px; border: none; position: relative; min-height: 20px; line-height: 20px;">3、本站会不定期根据来路排名调整网站位置，来路越多排名越靠前！</td>
                  </tr>
                  <tr style="transition: all 0.3s;">
                    <td style="margin: 0px; padding: 9px 15px; border: none; position: relative; min-height: 20px; line-height: 20px;">4、不收录任何钓.鱼、大量弹窗、满屏广告影响正常浏览的网站以及需下载播放器才能播放的视频站。</td>
                  </tr>
                  <tr style="transition: all 0.3s; background-color: rgb(242, 242, 242);">
                      <td style="margin: 0px; padding: 9px 15px; border: none; position: relative; min-height: 20px; line-height: 20px;">5、本站名称：<?= $configs['site_title'] ?>  本站网址：<?= $configs['site_url'] ?> 其他地址不收录！</td>
                  </tr>
                </tbody>
              </table>
              <br>
                  <?php if ($configs['Contact_email'] != '') { ?>  <span style="color:#FF0000;">联系邮箱：<?php echo $configs['Contact_email']; ?></span> <?php } ?></div>


<form id="myform" class="form">
<div class="form-group">
    <textarea class="form-control" rows="5" id="content"  name='content' placeholder="留言内容" maxlength="200"></textarea>
    <input type="hidden" id="time" class="form-control"  name='time' value="<?php echo time(); ?>">
        <?php if ($configs['md5str'] != '') { ?>
                        <input type="hidden" id="md5str" class="form-control"  name='md5str' value="<?php echo md5(time() . $configs['md5str']); ?>">
                <?php } ?>
</div>
<div class="form-group">
<input type="text" id="scode" class="inp" placeholder="验证码">
</div>
<div class="form-group">
    <img src="scode.php" alt="点击刷新" title="点击刷新" id="scode_img" style="vertical-align:middle;cursor:pointer; float:left" onclick="this.src='scode.php?'+Math.random()" >
	
	  <?php if ($configs['guestbook_switch'] == '1') { ?>
        <button type="button" id="spost"  name='spost' class="inp btn-success btn-block"  >发布留言</button>
            <?php } else { ?>
        <button type="button" class="btn btn-fail btn-block">留言关闭中</button>
            <?php } ?>
			
			
</div>
   
</form>
<div id="top"></div>
<div id="list" style="padding-top: 30px;" >

        <?php if ($msg) { ?>
            <?php foreach ($msg as $k => $v): ?>
			
			
			<table class="layui-table layui-mt0"  >
			   
                <tbody>
                  <tr  style="transition: all 0.3s; background-color: rgb(242, 242, 242);"  >
                    <td style="margin: 0px; padding: 9px 15px; border: none; position: relative; min-height: 20px; line-height: 20px;"><?php echo $v['create_time']; ?></td>
                  </tr>
                  <tr style="transition: all 0.3s;">
                    <td style="margin: 0px; padding: 9px 15px; border: none; position: relative; min-height: 20px; line-height: 20px;">
					<?php echo nl2br($v['info']); ?>
					<?php if ($v['re_msg'] != '') { ?>
					<div class='re'>站长回复:  <?php echo nl2br($v['re_msg']); ?> </div> <?php } ?>
					
					</td>
                  </tr> 
                </tbody>
              </table>
			  
			  
			
                 　 　
            <?php endforeach; ?>
        <?php } ?>


    </div>
	<div> 
<footer class="mb-5">© <?= $configs['site_title'] ?> 2020-2021 <a href="index.php">返回导航</a></footer>
</div>
      </div>

</div>
</div>





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