<!-- #include file="include/config.asp" -->
<!-- #include file="include/con_photo.asp" -->
<!-- #include file="../include/jk_review.asp" -->
<!-- #include file="../include/jk_ubb.asp" -->

<% 

call web_head(0,0,5,0,0)

call blog_first()
  
dim pic,author,counts
id=trim(request.querystring("id"))
if not(isnumeric(id)) then
  call format_redirect("photo.asp?userid="&b_userid)
end if

sql="select * from blog_data where hidden=1 and type='photo' and  id="&id&""
  call joekoe_cms.exec("",-1)
  rs.open sql,conn,1,1
   if rs.eof then
   berr="<br><br>对不起，内容不存在！<br><br><a href="&trim(request.servervariables("http_referer"))&">返回</a><br><br>"
   else
   	   if rs("hidden")=0 and login_id<>b_user then 
     berr=">对不起，此日志不公开！<br><br><a href="&trim(request.servervariables("http_referer"))&">返回</a><br><br>"
      else
       call joekoe_cms.exec("update blog_data set count=count+1 where id="&rs("id")&"",0)
        id=rs("id")
		topic=rs("topic")
		word=rs("word")
		pic=rs("pic")
		tim=rs("tim")
		counts=rs("count")
        if rs("author")<>"" then
        author=rs("author")
        else
        author=rs("username")
        end if
      end if
   end if
 rs.close
 

Call Blog_Top()
'----------------------------左边 开始----------------------------
'call Blog_left()
 tit=b_name
tit2="查看相片:"&joekoe_cms.code_html(topic,1,12)
'----------------------------左边 结束----------------------------
	webroad=webroad&"<div align='left'>"
	webroad=webroad&"<a href='/index.asp' >天助网络</a> "
	webroad=webroad&">> <a href='/blog/index.asp' >博客首页</a> >>"
	webroad=webroad&"<a href=""blog.asp?Userid="&b_userid&""" >"&tit&"</a> "
	
	webroad=webroad&">> <a href=""photo.asp?Userid="&b_userid&""" >相册</a> "
	'response.write  vbcrlf&">> <a href=""blog.asp?User="&b_user&"&action="&action&""" >"&tit2&"</a> "
	webroad=webroad&">> "&tit2 
	webroad=webroad&"</div></br>"

'----------------------------中间 开始----------------------------
if berr="" then
   topic="<div style='float:left' align='left'><IMG  src='images/main/topic.gif' border=0>&nbsp;<b>"&topic&" </b></div></br>"
   photo_main=webroad&topic
   photo_main=photo_main&"<DIV class=postbody><a href='javascript:;' onClick=""javascript:open_view('"&pic_url(pic,0)&"',1);""><img src='"&pic_url(pic,0)&"' border=0 onload=""javascript:if(this.width>500)this.width=500;"" align=center alt='在新窗口中浏览此图片'></a></DIV>"
   photo_main=photo_main&"<HR class=post><DIV align='left' ><b><font class=blue>相片简介:</font></b><br>"&code_jk(word)&"</DIV><DIV class=postend><A href='../user/view.asp?username="&author&"' target=_blank alt='查看个人资料'>"&author&"</A> 发表于"&tim&" &nbsp;&nbsp;浏览："&counts&"&nbsp;&nbsp;</DIV><HR class=post><BR>"
   photo_main=photo_main&"<DIV><DIV class=topic><IMG src='images/main/topic.gif' border=0>&nbsp;评论/回复:</DIV><div align='left'>"&review_type("photo",id,joekoe_cms.web_path&"blog/photo_view.asp?userid="&b_userid&"&id="&id,1,b_userid)&"</div></DIV>"
   


else
response.write vbcrlf&berr
end if

Dim Tmpskin:tmpskin=b_skinmain

tmpskin = Replace(tmpskin, "留言板","热门日志")
tmpskin = Replace(tmpskin, "Blog信息","所养宠物")
tmpskin = Replace(tmpskin, "博客信息","所养宠物")
tmpskin = Replace(tmpskin, "$show_blogname$",b_name)
tmpskin = Replace(tmpskin, "$show_placard$",B_content)
tmpskin = Replace(tmpskin, "$show_calendar$",Calendar(request.QueryString("year"),request.QueryString("month"),request.QueryString("day")))
tmpskin = Replace(tmpskin, "$show_subject_l$",blog_zt)
tmpskin = Replace(tmpskin, "$show_subject$",blog_fl)
tmpskin = Replace(tmpskin, "$show_newblog$",left_new())
tmpskin = Replace(tmpskin, "$show_comment$",photo_pl(10,b_userid))
tmpskin = Replace(tmpskin, "$show_info$","<table  width=200 style='float:right' >"&showpet(idtoname(b_userid))&"</table>")
tmpskin = Replace(tmpskin, "$show_login$",user_info())
tmpskin = Replace(tmpskin, "$show_newmessage$",left_hot())
tmpskin = Replace(tmpskin, "$show_search$",blog_search())
tmpskin = Replace(tmpskin, "$show_log$",photo_main)
tmpskin = Replace(tmpskin, "$show_xml$","")
tmpskin = Replace(tmpskin, "$show_links$",hot_blog1(5))

response.write tmpskin

'----------------------------中间 结束----------------------------
'Call Blog_End()
'****************************************************
' HSCMS 1.2      Power by eebaa.com
' Email: yz_xiaojun@163.com
' Web: http://www.eebaa.com
' Copyright (C) 2006 eebaa.com All Rights Reserved.
'****************************************************
%>