<%@ Page language="c#" Codebehind="ComplaintCat.aspx.cs" AutoEventWireup="true" Inherits="XpShop.Manage.ComplaintCat" %>
<!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>
	    <!--#include file="inc/head.inc"-->
		<title>投诉类别</title>
	</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=9px width=8px align="absmiddle" /><asp:Label id="lbTitle" runat="server"></asp:Label></div>
		<div class="sub_container_content">
		    <form id="Form1" method="post" runat="server">
		        <div class="frame">
		            <div class="frame_title"> <asp:Label ID="Label1" Runat="server" CssClass="tableHeaderText"></asp:Label></div>
		            <div class="frame_content">
		                <table class="tableBorder" cellSpacing="1" cellPadding="1" width="640" align="center" border="0">
				            <tr>
					            <td>
						            <%if (Request.QueryString["Action"] != "Manage"){%>
						            <table class="ptable" cellspacing="0" cellpadding="0">
							            <tr>
								            <th class="tl">
								                投诉类别名称：
								            </th>
								            <td class="tr"><asp:TextBox id="txtName" runat="server"></asp:TextBox></td>
							            </tr>
							            <tr>
								            <th class="tl"></th>
								            <td class="tr">
									            <asp:Button id="btnSave" OnClick="btnSave_Click" runat="server" Text="保存" CssClass="inputbtn"></asp:Button></td>
							            </tr>
						            </table>
						            <%}else{%>
						            <asp:DataGrid id="dgList" runat="server" AllowPaging="false" PageSize="20" PagerStyle-Mode="NumericPages"
							            AutoGenerateColumns="False" DataKeyField="ComplaintCatID" Width="100%" HorizontalAlign="Center"
							            HeaderStyle-CssClass="summary-title">
							            <HeaderStyle Font-Bold="True" CssClass="summary-title"></HeaderStyle>
			                            <Columns>
				                            <asp:TemplateColumn HeaderText="类别名称">
									            <HeaderStyle HorizontalAlign="Left" Width="80px"></HeaderStyle>
									            <ItemStyle HorizontalAlign="Left"></ItemStyle>
					                            <ItemTemplate>
						                            <%# DataBinder.Eval(Container.DataItem, "CatName") %>
					                            </ItemTemplate>
				                            </asp:TemplateColumn>
				                            <asp:TemplateColumn HeaderText="修改">
					                            <HeaderStyle HorizontalAlign="Left"></HeaderStyle>
					                            <ItemStyle HorizontalAlign="Left" Width="60px"></ItemStyle>
					                            <ItemTemplate>
						                            <a href='ComplaintCat.aspx?Action=Modify&CCID=<%# DataBinder.Eval(Container.DataItem, "ComplaintCatID") %>'>修改</a>
					                            </ItemTemplate>
				                            </asp:TemplateColumn>
				                            <asp:ButtonColumn HeaderText="删除" Text="&lt;div id=&quot;de&quot; onclick=&quot;javascript:return confirm('确认删除吗？')&quot;&gt;删除&lt;/div&gt;"
					                            CommandName="Delete">
					                            <ItemStyle HorizontalAlign="Center" Width="30px"></ItemStyle>
				                            </asp:ButtonColumn>
			                            </Columns>
		                            </asp:DataGrid>
		                            
						            <%} %>
					            </td>
				            </tr>
			            </table>
		            </div>
	            </div>
	        </form>
		</div>
		</div>
		</div>
		
		
	</body>
</html>
