<%@ Page language="c#" Codebehind="CategoryField.aspx.cs" AutoEventWireup="false" Inherits="XpShop.WebUI.Admin.CategoryField" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<HTML>
	<HEAD>
	    <!--#include file="inc/head.inc"-->
		<title>CategoryField</title>
		<script language="javascript">
			function advsearch()
			{
				if(document.Form1.cbAddToAdvSearch.checked)
				{
					document.getElementById("AdvSearch").style.display = "";
					document.getElementById("chkChoice").checked = false;
				}
				else
				{
					document.getElementById("AdvSearch").style.display = "none";
				}
			}
			function choice(obj)
			{
			    if(obj.checked)
				{
					document.getElementById("cbAddToAdvSearch").checked = false;
					document.getElementById("AdvSearch").style.display = "none";
				}
				else
				{
					document.getElementById("cbAddToAdvSearch").checked = false;
				}
			}
		</script>
	</HEAD>
	<body>
	    <div class="container">
		<div class="sub_container">
		<div class="sub_container_title"><a href="../default.aspx" target="_blank">桌面</a><img src="images/admin_title.jpg" height=9px width=8px align="absmiddle" />
		    <% if(this.Request.QueryString["Action"] == "Manage"){%>管理扩展属性类别<%}if(this.Request.QueryString["Action"] == "Add" | this.Request.QueryString["Action"] == "Modify"){%>添加扩展属性类别<%}%>
		</div>
		<div class="sub_container_content">
		<form id="Form1" method="post" runat="server">
			<% if(this.Request.QueryString["Action"] == "Manage"){%>
			<div class="frame">
		        <div class="frame_title">扩展属性类别管理</div>
		        <div class="frame_content">
		            <table class="tableBorder" cellspacing="1" cellpadding="1" width="30%" align="center" border="0" id="Table2">
				        <tr>
					        <td class="forumRowHighlight">
					            <asp:datagrid id="dgCustomField" runat="server" Width="100%" HeaderStyle-CssClass="summary-title"
							        HorizontalAlign="Left" DataKeyField="CategoryFieldID" AutoGenerateColumns="False" PagerStyle-Mode="NumericPages" AllowPaging="False">
							        <Columns>
								        <asp:TemplateColumn HeaderText="扩展属性类别" HeaderStyle-Width="100px" ItemStyle-Width="80px" ItemStyle-HorizontalAlign="Left"
									        HeaderStyle-HorizontalAlign="Left">
									        <HeaderStyle></HeaderStyle>
									        <ItemTemplate>
										        <%# DataBinder.Eval(Container.DataItem, "CategoryFieldName") %>
									        </ItemTemplate>
									        <EditItemTemplate>
										        <asp:TextBox ID="fieldName" Runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "CategoryFieldName") %>' Width="80px">
										        </asp:TextBox>
									        </EditItemTemplate>
								        </asp:TemplateColumn>
								        <asp:EditCommandColumn HeaderText="管理" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left"
									        ButtonType="LinkButton" EditText="修改" UpdateText="确定" CancelText="取消" ItemStyle-Width="60px"></asp:EditCommandColumn>
								        <asp:ButtonColumn HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left" 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>
				        </tr>
			        </table>
		        </div>
	        </div>
			<%}if(this.Request.QueryString["Action"] == "Add" | this.Request.QueryString["Action"] == "Modify"){%>
			    <div class="frame">
		        <div class="frame_title">扩展属性类别添加</div>
		        <div class="frame_content">
		            <table class="tableBorder" cellSpacing="1" cellPadding="1" width="100%" align="center" border="0" id="Table4">
				        <tr>
					        <td>
						        <table class="tableBorder" cellSpacing="0" cellPadding="0" width="95%" align="center" border="0"
							        id="Table5">
							        <tr>
								        <td align="right" width="150">扩展属性类别名称：
								        </td>
								        <td>
									        <asp:textbox id="txtCategoryFieldName" Width="150px" Runat="server"></asp:textbox>
								        </td>
							        </tr>
							        <tr>
								        <td></td>
								        <td><asp:button id="btnSubmit" runat="server" Text="提交"></asp:button><FONT face="宋体">&nbsp;</FONT>
									        <asp:button id="btnCancel" runat="server" Text="取消"></asp:button></td>
							        </tr>
						        </table>
					        </td>
				        </tr>
			        </table>
		        </div>
	        </div>
			<%}%>
		</form>
		</div>
		</div>
		</div>
	</body>
</HTML>
