⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ch_other.aspx

📁 最好用的站点内容管理系统 全部源代码都有
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ch_other.aspx.cs" Inherits="manage_channel_CreatLabel_ch_other" %>
<!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 language="javascript" type="text/javascript">
        function getColorOptions()
        {
	        var color= new Array("00","33","66","99","CC","FF");
	        for (var i=0;i<color.length ;i++ )
	        {
		        for (var j=0;j<color.length ;j++ )
		        {
			        for (var k=0;k<color.length ;k++ )
			        {
				        if(k==0&&j==0&&i==0)
				        document.write('<option style="background:#'+color[j]+color[k]+color[i]+'" value="'+color[j]+color[k]+color[i]+'" selected>  </option>');
				        else
				        document.write('<option style="background:#'+color[j]+color[k]+color[i]+'" value="'+color[j]+color[k]+color[i]+'"></option>');
			        }
		        }
	        }
        }
    </script>
</head>

<body>
    <form id="ListLabel" runat="server">
    <div>
    <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" onchange="sType(this.value);">
        <asp:ListItem Value="normal">普通搜索</asp:ListItem>
        <asp:ListItem Value="advance">高级搜索</asp:ListItem>
        <asp:ListItem Value="RSS">RSS订阅地址</asp:ListItem>
        <asp:ListItem Value="filt">Flash幻灯片</asp:ListItem>
        </asp:DropDownList>
        </td>
      </tr>
      <tr class="TR_BG_list" style="display:block;" id="TrCols">
        <td align="right" class="navi_link" style="width:105px">格式</td>
         <td align="left" class="navi_link">
            <asp:DropDownList ID="Cols" runat="server">
            <asp:ListItem Value="Multiple">横向</asp:ListItem>
            <asp:ListItem Value="single">纵向</asp:ListItem>
            </asp:DropDownList>
        </td>
      </tr>
       <tr class="TR_BG_list" id="TrClassID" style="display:none;">
        <td align="right" class="navi_link" style="width:105px">栏目</td>
        <td>
        <asp:DropDownList ID="ClassID" runat="server" Width="180px">
            <asp:ListItem Value="0">□□自适应</asp:ListItem>
            <asp:ListItem Value="-1">□□所有栏目(对RSS无效)</asp:ListItem>
            <asp:ListItem Value="">================</asp:ListItem>
            </asp:DropDownList>
        </td>
       </tr>
       <tr class="TR_BG_list" id="TrTitle" style="display:none;">
        <td align="right" class="navi_link" style="width:105px">显示标题</td>
        <td>
        <asp:DropDownList ID="TitleTF" runat="server">
        <asp:ListItem Value="1">显示</asp:ListItem>
        <asp:ListItem Value="0">不显示</asp:ListItem>
        </asp:DropDownList>
        </td>
       </tr>
       <tr class="TR_BG_list" id="TrNumber" style="display:none;">
        <td align="right" class="navi_link" style="width:105px">数量</td>
        <td>
        <asp:TextBox ID="Number" runat="server">5</asp:TextBox>
        </td>
       </tr>
       <tr class="TR_BG_list" id="TrHeight" style="display:none;">
        <td align="right" class="navi_link" style="width:105px">FLash高度</td>
        <td>
        <asp:TextBox ID="Height" runat="server">150</asp:TextBox> px
        </td>
       </tr>
       <tr class="TR_BG_list" id="TrWidth" style="display:none;">
        <td align="right" class="navi_link" style="width:105px">FLash宽度</td>
        <td>
        <asp:TextBox ID="Width" runat="server">200</asp:TextBox>px
        </td>
       </tr>
      <tr class="TR_BG_list" id="TrFlashBG" style="display:none;">
        <td align="right" class="navi_link">FLASH背景颜色</td>
        <td width="79%" align="left" class="navi_link"><select name="FlashBG" id="FlashBG" style="width:200px;" class="form"><script language="javascript" type="text/javascript">getColorOptions();</script></select></td>
      </tr>            
      <tr class="TR_BG_list">
        <td align="right" class="navi_link" style="width:105px"></td>
        <td align="left" class="navi_link">&nbsp;<input class="form" type="button" value=" 确 定 "  onclick="javascript:ReturnDivValue();" />&nbsp;<input class="form" type="button" value=" 关 闭 "  onclick="javascript:CloseDiv();" /></td>
      </tr>
    </table>
    </div>
    </form>
</body>
</html>
<script language="javascript" type="text/javascript">
function sType(obj)
{
   switch(obj)
   {
        case "normal":case "advance":
            document.getElementById("TrCols").style.display="";
            document.getElementById("TrClassID").style.display="none";
            document.getElementById("TrNumber").style.display="none";
            document.getElementById("TrWidth").style.display="none";
            document.getElementById("TrHeight").style.display="none";
            document.getElementById("TrFlashBG").style.display="none";
            document.getElementById("TrTitle").style.display="none";
            break;
        case "RSS":
            document.getElementById("TrCols").style.display="none";
            document.getElementById("TrClassID").style.display="";
            document.getElementById("TrNumber").style.display="none";
            document.getElementById("TrWidth").style.display="none";
            document.getElementById("TrHeight").style.display="none";
            document.getElementById("TrFlashBG").style.display="none";
            document.getElementById("TrTitle").style.display="none";
            break;
        case "filt":
            document.getElementById("TrCols").style.display="none";
            document.getElementById("TrClassID").style.display="";
            document.getElementById("TrNumber").style.display="";
            document.getElementById("TrWidth").style.display="";
            document.getElementById("TrHeight").style.display="";
            document.getElementById("TrFlashBG").style.display="";
            document.getElementById("TrTitle").style.display="";
            break;
        default:
            break;
   } 
}

function ReturnDivValue()
{
    var Type = document.getElementById("Type");
    switch(Type.value)
    {
        case "normal":case "advance":
            var rvalue="[NT:unLoop,NT:LabelType=ChannelSearch";
            rvalue += ",NT:Type=" + document.ListLabel.Type.value;
            rvalue += ",NT:Cols=" + document.ListLabel.Cols.value;
            rvalue += "]";
            rvalue += "[/NT:unLoop]";
            parent.getValue(rvalue);
            break;
       case "RSS":
            var rvalue="[NT:unLoop,NT:LabelType=ChannelRSS";
            rvalue += ",NT:ClassID=" + document.ListLabel.ClassID.value;
            rvalue += "]";
            rvalue += "[/NT:unLoop]";
            parent.getValue(rvalue);
            break;
       case "filt":
            var rvalue="[NT:Loop,NT:LabelType=ChannelFlashFilt";
            rvalue += ",NT:ClassID=" + document.ListLabel.ClassID.value;
            rvalue += ",NT:Number=" + document.ListLabel.Number.value;
            rvalue += ",NT:ShowTitle=" + document.ListLabel.TitleTF.value;
            rvalue += ",NT:Flashheight=" + document.ListLabel.Height.value;
            rvalue += ",NT:Flashweight=" + document.ListLabel.Width.value;
            rvalue += ",NT:FlashBG=" + document.ListLabel.FlashBG.value;
            rvalue += "]";
            rvalue += "[/NT:Loop]";
            parent.getValue(rvalue);
            break;
    }
}

function CloseDiv()
{
    parent.document.getElementById("LabelDivid").style.display="none";
}

function getValue(value)
{
    var oEditor = FCKeditorAPI.GetInstance("UserDefined");
    if (oEditor.EditMode==FCK_EDITMODE_WYSIWYG)
    {
       oEditor.InsertHtml(value);
    }else
    {
        return false;
    }
} 
</script>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -