<%@ Page language="c#" Codebehind="ProductField.aspx.cs" AutoEventWireup="false" Inherits="wqeshop.Admin.ProductField" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>ProductField</title>
		<LINK href="inc/style.css" type="text/css" rel="stylesheet"></LINK>
<style type="text/css">
body {margin:0px; height:768px}
</style>
		<script language="javascript">
			function advsearch()
			{
				if(document.Form1.cbAddToAdvSearch.checked)
				{
					eval("AdvSearch" + ".style.display=\"\";");
				}
				else
				{
					eval("AdvSearch" + ".style.display=\"none\";");
				}
			}
		</script>
	</HEAD>
	<body>
	<form id="Form1" method="post" runat="server">
			<% if(this.Request.QueryString["Action"] == "Manage"){%>
<table width="100%" height="550" style="border:1px #619ADF solid; border-left:0;margin-top:6px; margin-right:7px;background:#F2F7FD;" cellspacing="0" cellpadding="0">
  <tr>
    <td valign="top">
<div class="top">
<table width="100%" align="center" cellspacing="0" cellpadding="0">
	<tr>
		<td class="tl"></td>
		<td class="tm"><span class="tt">商品管理 &gt;&gt; 扩展商品属性管理</span></td>
		<td class="tm2"><span class="tt"><a href="http://www.wangqi.com" target="_blank"><img src="Images/admin_help.gif" border="0" alt="帮助"></a></span></td>
		<td class="tr"></td>
	</tr>
</table>
</div>
<div class="mframe">
<table width="100%" align="center" cellspacing="0" cellpadding="0">
	<tr>
		<td class="tl"></td>
		<td class="tm"><div class="tt">&nbsp; 扩展商品属性管理</div></td>
		<td class="tr"></td>
	</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
      <td class="ml"></td>
    <td  class="mm" align="left" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td bgcolor="#EBF3FE" valign="top" style=" border-right:1px #77ABE5 solid;">
<table width="90%"  cellspacing="0" cellpadding="0">
	<tr>
		<td class="ml1"></td>
		<td class="mm1">
		<asp:datagrid id="dgCustomField" runat="server" Width="100%" HeaderStyle-CssClass="summary-title"
							HorizontalAlign="Left" DataKeyField="ProductFieldID" AutoGenerateColumns="False" PagerStyle-Mode="NumericPages" AllowPaging="False">
							<Columns>
								<asp:TemplateColumn HeaderText="扩展商品属性" HeaderStyle-Width="80px" ItemStyle-Width="80px" ItemStyle-HorizontalAlign="Left"
									HeaderStyle-HorizontalAlign="Left">
									<HeaderStyle></HeaderStyle>
									<ItemTemplate>
										<%# DataBinder.Eval(Container.DataItem, "FieldName") %>
									</ItemTemplate>
									<EditItemTemplate>
										<asp:TextBox ID="fieldName" Runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "FieldName") %>' Width="80px">
										</asp:TextBox>
									</EditItemTemplate>
								</asp:TemplateColumn>
								<asp:TemplateColumn HeaderText="高级搜索" HeaderStyle-Width="100px" ItemStyle-Width="100px" ItemStyle-HorizontalAlign="Center"
									HeaderStyle-HorizontalAlign="Center">
									<HeaderStyle></HeaderStyle>
									<ItemTemplate>
										<asp:CheckBox ID="cbxAddToAdvSearch" Runat="server" Checked='<%# DataBinder.Eval(Container.DataItem, "AddToAdvSearch").ToString() == "1" ? true : false %>' Text='加入高级搜索'>
										</asp:CheckBox><br>
										<asp:RadioButton ID="rbtNotMultiple" Runat="server" Checked='<%# DataBinder.Eval(Container.DataItem, "IsMultiple").ToString() == "0" ? true : false %>' GroupName='ChooseType' Text="单选">
										</asp:RadioButton>
										<asp:RadioButton ID="rbtIsMultiple" Runat="server" Checked='<%# DataBinder.Eval(Container.DataItem, "IsMultiple").ToString() == "1" ? true : false %>' GroupName='ChooseType' Text="多选">
										</asp:RadioButton>
									</ItemTemplate>
								</asp:TemplateColumn>
								<asp:TemplateColumn HeaderText="预设可选值" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left">
									<HeaderStyle></HeaderStyle>
									<ItemTemplate>
										<%# DataBinder.Eval(Container.DataItem, "FieldValues") %>
									</ItemTemplate>
									<EditItemTemplate>
										<asp:TextBox ID="fieldValues" Runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "FieldValues") %>' TextMode="MultiLine" Width="290px">
										</asp:TextBox>
									</EditItemTemplate>
								</asp:TemplateColumn>
								<asp:EditCommandColumn HeaderText="管理" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center"
									ButtonType="LinkButton" EditText="修改" UpdateText="确定" CancelText="取消" ItemStyle-Width="55px"></asp:EditCommandColumn>
								<asp:ButtonColumn HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" HeaderText="删除"
									HeaderStyle-Width="30px" ItemStyle-Width="30" CommandName="Delete" Text="&lt;div id=&quot;de&quot; onclick=&quot;javascript:return confirm('真的要删除吗？')&quot;&gt;删除&lt;/div&gt;"></asp:ButtonColumn>
							</Columns>
						</asp:datagrid>


	</td>
		<td class="mr1"></td>
	</tr>
</table>
</td>
  </tr>
</table>


<table width="100%" align="center" cellspacing="0" cellpadding="0">
	<tr>
		<td class="bl"></td>
		<td class="bm">&nbsp;</td>
		<td class="br"></td>
	</tr>
</table>
</td>
    <td  class="mr"></td>
  </tr>
</table>
<table width="100%" align="center" cellspacing="0" cellpadding="0">
	<tr>
		<td class="bl"></td>
		<td class="bm">&nbsp;</td>
		<td class="br"></td>
	</tr>
</table>

</div>
    </td>
  </tr>
</table>
<%}if(this.Request.QueryString["Action"] == "Add" | this.Request.QueryString["Action"] == "Modify"){%>
<table width="100%" height="550" style="border:1px #619ADF solid; border-left:0;margin-top:6px; margin-right:7px;background:#F2F7FD;" cellspacing="0" cellpadding="0">
  <tr>
    <td valign="top">
<div class="top">
<table width="100%" align="center" cellspacing="0" cellpadding="0">
	<tr>
		<td class="tl"></td>
		<td class="tm"><span class="tt">商品管理 &gt;&gt; 扩展商品属性添加</span></td>
		<td class="tm2"><span class="tt"><a href="http://www.wangqi.com" target="_blank"><img src="Images/admin_help.gif" border="0" alt="帮助"></a></span></td>
		<td class="tr"></td>
	</tr>
</table>
</div>
<div class="mframe">
<table width="100%" align="center" cellspacing="0" cellpadding="0">
	<tr>
		<td class="tl"></td>
		<td class="tm"><div class="tt">&nbsp; 扩展商品属性添加</div></td>
		<td class="tr"></td>
	</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
      <td class="ml"></td>
    <td  class="mm" align="left" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td bgcolor="#EBF3FE" valign="top" style=" border-right:1px #77ABE5 solid;">
<table width="90%"  cellspacing="0" cellpadding="0">
	<tr>
		<td class="ml1"></td>
		<td class="mm1">
<table cellSpacing="1" cellPadding="1" width="640" align="center" border="0"
				id="Table4">
				<tr>
					<td>
						<table cellSpacing="0" cellPadding="0" width="95%" align="center" border="0"
							id="Table5">
							<tr>
								<td align="right" width="150">扩展属性名称：
								</td>
								<td>
									<asp:textbox id="txtFieldName" CssClass="input" Width="200px" Runat="server"></asp:textbox>
								</td>
							</tr>
							<tr>
								<td align="right"><FONT face="宋体">高级搜索：</FONT></td>
								<td>
									<asp:CheckBox id="cbAddToAdvSearch" runat="server" Text="加入高级搜索"></asp:CheckBox>
									<SPAN id="AdvSearch" style="DISPLAY: none">
										<asp:RadioButton id="rbNotMultiple" runat="server" Text="单选" GroupName="MultiType" Checked="True"></asp:RadioButton>
										<asp:RadioButton id="rbIsMultiple" runat="server" Text="多选" GroupName="MultiType"></asp:RadioButton>
									</SPAN><script language="javascript">advsearch();</script></td>
							</tr>
							<tr>
								<td align="right" width="150">扩展属性预设值：
								</td>
								<td><asp:textbox id="txtFieldValues" CssClass="input" Width="300px" Runat="server" TextMode="MultiLine" Height="50px"></asp:textbox><FONT face="宋体"><BR>
										*预设值之间用“,”隔开，如：诺基亚,西门子,索尼爱立信</FONT></td>
							</tr>
							<tr>
								<td></td>
								<td><asp:button id="btnSubmit" CssClass="btn" runat="server" Text="提交"></asp:button><FONT face="宋体">&nbsp;</FONT>
									<asp:button id="btnCancel" CssClass="btn" runat="server" Text="取消"></asp:button></td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
		</td>
		<td class="mr1"></td>
	</tr>
</table>
</td>
  </tr>
</table>


<table width="100%" align="center" cellspacing="0" cellpadding="0">
	<tr>
		<td class="bl"></td>
		<td class="bm">&nbsp;</td>
		<td class="br"></td>
	</tr>
</table>
</td>
    <td  class="mr"></td>
  </tr>
</table>
<table width="100%" align="center" cellspacing="0" cellpadding="0">
	<tr>
		<td class="bl"></td>
		<td class="bm">&nbsp;</td>
		<td class="br"></td>
	</tr>
</table>
</div>
    </td>
  </tr>
</table>
			<%}%>
		</form>
	</body>
</HTML>
