<%@ page language="C#" autoeventwireup="true" inherits="space_photo_view, ZKCMS" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Assembly="Pager" Namespace="Wuqi.Webdiyer" TagPrefix="DataPager" %>
<%@ Register TagPrefix="UC" TagName="meta" Src="~/space/meta.ascx" %>
<%@ Register TagPrefix="UC" TagName="topbar" Src="~/space/topbar.ascx" %>
<%@ Register TagPrefix="UC" TagName="head" Src="~/space/head.ascx" %>
<%@ Register TagPrefix="UC" TagName="foot" Src="~/space/foot.ascx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <UC:meta ID="meta1" runat="server" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head>
<body>
    <form id="form1" runat="server">
    <div class="wrap">
        <UC:topbar ID="topbar1" runat="server" />
        <div class="box">
            <UC:head ID="head1" runat="server" />
            <div class="main">
                <div class="c">
                    <div class="b">
                        <div class="fl">
                            <asp:Literal ID="title1" runat="server"></asp:Literal></div>
                        <div class="fr">
                            <asp:Literal ID="Literal1" runat="server"></asp:Literal><asp:HyperLink ID="HyperLink2"
                                runat="server" Visible="false">我要上传照片</asp:HyperLink>
                        </div>
                        <div class="clear">
                        </div>
                    </div>
                    <div class="v">

<script type="text/javascript">
var lefturl= '<asp:Literal id="LiteralPicPrev" runat="server" text="#"></asp:Literal>';var righturl= '<asp:Literal id="LiteralPicNext" runat="server" text="#"></asp:Literal>';               
function self_img_neprt(bigimg){
var imgurl= righturl;var width= bigimg.width;var height= bigimg.height;
bigimg.onmousemove=function(){if(event.offsetX<width/2){bigimg.style.cursor	= 'url(skin/public/arr_left.cur),auto';imgurl= lefturl;}else{bigimg.style.cursor= 'url(skin/public/arr_right.cur),auto';imgurl= righturl;}}
bigimg.onmouseup=function(){if(imgurl.length>1)window.location=imgurl;else window.location="photo_list.aspx?uid=<%=UID %>&classid=<%=WMread.GetBy("classid","m_space_photo","id",WM.RQ("id")) %>";}
}
document.onkeydown = function chang_page(e){var theEvent=window.event||e;var keyNum=theEvent.keyCode||theEvent.which;if (keyNum== 37){if(lefturl!=""&&lefturl!="#")location=lefturl;else alert("已是第一张！");}else if (keyNum== 39){if(righturl!=""&&righturl!="#")location=righturl;else alert("已是最后一张！");}}
</script>

                        <div class="flow wto" style="width: 916px">
                            <a name="anchor_pic" id="anchor_pic"></a>
                            <asp:Panel ID="Panel1" runat="server">                            
                                <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                    <tr>
                                        <td>
                                            <div class="ce" style="padding: 10px 0 10px 0;">
                                                <asp:Literal ID="content" runat="server"></asp:Literal>
                                                <asp:Literal ID="title2" runat="server"></asp:Literal>
                                                <div id="photo_view_title" style="display: none">
                                                </div>
                                                <div class="flow" style="width: 1px; height: 1px; filter: Alpha(Opacity=10); -moz-opacity: 0.1;
                                                    opacity: 0.1">
                                                    <input type="button" class="but1" /></div>
                                            </div>
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                            <asp:Literal ID="WithoutAccess" runat="server" Visible="false"><style type="text/css">.WithoutAccess{background:#fff url(/skin/public/tip_bg1.gif) no-repeat 0 0;width:460px;height:70px;overflow:hidden;line-height:70px;font-size:14px;color:#277623;margin:50px auto;}.WithoutAccess a{color:#f60;margin-left:2px;margin-right:2px;font-weight:bold;}.WithoutAccess a:hover{color:#f00;}</style><div class="WithoutAccess"><span style="padding-left:80px;">本页游客无权浏览，请您先<a href="/user/login.htm" target="_blank">登录</a>或<a href="/user/reg.htm" target="_blank">注册</a>！</span></div></asp:Literal>
                        </div>
                        <table border="0" cellpadding="0" cellspacing="0" class="wto">
                     <tr><td><div style="padding:0 0 15px 0;">
                                   <div id="ckepop">
                                            <span class="jiathis_txt"><span style="color:#666">(按键盘左右方向键可翻页)</span>&nbsp;分享到：</span> <a class="jiathis_button_tools_1"></a><a class="jiathis_button_tools_2">
                                            </a><a class="jiathis_button_tools_3"></a><a class="jiathis_button_tools_4"></a>
                                            <a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jiathis_separator jtico jtico_jiathis"
                                                target="_blank">更多</a> <a class="jiathis_counter_style"></a>
                                        </div>

                                        <script type="text/javascript" src="http://v2.jiathis.com/code/jia.js" charset="utf-8"></script>

                                        <div class="clear"></div>
                                </div>
                     </td></tr>
                     </table>
                        <div class="wto" style="width: 730px">
                            <div class="pl">
                                <a name="pl" id="pl"></a>
                                <div class="pl_c">
                                    <div class="pl_b" style="border-top-width: 0">
                                        发表评论
                                    </div>
                                    <div class="pl_add">
                                        <table border="0" cellpadding="0" cellspacing="0">
                                            <tr valign="top">
                                                <td>
                                                    <input type="hidden" id="pl_inp_init" value="请文明留言，遵守互联网法规！" />
                                                    <textarea id="pl_content" class="pl_inp" onfocus="if('<%=ZK.uid %>'==''){setInterval(intervalCheckLogin,1000);show_minilogin(<%=ZK.sDZ %>);}else {if(this.value==document.getElementById('pl_inp_init').value)this.value='';}"></textarea>
                                                </td>
                                                <td>
                                                    <div class="pl_smiley">

                                                        <script type="text/javascript">  
                                                            document.getElementById("pl_content").value=document.getElementById("pl_inp_init").value;                                                           
                                                                                  
                                                            show_pl_smiley("pl_content",document.getElementById("pl_inp_init").value);
                                                        </script>

                                                    </div>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="2">
                                                    <input type="button" id="pl_but" class="pl_but" value="发表留言" onmouseover="hover(this,0.8)"
                                                        onmouseout="hover(this,1)" onclick="save_pl('<%=ZK.uid %>','m_space_photo_pl','pl_content','pl_but',<%=WM.RQ("id") %>,document.getElementById('pl_inp_init').value,<%=UID%>)">

                                                    <script type="text/javascript">interval_pl(<%=WM.RQ("id") %>,"pl_but");</script>

                                                </td>
                                            </tr>
                                        </table>
                                    </div>
                                    <asp:Panel ID="Panel_pl_list" runat="server">
                                        <div class="pl_b">
                                            留言评论
                                        </div>
                                        <div class="pl_list">
                                            <%@ register assembly="Pager" namespace="Wuqi.Webdiyer" tagprefix="DataPager" %>
                                            <asp:Repeater ID="Repeater1" runat="server" OnItemDataBound="Repeater1_OnItemDataBound">
                                                <ItemTemplate>
                                                    <div class="pl_item">
                                                        <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                                            <tr valign="top">
                                                                <td class="pl_item_con1">
                                                                    <a href="/user/u.aspx?uid=<%#Eval("uid") %>" target="_blank">
                                                                        <img alt="" src="<%#ZK.m_face(Eval("uid").ToString(),"50")%>" onmouseover="hover(this,0.7)"
                                                                            onmouseout="hover(this,1)" /></a>
                                                                </td>
                                                                <td class="pl_item_con2">
                                                                    <div class="son1">
                                                                        <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                                                            <tr>
                                                                                <td>
                                                                                    <a href="/user/u.aspx?uid=<%#Eval("uid") %>" target="_blank"><strong>
                                                                                        <%#ZK.m_u(Eval("uid").ToString())%></strong></a>&nbsp;&nbsp;发表于&nbsp;<%#WMtime.Diff(Eval("time").ToString(), "yyyy-M-d HH:mm")%>&nbsp;&nbsp;&nbsp;&nbsp;<%#WMip.SetIP("(", Eval("ip").ToString(), ")")%>
                                                                                </td>
                                                                                <td align="right">
                                                                                    <a href="javascript:void(0)" class="str" onclick="show_pl_re(<%#Eval("id") %>)">回复</a>&nbsp;&nbsp;<asp:Label
                                                                                        ID="Label_floor" runat="server"></asp:Label>
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                    </div>
                                                                    <div class="son2">
                                                                        <%#Eval("content") %></div>
                                                                    <div class="son3" id="pl_re_<%#Eval("id") %>" style="display: none">
                                                                        <div>
                                                                            <textarea id="pl_re_content_<%#Eval("id") %>" class="pl_inp" style="height: 50px"></textarea></div>

                                                                        <script type="text/javascript">show_pl_smiley("pl_re_content_<%#Eval("id") %>","");</script>

                                                                        <div>
                                                                            <input type="button" id="pl_but" class="pl_but" onmouseover="hover(this,0.8)" onmouseout="hover(this,1)"
                                                                                onclick="save_pl_re('<%=ZK.uid %>','m_space_photo_pl_re',<%#Eval("id") %>,this)"
                                                                                value="发表回复">
                                                                        </div>
                                                                    </div>
                                                                    <%#ZK.get_pl_re("m_space_photo_pl_re", Eval("id").ToString())%>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </div>
                                                </ItemTemplate>
                                                <FooterTemplate>
                                                    <div class="abs flow" style="height: 1px; background-color: #ffffff; width: 687px;
                                                        margin-top: -1px">
                                                    </div>
                                                </FooterTemplate>
                                            </asp:Repeater>
                                            <asp:Panel ID="Panel_Turn" runat="server" Visible="false" Style="padding-bottom: 5px">
                                                <div id="DataPager">
                                                    <table border="0" cellspacing="0" cellpadding="0" style="margin: 0 auto">
                                                        <tr>
                                                            <td>
                                                                <DataPager:AspNetPager ID="Pager1" runat="server" OnPageChanged="Pager1_PageChanged"
                                                                    UrlPagingTarget="_self" PageSize="20" UrlPaging="true" FirstPageText="最前页" PrevPageText="上一页"
                                                                    NextPageText="下一页" LastPageText="最后页" PagingButtonSpacing="0" CssClass="turn"
                                                                    CurrentPageButtonClass="turn_on" SubmitButtonClass="pager_but" PageIndexBoxClass="pager_inp"
                                                                    SubmitButtonText="转到" ShowPageIndexBox="Auto" ShowBoxThreshold="0" ShowDisabledButtons="false"
                                                                    NumericButtonCount="6" FirstLastButtonsClass="turn_flpn" PrevNextButtonsClass="turn_flpn">
                                                                </DataPager:AspNetPager>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                    <div class="clear" style="height: 8px">
                                                    </div>
                                                </div>
                                            </asp:Panel>
                                        </div>
                                    </asp:Panel>
                                </div>
                            </div>
                        </div>
                        <asp:Literal ID="next_pic" runat="server"></asp:Literal>
                    </div>
                </div>
            </div>
            <UC:foot ID="foot1" runat="server" />
        </div>
    </div>
    </form>
</body>
</html>
