<%@ Page Language="C#" Inherits="Caicai.Jingpin.UI.Common.User" %>
<!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">
<title>会员中心</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link type="text/css" href="style.css" rel="stylesheet" rev="stylesheet" media="all" />
</head>
<body>
<form id="form1" runat="server">
<table class="table menu">
  <tr>
	<td width="80"><a href="user.aspx">会员列表</a></td>
	<td align="right"><asp:placeholder runat="server" Visible='<%# IsLogin %>'><a href="user.aspx?action=show&id=<%= LoginKey("UserID") %>"><%= LoginKey("Name") %>的用户中心</a><a href="user.aspx?action=update&id=<%= LoginKey("UserID") %>">修改信息</a><asp:LinkButton ID="LinkButton1" runat="server" onclick="Loginout_Click"  Text="退出系统" /></asp:placeholder><asp:placeholder runat="server" Visible='<%# !IsLogin %>'><a href="login.aspx?url=<%=Server.UrlEncode("user.aspx")%>&table=C_User&islog=yes">用户登录</a></asp:placeholder><a href="javascript:history.back()">返回上一页</a></td>	
  </tr>
</table>
<asp:Panel ID="PanelDefault" runat="server">
<table class="table">
<thead>
<tr>
    <td style="width:60px;">姓名</td>
	<td style="width:100px;">登录用户名</td>
	<td>所属班级</td>
    <td style="width:120px;">注册时间</td>
</tr>
</thead>
<asp:Repeater ID="RepeaterDefault" runat="server">
<ItemTemplate>
<tr>
    <td><a href="user.aspx?action=show&id=<%# Eval("ID")%>"><%# Eval("Name") %></a></td>
	<td><%# Eval("UserName") %></td>
	<td><%# Caicai.Framework.UI.Admin.Manage.GetTableName("C_UserClass", "Name", Eval("UserClass").ToString())%></td>
    <td class="time"><%# Eval("InputDate") %></td>
</tr>
</ItemTemplate>
</asp:Repeater>
</table>
<table class="table">
<tr>
    <td><Caicai:CPageSql ID="PageDefault" runat="server" PageSize="30" /></td>
</tr>
</table>
</asp:Panel>

<asp:Panel ID="PanelUpdate" runat="server">
<table class="table">
<thead>
<tr>
    <td style="background:#eff7ff; text-align:center;" colspan="4"><strong>修改信息</strong></td>
</tr>
</thead>
<tr>
    <td style="background:#f1f1f1; width:80px; text-align:right;">姓名</td>
    <td><Cai:CTextBox ID="TB_Name" runat="server" /></td>
	<td style="background:#f1f1f1; text-align:right;">邮箱</td>
    <td><Cai:CTextBox ID="TB_Email" runat="server" /></td>
</tr>
<tr>
    <td style="background:#f1f1f1; text-align:right;">性别</td>
    <td><Cai:CRadioButtonList ID="DDL_Sex" runat="server" ControlType="FileName" Name="files/appsettings/sex.xml" /></td>
	<td style="background:#f1f1f1; text-align:right;">电话</td>
    <td><Cai:CTextBox ID="TB_Tel" runat="server" /></td>
</tr>
<tr>
	<td style="background:#f1f1f1; text-align:right;">生日</td>
    <td><Cai:CTextBox ID="TB_BirthDate" runat="server" /></td>
    <td style="background:#f1f1f1; text-align:right;">籍贯</td>
    <td><Cai:CTextBox ID="TB_Origin" runat="server" /></td>
</tr>
<tr>
    <td style="background:#f1f1f1; text-align:right;">密码</td>
    <td colspan="3"><Cai:CTextBox ID="TB_PassWord" runat="server" ControlType="Password" /></td>
</tr>
<tr>
    <td colspan="4" align="center"><asp:Button ID="ButtonUpdate" runat="server" Text=" 提 交 " onclick="Update_Click" />&nbsp;&nbsp;<input type="reset" value=" 重 置 " /></td>
</tr>
</table>
</asp:Panel>

<asp:Panel ID="PanelShow" runat="server">
<asp:Repeater ID="RepeaterShow" runat="server">
<ItemTemplate>
<table class="table">
<thead>
<tr>
    <td style="background:#eff7ff; text-align:center;" colspan="4"><strong><%# Eval("Name") %>的详细信息</strong></td>
</tr>
</thead>
<tr>
    <td style="background:#f1f1f1; width:80px; text-align:right;">姓名</td>
    <td><%# Eval("Name") %></td>
	<td style="background:#f1f1f1; width:80px; text-align:right;">登录用户名</td>
    <td><%# Eval("UserName") %></td>
</tr>
<tr>
    <td style="background:#f1f1f1; text-align:right;">性别</td>
    <td><%# Caicai.Framework.UI.Admin.Manage.GetFileName("files/appsettings/sex.xml", Eval("Sex").ToString())%></td>
	<td style="background:#f1f1f1; text-align:right;">电话</td>
    <td><%#Eval("Tel")%></td>
</tr>
<tr>
	<td style="background:#f1f1f1; text-align:right;">生日</td>
    <td><%#Eval("BirthDate")%></td>
    <td style="background:#f1f1f1; text-align:right;">籍贯</td>
    <td><%#Eval("Origin")%></td>
</tr>
<tr>
    <td style="background:#f1f1f1; text-align:right;">所在班级</td>
    <td><%# Caicai.Framework.UI.Admin.Manage.GetTableName("C_UserClass", "Name", Eval("UserClass").ToString())%></td>
	<td style="background:#f1f1f1; text-align:right;">邮箱</td>
    <td><%#Eval("Email")%></td>
</tr>
<tr>
    <td style="background:#f1f1f1; text-align:right;">注册时间</td>
    <td class="time" colspan="3"><%# Eval("InputDate") %></td>
</tr>
</table>
</ItemTemplate>
</asp:Repeater>
<table class="table">
<thead>
<tr>
    <td style="width:40px;">动作</td>
	<td>操作模块</td>
    <td style="width:120px;">操作时间</td>
</tr>
</thead>
<asp:Repeater ID="RepeaterLog" runat="server">
<ItemTemplate>
<tr>
    <td><%# Caicai.Framework.Common.Language.Get(Eval("Type").ToString())%></td>
	<td><%# Caicai.Framework.Common.Language.Get(Eval("Table").ToString())%></td>
    <td class="time"><%# Eval("InputDate") %></td>
</tr>
</ItemTemplate>
</asp:Repeater>
</table>
<table class="table">
<tr>
    <td colspan="2"><Caicai:CPageSql ID="PageLog" runat="server" PageSize="20" /></td>
</tr>
</table>
</asp:Panel>
</form>
</body>
</html>
