📄 ch_elist.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ch_elist.aspx.cs" Inherits="manage_channel_CreatLabel_ch_elist" %>
<!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>
<script language="JavaScript" type="text/javascript" src="../../../configuration/js/jsPublic.js"></script>
<script type="text/javascript" src="../../../editor/fckeditor.js"></script>
<style type="text/css">
</style>
</head>
<body>
<form id="ListLabel" runat="server">
<div style="padding:2px 5px;">
<table width="98%" border="0" align="center" cellpadding="4" cellspacing="1" class="table">
<tr class="TR_BG_list">
<td align="right" class="navi_link" style="width:105px">选择类型</td>
<td>
<asp:DropDownList ID="Type" runat="server" Width="100px">
<asp:ListItem Value="info">信息</asp:ListItem>
<asp:ListItem Value="special">专题</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr class="TR_BG_list">
<td align="right" class="navi_link" style="width:105px">引用样式</td>
<td>
<asp:DropDownList ID="StyleID" runat="server" Width="180px" onchange="showSty(this.value);">
<asp:ListItem Value="0">固定样式</asp:ListItem>
<asp:ListItem Value="1">自定义样式</asp:ListItem>
</asp:DropDownList>
<span id="TrStyleID">
<asp:DropDownList ID="gstyleID" runat="server">
</asp:DropDownList>
</span>
</td>
</tr>
<tr class="TR_BG_list" id="TrstContent" style="display:none;">
<td align="right">
自定义样式
<div style="height:3px;margin:2px 0 4px 0;"></div>
<input name="saveStyled" value="保存样式" type="button" onclick="ShowStyle();" />
<div id="showOther" style="display:none;">
<div style="height:3px;border-bottom:1px dotted #999999;margin:2px 0 4px 0;"></div>
<asp:TextBox ID="StyleName" Width="94px" runat="server"></asp:TextBox>
<div style="height:3px;border-bottom:1px dotted #999999;margin:2px 0 4px 0;"></div>
<asp:DropDownList ID="StyleClassID" Width="100px" runat="server">
</asp:DropDownList>
<div style="height:3px;border-bottom:1px dotted #999999;margin:2px 0 4px 0;"></div>
<input name="saveStyle" id="saveStyle" value="保存" type="button" onclick="savePostStyle();" />
<div id="sResultHTML" class="reshow"></div>
</div>
</td>
<td class="navi_link">
<asp:DropDownList ID="ChannelStyle" runat="server" onchange="getValue(this.value);">
<asp:ListItem Value="">01.选择字段</asp:ListItem>
</asp:DropDownList>
<label id="style_base" runat="server" />
<label id="style_class" runat="server" />
<label id="style_special" runat="server" />
<br />
<%-- <script type="text/javascript" language="JavaScript">
window.onload = function()
{
var sBasePath = "../../../editor/"
var oFCKeditor = new FCKeditor('UserDefined') ;
oFCKeditor.BasePath = sBasePath ;
oFCKeditor.Width = '100%' ;
oFCKeditor.ToolbarSet = 'NT_Basicstyle';
oFCKeditor.Height = '120px' ;
oFCKeditor.ReplaceTextarea() ;
}
</script>--%>
<textarea rows="8" cols="80" name="UserDefined" id="UserDefined" ></textarea>
<script language="javascript" type="text/javascript">
function ShowStyle()
{
if(document.getElementById("showOther").style.display=="none")
{
document.getElementById("showOther").style.display="";
}
}
function savePostStyle()
{
var saveStyle= document.getElementById("saveStyle");
var sname=document.getElementById("StyleName");
var StyleClassID=document.getElementById("StyleClassID");
if(sname.value=="")
{
alert('请填写样式名称');
sname.focus();
return false;
}
if(StyleClassID.value=="")
{
alert('请选择分类,如果没有分类,请在样式中创建');
return false;
}
//var olEditor = FCKeditorAPI.GetInstance("UserDefined");
var gtemproot = document.getElementById("UserDefined").value;
var url="SaveStyle.aspx"
var actionstr="StyleName="+escape(sname.value)+"&ClassID="+escape(StyleClassID.value)+"&Content="+escape(gtemproot)+"&ChID=<%Response.Write(Request.QueryString["ChID"]); %>";
var divID = "sResultHTML";
pubPostajax(url,actionstr,divID)
}
</script>
</td>
</tr>
<tr class="TR_BG_list">
<td align="right" class="navi_link" style="width:105px">输出格式</td>
<td>
<asp:DropDownList ID="isDiv" runat="server" Width="180px">
<asp:ListItem Value="">不指定</asp:ListItem>
<asp:ListItem Value="true">DIV格式(推荐)</asp:ListItem>
<asp:ListItem Value="false">Table格式</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr class="TR_BG_list">
<td align="right" class="navi_link" style="width:105px">标题显示字数</td>
<td>
<asp:TextBox ID="titleNumber" Width="50px" runat="server" title="中文占2个字符"></asp:TextBox> 每行显示数 <asp:TextBox ID="Cols" Width="50px" runat="server" title="如果输出格式为div格式,请在CSS里控制一行的<li>属性"></asp:TextBox> 点击大于 <asp:TextBox ID="Click" Width="50px" runat="server"></asp:TextBox> 显示多少天内信息 <asp:TextBox ID="DateNum" Width="50px" runat="server"></asp:TextBox>
</td>
</tr>
<tr class="TR_BG_list">
<td align="right" class="navi_link" style="width:105px">排列类型</td>
<td>
<asp:DropDownList ID="OrderBy" runat="server" Width="100px">
<asp:ListItem Value="">不指定</asp:ListItem>
<asp:ListItem Value="id">自动编号</asp:ListItem>
<asp:ListItem Value="CreatTime">创建日期</asp:ListItem>
<asp:ListItem Value="click">点击</asp:ListItem>
<asp:ListItem Value="orderid">权重</asp:ListItem>
</asp:DropDownList>
排列方式
<asp:DropDownList ID="Desc" runat="server" Width="100px">
<asp:ListItem Value="">不指定</asp:ListItem>
<asp:ListItem Value="desc">desc(降序)</asp:ListItem>
<asp:ListItem Value="asc">asc(升序)</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr class="TR_BG_list">
<td align="right" class="navi_link" style="width:105px">调用图片</td>
<td>
<asp:DropDownList ID="isPic" runat="server" Width="100px">
<asp:ListItem Value="">不限制</asp:ListItem>
<asp:ListItem Value="true">是</asp:ListItem>
<asp:ListItem Value="false">否</asp:ListItem>
</asp:DropDownList>
<asp:DropDownList ID="Navi" runat="server" Width="120px" onchange="showNa(this.value);">
<asp:ListItem Value="">是否加导航</asp:ListItem>
<asp:ListItem Value="1">数字导航(1,2,3...)</asp:ListItem>
<asp:ListItem Value="2">字母导航(A,B,C...)</asp:ListItem>
<asp:ListItem Value="3">字母导航(a,b,c...)</asp:ListItem>
</asp:DropDownList>
<span id="TrNaviCSS" style="display:none;"> 导航CSS <asp:TextBox ID="NaviCSS" title="如果为空,可以在CSS里控制<dd>属性" Width="50px" runat="server"></asp:TextBox></span>
</td>
</tr>
<tr class="TR_BG_list" id="TrPageID">
<td align="right" class="navi_link" style="width:105px;"><span id="spanPageID"></span>分页样式</td>
<td align="left" class="navi_link"><asp:TextBox ID="PageID" runat="server" CssClass="form" Width="120px"></asp:TextBox>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -