<!-- #include file="../inc/301.asp" -->
<!-- #include file="../inc/conn.asp" -->
<!-- #include file="../inc/other.asp" -->
<% 
server_v40=Request.ServerVariables("QUERY_STRING")  
id=Int(replace(replace(server_v40,"/",""),".html",""))
set rs=server.createobject("adodb.recordset")
sql="select im_id from web_images where im_id="&id&""
rs.open(sql),conn,1,1
If rs.bof And rs.eof Then
Response.Redirect "/404/"
rs.close
set rs=nothing
else
server_v40=Request.ServerVariables("QUERY_STRING")     
id=Int(replace(replace(server_v40,"/",""),".html",""))
set rs=server.createobject("adodb.recordset")
sql="select im_id,al_id,im_name,im_description,im_image,im_keywords,im_time,hit,im_add,im_content from web_images where im_id="&id&""
rs.open(sql),conn,1,1
im_id=rs("im_id")
al_id=rs("al_id")
im_name=rs("im_name")
im_description=rs("im_description")
im_images=rs("im_image")

im_keywords=rs("im_keywords")
im_time=rs("im_time")
im_hit=rs("hit")
im_add=rs("im_add")
im_content=rs("im_content")
rs.close
set rs=nothing
%>

<%
'防止刷新文章记数 
'i_hot=session("i_hot")
'if ( i_hot="" or i_hot<>id ) then
set rs=server.createobject("adodb.recordset")
sql="select hit from web_images where im_id="&id&""
rs.open sql,conn,1,3
rs("hit")=rs("hit")+1
'session("i_hot")=id
rs.update
rs.close
set rs=nothing
'end if
%>
<% 
set rs=server.createobject("adodb.recordset")
sql="select al_id,al_name from web_Album where al_id="&al_id&""
rs.open(sql),conn,1,1
al_id=rs("al_id")
al_name=rs("al_name")
rs.close
set rs=nothing
idss=4
%>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<title><%=im_name%> - <%=web_name%></title>
<meta name="keywords" content="<%=im_keywords%>" />
<meta name="description" content="<%=im_description%>" />
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- #include file="../Config/css.asp" -->
</head>

<body>
<!-- Begin Header -->
 <!-- #include file="../Config/head.asp" -->
     
    <!-- Page Content
    ================================================== --> 
    <div class="row">

        <!-- Gallery Items
        ================================================== --> 
        <div class="span12 gallery-single">

            <div class="row">
                <div class="span6">
                    <img src="<%=im_images%>" class="align-left thumbnail" alt="<%=im_name%>" title="<%=im_name%>"/>
                </div>
                <div class="span6">
                    <h2><%=im_name%></h2>
                    <p class="lead"><%=im_description%></p>
                    <p><%=im_content%></p>

                    <ul class="project-info">
						<li><i class="icon-calendar"></i> <h6>时间:</h6><%=formatdatetime(im_time,0)%><br> </li>
						 <li><i class="icon-picture"></i> <h6>相册:</h6> <a href="/Album/?<%=al_id%>-1.html"><%=al_name%></a></li>
						 <li><i class="icon-map-marker"></i> <h6>地点:</h6> <%=im_add%></li>
                         <li><i class="icon-tags"></i> <h6>标签:</h6> <%=im_keywords%></li>
						<li><i class="icon-fire"></i> <h6>人气:</h6> <%=im_hit%></li>
                    </ul>

                    <a href="../Down/?pro=<%=im_images%>"><button class="btn btn-inverse pull-left" type="button">保存图片</button></a>
                    <a href="../Album/?<%=al_id%>+1.html" class="pull-right"><i class="icon-arrow-left"></i>返回相册</a>
                </div>
            </div>

        </div><!-- End gallery-single-->

    </div><!-- End container row -->
    
    </div> <!-- End Container -->

    <!-- Footer Area
        ================================================== -->
<!-- #include file="../Config/foot.asp" -->
    
</body>
</html>
<%end if%>
<!-- #include file="../inc/close.asp" -->