<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="default.aspx.cs" Inherits="Kcms.UI.usercenter._default" %>
<%@ Register assembly="PageNavigator" namespace="KcNavigator" tagprefix="Kc" %>
<%@ Import Namespace="Kcms.Model" %>
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><%=userInfo.username%> - 个人中心</title>
<link href="Images/<%=userInfo.skinpath%>/style.css" rel="stylesheet" type="text/css" />
    <script src="../scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script src="/inc/artDialog/artDialog.min.js" type="text/javascript"></script>
    <script src="../scripts/public.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $("#usControl").click(function () {
                $("#uc").slideDown("normal");
            });
            $("#closeControl").click(function () {
                $("#uc").slideUp("normal");
            });
        });
    </script>
</head>
<body>
<div class="mainbox">
<div class="meun">
    <div class="m-l"><img src="Images/logo.gif" /></div>
    <div class="m-r"><%if (curUserInfo.id > 0)
                       { %><font color="#000000">您好，</font><a href="./"><%=curUserInfo.username%></a> | <%} %><a href="../">返回首页</a></div>
</div>
<div class="top">
   <div class="top1">
     <div class="top_l">
        <div class="top_font"><%=userInfo.username%>的个人中心</div>
     </div>
     <div class="top_r"></div>
   </div>
</div>
<div class="control clearfix">
  <div class="uc0"><img src="Images/control.gif" alt="个人管理" align="absmiddle"/> <a href="javascript:;" id="usControl">个人管理</a></div>
  <div id="uc" class="ucontr" style="display:none">
    <div class="uc1"><a href="javascript:;" id="closeControl">r</a></div>
    <div class="uc2" onmouseover="this.className='uc3'" onmouseout="this.className='uc2'"><img src="Images/dot1.gif" align="absmiddle" alt=""/> <a href="javascript:usercom('control.aspx?c=1',0,0);">修改个人资料</a></div>
    <div class="uc2" onmouseover="this.className='uc3'" onmouseout="this.className='uc2'"><img src="Images/dot3.gif" align="absmiddle" alt=""/> <a href="javascript:usercom('control.aspx?c=2',540,560);">定制页面模板</a></div>
    <div class="uc2" onmouseover="this.className='uc3'" onmouseout="this.className='uc2'"><img src="Images/m_r.gif" align="absmiddle" alt=""/> <a href="javascript:usercom('control.aspx?c=3',540,560);">我的收件箱</a></div>
<%--    <div class="uc2" onmouseover="this.className='uc3'" onmouseout="this.className='uc2'"><img src="Images/m_s.gif" align="absmiddle" alt=""/> <a href="javascript:usercom('control.aspx?c=4&tid=<%=userInfo.id %>',0,0);">发信息给他</a></div>--%>
    <div class="uc2" onmouseover="this.className='uc3'" onmouseout="this.className='uc2'"><img src="Images/dot5.gif" align="absmiddle" alt=""/> <a href="javascript:usercom('control.aspx?c=5',0,0);">修改密码</a></div>
  </div>
</div>
<div class="mid clearfix">

  <div class="mid-l">
  
    <div class="mid-t"><p class="utbg">问答</p></div>
    <div class="minfo">
        <ul>
            <li>头衔：<%=rankName%></li>
			<li>等级：<%=rank%>级</li>
            <li>等级方案：<%=rankTypeName%></li>
			<li>积分：<%=userInfo.score%>分</li>
            <li>上次登录IP：<%=userInfo.previp%></li>
			<li>上次登录时间：<%=userInfo.prevtime%></li>
            <li>Email：<%=userInfo.email%></li>
			<li>QQ：<%=userInfo.qq%></li>
        </ul>
    </div>
    
    <div class="mid-t2">
      <div class="mid-t4">我的提问</div>
    </div>
    <div id="upop">
<table class="rtable" width="100%" align="center" cellpadding="0" cellspacing="0" border="0">
<tr class="title">
  <td align="center">标题</td>
  <td align="center">状态</td>
  <td align="center">提问时间</td>
</tr>    
    <asp:Repeater ID="rptList" runat="server" 
        onitemdatabound="rptList_ItemDataBound">
    <ItemTemplate>
<tr>
  <td><asp:HyperLink ID="hyTitle" runat="server" Target="_blank"></asp:HyperLink></td>
  <td align="center"><em class="s<%#Eval("state") %>"></em></td>
  <td align="center"><%#((DateTime)Eval("addtime")).ToShortDateString() %></td>
</tr>
    </ItemTemplate>
    </asp:Repeater>
</table>
<Kc:PageNavigator ID="PageNavigator1" runat="server" CssClass="pager" 
          onchangepageclick="PageNavigator1_ChangePageClick" />

    <div class="mend"><a href="<%=askPostUrl %>" target="_blank">我要提问>></a></div>
    </div>

  </div>
  
  <div class="mid-r">
      <div class="mrls">
        <div class="mid-t"><p class="utbg">个人信息</p></div> 
        <div class="mid-p"><img src="../uploads/?<%=userInfo.picid %>,110,110.jpg" width="110" height="110"/></div>
        <div class="mid-p2"><%=userInfo.username%></div>
        <div class="mid-p3">头衔：<%=rankName%></div>
        
        <div class="mid-p3"><img src="Images/m_s.gif" align="absmiddle" /> <a href="javascript:usercom('control.aspx?c=4&tid=<%=userInfo.id %>',0,0);">发送站内信给他</a>
        </div>
        <%--<div class="mid-p4"></div>--%>
      </div>
      <div class="br"></div>
      <div class="mrls">
        <div class="mid-t"><p class="utbg">最近访客</p></div> 
          <asp:Repeater ID="rptVisiter" runat="server">
          <ItemTemplate>
             <div class="vis"><a href="../usercenter/?id=<%#Eval("userid") %>" target="_blank"><%#Eval("username") %></a> (<%#Eval("addtime")%>)</div>
          </ItemTemplate>
          <FooterTemplate><asp:Literal ID="Literal1" runat="server" Text="暂无来访信息…" Visible='<%#bool.Parse((rptVisiter.Items.Count==0).ToString())%>'></asp:Literal></FooterTemplate>
          </asp:Repeater>
          
      </div>
  </div>
</div>
  <div class="end">
        <div class="end-link">&copy;2011 <a href="http://www.kuaishow.com/" target="_blank">Kcms</a></div>
        <div class="line"></div>
  </div>
</div>

</body>
</html>
