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

<%@ Register TagName="meta" TagPrefix="UC" Src="~/s/include/meta.ascx" %>
<%@ Register TagName="head" TagPrefix="UC" Src="~/s/include/head.ascx" %>
<%@ Register TagName="tip_bar" TagPrefix="UC" Src="~/s/include/tip_bar.ascx" %>
<%@ Register TagName="foot" TagPrefix="UC" Src="~/s/include/foot.ascx" %>
<%@ Register TagName="side_menu" TagPrefix="UC" Src="~/user/side_menu.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">
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <title>会员中心_
        <%=ZK.config("sitetitle") %></title>
    <meta name="keywords" content="<%=ZK.config("sitekeywords") %>" />
    <meta name="description" content="<%=ZK.config("sitedescription") %>" />
    <UC:meta ID="meta1" runat="server" />
</head>
<body>
    <div class="wrap">
        <a name="pagetop" id="pagetop"></a>
        <UC:head ID="head1" runat="server" />
        <UC:tip_bar ID="tip_bar1" runat="server" />
        <form id="form1" runat="server">
        <div class="box">
            <div class="hot">
                <div class="fl" style="width: 180px">
                    <div class="c1 mt5">
                        <div class="b">
                            <div class="fl">
                            </div>
                            <div class="con" style="width: 80px">
                                功能菜单</div>
                            <div class="fr">
                            </div>
                            <div class="clear">
                            </div>
                        </div>
                        <div class="v">
                            <UC:side_menu ID="side_menu1" runat="server" />
                        </div>
                    </div>
                </div>
                <div class="fr flow" style="width: 765px">
                    <div class="c1 mt5">
                        <div class="b">
                            <div class="fl">
                            </div>
                            <div class="con" style="width: 400px; padding-left: 0">
                                <div class="moveareab1">
                                    <ul>
                                        <li id="tab1"><a href="mail.aspx">收件箱</a></li>
                                        <li id="tab2"><a href="mail.aspx?type=from">发件箱</a></li>
                                        <li id="tab3"><a href="javascript:void(0)" onclick="sendmail('0','<%=ZK.uid %>')">发送消息</a></li>
                                    </ul>
                                    <div class="clear">
                                    </div>
                                </div>

                                <script type="text/javascript">
                           function self_js1()
                           {
                           var url=location.href.toLowerCase();
                           if(url.indexOf("type=from")!=-1)document.getElementById("tab2").className="on";else document.getElementById("tab1").className="on";
                           }
                           self_js1();
                                </script>

                            </div>
                            <div class="fr">
                            </div>
                            <div class="clear">
                            </div>
                        </div>
                        <div class="v">
                            <div class="v1">
                                <%@ register assembly="Pager" namespace="Wuqi.Webdiyer" tagprefix="DataPager" %>
                                <asp:Panel ID="Panel_Nodata" runat="server" Visible="false">
                                    <div class="tip_nodata" id="tip_nodata" style="background-position: 12px 13px">
                                        No data!&nbsp;<a href="javascript:void(0)" onclick="sendmail('0','<%=ZK.uid %>')">(没有短消息)</a></div>
                                </asp:Panel>
                                <asp:Panel ID="Panel_List" runat="server">
                                    <asp:HiddenField ID="HiddenField1" runat="server" Value="发送者" />
                                    <asp:Repeater ID="Repeater1" runat="server">
                                        <HeaderTemplate>
                                            <div class="list1">
                                                <table border="0" cellspacing="1" cellpadding="0" width="100%">
                                                    <tr>
                                                        <th width="100">
                                                            操作
                                                        </th>
                                                        <th>
                                                            <div class="al" style="padding-left: 10px">
                                                                消息标题</div>
                                                        </th>
                                                        <th width="150">
                                                            <span id="title1"></span>

                                                            <script type="text/javascript">
                                                          document.getElementById("title1").innerHTML=document.getElementById("HiddenField1").value;
                                                            </script>

                                                        </th>
                                                        <th width="150">
                                                            发送时间
                                                        </th>
                                                    </tr>
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <tr>
                                                <td>
                                                    <a href="#" onclick="act('del','<%#Eval("id")%>',location.href,'确定删除吗？')">[删除]</a>&nbsp;
                                                    <a href="javascript:void(0)" onclick="mail_view(<%#Eval("id")%>)">[查看]</a>
                                                </td>
                                                <td>
                                                    <div class="al" style="padding-left: 10px"><%#get2(Eval("fromuid").ToString())%><a href="javascript:void(0)" onclick="mail_view(<%#Eval("id")%>)"><%#WM.E(Eval("title"), 46, true)%></a><%#WMcompare.IsEqual(WMreplace.ConvertBit(Eval("isread").ToString()), "0", "&nbsp;<span class=\"red\">[未阅读]</span>", "")%>
                                                    </div>
                                                </td>
                                                <td>
                                                    <%#get1(Eval("touid").ToString(), Eval("fromuid").ToString())%>
                                                </td>
                                                <td>
                                                    <%#WMtime.FormatDateTime(Eval("time").ToString(),"")%>
                                                </td>
                                            </tr>
                                        </ItemTemplate>
                                        <FooterTemplate>
                                            </table></div>
                                        </FooterTemplate>
                                    </asp:Repeater>
                                </asp:Panel>
                                <asp:Panel ID="Panel_Turn" runat="server" Visible="false">
                                    <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>
                        </div>
                    </div>
                </div>
                <div class="clear">
                </div>
            </div>
        </div>
        </form>
        <UC:foot ID="foot1" runat="server" />
    </div>
</body>
</html>
