<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!--#include file="inc/conn.asp"-->

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="<%=jianji.sysinfo("keyword")%>" />
<meta name="description" content="<%=jianji.sysinfo("dsc")%>" />
<meta name="360-site-verification" content="4c7b617b57e61e53b3a858d3d242ccb1" />
<meta name="baidu-site-verification" content="code-OnHLkKvXni" />
<title><%if request("lm")<>"" then response.Write request("lm")&"-" end if%><%=jianji.sysinfo("title")%></title>
<link href="./ui/layui/css/layui.css" rel="stylesheet" type="text/css" />
<link href="./ui/images/main.css" rel="stylesheet" type="text/css" />
<link href="./ui/images/comment.css" rel="stylesheet" type="text/css" />
<link href="./ui/skin/<%=jianji.css%>.css" rel="stylesheet" type="text/css" id="theme" />
<script type="text/javascript" src="ui/jquery.js"></script>
<script type="text/javascript" src="ui/layui/layui.js"></script>
<script type="text/javascript" src="ui/jq.js"></script>
<script type="text/javascript" src="ui/qrcode.min.js"></script>   
<script type="text/javascript" src="ui/pc.js?<%=now()%>"></script>
<script type="text/javascript" src="ui/jquery.cookie.min.js"></script> 


<!--[if lte IE 9]> <script type="text/javascript" src="./ui/browser.js"></script><![endif]-->



</head>

<body>

<!--#include file="head.asp"-->
<%

dim c_id,c_upid
c_class=0
c_id=0
c_upid=0

if trim(request("upid"))<>"" and IsNumeric(request("upid")) then
c_upid=request("upid")
end if
if trim(request("class"))<>"" and IsNumeric(request("class")) then
c_class=request("class")
end if
c_lm =request("lm")


if trim(request("id"))<>"" and IsNumeric(request("id")) then
sql="select * from comment where id="&request("id")
rs.open sql,conn,1,1
if not rs.eof then
c_title=rs("name")
c_pic=rs("pic")
c_file=rs("file")
c_id=rs("id")
c_con=rs("content")
c_lm=rs("lm")
end if
rs.close
end if

if request.Cookies("admin")("login")="true" then
uname=request.Cookies("admin")("user")
elseif request.Cookies("user")("login")="true" then
uname=request.Cookies("user")("username")
elseif request.Cookies("guest")("login")="true" then
uname=request.Cookies("guest")("username")
else
uname=look_ip(jianji.myip())&"游客"
end if

%>

<!--发布信息-->
<div class="main">
<div class="layui-row layui-col-space10">
<div class="layui-col-md9">



<div class="" id="c_div"  >
	<form id="cform" name="cform" method="post"  class="layui-form">
	<input type="hidden" name="class" value="<%=c_class%>"  />
	<input type="hidden" name="id" value="<%=c_id%>"  />

	<input type="hidden" name="upid" value="<%=c_upid%>"  />
	<input type="hidden" name="type" value="<%=utype%>"  />
	<input type="hidden" name="c_lm" value="<%=c_lm%>"  />

	<input type="hidden" name="plat" value="pc"  />
	<input type="hidden" name="path" value="<%=webroot%>"  />
	<input name="disp" type="hidden"  value="1"/>
    <input name="visitpwd" type="hidden"  value=""/>
    <input name="stract" type="hidden"  value=""/>
	
	
 <div class="f_form radius5">


<div class="layui-upload">
<div class="file-div" >

<%if trim(c_file)<>"" then%>
<div class="upload-file"><%=c_file%><input type="hidden" name="fujian" value="<%=c_file%>"><div class="file-close" onclick="fjclose(this)">×</div></div>
<%end if%>


</div>
<div class="upload-div" style="display: block;">
<%if trim(c_pic)<>"" then
sp_pic=split(c_pic,",")
for i=0 to ubound(sp_pic)
%>
<div class="upload-img"><img src="../<%=trim(sp_pic(i))%>" width="80" height="80"><input type="hidden" name="pic" value="<%=trim(sp_pic(i))%>"><div class="upload-close" onclick="picclose(this)">×</div></div>
<%next
end if%>
</div>
<%if request("upid")="" then%>
<div class="file iconfont icon-fujian1" ></div>
<div class="upload layui-icon layui-icon-picture " ></div>
<%end if%>

<%if request("upid")="" and request("send")="" then%>
<div class="f_type" style="display:none">
<input type="hidden" name="lm" value="留言"  />

</div>
<%end if%>
    
 
   
</div>
<div class="f_content">
<p><a class="trigger " href="javascript:;"></a></p>
<textarea name="content" class="content" id="content" placeholder="说点什么..." lay-verify="content"><%=c_con%></textarea>
<div class="textarea-count">
			<span class="textareaInput">0</span>/<span class="textareaTotal">500</span>
		</div>
 
</div>


<div class="f_txt_l">
<%if request("class")=2 then%>
<input name="name" type="hidden" class="f_name"  value="<%=request("send")%>"/>
	<%else%>
    <input name="name" type="hidden"  value="<%=uname%>"/>
<%end if%>

 <div class="layui-inline" style="width: 200px;">
							<input class="layui-input" name="name"  lay-verify="name" autocomplete="off" placeholder="昵称">							
						  </div>
						
						  <div class="layui-inline" style="width: 300px;margin-left:15px;">
							<input class="layui-input" name="address"  autocomplete="off" placeholder="网站或邮箱">
						</div>
  
  
 
    <input type="button" name="button2"  value="发布留言" class="mes_btn" lay-submit="lay-submit"  lay-filter="mess" />
    </div>
     
  </div>
  
  
  </form>
</div>


<div class="main-top-l"> 
<div class="label-left">
<a href="" class="label-left-a">网友留言</a>
</div>
</div>


<div class="comment">
<div class="c_list list-loop">


<%
sql="select * from comment where lm='留言' order by intime desc"
rs.open sql,conn,1,1
if not rs.eof and not rs.bof then
	rs.pagesize = 6
	page = request("page")
	if not IsNumeric(page) then page = 1
	page = CLng(page)
	if page < 1 then page = 1
	if page > rs.pagecount then page = rs.pagecount
	rs.absolutepage = page
	for ipage = 1 to rs.pagesize
%>
<div class="c_show loop">
<div class="details-avatar">
<div class="c_tx"><img src="ui/images/user_08.png" width="149" height="150"></div>
</div>
<div class="comment_list">
<ul> 
   <li>  
       <h1> <a href="#" class="comment-name"><%=rs("name")%></a></h1>
		<h2><%=jianji.formatdate(rs("intime"))%> </h2></li>
		<li> 
			<article class="comment-content"><%=jianji.enhtml(rs("content"))%></article>
				<%
				sql1="select * from comment where upid="&rs("id")&" "
				
				'response.write sql1
				'response.end
				rs1.open sql1,conn,1,1
				if not rs1.eof and not rs1.bof then
					
				%>
				<article class="comment-reply">简记回复：<%=rs1("content")%>
				  <%if jianji.isadmin()  then%> 
				<span class="layui-icon layui-icon-close tips reply-dell" onclick="dell(this,<%=rs1("id")%>)" tips="删除"></span></article>
				<%
					end if
					end if
					rs1.close
				%>
		</li>
      	  
     
     </ul>
     <div class="clear"></div>
         
   <div class="c_tool"> <span class="layui-icon layui-icon-praise tips" onclick="zan(this,<%=rs("id")%>)" tips="点赞"><b><%=rs("zan")%></b></span>

  <%if jianji.isadmin()  then%> 
 <span class="layui-icon layui-icon-dialogue tips" tips="回复" onclick="tc('回复【<%=rs("name")%>】','lib/reply.asp?upid=<%=rs("id")%>&class=2&send=',800,400)"> </span> 
 <span class="layui-icon layui-icon-close tips" onclick="dell(this,<%=rs("id")%>)" tips="删除"></span> 
 
<%end if%>

</div>
 </div>
</div>
<%
		rs.movenext
		if rs.eof then exit for
	next
	
	end if
	%>



</div>


<div class="tecnavpage" >
	
<%
		page_html = "<span class='tecpagenum'>第 "&page&"/"&rs.pagecount&" 页</span>"
		
		For i=1 To rs.pagecount
			if i=page then
				page_html = page_html + " <a href='?page="&i&"' class='tecpagecurr'>"&i&"</a> "
			else
				page_html = page_html + " <a href='?page="&i&"' class='tecpagenum'>"&i&"</a> "

			end if
		Next
		page_html = page_html + "<span class='tecpagenum'> 共 " & rs.pagecount & " 页</span>" 
		
		response.write page_html		
%>	
	
</div>
 <%	
	rs.close
 %>
</div>



</div>


<div class="layui-col-md3 leftdiv">
<div class="" id="left">

<div class="layui-card radius5" >
<div class="layui-card-header about-title"><h4 class="title-border"><b>关于</b></h4></div>
<div class="layui-card-body">
<i class="avatar"></i>
<div class="itemtitle">
<p>hi, I'm</p>
<h6>shenco</h6>
</div>
<div class="itemtitle">
<p>邮箱</p>

<h6><a href="http://mail.qq.com/cgi-bin/qm_share?t=qm_mailme&amp;email=shenco@qq.com" target="_blank">shenco@qq.com</a></h6>
</div>
<div class="itemtitle">
<p>博客</p>
<h6>https://shenco.wang</h6>
</div>


<div class="detail-avatar">
<p>我是一个技术爱好者、小罗粉、伪文青跨中年大叔，目前在一家医疗软件公司任技术工程师。</p>
<p>如你所见，这是我的个人博客。网站前端采用LayUI框架，你懂的对于我这种伪开发LayUI简直就是福音。在此，特感谢贤心大神。</p>
<p>如果你有什么问题或想法可以在此给博主留言或者发邮件给我。</p>
<p>祝开心。</p>


</div>


</div>

</div>

</div>

<div class="about-share">

<div class="layui-card radius5" >
<div class="layui-card-header about-title"><h4 class="title-border"><b>投稿</b></h4></div>
<div class="layui-card-body">

<div class="detail-share">
<p>如果你有好的博文想通过本站分享，你可以点此投稿。<a href="javascript:;"  onclick="pop_up('文章投稿','lib/article.asp','95%','95%')" rel="nofollow" class="write">文章投稿</a></p>
</div>
</div>

</div>

</div>

<div class="about-share">

<div class="layui-card radius5" >
<div class="layui-card-header about-title"><h4 class="title-border"><b>共享</b></h4></div>
<div class="layui-card-body">

<div class="detail-share">
<p>本网站源码博主免费共享，需要的留言即可，但博主不负责讲解部署和维护。</p>

</div>
</div>

</div>

</div>



</div>
</div>
</div>

<!--页脚-->
<div class="foot">
<div class="footer-links w1100">
			<p>友情链接：</p>
			<div class="clearfix">
			 <%
				Sql="select * from [type] where islink=1 order by  num asc,id desc"
				rs1.open Sql,conn,3,3
					if not rs1.eof then
					do while not rs1.eof

				navurl=rs1("url")
			%>

				<a href="<%=navurl%>" target="_blank"><%=rs1("title")%></a>

			<%
			rs1.movenext
			loop
			end if
			rs1.close%>
			
			</div>
		</div>
2021 ~ <%=year(now())%>  ©简记<a href="https://beian.miit.gov.cn" target="_blank">  <%=jianji.cor%></a>  版权所有 　 
<a target="_blank" title="网站统计" href="https://v6.51.la/land/JNuUOW8IZJCG8K65"><img src="https://sdk.51.la/icon/3-1.png"></a>
</div>




 <script type="text/javascript">
 
	
 layui.use(['layer','form','laydate','upload','element'], function(){ 
  var  layer = layui.layer; 
   var form = layui.form;
    var element = layui.element;
   var laydate = layui.laydate;
  var upload = layui.upload;
	  checknum()
	  $("textarea").focus()
	upload.render({
    elem: '.upload'
    ,url: '../upload/index.asp'
	 ,multiple: true
	,number:10
    ,before: function(obj){
	layer.load(); 
    }
    ,done: function(res){
		  layer.closeAll('loading');
      //如果上传失败
      if(res.code > 0){
        return layer.msg(res.msg);
      }
      //上传成功
	    if(res.code == 0){
		
	var item=this.item
		//console.log(item)
		item.parent(".layui-upload").find(".upload-div").show(500)
	
		item.parent(".layui-upload").find(".upload-div").append("<div class='upload-img'><img src=../"+res.data["src"]+" width=80 height=80><input type='hidden' name='pic' value="+res.data["src"]+"  /><div class='upload-close' onclick='picclose(this)'>×</div></div>");
		
	
        return layer.msg(res.msg);
		
      }
    }
    ,error: function(){
		  layer.closeAll('loading');
      //演示失败状态，并实现重传
     return layer.msg('上传失败');
    
    }
  });
  
  
  upload.render({
    elem: '.file'
    ,url: '../upload/file.asp'
	,accept: 'file'
    ,before: function(obj){
	layer.load(); 
    }
    ,done: function(res){
		  layer.closeAll('loading');
      //如果上传失败
      if(res.code > 0){
        return layer.msg(res.msg);
      }
      //上传成功
	    if(res.code == 0){
		
	var item=this.item
		
	

	item.parent(".layui-upload").find(".file-div").html('<div class="upload-file">'+res.data["src"]+"<input type='hidden' name='fujian' value="+res.data["src"]+"  /><div class='file-close' onclick='fjclose(this)'>×</div></div>");
	
        return layer.msg(res.msg);
		
      }
    }
    ,error: function(){
		  layer.closeAll('loading');
      //演示失败状态，并实现重传
     return layer.msg('上传失败');
    
    }
  });

  
  

  


});
 

    </script>
   
</body>
</html>
