📄 createlabel_simplelist.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" Inherits="manage_label_createLabel_simpleList" Codebehind="createLabel_simpleList.aspx.cs" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title></title>
<link href="../../sysImages/<% Response.Write(NetCMS.Config.UIConfig.CssPath()); %>/css/css.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" type="text/javascript" src="../../configuration/js/Prototype.js"></script>
<script language="JavaScript" type="text/javascript" src="../../configuration/js/Public.js"></script>
</head>
<body>
<form id="ListLabel" runat="server">
<table width="98%" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#FFFFFF" class="table">
<tr class="TR_BG_list">
<td align="right" class="navi_link" style="width: 28%">列表类型</td>
<td width="79%" align="left" class="navi_link"><asp:DropDownList ID="Type" runat="server" Width="200px" CssClass="form" onchange="javascript:selectType(this.value);" >
<asp:ListItem Value="ClassList">终极分类标签(新闻)</asp:ListItem>
<asp:ListItem Value="SpecialList">终极分类标签(专题)</asp:ListItem>
<asp:ListItem Value="ChannelList">终极分类标签(频道)</asp:ListItem>
<asp:ListItem Value="ClassRSS">栏目RSS</asp:ListItem>
<asp:ListItem Value="ClassCode">栏目导读</asp:ListItem>
<asp:ListItem Value="ClassW">栏目列表(新闻)</asp:ListItem>
<asp:ListItem Value="ClassP">栏目列表(图片)</asp:ListItem>
<asp:ListItem Value="SpecialCode">专题导读</asp:ListItem>
<asp:ListItem Value="NewsSpecialW">专题列表(新闻)</asp:ListItem>
<asp:ListItem Value="NewsSpecialP">专题列表(图片)</asp:ListItem>
<asp:ListItem Value="ChannelCode">频道导读</asp:ListItem>
<asp:ListItem Value="ChannelListW">频道列表(新闻)</asp:ListItem>
<asp:ListItem Value="ChannelListP">频道列表(图片)</asp:ListItem>
</asp:DropDownList></td>
</tr>
<tr class="TR_BG_list" id="TrClassId" style="display:none;">
<td align="right" class="navi_link" style="width: 28%">栏目ID</td>
<td width="79%" align="left" class="navi_link"><asp:TextBox ID="ClassId" runat="server" CssClass="form" Width="120px" ReadOnly="true"></asp:TextBox>
<input class="form" type="button" value="选择栏目" onclick="selectFile('newsclass',document.ListLabel.ClassId,300,380);document.ListLabel.ClassId.focus();" /><span id="spanClassId"></span></td>
</tr>
<tr class="TR_BG_list" id="TrSpecialID" style="display:none;">
<td align="right" class="navi_link" style="width: 28%">专题栏目</td>
<td width="79%" align="left" class="navi_link"><asp:TextBox ID="SpecialID" runat="server" CssClass="form" Width="120px" ReadOnly="true"></asp:TextBox>
<input class="form" type="button" value="选择专题" onclick="selectFile('special',document.ListLabel.SpecialID,300,380);document.ListLabel.SpecialID.focus();" /><span id="spanSpecialID"></span></td>
</tr>
<tr class="TR_BG_list" style="display:none;" id="TrChannelID">
<td align="right" class="navi_link" style="width: 28%">频道ID</td>
<td width="79%" align="left" class="navi_link"><asp:TextBox ID="ChannelID" runat="server" CssClass="form" Width="120px" ReadOnly="true"></asp:TextBox>
<input class="form" type="button" value="选择频道" onclick="selectFile('Channel',document.ListLabel.ChannelID,300,380);document.ListLabel.ChannelID.focus();" /><span id="spanChannelID"></span></td>
</tr>
<tr class="TR_BG_list" style="display:none;" id="TrListType">
<td align="right" class="navi_link" style="width: 28%">列表类型</td>
<td width="79%" align="left" class="navi_link"><asp:DropDownList ID="ListType" runat="server" Width="200px" CssClass="form" >
<asp:ListItem Value="last">最新</asp:ListItem>
<asp:ListItem Value="rec">推荐</asp:ListItem>
<asp:ListItem Value="hot">热点</asp:ListItem>
<asp:ListItem Value="marquee">滚动</asp:ListItem>
</asp:DropDownList></td>
</tr>
<tr class="TR_BG_list" style="display:none;" id="TrisSub">
<td align="right" class="navi_link" style="width: 28%">是否调用子类</td>
<td width="79%" align="left" class="navi_link"><asp:DropDownList ID="isSub" runat="server" Width="200px" CssClass="form" >
<asp:ListItem Value="child">是</asp:ListItem>
<asp:ListItem Value="unchild">否</asp:ListItem>
</asp:DropDownList></td>
</tr>
<tr class="TR_BG_list">
<td align="right" class="navi_link" style="width: 28%"></td>
<td width="79%" align="left" class="navi_link"> <input class="form" type="button" value=" 确 定 " onclick="javascript:ReturnDivValue();" /> <input class="form" type="button" value=" 关 闭 " onclick="javascript:CloseDiv();" /></td>
</tr>
</table>
</form>
</body>
</html>
<script language="javascript" type="text/javascript">
function selectType(type)
{
var list = "TrClassId,TrSpecialID,TrChannelID,TrListType,TrisSub";
showorhide(list,false)
switch (type)
{
case "ClassList":
list = "TrisSub";
showorhide(list,true)
break;
case "SpecialList":
list = "TrisSub";
showorhide(list,true)
break;
case "ChannelList":
list = "";
showorhide(list,true)
break;
case "ClassRSS":
list = "TrClassId";
showorhide(list,true)
break;
case "ClassCode":
list = "TrClassId";
showorhide(list,true)
break;
case "ClassW":
list = "TrClassId,TrListType";
showorhide(list,true)
break;
case "ClassP":
list = "TrClassId,TrListType";
showorhide(list,true)
break;
case "SpecialCode":
list = "TrSpecialID";
showorhide(list,true)
break;
case "NewsSpecialW":
list = "TrSpecialID,TrListType";
showorhide(list,true)
break;
case "NewsSpecialP":
list = "TrSpecialID,TrListType";
showorhide(list,true)
break;
case "ChannelCode":
list = "TrChannelID";
showorhide(list,true)
break;
case "ChannelListW":
list = "TrChannelID,TrListType";
showorhide(list,true)
break;
case "ChannelListP":
list = "TrChannelID,TrListType";
showorhide(list,true)
break;
}
}
selectType("ClassList");
function ReturnDivValue()
{
spanClear();
var CheckStr=true;
var rvalue= "";
switch (document.ListLabel.Type.value)
{
case "ClassList":
rvalue = "{NT_m_ClassList_" + document.ListLabel.isSub.value + "}";
break;
case "SpecialList":
rvalue = "{NT_m_SpecialList_" + document.ListLabel.isSub.value + "}";
break;
case "ChannelList":
rvalue = "{NT_m_ChannelList_unchild}";
break;
case "ClassRSS":
if(checkIsNull(document.ListLabel.ClassId,document.getElementById("spanClassId"),"请选择新闻栏目"))
CheckStr=false;
rvalue = "{NT_m_RSS_" + document.ListLabel.ClassId.value + "}";
break;
case "ClassCode":
if(checkIsNull(document.ListLabel.ClassId,document.getElementById("spanClassId"),"请选择新闻栏目"))
CheckStr=false;
rvalue = "{NT_m_ClassCode_" + document.ListLabel.ClassId.value + "}";
break;
case "ClassW":
if(checkIsNull(document.ListLabel.ClassId,document.getElementById("spanClassId"),"请选择新闻栏目"))
CheckStr=false;
switch(document.ListLabel.ListType.value)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -