<%@ Register TagPrefix="uc1" TagName="popUpCalendar" Src="popUpCalendar.ascx" %>
<%@ Register TagPrefix="ftb" Namespace="FreeTextBoxControls" Assembly="FreeTextBox" %>
<%@ Register TagPrefix="uc1" TagName="LanguagesDeal" Src="LanguagesDeal.ascx" %>
<%@ Page language="c#" Codebehind="SalesPromotionManage.aspx.cs" AutoEventWireup="True" Inherits="DreamerShop.Admin.SalesPromotionManage" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>
			<%=myLanguagesDeal.GetMyString("TextShopWindow")%>
			-
			<%=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 selsmallpic() {
			var arr = new Array()
			imgArr=self.showModalDialog("ftb.imagegallery1.aspx?rif=BookPic&cif=BookPic",window,'dialogWidth:560px; dialogHeight:500px;help:0;status:0;resizeable:1;')
			var temp;
			var len;
			var len1;
			var filename;
			if(imgArr!=null)
			{
				temp=imgArr['filename'];
				
				len=temp.lastIndexOf("BookPic");
				len1=temp.length;
				filename=temp.substring(len + 8,len1);
				Form1.txtSmallPic.value="BookPic/" + filename;
			}
		}
		
		function selbigpic() {
			var arr = new Array()
			imgArr=self.showModalDialog("ftb.imagegallery1.aspx?rif=BookPic&cif=BookPic",window,'dialogWidth:560px; dialogHeight:500px;help:0;status:0;resizeable:1;')
			var temp;
			var len;
			var len1;
			var filename;
			if(imgArr!=null)
			{
				temp=imgArr['filename'];
				len=temp.lastIndexOf("BookPic");
				len1=temp.length;
				filename=temp.substring(len + 8,len1);
				Form1.txtPicUrl.value="BookPic/" + filename;
			}
		}
		
		function imgHelp_onclick() {
			popUpWin("DSHelp/NewsManage.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+'');
		}
		
		function selcolor() {
			var color;
			
			color = showModalDialog('ftb.colorpicker.aspx',window,'dialogWidth:210px;dialogHeight:170px;status:0;scroll:0;help:0;');
			if(color!=null)
			Form1.txtTitleColor.value=color;
			
		}
		//-->
		</SCRIPT>
	</HEAD>
	<body MS_POSITIONING="GridLayout">
		<form id="Form1" method="post" runat="server">
			<uc1:popupcalendar id="myCalendar" runat="server"></uc1:popupcalendar>
			<asp:Label id="lbEditID" runat="server" Visible="False"></asp:Label>
			<uc1:languagesdeal id="myLanguagesDeal" runat="server" Visible="False"></uc1:languagesdeal>
			<table cellSpacing="0" cellPadding="0" width="97%" align="center" border="0">
				<tr>
					<td vAlign="top" height="262">
						<table cellSpacing="0" cellPadding="0" width="100%" border="0">
							<tr>
								<td vAlign="top" bgColor="#ffffff" height="300"><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("TextProductManage")%>--&gt;<%=myLanguagesDeal.GetMyString("TextSubjectProduct")%></SPAN>
													<IMG language="javascript" id="imgHelp" style="CURSOR: pointer" onclick="return imgHelp_onclick()"
														src="../Images/Admin/helpicon.gif"></TD>
												<TD>
													<asp:ImageButton id="btAddNew" runat="server" ImageUrl="../Images/Admin/fb-new.gif"></asp:ImageButton><%=myLanguagesDeal.GetMyString("SubjectProductTextAddNew")%></TD>
											</TR>
										</TABLE>
										<HR noShade SIZE="1">
										<asp:datagrid id="dgList" runat="server" DataKeyField="SubjectID" Width="100%" AutoGenerateColumns="False"
											AllowPaging="true" PageSize="10" CssClass="table-shangxia">
											<HeaderStyle HorizontalAlign="Center" BackColor="#F1F1F1"></HeaderStyle>
											<Columns>
												<asp:BoundColumn DataField="SPTitle" HeaderText="标题">
													<HeaderStyle></HeaderStyle>
													<ItemStyle HorizontalAlign="Center"></ItemStyle>
												</asp:BoundColumn>
												<asp:BoundColumn DataField="SPType" HeaderText="类型">
													<HeaderStyle></HeaderStyle>
													<ItemStyle HorizontalAlign="Center"></ItemStyle>
												</asp:BoundColumn>
												<asp:BoundColumn DataField="StartTime" HeaderText="启用时间">
													<HeaderStyle></HeaderStyle>
													<ItemStyle HorizontalAlign="Center"></ItemStyle>
												</asp:BoundColumn>
												<asp:BoundColumn DataField="EndTime" HeaderText="截止时间">
													<HeaderStyle></HeaderStyle>
													<ItemStyle HorizontalAlign="Center"></ItemStyle>
												</asp:BoundColumn>
												<asp:TemplateColumn HeaderText="操作">
													<HeaderStyle></HeaderStyle>
													<ItemStyle HorizontalAlign="Center"></ItemStyle>
													<ItemTemplate>
														<asp:Button id="btUpdate" Text="更新" CssClass="go-wenbenkuang" CommandName="Update" Runat="server"></asp:Button>
														<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" Text=" 首 页" BorderStyle="Groove"></asp:button>&nbsp;
													<asp:button id="btPre" runat="server" CssClass="go-wenbenkuang" Text="上一页" BorderStyle="Groove"></asp:button>&nbsp;
													<asp:button id="btNext" runat="server" CssClass="go-wenbenkuang" Text="下一页" BorderStyle="Groove"></asp:button>&nbsp;
													<asp:button id="btLast" runat="server" CssClass="go-wenbenkuang" Text=" 尾 页" BorderStyle="Groove"></asp:button>&nbsp;
													<asp:label id="lbPage" runat="server"></asp:label>&nbsp;
													<%=myLanguagesDeal.GetMyString("TextGotoPage")%>
													<asp:textbox id="txtPageNum" runat="server" Width="30px" CssClass="wenbenkuang" MaxLength="3"></asp:textbox>
													<asp:CompareValidator id="CompareValidator2" runat="server" ErrorMessage="输入数字" Display="Dynamic" ControlToValidate="txtPageNum"
														Type="Integer" Operator="DataTypeCheck" ForeColor="#FF0000"></asp:CompareValidator><%=myLanguagesDeal.GetMyString("TextPages")%>
													<asp:button id="btGo" runat="server" CssClass="go-wenbenkuang" Text="Go"></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"><SPAN class="p9orange"><IMG height="11" src="IMAGES/icon_1.gif" width="12" align="absMiddle">&nbsp;<%=myLanguagesDeal.GetMyString("TextSubjectProduct")%>--&gt;
																	<asp:Label id="lbMessage" runat="server"></asp:Label></SPAN><IMG language="javascript" id="imgHelp" style="CURSOR: pointer" onclick="return imgHelp_onclick()"
																	src="../Images/Admin/helpicon.gif"></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"></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("SubjectProductTextTilte")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--标题：--></TD>
												<TD class="pad" width="70%">
													<asp:textbox id="txtTitle" runat="server" Width="200px" CssClass="wenbenkuang" MaxLength="100"></asp:textbox>
													<asp:requiredfieldvalidator id="rfvtitle" runat="server" ErrorMessage="请输入标题" Display="Dynamic" ControlToValidate="txtTitle" ForeColor="#FF0000"></asp:requiredfieldvalidator></TD>
											</TR>
											<TR bgColor="#ffffff">
												<TD align="right"><%=myLanguagesDeal.GetMyString("AdTextadSite")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--广告位置：--></TD>
												<TD class="pad">
													<asp:DropDownList id="drlSPType" runat="server">
														<asp:ListItem Value="1">免邮费</asp:ListItem>
														<asp:ListItem Value="2">购物折扣</asp:ListItem>
														<asp:ListItem Value="3">消费减免</asp:ListItem>
														<asp:ListItem Value="4">存款返还</asp:ListItem>
													</asp:DropDownList></TD>
											</TR>
											<TR bgColor="#ffffff">
												<TD align="right"><%=myLanguagesDeal.GetMyString("AdTextadSite")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--广告位置：--></TD>
												<TD class="pad">
													<asp:DropDownList id="drlUserGrade" runat="server">
														<asp:ListItem Value="1">免邮费</asp:ListItem>
														<asp:ListItem Value="2">购物折扣</asp:ListItem>
														<asp:ListItem Value="3">消费减免</asp:ListItem>
														<asp:ListItem Value="4">存款返还</asp:ListItem>
													</asp:DropDownList></TD>
											</TR>
											<TR bgColor="#ffffff">
												<TD align="right"><%=myLanguagesDeal.GetMyString("TextTaxisNumber")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--排序号：--></TD>
												<TD class="pad">
													<asp:textbox id="txtSPLimit" runat="server" Width="80px" CssClass="wenbenkuang" MaxLength="2"></asp:textbox>
													<asp:RequiredFieldValidator id="rfvLimit" runat="server" ErrorMessage="请输入最低消费" Display="Dynamic" ControlToValidate="txtSPLimit" ForeColor="#FF0000"></asp:requiredfieldvalidator>
													<asp:CompareValidator id="cpvLimit" runat="server" ErrorMessage="请输入金额" Display="Dynamic" ControlToValidate="txtSPLimit"
														Type="Double" Operator="DataTypeCheck" ForeColor="#FF0000"></asp:CompareValidator></TD>
											</TR>
											<TR bgColor="#ffffff">
												<TD align="right"><%=myLanguagesDeal.GetMyString("TextTaxisNumber")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--排序号：--></TD>
												<TD class="pad">
													<asp:textbox id="txtChange" runat="server" Width="80px" CssClass="wenbenkuang" MaxLength="2"></asp:textbox>
													<asp:RequiredFieldValidator id="Requiredfieldvalidator1" runat="server" ErrorMessage="请输入数字" Display="Dynamic"
														ControlToValidate="txtSPLimit" ForeColor="#FF0000"></asp:requiredfieldvalidator>
													<asp:CompareValidator id="Comparevalidator1" runat="server" ErrorMessage="请输入金额" Display="Dynamic" ControlToValidate="txtSPLimit"
														Type="Double" Operator="DataTypeCheck" ForeColor="#FF0000"></asp:CompareValidator></TD>
											</TR>
											<TR bgColor="#ffffff">
												<TD align="right"><%=myLanguagesDeal.GetMyString("SubjectProductTextStartTime")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--发布时间：--></TD>
												<TD class="pad">
													<asp:TextBox id="txtStartTime" runat="server" CssClass="wenbenkuang"></asp:TextBox>(<%=myLanguagesDeal.GetMyString("TextFormat")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%>yyyy-mm-dd 
													hh:mm:ss)
													<asp:RegularExpressionValidator id="revstarttime" runat="server" ErrorMessage="请输入指定格式时间" Display="Dynamic" ControlToValidate="txtStartTime"
														ValidationExpression="[0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}" ForeColor="#FF0000"></asp:RegularExpressionValidator></TD>
											</TR>
											<TR bgColor="#ffffff">
												<TD align="right"><%=myLanguagesDeal.GetMyString("SubjectProductTextEndTime")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--发布时间：--></TD>
												<TD class="pad">
													<asp:TextBox id="txtEndTime" runat="server" CssClass="wenbenkuang"></asp:TextBox>(<%=myLanguagesDeal.GetMyString("TextFormat")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%>yyyy-mm-dd 
													hh:mm:ss)
													<asp:RegularExpressionValidator id="revendtime" runat="server" ErrorMessage="请输入指定格式时间" Display="Dynamic" ControlToValidate="txtEndTime"
														ValidationExpression="[0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}" ForeColor="#FF0000"></asp:RegularExpressionValidator></TD>
											</TR>
											<TR bgColor="#ffffff">
												<TD align="right"><%=myLanguagesDeal.GetMyString("TextTaxisNumber")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--排序号：--></TD>
												<TD class="pad">
													<asp:textbox id="txtOrder" runat="server" Width="50px" CssClass="wenbenkuang" MaxLength="2"></asp:textbox>
													<asp:RequiredFieldValidator id="rfvOrder" runat="server" ErrorMessage="请输入排序号" Display="Dynamic" ControlToValidate="txtOrder" ForeColor="#FF0000"></asp:requiredfieldvalidator>
													<asp:CompareValidator id="cvdOrder" runat="server" ErrorMessage="请输入整数" Display="Dynamic" ControlToValidate="txtOrder"
														Type="Integer" Operator="DataTypeCheck" ForeColor="#FF0000"></asp:CompareValidator></TD>
											</TR>
											<TR bgColor="#ffffff">
												<TD align="right"><%=myLanguagesDeal.GetMyString("TextExplain")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--说明：--></TD>
												<TD class="pad">
													<FTB:FreeTextBox id="ftbContent" runat="server" ImageGalleryPath="BookPic" ToolbarType="OfficeXP"
														width="540px" Height="200px"></FTB:FreeTextBox></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="提交信息"></asp:button>
													<asp:button id="btSave" runat="server" CssClass="go-wenbenkuang" Text="更新信息"></asp:button>&nbsp;&nbsp;
												</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>
