<!--#include file="../../conn/conn.asp"-->
<!--#include file="../../conn/nosql.asp"-->
<!--#include file="../../conn/config.asp"-->
<%
if session("user")="" then
response.write "<script language='javascript'>"
response.write "alert('您没还有登录，请登录后再访问本页！');"
response.write"this.location.href='/index.asp';</SCRIPT>"
response.end
end if
if session("id")="" then 
response.write "<script language='javascript'>"
response.write "alert('您没还有登录，请登录后再访问本页！');"
response.write"this.location.href='/index.asp';</SCRIPT>"
response.end
end if
%>
<html>
<head>
<title>交友中心_<%=webname%></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="/css.css" type="text/css">
<style type="text/css">
<!--
.z12 {
	font-size: 12px;
}
.style1 {
	font-size: 14px;
	font-weight: bold;
}
.tmpstr{word-break:break-all} 

-->
</style>
</head>
<body>

<%
if nosql(request("act"))="del" then
if isChkInteger(request("ida")) then
ida=request("ida")
else
response.write "<script language='javascript'>"
response.write "alert('非法操作，正在返回！');"
response.write"this.location.href='/index.asp';</SCRIPT>"
response.end
end if
conn.execute"delete from snsn_uppic_msn where id="&ida&" and username='"&nosql(session("user"))&"'"
response.Write("<script>alert('删除成功!!!');location.href='pic.asp?id="&nosql(request("id"))&"'</script>")
response.end()
end if
if nosql(request("id"))="" then
response.Write("<script>alert('没有找到您要的信息!!!');history.back(1);</script>")
response.end()
end if
if isChkInteger(request("id")) then
id=request("id")
else
response.write "<script language='javascript'>"
response.write "alert('非法操作，正在返回！');"
response.write"this.location.href='/index.asp';</SCRIPT>"
response.end
end if
set rs1=server.CreateObject("adodb.recordset")
rs1.open"select  * from snsn_uppic where id="&id,conn,1,3
if nosql(request("act"))="save" then
conn.execute"insert into snsn_uppic_msn(fren,picid,fdate,username,nr)values('"&nosql(session("user"))&"','"&nosql(request("id"))&"',getdate(),'"&rs1("username")&"','"&nosql(request("nr"))&"')"
response.Write("<script>location.href='pic.asp?id="&nosql(request("id"))&"';</script>")
response.end()
end if
%>

  <form name="form1" method="post" action="?act=save&id=<%=nosql(request("id"))%>" onsubmit="return ck1()">
  <script language=javascript>
  function ck1(){
  if(form1.nr.value==""){
  alert("请输入评论内容")
  form1.nr.focus()
  return false
    } 
    }
  </script>
  
    <table width="578"  border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#BBD7FF" >
      <tr align="center">
        <td width="572" bgcolor="#e8f4ff" class="tmpstr"><span class="style1"><%=rs1("bt")%>&nbsp;<br>
        </span>
          <div align="center">         
        </div>            </td>
      </tr>
      <tr align="center">
        <td bgcolor="#FFFFFF" class="tmpstr">[上传时间:<%=rs1("cdate")%>] &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[上传相册:<%=rs1("tclass")%>] </td>
      </tr>
      <tr>
        <td width="578" align="center" bgcolor="#FFFFFF" style='word-wrap : break-word'><a href="pic1.asp?id=<%=request("id")%>" target="_blank"><img src=<%=rs1("uppic")%> border="0" id=aaa></a></td>
      </tr>
      <tr>
        <td height="21" align="left" bgcolor="#FFFFFF" class="tmpstr">[简介]&nbsp;<%=rs1("nr")%></td>
      </tr> <%if isChkInteger(request("id")) then
id=request("id")
else
response.write "<script language='javascript'>"
response.write "alert('非法操作，正在返回！');"
response.write"this.location.href='/index.asp';</SCRIPT>"
response.end
end if
	  set rs2=server.CreateObject("adodb.recordset")
rs2.open"select  * from snsn_uppic_msn where picid="&id,conn,1,3
	  do while not rs2.eof%>
      <tr>
        <td width="578" height="21" align="left" bgcolor="#FFFFFF" class="tmpstr"><a href=/love/read.asp?id=<%=rs2("fren")%> target="_blank" ><%=rs2("fren")%></a>&nbsp;&nbsp;<font color=999999><%=rs2("fdate")%></font>&nbsp;&nbsp;<%=rs2("nr")%>&nbsp;&nbsp;&nbsp;<a href=pic.asp?act=del&ida=<%=rs2("id")%>&id=<%=request("id")%> onClick="return confirm('确定删除')">删</a></td>
      </tr>
      <%
rs2.movenext
	  loop%>
      <tr>
        <td height="21" align="left" bgcolor="#FFFFFF">[评论]
            <input name="nr" type="text" id="nr" size="60" maxlength="100"  class="wenbenkuang">
            <input name="Submit" type="submit"   class="go-wenbenkuang" value="确定"></td>
      </tr>
      <tr>
        <td height="21" align="center" bgcolor="#FFFFFF"><a href="javascript:window.close()"><br>
      [关闭本页]</a></td>
      </tr>
    </table>
  </form>
  <p>&nbsp;</p>
<p>&nbsp;</p>
<script language="javascript">
function cc(){
	var style1=document.all.aaa.width	
	if(style1>578){
	document.all.aaa.style.width="578px"
	}
}
cc()
</script>
</body >
</html>
