<%@ Page language="c#" Codebehind="RecommenderGradeManage.aspx.cs" AutoEventWireup="True" Inherits="DreamerShop.Admin.RecommenderGradeManage" %>
<%@ Register TagPrefix="uc1" TagName="LanguagesDeal" Src="LanguagesDeal.ascx" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>
			<%=myLanguagesDeal.GetMyString("RecommenderTextUserGrade")%>
			－<%=mConfigInf.strWebTitle%>
		</title>
		<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="C#" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<META content="<%=mConfigInf.strDescription%>" name=description>
		<META content="<%=mConfigInf.strKeywords%>" name=keywords>
		<LINK href="../StyleSheet1.css" rel="stylesheet">
		<SCRIPT language="javascript" id="clientEventHandlersJS">
		<!--

		
		function imgHelp_onclick() {
			popUpWin("DSHelp/UserGradeManage.html","Help",100,100,800,600);
			}
		
		function popUpWin(URLStr,WinName, left, top, width, height)
		{
			var popUpWin=0;
			if(popUpWin)

			{

			if(!popUpWin.closed) popUpWin.close();

			}

			popUpWin = open(URLStr, WinName, 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
		}
		//-->
		</SCRIPT>
	</HEAD>
	<body MS_POSITIONING="GridLayout">
		<form id="Form1" method="post" runat="server">
			<asp:Label id="lbEditID" runat="server" Visible="False"></asp:Label>
			<uc1:LanguagesDeal id="myLanguagesDeal" runat="server" Visible="False"></uc1:LanguagesDeal>
			<table width="97%" border="0" cellspacing="0" cellpadding="0" align="center">
				<tr>
					<td height="262" valign="top">
						<table width="100%" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td bgcolor="#ffffff" valign="top" height="300">
									<FONT face="宋体">
										<asp:panel id="Pan1" runat="server">
											<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
												<TR>
													<TD class="p12black"><SPAN class="p9orange"><IMG height="11" src="IMAGES/icon_1.gif" width="12" align="absMiddle">&nbsp;<%=myLanguagesDeal.GetMyString("TextRecommenderManage")%>--&gt;<%=myLanguagesDeal.GetMyString("RecommenderTextUserGrade")%>&nbsp;<IMG 
                  language=javascript id=imgHelp style="CURSOR: pointer" 
                  onclick="return imgHelp_onclick()" 
                  alt='<%=myLanguagesDeal.GetMyString("TextHelp")%>' 
                  src="../Images/Admin/helpicon.gif"> </SPAN>
													</TD>
													<TD>
														<asp:ImageButton id="btAddNew" runat="server" ImageUrl="../Images/Admin/fb-new.gif" onclick="btAddNew_Click"></asp:ImageButton><%=myLanguagesDeal.GetMyString("RecommenderGradeTextAddNew")%></TD>
												</TR>
											</TABLE>
											<HR noShade SIZE="1">
											<asp:datagrid id="dgList" runat="server" CssClass="table-shangxia" PageSize="20" AllowPaging="false"
												AutoGenerateColumns="False" Width="100%" DataKeyField="GradeID">
												<HeaderStyle HorizontalAlign="Center" BackColor="#F1F1F1"></HeaderStyle>
												<Columns>
													<asp:BoundColumn DataField="GradeName" HeaderText="RecommenderGradeTextGradeName">
														<HeaderStyle></HeaderStyle>
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
													</asp:BoundColumn>
													<asp:BoundColumn DataField="ReturnType" HeaderText="RecommenderGradeTextReturnType">
														<HeaderStyle></HeaderStyle>
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
													</asp:BoundColumn>
													<asp:BoundColumn DataField="ReducingUserType" HeaderText="RecommenderGradeTextReducingUserType">
														<HeaderStyle></HeaderStyle>
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
													</asp:BoundColumn>
													<asp:BoundColumn DataField="IsRecommender" HeaderText="RecommenderTextSwitch">
														<HeaderStyle></HeaderStyle>
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
													</asp:BoundColumn>
													<asp:BoundColumn DataField="IsDefault" HeaderText="TextDefaultStr">
														<HeaderStyle></HeaderStyle>
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
													</asp:BoundColumn>
													<asp:TemplateColumn HeaderText="TextOperation">
														<HeaderStyle></HeaderStyle>
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
														<ItemTemplate>
															<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>
														</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" BorderStyle="Groove" Text=" 首 页" onclick="btFirst_Click"></asp:button>&nbsp;
														<asp:button id="btPre" runat="server" CssClass="go-wenbenkuang" BorderStyle="Groove" Text="上一页" onclick="btPre_Click"></asp:button>&nbsp;
														<asp:button id="btNext" runat="server" CssClass="go-wenbenkuang" BorderStyle="Groove" Text="下一页" onclick="btNext_Click"></asp:button>&nbsp;
														<asp:button id="btLast" runat="server" CssClass="go-wenbenkuang" BorderStyle="Groove" Text=" 尾 页" onclick="btLast_Click"></asp:button>&nbsp;
														<asp:label id="lbPage" runat="server"></asp:label>&nbsp;
														<%=myLanguagesDeal.GetMyString("TextGotoPage")%>
														<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="输入数字" ForeColor="#FF0000"></asp:CompareValidator><%=myLanguagesDeal.GetMyString("TextPages")%>
														<asp:button id="btGo" runat="server" CssClass="go-wenbenkuang" Text="Go" onclick="btGo_Click"></asp:button></TD>
												</TR>
											</TABLE>
										</asp:panel></FONT>
									<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"><SPAN class="p9orange"><IMG height="11" src="IMAGES/icon_1.gif" width="12" align="absMiddle">&nbsp;<%=myLanguagesDeal.GetMyString("TextRecommenderManage")%>--&gt;
																	<asp:Label id="lbMessage" runat="server"></asp:Label>&nbsp;<IMG 
                        language=javascript id=imgHelp style="CURSOR: pointer" 
                        onclick="return imgHelp_onclick()" 
                        alt='<%=myLanguagesDeal.GetMyString("TextHelp")%>' 
                        src="../Images/Admin/helpicon.gif"> </SPAN>
															</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("RecommenderGradeTextGradeName")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--等级名称：--></TD>
												<TD class="pad" width="70%"></FONT>
													<asp:textbox id="txtGradeName" runat="server" CssClass="wenbenkuang" Width="120px" MaxLength="30"></asp:textbox>
													<asp:RequiredFieldValidator id="rfvGradeName" runat="server" ControlToValidate="txtGradeName" Display="Dynamic"
														ErrorMessage="请输入等级名称" ForeColor="#FF0000"></asp:requiredfieldvalidator></TD>
											</TR>
											<TR bgColor="#ffffff">
												<TD align="right"><%=myLanguagesDeal.GetMyString("RecommenderGradeTextReturnType")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--返利方式：--></TD>
												<TD class="pad" width="70%"></FONT>
													<asp:RadioButtonList id="rblReturnType" runat="server" Width="128px" AutoPostBack="True" RepeatDirection="Horizontal" onselectedindexchanged="rblReturnType_SelectedIndexChanged">
														<asp:ListItem Value="0" Selected="True">按比例</asp:ListItem>
														<asp:ListItem Value="1">按现金</asp:ListItem>
													</asp:RadioButtonList></TD>
											</TR>
										</TABLE>
										<asp:panel id="PanReturnType0" runat="server" Visible="False">
											<TABLE cellSpacing="1" cellPadding="5" width="650" align="center" bgColor="#cccccc" border="0">
												<TR bgColor="#ffffff">
													<TD align="right"><%=myLanguagesDeal.GetMyString("RecommenderGradeTextReturnType0")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--：--></TD>
													<TD class="pad" width="70%">
														<asp:textbox id="txtReturnRatio" runat="server" CssClass="wenbenkuang" Width="60px" MaxLength="8"></asp:textbox>%
														<asp:CompareValidator id="cpvReturnRatio" runat="server" Operator="DataTypeCheck" Type="Double" ControlToValidate="txtReturnRatio"
															Display="Dynamic" ErrorMessage="请输入比例" ForeColor="#FF0000"></asp:CompareValidator>
														<asp:RequiredFieldValidator id="rfvReturnRatio" runat="server" ControlToValidate="txtReturnRatio" Display="Dynamic"
															ErrorMessage="请输入比例" ForeColor="#FF0000"></asp:requiredfieldvalidator></TD>
												</TR>
											</TABLE>
										</asp:panel>
										<asp:panel id="PanReturnType1" runat="server" Visible="False">
											<TABLE cellSpacing="1" cellPadding="5" width="650" align="center" bgColor="#cccccc" border="0">
												<TR bgColor="#ffffff">
													<TD align="right"><%=myLanguagesDeal.GetMyString("RecommenderGradeTextReturnType1")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--：--></TD>
													<TD class="pad" width="70%">
														<asp:textbox id="txtReturnMoney" runat="server" CssClass="wenbenkuang" Width="60px" MaxLength="8"></asp:textbox>
														<asp:CompareValidator id="cpvReturnMoney" runat="server" Operator="DataTypeCheck" Type="Double" ControlToValidate="txtReturnMoney"
															Display="Dynamic" ErrorMessage="请输入金额" ForeColor="#FF0000"></asp:CompareValidator>
														<asp:RequiredFieldValidator id="rfvReturnMoney" runat="server" ControlToValidate="txtReturnMoney" Display="Dynamic"
															ErrorMessage="请输入金额" ForeColor="#FF0000"></asp:requiredfieldvalidator></TD>
												</TR>
											</TABLE>
										</asp:panel>
										<TABLE cellSpacing="1" cellPadding="5" width="650" align="center" bgColor="#cccccc" border="0">
											<TR bgColor="#ffffff">
												<TD align="right"><%=myLanguagesDeal.GetMyString("RecommenderGradeTextReducingUserType")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--返利方式：--></TD>
												<TD class="pad" width="70%"></FONT>
													<asp:RadioButtonList id="rblUserType" runat="server" Width="128px" AutoPostBack="True" RepeatDirection="Horizontal" onselectedindexchanged="rblUserType_SelectedIndexChanged">
														<asp:ListItem Value="0" Selected="True">按比例</asp:ListItem>
														<asp:ListItem Value="1">按现金</asp:ListItem>
													</asp:RadioButtonList></TD>
											</TR>
										</TABLE>
										<asp:panel id="PanUserType0" runat="server" Visible="False">
											<TABLE cellSpacing="1" cellPadding="5" width="650" align="center" bgColor="#cccccc" border="0">
												<TR bgColor="#ffffff">
													<TD align="right"><%=myLanguagesDeal.GetMyString("RecommenderGradeTextReducingUserType0")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--：--></TD>
													<TD class="pad" width="70%">
														<asp:textbox id="txtUserRatio" runat="server" CssClass="wenbenkuang" Width="60px" MaxLength="8"></asp:textbox>%
														<asp:CompareValidator id="cpvUserRatio" runat="server" Operator="DataTypeCheck" Type="Double" ControlToValidate="txtUserRatio"
															Display="Dynamic" ErrorMessage="请输入比例" ForeColor="#FF0000"></asp:CompareValidator>
														<asp:RequiredFieldValidator id="rfvUserRatio" runat="server" ControlToValidate="txtUserRatio" Display="Dynamic"
															ErrorMessage="请输入比例" ForeColor="#FF0000"></asp:requiredfieldvalidator></TD>
												</TR>
											</TABLE>
										</asp:panel>
										<asp:panel id="PanUserType1" runat="server" Visible="False">
											<TABLE cellSpacing="1" cellPadding="5" width="650" align="center" bgColor="#cccccc" border="0">
												<TR bgColor="#ffffff">
													<TD align="right"><%=myLanguagesDeal.GetMyString("RecommenderGradeTextReducingUserType1")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--：--></TD>
													<TD class="pad" width="70%">
														<asp:textbox id="txtUserMoney" runat="server" CssClass="wenbenkuang" Width="60px" MaxLength="8"></asp:textbox>
														<asp:CompareValidator id="cpvReturnType" runat="server" Operator="DataTypeCheck" Type="Double" ControlToValidate="txtUserMoney"
															Display="Dynamic" ErrorMessage="请输入金额" ForeColor="#FF0000"></asp:CompareValidator>
														<asp:RequiredFieldValidator id="rfvReturnType" runat="server" ControlToValidate="txtUserMoney" Display="Dynamic"
															ErrorMessage="请输入金额" ForeColor="#FF0000"></asp:requiredfieldvalidator></TD>
												</TR>
											</TABLE>
										</asp:panel>
										<TABLE cellSpacing="1" cellPadding="5" width="650" align="center" bgColor="#cccccc" border="0">
											<TR bgColor="#ffffff">
												<TD align="right"><%=myLanguagesDeal.GetMyString("TextDefaultStr")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--默认等级：--></TD>
												<TD class="pad" width="70%"></FONT>
													<asp:CheckBox id="ckDefault" runat="server" Text="是"></asp:CheckBox></TD>
											</TR>
											<TR bgColor="#ffffff">
												<TD align="right"><%=myLanguagesDeal.GetMyString("RecommenderTextSwitch")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--会员价可见：--></TD>
												<TD class="pad" width="70%"></FONT>
													<asp:CheckBox id="ckIsSwitch" runat="server" Text="是"></asp:CheckBox></TD>
											</TR>
											<TR bgColor="#ffffff">
												<TD align="right"></TD>
												<TD class="pad">&nbsp;
													<asp:button id="btSubmit" runat="server" CssClass="go-wenbenkuang" Text="提交信息" onclick="btSubmit_Click"></asp:button>&nbsp;&nbsp;
													<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></td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
		</form>
	</body>
</HTML>
