<%@ Control Language="c#" AutoEventWireup="True" Codebehind="UserInceptInf.ascx.cs" Inherits="DreamerShop.UserControl.UserInceptInf" TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
<%@ Register TagPrefix="uc1" TagName="LanguagesDeal" Src="../LanguagesManage.ascx" %>
<uc1:LanguagesDeal id="myLanguagesDeal" runat="server" Visible="False"></uc1:LanguagesDeal>
<asp:panel id="Pan1" runat="server">
	<DIV align="right">
		<asp:LinkButton id="lbtAddNew" runat="server" onclick="lbtAddNew_Click">新增地址</asp:LinkButton></DIV>
	<asp:datagrid id="dgList" runat="server" ShowHeader="False" BackColor="#FFFFFF" BorderColor="#CCCCCC" PageSize="5"
		AllowPaging="false" AutoGenerateColumns="False" Width="100%" DataKeyField="InceptID">
		<HeaderStyle HorizontalAlign="Center" BackColor="#f1f1f1" Font-Bold="true" Height="25"></HeaderStyle>
		<Columns>
			<asp:TemplateColumn>
				<ItemStyle HorizontalAlign="Center"></ItemStyle>
				<ItemTemplate>
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr align="left" bgcolor="#F1F1F1">
							<td width="30%"><%=myLanguagesDeal.GetMyString("MemberTrueName")%><%# DataBinder.Eval(Container.DataItem, "TrueName")%> <%# DataBinder.Eval(Container.DataItem, "TrueName2")%>
							</td>
							<td width="20%"><%=myLanguagesDeal.GetMyString("MemberSex")%><%# DataBinder.Eval(Container.DataItem, "Sex")%>
							</td>
							<td width="20%"><%# DataBinder.Eval(Container.DataItem, "IsDefault")%>
							</td>
							<td width="30%">
								<asp:Button id="btEdit" Text="修改" CssClass="go-wenbenkuang" CommandName="Edit" Runat="server"></asp:Button>
								<asp:Button id="btDelete" Text="删除" CssClass="go-wenbenkuang" CommandName="Delete" Runat="server"></asp:Button></td>
						</tr>
						<tr>
							<td colspan="76"><p><br>
									&nbsp;&nbsp;<%=myLanguagesDeal.GetMyString("MemberAddress")%><%# DataBinder.Eval(Container.DataItem, "Address")%><br>
									&nbsp;&nbsp;<%=myLanguagesDeal.GetMyString("MemberPostCode")%><%# DataBinder.Eval(Container.DataItem, "PostCode")%><br>
									&nbsp;&nbsp;<%=myLanguagesDeal.GetMyString("MemberTel")%><%# DataBinder.Eval(Container.DataItem, "Tel")%><br>
									&nbsp;&nbsp;<%=myLanguagesDeal.GetMyString("MemberEmail")%><%# DataBinder.Eval(Container.DataItem, "Email")%><br>
								</p>
							</td>
						</tr>
					</table>
				</ItemTemplate>
			</asp:TemplateColumn>
		</Columns>
		<PagerStyle Visible="False" NextPageText="下一页" PrevPageText="上一页" HorizontalAlign="Right"></PagerStyle>
	</asp:datagrid>
	<TABLE class="table-zuoyou" id="Table1" width="100%" align="center" border="0">
		<TR align="center" bgColor="#f1f1f1">
			<TD>
				<asp:button id="btFirst" runat="server" CssClass="go-wenbenkuang" Text=" 首 页" BorderStyle="Groove" onclick="btFirst_Click"></asp:button>&nbsp;
				<asp:button id="btPre" runat="server" CssClass="go-wenbenkuang" Text="上一页" BorderStyle="Groove" onclick="btPre_Click"></asp:button>&nbsp;
				<asp:button id="btNext" runat="server" CssClass="go-wenbenkuang" Text="下一页" BorderStyle="Groove" onclick="btNext_Click"></asp:button>&nbsp;
				<asp:button id="btLast" runat="server" CssClass="go-wenbenkuang" Text=" 尾 页" BorderStyle="Groove" onclick="btLast_Click"></asp:button>&nbsp;
				<asp:label id="lbPage" runat="server"></asp:label>&nbsp; 转到
				<asp:textbox id="txtPageNum" runat="server" CssClass="wenbenkuang" Width="30px" MaxLength="3"></asp:textbox>
				<asp:CompareValidator id="CompareValidator2" runat="server" Operator="DataTypeCheck" Type="Integer" ControlToValidate="txtPageNum"
					Display="Dynamic" ErrorMessage="输入数字"></asp:CompareValidator>页
				<asp:Button id="btGo" runat="server" CssClass="go-wenbenkuang" Text="Go" onclick="btGo_Click"></asp:Button></TD>
		</TR>
	</TABLE>
</asp:panel>
<asp:panel id="Pan2" runat="server" Visible="False">
	<TABLE class="p9black" cellSpacing="0" cellPadding="0" width="100%" border="0">
		<TR>
			<TD style="WIDTH: 711px">
				<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
					<TR>
						<TD class="p12black" align="left"><FONT face="宋体"></FONT></TD>
						<TD align="right" width="50"><!--BUTTON_BEGIN-->
							<TABLE>
								<TR>
									<TD vAlign="bottom" noWrap>
										<asp:ImageButton id="ibtReturn" runat="server" ImageUrl="../Images/Admin/fb-cancel.gif" CausesValidation="False" onclick="ibtReturn_Click"></asp:ImageButton><%=myLanguagesDeal.GetMyString("TextReturn")%></TD>
								</TR>
							</TABLE> <!--BUTTON_END--></TD>
					</TR>
				</TABLE>
			</TD>
		</TR>
	</TABLE>
	<HR noShade SIZE="1">
	<TABLE cellSpacing="1" cellPadding="5" width="650" align="center" bgColor="#cccccc" border="0">
		<TR bgColor="#ffffff">
			<TD align="right"><%=myLanguagesDeal.GetMyString("MemberTrueName")%><FONT face="宋体"></FONT></TD>
			<TD class="pad" width="70%">
				<asp:textbox id="txtTrueName" runat="server" CssClass="wenbenkuang" Width="150px" MaxLength="25"></asp:textbox>
				<asp:RequiredFieldValidator id="RequiredFieldValidator1" runat="server" ControlToValidate="txtTrueName" ErrorMessage="请输入姓名" ForeColor="#FF0000"></asp:RequiredFieldValidator></TD>
		</TR>
		
		<TR bgColor="#ffffff">
			<TD align="right"><%=myLanguagesDeal.GetMyString("MemberSex")%></TD>
			<TD class="pad">
				<asp:RadioButtonList id="rblSex" runat="server" Width="136px" EnableViewState="False" Height="8px" RepeatDirection="Horizontal">
					<asp:ListItem Value="0" Selected="True">男</asp:ListItem>
					<asp:ListItem Value="1">女</asp:ListItem>
				</asp:RadioButtonList></TD>
		</TR>
		<TR bgColor="#ffffff">
			<TD align="right"><%=myLanguagesDeal.GetMyString("MemberAddress")%></TD>
			<TD class="pad">
				<asp:textbox id="txtAddress" runat="server" CssClass="wenbenkuang" Width="260px" MaxLength="100"></asp:textbox>
				<asp:RequiredFieldValidator id="RequiredFieldValidator2" runat="server" ControlToValidate="txtAddress" ErrorMessage="请输入地址" ForeColor="#FF0000"></asp:RequiredFieldValidator></TD>
		</TR>
		<TR bgColor="#ffffff">
			<TD align="right"><%=myLanguagesDeal.GetMyString("MemberPostCode")%></TD>
			<TD class="pad" width="70%">
				<asp:textbox id="txtPostCode" runat="server" CssClass="wenbenkuang" Width="150px" MaxLength="25"></asp:textbox>
				<asp:RequiredFieldValidator id="RequiredFieldValidator3" runat="server" ControlToValidate="txtPostCode" ErrorMessage="请输入邮编" ForeColor="#FF0000"></asp:RequiredFieldValidator></TD>
		</TR>
		<TR bgColor="#ffffff">
			<TD align="right"><%=myLanguagesDeal.GetMyString("MemberTel")%></TD>
			<TD class="pad">
				<asp:textbox id="txtTel" runat="server" CssClass="wenbenkuang" Width="150px" MaxLength="25"></asp:textbox>
				<asp:RequiredFieldValidator id="RequiredFieldValidator4" runat="server" ControlToValidate="txtTel" ErrorMessage="请输入电话" ForeColor="#FF0000"></asp:RequiredFieldValidator></TD>
		</TR>
		<TR bgColor="#ffffff">
			<TD align="right"><%=myLanguagesDeal.GetMyString("MemberEmail")%></TD>
			<TD class="pad" width="70%">
				<asp:textbox id="txtEmail" runat="server" CssClass="wenbenkuang" Width="150px" MaxLength="30"></asp:textbox>
				<asp:RegularExpressionValidator id="RegularExpressionValidator1" runat="server" ControlToValidate="txtEmail" ErrorMessage="请输入正确Email"
					ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ForeColor="#FF0000"></asp:RegularExpressionValidator></TD>
		</TR>
		<TR bgColor="#ffffff">
			<TD align="right"><%=myLanguagesDeal.GetMyString("InceptDefault")%></TD>
			<TD class="pad">
				<asp:CheckBox id="ckIsDefault" runat="server"></asp:CheckBox></TD>
		</TR>
		<TR bgColor="#ffffff">
			<TD align="right" width="20%"></TD>
			<TD class="pad">&nbsp;
				<asp:Button id="btSubmit" runat="server" CssClass="go-wenbenkuang" Text="提交信息" onclick="btSubmit_Click"></asp:Button>
				<asp:button id="btSave" runat="server" CssClass="go-wenbenkuang" Text="更新信息" onclick="btSave_Click"></asp:button></TD>
		</TR>
	</TABLE>
	<P align="center">
		<asp:Label id="lbInfo" runat="server" ForeColor="Red"></asp:Label></P>
</asp:panel>
