<%@ Page language="c#" Codebehind="NewsCenterClass.aspx.cs" AutoEventWireup="True" Inherits="DreamerShop.Admin.NewsCenterClass" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>新闻分类－<%=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 imgHelp_onclick() {
			popUpWin("DSHelp/ClassManage.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>
	</HEAD>
	<body MS_POSITIONING="GridLayout" BOTTOMMARGIN="0" LEFTMARGIN="0" RIGHTMARGIN="0" TOPMARGIN="0">
		<form id="Form1" method="post" runat="server">
			<asp:PlaceHolder id="PlaceHolder1" runat="server"></asp:PlaceHolder>
			<table width="97%" border="0" cellspacing="0" cellpadding="0" align="center">
				<tr>
					<td width="1%" height="7"><img src="../Images/Admin/lt.gif" width="9" height="9"></td>
					<td width="98%" background="../Images/Admin/top.gif" height="7"><img src="../Images/Admin/spacer.gif" width="1" height="1"></td>
					<td width="1%" height="7"><img src="../Images/Admin/rt.gif" width="9" height="9"></td>
				</tr>
				<tr>
					<td width="1%" background="../Images/Admin/left.gif" height="319">&nbsp;</td>
					<td width="98%" height="319" valign="top">
						<table width="100%" border="0" cellspacing="0" cellpadding="0">
							<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 width="40"><IMG height="32" src="../Images/Admin/program-1.gif" width="32"></TD>
																<TD class="p12black"><SPAN class="p9orange">功能--&gt;新闻中心--&gt;新闻分类列表</SPAN> <IMG language="javascript" id="imgHelp" style="CURSOR: pointer" onclick="return imgHelp_onclick()"
																		alt="帮助" src="../Images/Admin/helpicon.gif"></TD>
																<TD>
																	<asp:ImageButton id="ibtAddClass" runat="server" ImageUrl="../Images/Admin/fb-new.gif" onclick="ibtAddClass_Click"></asp:ImageButton>新增分类&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
															</TR>
														</TABLE>
														<SPAN></SPAN>
														<asp:panel id="PanSel1" runat="server">
															<asp:datagrid id="dgList" runat="server" DataKeyField="ClassID" AutoGenerateColumns="False" AllowPaging="true"
																PageSize="15" CssClass="table-shangxia" Width="100%">
																<HeaderStyle HorizontalAlign="Center" BackColor="#F1F1F1"></HeaderStyle>
																<HeaderStyle HorizontalAlign="Center" BackColor="#F1F1F1"></HeaderStyle>
																<Columns>
																	<asp:BoundColumn DataField="ClassName" HeaderText="类别名称">
																		<ItemStyle HorizontalAlign="Left"></ItemStyle>
																	</asp:BoundColumn>
																	<asp:TemplateColumn HeaderText="显示">
																		<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="排序">
																		<ItemStyle HorizontalAlign="Center"></ItemStyle>
																		<ItemTemplate>
																			<asp:TextBox ID="txtNOrder" CssClass="wenbenkuang" Width="30" EnableViewState=True Text='<%# DataBinder.Eval(Container.DataItem, "ClassOrder")%>' 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="操作">
																		<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>
															<TABLE class="table-notop" width="100%" align="center" border="0">
																<TR align="center" bgColor="#f1f1f1">
																	<TD>
																		<asp:button id="btFirst" runat="server" CssClass="go-wenbenkuang" Text=" 首 页" BorderStyle="Groove" onclick="btFirst_Click"></asp:button>&nbsp;
																		<asp:button id="btPre" runat="server" CssClass="go-wenbenkuang" Text="上一页" BorderStyle="Groove" onclick="btPre_Click"></asp:button>&nbsp;
																		<asp:button id="btNext" runat="server" CssClass="go-wenbenkuang" Text="下一页" BorderStyle="Groove" onclick="btNext_Click"></asp:button>&nbsp;
																		<asp:button id="btLast" runat="server" CssClass="go-wenbenkuang" Text=" 尾 页" BorderStyle="Groove" onclick="btLast_Click"></asp:button>&nbsp;
																		<asp:label id="lbPage" runat="server"></asp:label>&nbsp; 转到
																		<asp:textbox id="txtPageNum" runat="server" CssClass="wenbenkuang" Width="30px" MaxLength="3"></asp:textbox>
																		<asp:CompareValidator id="Comparevalidator4" runat="server" ControlToValidate="txtPageNum" Display="Dynamic"
																			ErrorMessage="输入数字" Operator="DataTypeCheck" Type="Integer" ForeColor="#FF0000"></asp:CompareValidator>页
																		<asp:Button id="btGo" runat="server" CssClass="go-wenbenkuang" Text="Go" onclick="btGo_Click"></asp:Button></TD>
																</TR>
															</TABLE>
														</asp:panel>
														<asp:panel id="PanSel2" runat="server">
															<asp:Label id="lbClassRelation" runat="server"></asp:Label>
														</asp:panel>
													</asp:panel></FONT>
												<asp:panel id="Pan2" runat="server" Visible="False">
													<TABLE class="p9black" cellSpacing="0" cellPadding="0" width="100%" border="0">
														<TR>
															<TD style="WIDTH: 711px">
																<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
																	<TR>
																		<TD width="40"><IMG height="32" src="../Images/Admin/program-1.gif" width="32"></TD>
																		<TD class="p12black" align="left"><SPAN class="p9orange">功能--&gt;新闻中心--&gt;
																				<asp:Label id="lbMessage" runat="server"></asp:Label></SPAN><IMG language="javascript" id="imgHelp" style="CURSOR: pointer" onclick="return imgHelp_onclick()"
																				alt="帮助" src="../Images/Admin/helpicon.gif"></TD>
																		<TD align="right" width="50"><!--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>返回
																					</TD>
																				</TR>
																			</TABLE> <!--BUTTON_END--></TD>
																	</TR>
																</TABLE>
															</TD>
														</TR>
													</TABLE>
													<TABLE cellSpacing="1" cellPadding="5" width="650" align="center" bgColor="#cccccc" border="0">
														<TR bgColor="#ffffff">
															<TD align="right">类别名称：</TD>
															<TD class="pad" width="70%">
																<asp:textbox id="txtClassName" runat="server" CssClass="wenbenkuang" Width="200px" MaxLength="50"></asp:textbox>
																<asp:requiredfieldvalidator id="Requiredfieldvalidator3" runat="server" ControlToValidate="txtClassName" Display="Dynamic"
																	ErrorMessage="请输入类别名称" ForeColor="#FF0000"></asp:requiredfieldvalidator></FONT></TD>
														</TR>
														<TR bgColor="#ffffff">
															<TD align="right">上级类别：</TD>
															<TD class="pad">
																<asp:DropDownList id="drlClass" runat="server" AutoPostBack="True" onselectedindexchanged="drlClass_SelectedIndexChanged"></asp:DropDownList></TD>
														</TR>
														<TR bgColor="#ffffff">
															<TD align="right">是否显示：</TD>
															<TD class="pad">
																<asp:checkbox id="ckSelShow" runat="server" Text="显示" Checked="True"></asp:checkbox></TD>
														</TR>
														<TR bgColor="#ffffff">
															<TD align="right">排序号：</TD>
															<TD class="pad">
																<asp:textbox id="txtClassOrder" runat="server" CssClass="wenbenkuang" Width="50px" MaxLength="2"></asp:textbox>
																<asp:RequiredFieldValidator id="Requiredfieldvalidator4" runat="server" ControlToValidate="txtClassOrder" Display="Dynamic"
																	ErrorMessage="请输入排序号" ForeColor="#FF0000"></asp:requiredfieldvalidator>
																<asp:CompareValidator id="Comparevalidator2" runat="server" ControlToValidate="txtClassOrder" Display="Dynamic"
																	ErrorMessage="请输入整数" Operator="DataTypeCheck" Type="Integer" ForeColor="#FF0000"></asp:CompareValidator></TD>
														</TR>
														<TR bgColor="#ffffff">
															<TD align="right" width="20%"></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></SPAN>
											</td>
										</tr>
									</table>
								</td>
							</tr>
						</table>
					</td>
					<td width="1%" background="../Images/Admin/right.gif" height="319">&nbsp;</td>
				</tr>
				<tr>
					<td width="1%"><img src="../Images/Admin/lb.gif" width="9" height="9"></td>
					<td width="98%" background="../Images/Admin/bottom.gif"><img src="../Images/Admin/spacer.gif" width="1" height="1"></td>
					<td width="1%"><img src="../Images/Admin/rb.gif" width="9" height="9"></td>
				</tr>
			</table>
			<asp:PlaceHolder id="PlaceHolder2" runat="server"></asp:PlaceHolder>
		</form>
	</body>
</HTML>
