<%@ Register TagPrefix="ftb" Namespace="FreeTextBoxControls" Assembly="FreeTextBox" %>
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="managenews.aspx.vb" Inherits="LuckBet.managenews" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
	<HEAD>
		<title>managenews</title>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<script language="JavaScript" src="../JS/GetDate.js"></script>
		<LINK href="../Styles.css" type="text/css" rel="stylesheet">
	</HEAD>
	<body>
		<SCRIPT language="javascript" src="../JS/color.js"></SCRIPT>
		<IFRAME width="260" height="165" id="colourPalette" src="../nc_selcolor.htm" style="BORDER-RIGHT:gray 1px solid; BORDER-TOP:gray 1px solid; LEFT:0px; VISIBILITY:hidden; BORDER-LEFT:gray 1px solid; BORDER-BOTTOM:gray 1px solid; POSITION:absolute; TOP:0px"
			frameborder="0" scrolling="no"></IFRAME>
		<form id="Form1" method="post" runat="server">
			<TABLE id="Table1" style="FONT-SIZE: 12px; LETTER-SPACING: 1px" cellSpacing="0" borderColorDark="#ffffff"
				cellPadding="3" width="100%" align="center" bgColor="#c5d5e4" borderColorLight="#335078"
				border="1">
				<TR>
					<TD style="HEIGHT: 35px" align="center"><FONT style="FONT-SIZE: 13pt" face="宋体">信 
							息&nbsp;管 理</FONT></TD>
				</TR>
				<TR bgColor="#b6ebc4">
					<TD align="center" width="100%" bgColor="#d8e1eb"><asp:panel id="paneditPro" runat="server" Font-Size="10pt" HorizontalAlign="Center" ForeColor="Black">
							<TABLE id="Table3" style="HEIGHT: 400px" width="80%" border="1">
								<TR>
									<TD style="WIDTH: 69px" align="center" height="19">&nbsp;<FONT face="宋体">类型</FONT></TD>
									<TD colSpan="5">
										<asp:DropDownList id="ddlclass1" runat="server" AutoPostBack="True"></asp:DropDownList>
										<asp:DropDownList id="ddlclass2" runat="server" AutoPostBack="True"></asp:DropDownList>
										<asp:dropdownlist id="ddlclass3" runat="server"></asp:dropdownlist>
										<asp:DropDownList id="ddltype" runat="server">
											<asp:ListItem Value="0">普通资讯</asp:ListItem>
											<asp:ListItem Value="1">图片广告</asp:ListItem>
										</asp:DropDownList>(选择图片广告时请在图片中上传.jpg图片)</TD>
								</TR>
								<TR>
									<TD style="WIDTH: 69px" align="center" height="19">&nbsp;<FONT face="宋体">标题</FONT></TD>
									<TD colSpan="5">
										<asp:TextBox id="txttitle" runat="server" Width="296px" CssClass="textbox"></asp:TextBox>
										<asp:TextBox id="txtID" runat="server" Width="23px" CssClass="textbox" Visible="False"></asp:TextBox></TD>
								</TR>
								<TR>
									<TD style="WIDTH: 91px" align="center" height="19">&nbsp;标题颜色</TD>
									<TD colSpan="5">
										<asp:TextBox id="txtcolor" onclick="Getcolor(this)" runat="server" Width="58px" BorderStyle="None">0</asp:TextBox></TD>
								</TR>
								<TR>
									<TD style="WIDTH: 91px" align="center" height="19">&nbsp;图片</TD>
									<TD colSpan="5"><FONT color="red">
											<TABLE id="Table10" style="WIDTH: 640px; HEIGHT: 67px" borderColor="gainsboro" cellSpacing="0"
												borderColorDark="#ffffff" cellPadding="0" width="640" border="1">
												<TR>
													<TD style="WIDTH: 118px" align="center">
														<asp:image id="imgpro" runat="server" Width="118px" Height="80px" AlternateText="没上传图片"></asp:image></TD>
													<TD align="left"><INPUT class="textbox" id="File1" style="BORDER-RIGHT: gainsboro 1px solid; BORDER-TOP: gainsboro 1px solid; BORDER-LEFT: gainsboro 1px solid; WIDTH: 257px; BORDER-BOTTOM: gainsboro 1px solid; HEIGHT: 22px"
															type="file" size="23" name="File1" runat="server">&nbsp;
														<asp:button id="bntimgFtp" runat="server" ForeColor="Black" Width="48px" BorderStyle="None"
															Height="19px" Text="上传" BackColor="Control" BorderColor="Control" BorderWidth="1px"></asp:button>&nbsp;
														<asp:button id="bntDelimg" runat="server" ForeColor="Black" Width="48px" CssClass="button" Height="19px"
															Text="删除" BackColor="Control" BorderColor="Control"></asp:button></TD>
												</TR>
											</TABLE>
										</FONT>
									</TD>
								</TR>
								<TR>
									<TD style="WIDTH: 69px" align="center">&nbsp;内&nbsp; 容</TD>
									<TD vAlign="top" colSpan="5">
										<FTB:FreeTextBox id="FreeTextBox1" runat="server" Width="96%" Height="480px" ButtonPath="../images/ftb/office2003/"></FTB:FreeTextBox></TD>
								</TR>
							</TABLE>
							<asp:panel id="Panel1" runat="server" HorizontalAlign="Center" Width="80%" Height="36px">
								<FONT face="宋体">
									<BR>
									<asp:Button id="butedit" runat="server" Width="58px" CssClass="button" Height="22px" Text="保 存"></asp:Button>&nbsp;
									<asp:Button id="butagain" runat="server" Width="59px" CssClass="button" Height="22px" Text="返 回"></asp:Button></FONT></asp:panel>
						</asp:panel><asp:panel id="Panel2" runat="server">
      <TABLE id="Tablesearch" style="WIDTH: 598px; HEIGHT: 86px" cellSpacing="1" cellPadding="1"
								width="598" align="center" border="0">
								<TR>
									<TD style="WIDTH: 69px; HEIGHT: 28px" align="center">类型</TD>
									<TD style="HEIGHT: 28px">
										<asp:DropDownList id="ddltype1" runat="server" AutoPostBack="True"></asp:DropDownList>
										<asp:DropDownList id="ddltype2" runat="server" AutoPostBack="True"></asp:DropDownList>
										<asp:DropDownList id="ddltype3" runat="server" AutoPostBack="True"></asp:DropDownList>
										<asp:DropDownList id="ddltypes" runat="server" AutoPostBack="True">
											<asp:ListItem Value="0">普通信息</asp:ListItem>
											<asp:ListItem Value="1">图片广告</asp:ListItem>
										</asp:DropDownList>
										<asp:DropDownList id="ddlusername" runat="server" AutoPostBack="True"></asp:DropDownList></TD>
								</TR>
								<TR>
									<TD style="WIDTH: 69px" align="center">标题</TD>
									<TD style="HEIGHT: 26px">
										<asp:TextBox id="txtstitle" runat="server" Width="199px" CssClass="textbox"></asp:TextBox></TD>
								</TR>
								<TR>
									<TD style="WIDTH: 69px" align="center">内容
									</TD>
									<TD style="HEIGHT: 20px"><FONT face="宋体">
											<asp:TextBox id="txtscontent" runat="server" Width="200px" CssClass="textbox"></asp:TextBox>
											<asp:Button id="btnsearch" runat="server" Width="60px" CssClass="button" Height="25px" Text="查 询"></asp:Button>&nbsp;
										</FONT>
									</TD>
								</TR>
							</TABLE>
      <TABLE id="Table2" cellSpacing="0" cellPadding="0" width="90%" align="center" border="1">
								<TR>
									<TD align="center"><FONT face="宋体">
											<asp:linkbutton id="btnFirst" onclick="PageButtonClick" runat="server" CommandArgument="0" Font-Name="verdana">最前页

</asp:linkbutton>&nbsp; &nbsp;
											<asp:linkbutton id="btnPrev" onclick="PageButtonClick" runat="server" CommandArgument="prev">上一页

</asp:linkbutton>&nbsp; &nbsp;
											<asp:linkbutton id="btnNext" onclick="PageButtonClick" runat="server" CommandArgument="next">下一页

</asp:linkbutton>&nbsp; &nbsp;
											<asp:linkbutton id="btnLast" onclick="PageButtonClick" runat="server" CommandArgument="last">最后页

</asp:linkbutton>&nbsp; 总共有
											<asp:label id="lblcount" runat="server" ForeColor="Red"></asp:label>&nbsp;条 记录
											<asp:label id="lblCurrentIndex" runat="server"></asp:label>&nbsp;
											<asp:label id="lblPageCount" runat="server"></asp:label>
											<asp:DataGrid id="DataGrid2" runat="server" Width="90%" BorderStyle="None" BackColor="White" BorderColor="#93BEE2"
												BorderWidth="1px" AllowCustomPaging="True" AllowPaging="True" DataKeyField="ID" AutoGenerateColumns="False"
												CellPadding="3" PageSize="20">
												<SelectedItemStyle Font-Bold="True" ForeColor="#CCFF99" BackColor="#009999"></SelectedItemStyle>
												<AlternatingItemStyle BackColor="#E8F4FF"></AlternatingItemStyle>
												<ItemStyle ForeColor="#000066"></ItemStyle>
												<HeaderStyle Font-Size="X-Small" ForeColor="White" BackColor="#337FB2"></HeaderStyle>
												<FooterStyle Font-Size="X-Small" HorizontalAlign="Right" ForeColor="#003399" BackColor="#99CCCC"></FooterStyle>
												<Columns>
													<asp:TemplateColumn HeaderText="发布人员">
														<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
														<ItemTemplate>
															<asp:HyperLink id="Hyperlink4" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.UserName") %>'>
															</asp:HyperLink>
														</ItemTemplate>
													</asp:TemplateColumn>
													<asp:TemplateColumn HeaderText="大类">
														<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
														<ItemTemplate>
															<asp:HyperLink id="Hyperlink1" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Type_one") %>'>
															</asp:HyperLink>
														</ItemTemplate>
													</asp:TemplateColumn>
													<asp:TemplateColumn HeaderText="子类">
														<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
														<ItemTemplate>
															<asp:HyperLink id="Hyperlink3" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Type_two") %>'>
															</asp:HyperLink>
														</ItemTemplate>
													</asp:TemplateColumn>
													<asp:TemplateColumn HeaderText="标题">
														<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
														<ItemStyle HorizontalAlign="Left"></ItemStyle>
														<ItemTemplate>
															<%# iif(databinder.eval(container.dataitem,"hotimg")<>"0","<IMG src='../images/pic.gif'>","") %>
															<%# iif(databinder.eval(container.dataitem,"Type")<>"0","√","") %>
															<A href='../Games/Show.aspx?ID=<%# databinder.eval(container.dataitem,"ID") %>' target=_blank>
																<FONT color='<%# iif(databinder.eval(container.dataitem,"titleColor")="0","",databinder.eval(container.dataitem,"titleColor")) %>'>
																	<%# databinder.eval(container.dataitem,"Title") %>
																</FONT></A>
														</ItemTemplate>
													</asp:TemplateColumn>
													<asp:TemplateColumn HeaderText="发布时间">
														<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
														<ItemTemplate>
															<asp:HyperLink id=HyperLink2 runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Uptime","{0:d}") %>'>
															</asp:HyperLink>
														</ItemTemplate>
													</asp:TemplateColumn>
													<asp:TemplateColumn HeaderText="浏览次数">
														<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
														<ItemTemplate>
															<%# DataBinder.Eval(Container, "DataItem.Clicked") %>
														</ItemTemplate>
													</asp:TemplateColumn>
													<asp:EditCommandColumn ButtonType="LinkButton" UpdateText="更新" HeaderText="编 辑" CancelText="取消" EditText="编辑">
														<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
													</asp:EditCommandColumn>
													<asp:ButtonColumn Text="删除" HeaderText="操 作" CommandName="Delete">
														<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
													</asp:ButtonColumn>
												</Columns>
												<PagerStyle HorizontalAlign="Left" ForeColor="#000066" Position="TopAndBottom" BackColor="White"
													Mode="NumericPages"></PagerStyle>
											</asp:DataGrid></FONT></TD>
								</TR>
							</TABLE></FONT></asp:panel></TD>
				</TR>
			</TABLE>
		</form>
	</body>
</HTML>
