<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Props.aspx.cs" Inherits="XpShop.Manage.Props" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title>规格管理</title>
    <!--#include file="inc/head.inc"-->
</head>
<body>
    <div class="container">
		<div class="sub_container">
			<div class="sub_container_title"><a href="<%=AdminDefault%>" target="_top">桌面</a><img src="images/admin_title.jpg" height="9" width="8" align="absMiddle">规格管理</div>
			<div class="sub_container_content">
            <form id="form1" method="post" runat="server">
            <asp:datagrid id="dgProp" runat="server" Width="100%" 
                HeaderStyle-CssClass="summary-title" HorizontalAlign="Left" 
                DataKeyField="pid" AutoGenerateColumns="False" 
                PagerStyle-Mode="NumericPages" AllowPaging="False" 
                ondeletecommand="dgProp_DeleteCommand" oneditcommand="dgProp_EditCommand" 
                oncancelcommand="dgProp_CancelCommand" onupdatecommand="dgProp_UpdateCommand">
			    <HeaderStyle CssClass="summary-title"></HeaderStyle>
			    <Columns>
				    <asp:TemplateColumn HeaderText="规格名称">
					    <HeaderStyle HorizontalAlign="Left" Width="80px"></HeaderStyle>
					    <ItemStyle HorizontalAlign="Left" Width="80px"></ItemStyle>
					    <ItemTemplate>
						    <%# DataBinder.Eval(Container.DataItem, "pname") %>
					    </ItemTemplate>
					    <EditItemTemplate>
						    <asp:TextBox ID="pname" Runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "pname") %>' Width="150px">
						    </asp:TextBox>
					    </EditItemTemplate>
				    </asp:TemplateColumn>
				    <asp:TemplateColumn HeaderText="别名">
					    <HeaderStyle HorizontalAlign="Left"></HeaderStyle>
					    <ItemStyle HorizontalAlign="Left"></ItemStyle>
					    <ItemTemplate>
						    <%# DataBinder.Eval(Container.DataItem, "alias") %>
					    </ItemTemplate>
					    <EditItemTemplate>
						    <asp:TextBox ID="alias" Runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "alias") %>' Width="150px">
						    </asp:TextBox>
					    </EditItemTemplate>
				    </asp:TemplateColumn>
				    <asp:TemplateColumn HeaderText="备注">
					    <HeaderStyle HorizontalAlign="Left"></HeaderStyle>
					    <ItemStyle HorizontalAlign="Left"></ItemStyle>
					    <ItemTemplate>
						    <%# DataBinder.Eval(Container.DataItem, "remark") %>
					    </ItemTemplate>
					    <EditItemTemplate>
						    <asp:TextBox ID="remark" Runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "remark") %>' Width="150px">
						    </asp:TextBox>
					    </EditItemTemplate>
				    </asp:TemplateColumn>
				    <asp:TemplateColumn HeaderText="规格值">
				        <ItemTemplate>
				        <a href="PropValue.aspx?pid=<%# DataBinder.Eval(Container.DataItem, "pid") %>">管理</a>
				        </ItemTemplate>
				    </asp:TemplateColumn>
				    <asp:EditCommandColumn HeaderText="管理" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" ButtonType="LinkButton" EditText="修改" UpdateText="确定" CancelText="取消" ItemStyle-Width="55px"></asp:EditCommandColumn>
				    <asp:ButtonColumn Text="&lt;div id=&quot;de&quot; onclick=&quot;javascript:return confirm('真的要删除吗？')&quot;&gt;删除&lt;/div&gt;" HeaderText="删除" CommandName="Delete">
					    <HeaderStyle HorizontalAlign="Center" Width="30px"></HeaderStyle>
					    <ItemStyle HorizontalAlign="Center" Width="30px"></ItemStyle>
				    </asp:ButtonColumn>
			    </Columns>
			    <PagerStyle Mode="NumericPages"></PagerStyle>
		    </asp:datagrid>
            </form>
            </div>
        </div>
    </div>
</body>
</html>
