<%@ Register TagPrefix="uc1" TagName="LanguagesDeal" Src="LanguagesDeal.ascx" %>
<%@ Page language="c#" Codebehind="ColumnManage.aspx.cs" validateRequest="false" AutoEventWireup="True" Inherits="DreamerShop.Admin.ColumnManage" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>
			<%=myLanguagesDeal.GetMyString("TextColumnManage")%>
			-
			<%=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 sellogo() {
			var arr = new Array()
			imgArr=self.showModalDialog("ftb.imagegallery2.aspx?rif=<%=mChildFolder%>Images/BnrPic&cif=<%=mChildFolder%>Images/BnrPic",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("Images/BnrPic");
				len1=temp.length;
				filename=temp.substring(len + 14,len1);
				Form1.txtImgTitle.value="Images/BnrPic/" + filename;
			}
		}
		
		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;
			
		}
		
		function imgHelp_onclick() {
			popUpWin("DSHelp/HelpManage.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>
		 <link rel="stylesheet" href="../editor/themes/default/default.css" />
	    <link rel="stylesheet" href="../editor/plugins/code/prettify.css" />
	    <script charset="utf-8" src="../editor/kindeditor.js"></script>
	    <script charset="utf-8" src="../editor/lang/zh_CN.js"></script>
	    <script charset="utf-8" src="../editor/plugins/code/prettify.js"></script>
	    <script>
	        KindEditor.ready(function (K) {
	            var editor1 = K.create('#txtContent', {
	                cssPath: '../editor/plugins/code/prettify.css',
	                uploadJson: '../editor/netfile/upload_json.ashx',
	                fileManagerJson: '../editor/netfile/file_manager_json.ashx',
	                allowFileManager: true,
	                afterCreate: function () {
	                    var self = this;
	                    K.ctrl(document, 13, function () {
	                        self.sync();
	                        K('form[name=example]')[0].submit();
	                    });
	                    K.ctrl(self.edit.doc, 13, function () {
	                        self.sync();
	                        K('form[name=example]')[0].submit();
	                    });
	                }
	            });
	            prettyPrint();
	        });
	    </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("TextSystemSetting")%>--&gt;<%=myLanguagesDeal.GetMyString("TextColumnManage")%></SPAN>
														<IMG language="javascript" id="imgHelp" style="CURSOR: pointer" onClick="return imgHelp_onclick()"
															src="../Images/Admin/helpicon.gif"></TD>
													<TD width="200"></TD>
													<TD width="100">
														<asp:ImageButton id="btAddNew" runat="server" ImageUrl="../Images/Admin/fb-new.gif" onclick="btAddNew_Click"></asp:ImageButton><%=myLanguagesDeal.GetMyString("ColumnManageTextAddNew")%><!--新增--></TD>
												</TR>
											</TABLE>
											<HR noShade SIZE="1">
											<asp:datagrid id="dgList" runat="server" DataKeyField="ColumnID" Width="100%" AutoGenerateColumns="False"
												AllowPaging="false" PageSize="20" CssClass="table-shangxia">
												<HeaderStyle HorizontalAlign="Center" BackColor="#F1F1F1"></HeaderStyle>
												<Columns>
													<asp:BoundColumn DataField="Title" HeaderText="ColumnManageTextTitle">
														<HeaderStyle></HeaderStyle>
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
													</asp:BoundColumn>
													<asp:TemplateColumn HeaderText="TextIsShow">
														<HeaderStyle></HeaderStyle>
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
														<ItemTemplate>
															<asp:CheckBox id="ckShow" runat="server" Checked= '<%# DataBinder.Eval(Container.DataItem, "IsShow")%>'>
															</asp:CheckBox>
														</ItemTemplate>
													</asp:TemplateColumn>
													<asp:TemplateColumn HeaderText="TextTaxisNumber">
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
														<ItemTemplate>
															<asp:TextBox ID="txtNOrder" CssClass="wenbenkuang" Width="30" EnableViewState=True Text='<%# DataBinder.Eval(Container.DataItem, "ColumnOrder")%>' AutoPostBack=False runat="server" >
															</asp:TextBox>
															<asp:CompareValidator id="CompareValidator1" runat="server" ErrorMessage="输入数字" ControlToValidate="txtNOrder"
																Operator="DataTypeCheck" Type="Integer" Display="Dynamic" ForeColor="#FF0000"></asp:CompareValidator>
														</ItemTemplate>
													</asp:TemplateColumn>
													<asp:TemplateColumn HeaderText="TextOperation">
														<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>
										</asp:panel></FONT>
									<asp:panel id="Pan2" runat="server" Visible="False">
										<TABLE class="p9black" cellSpacing="0" cellPadding="0" width="100%" border="0">
											<TR>
												<TD>
													<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("TextColumnManage")%>--&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 width="200"></TD>
															<TD width="200">
																<asp:DropDownList id="drlSelectInput" runat="server" EnableViewState="True" AutoPostBack="True" onselectedindexchanged="drlSelectInput_SelectedIndexChanged">
																	<asp:ListItem Value="sel">请选择输入语言</asp:ListItem>
																</asp:DropDownList></TD>
															<TD align="left" width="60"><!--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" width="107"><%=myLanguagesDeal.GetMyString("ColumnManageTextPageType")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--支付类型：--></TD>
												<TD class="pad"></FONT>
													<asp:DropDownList id="drlPageType" runat="server" EnableViewState="True" AutoPostBack="True" onselectedindexchanged="drlPageType_SelectedIndexChanged">
														<asp:ListItem Value="0">自定义</asp:ListItem>
														<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:ListItem Value="5">价格中心</asp:ListItem>
														<asp:ListItem Value="6">文章信息</asp:ListItem>
														<asp:ListItem Value="7">商品分类</asp:ListItem>
														<asp:ListItem Value="8">品牌列表</asp:ListItem>
														<asp:ListItem Value="9">帮助中心</asp:ListItem>
														<asp:ListItem Value="10">会员中心</asp:ListItem>
														<asp:ListItem Value="11">顾客留言</asp:ListItem>
														<asp:ListItem Value="12">购物车</asp:ListItem>
														<asp:ListItem Value="13">友情链接</asp:ListItem>
														<asp:ListItem Value="14">链接申请</asp:ListItem>
														<asp:ListItem Value="15">留言列表</asp:ListItem>
														<asp:ListItem Value="16">会员登陆</asp:ListItem>
														<asp:ListItem Value="17">会员注册</asp:ListItem>
														<asp:ListItem Value="18">图片文章</asp:ListItem>
														<asp:ListItem Value="19">秒杀商品</asp:ListItem>
														<asp:ListItem Value="20">标签商品</asp:ListItem>
														<asp:ListItem Value="21">团购商品</asp:ListItem>
													</asp:DropDownList></TD>
											<TR bgColor="#ffffff">
												<TD align="right"><%=myLanguagesDeal.GetMyString("ColumnManageTextTitle")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--标题：--></TD>
												<TD class="pad">
													<asp:textbox id="txtTitle" runat="server" Width="240px" CssClass="wenbenkuang" MaxLength="25"></asp:textbox>
													<asp:requiredfieldvalidator id="rfvTitle" runat="server" ErrorMessage="请输入标题" Display="Dynamic" ControlToValidate="txtTitle" ForeColor="#FF0000"></asp:requiredfieldvalidator></FONT></TD>
											</TR>
											<TR bgColor="#ffffff">
												<TD align="right"><%=myLanguagesDeal.GetMyString("ColumnManageTextTitleColor")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--标题：--></TD>
												<TD class="pad">
													<TABLE cellSpacing="0" cellPadding="0" border="0">
														<TR>
															<TD>
																<asp:textbox id="txtTitleColor" runat="server" Width="80px" CssClass="wenbenkuang" MaxLength="10"></asp:textbox></TD>
															<TD><IMG style="CURSOR: pointer" onClick="return selcolor()" src="Images/selcolorpicker.gif"></TD>
														</TR>
													</TABLE>
												</TD>
											</TR>
											<TR bgColor="#ffffff">
												<TD align="right"><%=myLanguagesDeal.GetMyString("TextFontBold")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--是否显示：--></TD>
												<TD class="pad">
													<asp:checkbox id="ckIsBold" runat="server" Checked="false" Text="是"></asp:checkbox></TD>
											</TR>
											<TR bgColor="#ffffff">
												<TD align="right"><%=myLanguagesDeal.GetMyString("ColumnManageTextImgTitle")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--图片链接图片地址：--></TD>
												<TD class="pad">
													<asp:textbox id="txtImgTitle" runat="server" Width="240px" CssClass="wenbenkuang" MaxLength="100"></asp:textbox><INPUT language="javascript" class="go-wenbenkuang" onClick="return sellogo()" type="button"
														value="..." name="sellogo1"><%=myLanguagesDeal.GetMyString("LinksExplainMsg1")%></FONT></TD>
											</TR>
											<TR bgColor="#ffffff">
												<TD align="right"><%=myLanguagesDeal.GetMyString("TextIsShow")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--是否显示：--></TD>
												<TD class="pad">
													<asp:checkbox id="ckSelShow" runat="server" Checked="True" Text="显示"></asp:checkbox></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="cpvOrder" 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("ColumnManageTextTargetMode")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!----></TD>
												<TD class="pad"></FONT>
													<asp:RadioButtonList id="rblTargetMode" runat="server" RepeatDirection="Horizontal">
														<asp:ListItem Value="0" Selected="True">本窗口</asp:ListItem>
														<asp:ListItem Value="1">新窗口</asp:ListItem>
													</asp:RadioButtonList></TD>
											</TR>
										</TABLE>
										<asp:panel id="Pan3" runat="server">
											<TABLE cellSpacing="1" cellPadding="5" width="650" align="center" bgColor="#cccccc" border="0">
												<TR bgColor="#ffffff">
													<TD align="right" width="105"><%=myLanguagesDeal.GetMyString("ColumnManageTextLinkUrl")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--链接地址：--></TD>
													<TD class="pad">
														<asp:textbox id="txtLinkUrl" runat="server" Width="240px" CssClass="wenbenkuang" MaxLength="100"></asp:textbox><%=myLanguagesDeal.GetMyString("ColumnManageTextLinkUrlMsg")%></FONT></TD>
												</TR>
												<TR bgColor="#ffffff">
													<TD align="right"><%=myLanguagesDeal.GetMyString("TextContent")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--内容：--></TD>
													<TD class="pad">
														<textarea id="txtContent" cols="100" rows="8" style="width:500px;height:200px;visibility:hidden;" runat="server" ></textarea></TD>
												</TR>
												<TR bgColor="#ffffff">
													<TD align="right"><%=myLanguagesDeal.GetMyString("TextWebTitle")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--Title：--></TD>
													<TD class="pad">
														<asp:textbox id="txtWebTitle" runat="server" Width="400px" CssClass="wenbenkuang" MaxLength="100"></asp:textbox></FONT></TD>
												</TR>
												<TR bgColor="#ffffff">
													<TD align="right">META_DESCRIPTION<%=myLanguagesDeal.GetMyString("TextColonCharacter")%><BR>
														(<%=myLanguagesDeal.GetMyString("TextDescription")%>)</TD>
													<TD class="pad">
														<asp:textbox id="txtDescription" runat="server" Width="400px" CssClass="wenbenkuang" EnableViewState="False"
															TextMode="MultiLine"></asp:textbox></TD>
												</TR>
												<TR bgColor="#ffffff">
													<TD align="right">META_KEYWORDS<%=myLanguagesDeal.GetMyString("TextColonCharacter")%><BR>
														(<%=myLanguagesDeal.GetMyString("TextKeyWords")%>)</TD>
													<TD class="pad">
														<asp:textbox id="txtKeywords" runat="server" Width="400px" CssClass="wenbenkuang" EnableViewState="False"
															TextMode="MultiLine"></asp:textbox></TD>
												</TR>
											</TABLE>
										</asp:panel>
										<TABLE cellSpacing="1" cellPadding="5" width="650" align="center" bgColor="#cccccc" border="0">
											<TR bgColor="#ffffff">
												<TD align="right" width="107"></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>&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>
