<%@ Control Language="c#" AutoEventWireup="false" Codebehind="Browser.ascx.cs" Inherits="WebUI.MMS.Browser" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
<script language="javascript" type="text/javascript">
<!--
function checkFormAll(chk)
{
	myform = document.forms[0];
	for( var i = 0; i < myform.elements.length; i++ )
	{
		if ( myform.elements[i].type=="checkbox" )
		{
			myform.elements[i].checked = chk;
		}
	}
}

function go(i)
{
	var theform;
	if (window.navigator.appName.toLowerCase().indexOf("netscape") > -1) {
		theform = document.forms["myform2"];
	}
	else {
		theform = document.myform2;
	}
	theform.PageIndex.value = i;
	theform.submit();		
}

function SelectDate(DivID)
{
     var fullPath="calendar/PopDate.Htm";
     var strDate;	//Chinese date formate
     var intDate;	//Integer date formate
     var objEffectDate=eval("myform2." + DivID);
     intDate=showModalDialog(fullPath,window,"dialogWidth=360px;dialogHeight=310px;center=yes;border=this;help=no");
     if (intDate!=null)
     {
         objEffectDate.value=intDate.substr(0,4)+"-"+intDate.substr(5,2)+"-"+intDate.substr(8,2);
         if (objEffectDate.value!="undefined")
         {
             strDate=intDate.substr(0,4)+"-"+intDate.substr(5,2)+"-"+intDate.substr(8,2);
             objEffectDate.value=strDate;
         }
         else
         {
             objEffectDate.value="";
         }
     }
     event.returnValue =false;
}
//-->
</script>
<input id=PageIndex type=hidden value="<%= this.PageIndex%>" name=PageIndex>
<TABLE cellSpacing="0" cellPadding="0" width="98%" align="center">
	<TR>
		<TD class="mframe-t-left"></TD>
		<TD class="mframe-t-mid"><SPAN class="mframe-t-text"><%=this.PageTitle%></SPAN></TD>
		<TD class="mframe-t-right"></TD>
	</TR>
</TABLE>
<table class="awidth" cellSpacing="0" cellPadding="0" align="center">
	<tr>
		<td class="mframe-m-left"></td>
		<td class="mframe-m-mid">
			<asp:panel id="pnlView" runat="server">
				<TABLE cellSpacing="1" borderColorDark="#ffffff" cellPadding="3" width="98%" align="center"
					borderColorLight="#cccccc" border="1">
					<TR>
						<TD align="right" width="80">日 期：</TD>
						<TD>
							<asp:Label id="lblDate" runat="server"></asp:Label></TD>
					</TR>
					<TR>
						<TD align="right">标 题：</TD>
						<TD>
						<asp:Label id="lblTitle" runat="server"></asp:Label>
						</TD>
					</TR>
					<TR>
						<TD align="right">内 容：</TD>
						<TD>
							<asp:Label id="lblContent" runat="server"></asp:Label>&nbsp;</TD>
					</TR>
					<TR>
						<TD align="center" colSpan="2"><INPUT onclick="history.back();" type="button" value="返 回">
						</TD>
					</TR>
				</TABLE>
			</asp:panel>
			<asp:panel id="pnlAdd" runat="server">
				<TABLE cellSpacing="1" borderColorDark="#ffffff" cellPadding="3" width="98%" align="center"
					borderColorLight="#cccccc" border="0">
					<TR>
						<TD align="right">标题：</TD>
						<TD>
							<asp:TextBox id="txtTitle" runat="server" Width="368px"></asp:TextBox><FONT color="red">*</FONT>
						</TD>
					</TR>
					<TR>
						<TD align="right">内容：</TD>
						<TD>
							<asp:TextBox id="txtContent" runat="server" Width="368px" Height="208px" TextMode="MultiLine"></asp:TextBox><FONT color="red">*</FONT>
						</TD>
					</TR>
					<TR>
					<TD></TD>
					<TD>
					<asp:Button id="Submit1" runat="server" Text="提  交"></asp:Button>
					</TD>
					</TR>
				</TABLE>
			</asp:panel>
			<asp:panel id="pnlList" runat="server">
				<ASP:DataGrid id="DataGrid1" runat="server" Width="100%" AllowPaging="True" Align="center" ShowHeader="True"
					ShowFooter="false" AutoGenerateColumns="false" DataKeyField="ID" ItemStyle-CssClass="tdbg"
					CellSpacing="0" CellPadding="0" OnItemCreated="DataGrid1_ItemCreated">
					<PagerStyle Visible="False" />
					<HeaderStyle HorizontalAlign="center" CssClass="summary-title" Height="25" />
					<ItemStyle Height="22" />
					<EditItemStyle CssClass="tdbg-dark" />
					<Columns>
						<asp:TemplateColumn ItemStyle-Width="15%" ItemStyle-HorizontalAlign="center">
							<ItemTemplate>
								<TABLE cellSpacing="1" borderColorDark="#ffffff" cellPadding="3" width="98%" align="center"
									borderColorLight="#cccccc" border="1">
									<TR>
										<TD align="right" width="80">日 期：</TD>
										<TD>
										<%# DataBinder.Eval(Container.DataItem, "ActDatetime")%>
										</TD>
									</TR>
									<TR>
										<TD align="right">标 题：</TD>
										<TD>
										<%# DataBinder.Eval(Container.DataItem, "Title")%>						
										</TD>
									</TR>
									<TR>
										<TD align="right">内 容：</TD>
										<TD>
										<%# DataBinder.Eval(Container.DataItem, "Content").ToString().Replace("\r\n", "<br>")%>						
										</TD>
									</TR>
									<tr><td colspan="2" height="15"> </td></tr>
								</TABLE>									
									
							</ItemTemplate>
						</asp:TemplateColumn>
					</Columns>
				</ASP:DataGrid>
				<TABLE width="100%">
					<TR>
						<TD align="center" height="25"><%= this.PageNavigation%></TD>
					</TR>
				</TABLE>
				<TABLE height="30" width="100%" align="center">
					<TR>
						<TD>公告日期：
							<asp:TextBox onkeypress="SelectDate('_ctl0_txtDate2')" id="txtDate2" onclick="SelectDate('_ctl0_txtDate2')"
								Width="80px" Runat="server"></asp:TextBox>
							<asp:button id="btnSearch" Text="查 询" Runat="server"></asp:button></TD>
						<TD align="right">
						
						</TD>
					</TR>
				</TABLE>
			</asp:panel></td>
		<td class="mframe-m-right"></td>
	</tr>
</table>
<TABLE cellSpacing="0" cellPadding="0" width="98%" align="center">
	<TR>
		<TD class="mframe-b-left"></TD>
		<TD class="mframe-b-mid">&nbsp;</TD>
		<TD class="mframe-b-right"></TD>
	</TR>
</TABLE>