📄 edit.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="True" Inherits="ROYcms.UI.Admin.Administrator_news_edit" ValidateRequest="false" Codebehind="edit.aspx.cs" %>
<%@ Register src="../top_help.ascx" tagname="top_help" tagprefix="uc1" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<html>
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="../images/style.css" rel="stylesheet" type="text/css">
<SCRIPT language=JavaScript src="../js/alt.js"></SCRIPT>
</head>
<body>
<form runat=server>
<uc1:top_help ID="top_help2" runat="server" />
<table width="100%" border="0" cellspacing="0" cellpadding="10">
<tr>
<td height="99"><fieldset>
<legend><img name="" src="../images/pencil_add.png" width="16" height="16" alt=""> 发布新闻</legend>
<table width="100%" border="0" cellpadding="5" cellspacing="0" style="margin-top:6px">
<tr>
<td height="280" valign="top"><table width="100%" height="270" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="270">
<table width="99%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#DFDFDF" id="add_table">
<tr>
<td colspan="3" align="left" nowrap bgcolor="#DDE9FF">切换模式
<label>
<input name="_ms" type="radio" id="_ms_0" value="1" checked>详细模式</label>
<label>
<input type="radio" name="_ms" value="2" id="_ms_1">简单模式</label>
</td>
</tr>
<tr>
<td width="7%" align="right" nowrap bgcolor="#F4FBFF">新闻标题: </td>
<td width="91%" bgcolor="#F4FBFF"><asp:TextBox ID="txttitle" runat="server" Width="400px" CssClass="input"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
ControlToValidate="txttitle" ErrorMessage="请填写标题" Display="Dynamic"></asp:RequiredFieldValidator>
<asp:CheckBox Checked="false" ID="ding" runat="server" Text="置顶" title="新闻置顶" />
<asp:CheckBox Checked="false" ID="tuijian" runat="server" Text="推荐" title="新闻推荐" />
<asp:CheckBox Checked="true" ID="switchs" runat="server" Text="发布" title="新闻发布" /></td>
<td width="91%" align="center" nowrap bgcolor="#F4FBFF"> </td>
</tr>
<tr>
<td align="right" nowrap bgcolor="#F4FBFF">属性: </td>
<td valign="top" bgcolor="#F4FBFF">
<table width="500" border="0" cellpadding="3" cellspacing="0">
<tr>
<td nowrap>出处:
<asp:TextBox ID="txtinfor" runat="server" CssClass="input" Width="50px" Height="20px">原创</asp:TextBox></td>
<td nowrap>作者:
<asp:TextBox ID="txtauthor" runat="server" CssClass="input" Width="50px" Height="20px"></asp:TextBox></td>
<td nowrap>阅读次数:
<asp:TextBox ID="txthits" runat="server" CssClass="input" Width="40px" Height="20px" Text="0"></asp:TextBox></td>
<td nowrap>顶次数:
<asp:TextBox ID="txtdig" runat="server" CssClass="input" Width="40px" Height="20px" Text="0"></asp:TextBox></td>
<td rowspan="2" nowrap> (均为可选属性) </td>
</tr>
<tr>
<td nowrap> 权重:
<select name="orders" class="drw_list" id="orders" style="height:18px" runat="server">
<option value="">选择</option>
<option value="1">001</option>
<option value="2">002</option>
<option value="3">003</option>
<option value="4">004</option>
<option value="5">005</option>
<option value="6">006</option>
<option value="7">007</option>
<option value="8">008</option>
<option value="9">009</option>
<option value="10">010</option>
</select></td>
<td nowrap>样式:
<select name="styles" class="drw_list" id="styles" style="height:18px" runat="server">
<option value="">选择</option>
<option value="1">字+1</option>
<option value="2">字+2</option>
<option value="3">字+3</option>
<option value="4">字+4</option>
<option value="5">字+5</option>
</select></td>
<td nowrap>颜色:
<select name="colors" class="drw_list" id="colors" style="height:18px" runat="server">
<option value="">选择</option>
<option value="red">红色</option>
<option value="blue">蓝色</option>
<option value="green">绿色</option>
<option value="black">黑色</option>
</select></td>
<td nowrap> </td>
<td nowrap> </td>
</tr>
</table></td>
<td align="center" valign="middle" nowrap bgcolor="#F4FBFF" width="35">
<a href="#" title="点击关闭该项" id="_c1"><font color="#C2CCCC">X</font></a>
</td>
</tr>
<tr>
<td align="right" nowrap bgcolor="#F4FBFF">关键字: </td>
<td bgcolor="#F4FBFF"><asp:TextBox ID="keyword" runat="server" Width="400px" CssClass="input"></asp:TextBox>
<span class="_help"> [每个关键字请用英文的逗号隔开例“,”] </span>(可选)</td>
<td align="center" nowrap bgcolor="#F4FBFF"><a href="#" title="点击关闭该项" id="_c2"><font color="#C2CCCC">X</font></a></td>
</tr>
<tr>
<td align="right" nowrap bgcolor="#F4FBFF">摘要: </td>
<td bgcolor="#F4FBFF"><asp:TextBox ID="txtzhaiyao" runat="server" Width="400px"
CssClass="input" Height="45px" TextMode="MultiLine"></asp:TextBox>
(可选)</td>
<td align="center" nowrap bgcolor="#F4FBFF"><a href="#" title="点击关闭该项" id="_c3"><font color="#C2CCCC">X</font></a> </td>
</tr>
<tr>
<td align="right" nowrap bgcolor="#F4FBFF">栏目/分类: </td>
<td bgcolor="#F4FBFF"><asp:DropDownList ID="DdlMenu" runat="server" Width="320"></asp:DropDownList>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"
ControlToValidate="DdlMenu" ErrorMessage="请填选择分类" Display="Dynamic"></asp:RequiredFieldValidator>
(必填)</td>
<td align="center" nowrap bgcolor="#F4FBFF"> </td>
</tr>
<tr>
<td align="right" nowrap bgcolor="#F4FBFF">形象图: </td>
<td bgcolor="#F4FBFF">
<asp:TextBox ID="txtpic" CssClass="input" runat="server" Width="200px">NO</asp:TextBox>
(可选)</td>
<td align="center" nowrap bgcolor="#F4FBFF"><a href="#" title="点击关闭该项" id="_c4"><font color="#C2CCCC">X</font></a></td>
</tr>
<tr>
<td align="right" nowrap bgcolor="#F4FBFF">链接: </td>
<td bgcolor="#F4FBFF"><asp:TextBox ID="txturl" runat="server" CssClass="input" Width="320px"></asp:TextBox>
(可选)</td>
<td align="center" nowrap bgcolor="#F4FBFF"><a href="#" title="点击关闭该项" id="_c5"><font color="#C2CCCC">X</font></a></td>
</tr>
<tr>
<td align="right" nowrap bgcolor="#F4FBFF">跳转URL: </td>
<td bgcolor="#F4FBFF"><asp:TextBox ID="jumpurl" runat="server" CssClass="input" Width="320px"></asp:TextBox>
(可选)
<asp:CheckBox Checked="false" ID="jumpurl_on_of" runat="server" Text="启用跳转" title="新闻跳转" /></td>
<td align="center" nowrap bgcolor="#F4FBFF"><a href="#" title="点击关闭该项" id="_c6"><font color="#C2CCCC">X</font></a></td>
</tr>
<tr>
<td align="right" nowrap bgcolor="#F4FBFF">标签TAG: </td>
<td bgcolor="#F4FBFF"><asp:TextBox ID="txttag" runat="server" CssClass="input" Width="320px"></asp:TextBox>
<span class="_help"> [每个标签请用英文的逗号隔开例“,”] </span>(可选)</td>
<td align="center" nowrap bgcolor="#F4FBFF"><a href="#" title="点击关闭该项" id="_c7"><font color="#C2CCCC">X</font></a></td>
</tr>
<tr>
<td align="left" valign="top" nowrap bgcolor="#F4FBFF">
内容↓
: </td>
<td align="left" valign="top" nowrap bgcolor="#F4FBFF" class="_help">(编辑器支持在线编辑粘贴内容时请清除原有内容格式)</td>
<td align="center" valign="top" nowrap bgcolor="#F4FBFF" class="_help"><a href="#" title="点击关闭该项" id="_c8"><font color="#C2CCCC">X</font></a></td>
</tr>
<tr>
<td colspan="3" align="left" valign="top" nowrap bgcolor="#F4FBFF"><FCKeditorV2:FCKeditor ID="FCKeditor1" runat="server" BasePath="../FCKedit/" Height="400px" ToolbarSet="ROY" Width="100%" Value=""></FCKeditorV2:FCKeditor> </td>
</tr>
<tr>
<td height="50" colspan="3" align="left" nowrap bgcolor="#F4FBFF">
<asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="../images/submit-bt.gif" onclick="ImageButton_add_Click" />
<span class="_help">(确认编辑/参考注意事项)</span></td>
</tr>
</table>
</td>
</tr>
</table></td>
</tr>
</table>
</fieldset>
</td>
</tr>
</table>
</form>
<script type="text/javascript">
//详细模式
$("#_ms_0").click(function ()
{
$("#add_table tr:hidden").fadeIn("slow");;
}
);
//简单模式
$("#_ms_1").click(function ()
{
$("#add_table tr:eq(2)").fadeOut("slow");
$("#add_table tr:eq(3)").fadeOut("slow");
$("#add_table tr:eq(4)").fadeOut("slow");
$("#add_table tr:eq(5)").fadeOut("slow");
$("#add_table tr:eq(6)").fadeOut("slow");
$("#add_table tr:eq(8)").fadeOut("slow");
$("#add_table tr:eq(9)").fadeOut("slow");
$("#add_table tr:eq(10)").fadeOut("slow");
$("#add_table tr:eq(11)").fadeOut("slow");
}
);
//跳转模式
$("#jumpurl_on_of").click(function ()
{
$("#add_table tr:eq(12)").fadeOut("slow");
$("#add_table tr:eq(13)").fadeOut("slow");
}
);
//X号 关闭按钮
$("#_c1").click(function (){$("#add_table tr:eq(2)").fadeOut("slow"); });
$("#_c2").click(function (){$("#add_table tr:eq(5)").fadeOut("slow"); });
$("#_c3").click(function (){$("#add_table tr:eq(6)").fadeOut("slow"); });
$("#_c4").click(function (){$("#add_table tr:eq(8)").fadeOut("slow"); });
$("#_c5").click(function (){$("#add_table tr:eq(9)").fadeOut("slow"); });
$("#_c6").click(function (){$("#add_table tr:eq(10)").fadeOut("slow"); });
$("#_c7").click(function (){$("#add_table tr:eq(11)").fadeOut("slow"); });
$("#_c8").click(function (){$("#add_table tr:eq(12)").fadeOut("slow");$("#add_table tr:eq(13)").fadeOut("slow"); });
</script>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -