📄 editnews.aspx
字号:
<%@ Register TagPrefix="uc1" TagName="AdminFooter" Src="../Inc/AdminFooter.ascx" %>
<%@ Page language="c#" Codebehind="EditNews.aspx.cs" AutoEventWireup="false" Inherits="Zj.Web.Admin.EditNews" %>
<%@ Register TagPrefix="uc1" TagName="AdminNewsHeader" Src="../Inc/AdminNewsHeader.ascx" %>
<%@ Register TagPrefix="ftb" Namespace="FreeTextBoxControls" Assembly="FreeTextBox" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title> <%=WebName%> ·新闻管理</title>
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
<LINK href="Style/default.css" type="text/css" rel="stylesheet">
<SCRIPT language="javascript">
<!--
function IsShowSummary()
{
with(document.Form1)
{
if (ChkIsPicture.checked == true)
{
document.all['TrSummary'].style.display = "";
}
else
{
document.all['TrSummary'].style.display = "none";
}
}
}
function CheckInput()
{
with(document.Form1)
{
if(DropCat.value==0)
{
alert("请输入新闻类别!");
DropCat.focus();
return false;
}
if(txtTitle.value=='')
{
alert("请输入新闻标题!");
txtTitle.focus();
return false;
}
if(document.all['TrSummary'].style.display == "") //控件存在
{
if(txtSummary.value=='')
{
alert("请输入新闻摘要!");
txtSummary.focus();
return false;
}
}
if(txtAuthor.value=='')
{
alert("请输入新闻作者!");
txtAuthor.focus();
return false;
}
if(ftbContent.value=='')
{
alert("请输入新闻内容!");
//ftbContent.focus();
return false;
}
} //end with
}
//-->
</SCRIPT>
</HEAD>
<body topMargin="0">
<form id="Form1" onsubmit="return CheckInput()" method="post" runat="server">
<uc1:adminnewsheader id="AdminNewsHeader1" runat="server" DESIGNTIMEDRAGDROP="61"></uc1:adminnewsheader>
<TABLE id="Table1" cellSpacing="0" cellPadding="0" width="770" align="center" border="0">
<TR>
<TD align="center" colSpan="2"><FONT face="黑体"><STRONG>修改新闻</STRONG></FONT></TD>
</TR>
<TR>
<TD align="center" colSpan="2"><FONT face="宋体">
<asp:label id="lblMsg" runat="server" EnableViewState="False" Font-Bold="True" ForeColor="Red"></asp:label></FONT></TD>
</TR>
<TR>
<TD style="WIDTH: 67px" align="left"><FONT face="宋体">所属分类<FONT color="red">*</FONT></FONT></TD>
<TD><asp:dropdownlist id="DropCat" runat="server"></asp:dropdownlist> <FONT face="宋体">图片新闻<INPUT id="ChkIsPicture" onclick="javascript:IsShowSummary();" type="checkbox" value="1"
name="ChkIsPicture" runat="server"></FONT></TD>
</TR>
<TR>
<TD style="WIDTH: 67px" align="left">新闻标题<FONT color="red">*</FONT></TD>
<TD><asp:textbox id="txtTitle" runat="server" Width="699px" MaxLength="50"></asp:textbox></TD>
</TR>
<TR id="TrSummary" style="DISPLAY: none">
<TD vAlign="top" align="left" width="67"><FONT face="宋体">新闻摘要</FONT></TD>
<TD><FONT face="宋体"><asp:textbox id="txtSummary" runat="server" Width="699px" TextMode="MultiLine" Height="40px"
MaxLength="800"></asp:textbox></FONT></TD>
</TR>
<TR>
<TD style="WIDTH: 67px" align="left"><FONT face="宋体">新闻作者<FONT color="red">*</FONT></FONT></TD>
<TD><asp:textbox id="txtAuthor" runat="server" Width="146px" MaxLength="20"></asp:textbox> </TD>
</TR>
<TR>
<TD style="WIDTH: 67px" align="left">新闻来源</TD>
<TD><asp:textbox id="txtFrom" runat="server" Width="226px" MaxLength="30"></asp:textbox></TD>
</TR>
<TR>
<TD style="WIDTH: 67px" align="left"><FONT face="宋体">新闻关键字</FONT></TD>
<TD><asp:textbox id="txtKeyWord" runat="server" Width="143px" MaxLength="20"></asp:textbox> <font color="#ff3300">可以不添,用于区分相关新闻.(多个关键字请用空格,分号(半角/全角)分隔)</font></TD>
</TR>
<TR>
<TD style="WIDTH: 67px" vAlign="top" align="left">新闻内容<FONT color="red">*</FONT></TD>
<TD><ftb:freetextbox id="ftbContent" runat="server" Width="700px" Height="320px" ImageGalleryPath="News/UploadImages"
ButtonPath="../../ftb/office2000/" ToolbarType="OfficeXP"></ftb:freetextbox></TD>
</TR>
<TR>
<TD style="WIDTH: 67px" align="left"><FONT face="宋体">是否通过</FONT></TD>
<TD><FONT face="宋体"><INPUT id="chkState" type="checkbox" value="1" name="chkState" runat="server"></FONT></TD>
</TR>
<TR>
<TD align="center" colSpan="2"><asp:button id="btnEdit" runat="server" Text="修改"></asp:button> <INPUT type="reset" value="取消"></TD>
</TR>
</TABLE>
</form>
<%=IsShowSummaryJS()%>
<table height="6" cellSpacing="0" cellPadding="0" width="770" align="center" border="0">
<tr>
<td bgColor="#8d0294" height="3"></td>
</tr>
</table>
<table height="20" cellSpacing="0" cellPadding="0" width="770" align="center" border="0">
<tr bgColor="#e7e7e7">
<td align="center" width="894"><FONT face="宋体">
<uc1:AdminFooter id="AdminFooter1" runat="server"></uc1:AdminFooter></FONT></td>
</tr>
</table>
</body>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -