<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="control.aspx.cs" Inherits="Kcms.UI.usercenter.control" %>
<%@ Register assembly="PageNavigator" namespace="KcNavigator" tagprefix="Kc" %>
<!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></title>
<link href="Images/control.css" rel="stylesheet" type="text/css" />
    <script src="/inc/artDialog/artDialog.min.js" type="text/javascript"></script>
    <script src="../scripts/public.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <%if (c == 1)
  { %>
<div class="shortbox">
		<fieldset>
			<legend>修改个人资料</legend>
            <div class="a_d"><span class="sp">电邮：</span><asp:TextBox ID="txtEmail" 
                    runat="server"></asp:TextBox>
                </div>
            <div class="a_d"><span class="sp">QQ：</span><asp:TextBox ID="txtQQ" runat="server"></asp:TextBox>
                </div>
            <div class="a_d"><span class="sp">性别：</span><asp:RadioButtonList ID="rdoSex" runat="server" 
                    RepeatDirection="Horizontal" RepeatLayout="Flow">
                <asp:ListItem Value="1">男</asp:ListItem>
                <asp:ListItem Value="2">女</asp:ListItem>
                <asp:ListItem Value="0">保密</asp:ListItem>
                </asp:RadioButtonList>
            </div>
            <div class="a_d"><span class="sp">等级方案：</span><asp:DropDownList ID="drpRankType" 
                    runat="server">
                </asp:DropDownList>
                </div>
            <div class="a_d"><span class="sp">公开信息：</span><asp:CheckBox ID="chkIsOpen" 
                    runat="server" Text="公开Emial和QQ" />  
                </div>
            <div class="a_d clearfix">
                        <div class="l">用户头像：</div>
                        <div class="r"><asp:TextBox ID="pid_v" Text="0" runat="server" style="display:none;"></asp:TextBox><p>110*110像素为最佳</p><p id="pid" class="picbg" onclick="javascript:showUpload('pid', 2,0);"><asp:Literal ID="litPic" runat="server"></asp:Literal></p></div>
                </div>
		</fieldset>
            <div class="a_s">
                <asp:Button ID="Button1" runat="server" Text=" 提交修改 " onclick="Button1_Click" />
               <input type="button" name="button2" id="button2" value="  取 消  " onclick="art.dialog.close();"/>
            </div>
</div>
    <%} %><%if (c == 2)
  { %>
<div class="shortbox">
<fieldset>
	<legend>定制页面模版</legend>
         <div class="clearfix">
                <asp:Repeater ID="rptSkin" runat="server" onitemcommand="rptSkin_ItemCommand" 
                    onitemdatabound="rptSkin_ItemDataBound">
                <ItemTemplate>
            <div class="u-prev">
               <div class="prev1" onmouseover="this.className='prev2'" onmouseout="this.className='prev1'">
                   <asp:ImageButton ID="ImageButton1" CommandName="sel" CommandArgument='<%#XPath("SkinPath")%>' runat="server" Height="135" Width="120" BorderWidth="0" ImageUrl='<%#"images/"+XPath("SkinPath")+"/Preview.jpg"%>' />
                   <asp:Literal ID="litEm" runat="server"></asp:Literal>
               </div>
               <p><%#XPath("SkinName")%></p>
            </div>
                </ItemTemplate>
                </asp:Repeater>
        </div>
</fieldset>
</div>
    <%} %><%if (c == 3)
  { %>
<div class="shortbox">
<fieldset>
	<legend>我的站内信</legend>
        <ul class="mlist">
            <li>共有未读信息<font color="red"><asp:Literal ID="litNoRead" runat="server"></asp:Literal></font>条</li>
            <asp:Repeater ID="rptMessage" runat="server" 
                onitemcommand="rptMessage_ItemCommand">
            <ItemTemplate>
            <li>
                <asp:HiddenField ID="hidToId" Value='<%#Eval("tid") %>' runat="server" />
                <em class="t <%#Eval("isread")%>"><a href="?c=6&mid=<%#Eval("id") %>"><%#Eval("title") %></a></em>
                <em class="u"><%#Eval("fname") %></em>
                <em class="d"><%#((DateTime)Eval("addtime")).ToShortDateString() %></em>
                <em class="f"><asp:LinkButton ID="LinkButton1" CommandName="del" CommandArgument='<%#Eval("id") %>' runat="server" OnClientClick="return confirm('确定删除?');">r</asp:LinkButton></em>
            </li>
            </ItemTemplate>
            <FooterTemplate><asp:Literal ID="Literal1" runat="server" Visible='<%#bool.Parse((rptMessage.Items.Count==0).ToString())%>'><li>您暂无站内信息…</li></asp:Literal></FooterTemplate>
            </asp:Repeater>
        </ul>
<Kc:PageNavigator ID="PageNavigator1" runat="server" CssClass="pager" 
          onchangepageclick="PageNavigator1_ChangePageClick" />
</fieldset>
</div>
    <%} %><%if (c == 4)
  { %>
<div class="shortbox">
<fieldset>
	<legend>发送站内信息</legend>
			<div class="a_d"><span class="sp">发信息给：</span><asp:Literal ID="litTName" 
                    runat="server"></asp:Literal>
                <asp:HiddenField ID="hidTId" runat="server" />
                </div>
			<div class="a_d"><span class="sp">信息标题：</span><asp:TextBox ID="txtTitle" 
                    runat="server" Width="348px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                    ControlToValidate="txtTitle" Display="Dynamic" ErrorMessage="*" 
                    SetFocusOnError="True"></asp:RequiredFieldValidator>
                </div>
			<div class="a_d"><span class="sp">信息内容：</span><asp:TextBox ID="txtContent" 
                    runat="server" TextMode="MultiLine" Rows="8" Width="348px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                    ControlToValidate="txtContent" Display="Dynamic" ErrorMessage="*" 
                    SetFocusOnError="True"></asp:RequiredFieldValidator>
                </div>
</fieldset>
            <div class="a_s">
                <asp:Button ID="Button3" runat="server" Text="  提 交  " onclick="Button3_Click" />
               <input type="button" name="button2" id="button6" value="  取 消  " onclick="art.dialog.close();"/>
            </div>
</div>
    <%} %><%if (c == 5)
  { %>
<div class="shortbox">
<fieldset>
	<legend>修改用户密码</legend>
			<div class="a_d"><span class="sp">原 密 码：</span><asp:TextBox ID="txtOldPass" 
                    runat="server" TextMode="Password"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="txtOldPass" Display="Dynamic" ErrorMessage="*" 
                    SetFocusOnError="True"></asp:RequiredFieldValidator>
                </div>
			<div class="a_d"><span class="sp">新 密 码：</span><asp:TextBox ID="txtNewPass" 
                    runat="server" TextMode="Password"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="txtNewPass" Display="Dynamic" ErrorMessage="*" 
                    SetFocusOnError="True"></asp:RequiredFieldValidator>
                </div>
			<div class="a_d"><span class="sp">确认密码：</span><asp:TextBox ID="txtConfirmPass" 
                    runat="server" TextMode="Password"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                    ControlToValidate="txtConfirmPass" Display="Dynamic" ErrorMessage="*" 
                    SetFocusOnError="True"></asp:RequiredFieldValidator>
                <asp:CompareValidator ID="CompareValidator1" runat="server" 
                    ControlToCompare="txtNewPass" ControlToValidate="txtConfirmPass" 
                    Display="Dynamic" ErrorMessage="两次密码不同" SetFocusOnError="True"></asp:CompareValidator>
                </div>
</fieldset>
            <div class="a_s">
                <asp:Button ID="Button5" runat="server" Text=" 提交修改 " onclick="Button5_Click" />
               <input type="button" name="button2" id="button4" value="  取 消  " onclick="art.dialog.close();"/>
            </div>
</div>
    <%} %><%if (c == 6)
  { %>
<div class="shortbox">
<fieldset>
	<legend>查看站内信</legend>
            <div class="a_d"><a href="?c=3">返回<<<</a>
                </div>
			<div class="a_d"><span class="sp">标　题：</span><%=messageInfo.title %>
                </div>
			<div class="a_d"><span class="sp">内　容：</span><%=messageInfo.content %>
                </div>
			<div class="a_d"><span class="sp">发送时间：</span><%=messageInfo.addtime %>
                </div>
</fieldset>
            <div class="a_s">
               <input type="button" name="button2" id="button7" value="  回 复  " onclick="location.href='?c=4&fid=<%=messageInfo.fid %>'"/>
               <input type="button" name="button2" id="button8" value="  关 闭  " onclick="art.dialog.close();"/>
            </div>
</div>
    <%} %>
    </form>
</body>
</html>
