createlabel_routine.aspx
来自「这也是关于论坛的一个源代码」· ASPX 代码 · 共 1,007 行 · 第 1/5 页
ASPX
1,007 行
var temproot = "";
var rvalue="";
switch (document.ListLabel.LabelType.value)
{
case "unRule":
if(checkIsNull(document.ListLabel.RuleID,document.getElementById("spanRuleID"),"请选择不规则新闻"))
CheckStr=false;
rvalue = "[FS:unLoop,FS:SiteID=<%Response.Write(APIID); %>,FS:LabelType=unRule" ;
rvalue += ",FS:RuleID="+document.ListLabel.RuleID.value;
if(document.ListLabel.STitle.value!=""){ rvalue += ",FS:STitle=" + document.ListLabel.STitle.value; }
if(document.ListLabel.unNavi.value!=""){ rvalue += ",FS:unNavi=" + document.ListLabel.unNavi.value; }
rvalue += "][/FS:unLoop]" ;
if(CheckStr)
parent.getValue(rvalue);
break;
case "Position":
if(document.ListLabel.DynChar.value!="")
{
rvalue += "[FS:unLoop,FS:SiteID=0,FS:LabelType=Position,FS:DynChar="+document.ListLabel.DynChar.value+"][/FS:unLoop]";
}
else
{
rvalue = document.ListLabel.PositionValue.value ;
}
parent.getValue(rvalue);
break;
case "PageTitle":
rvalue = "[FS:unLoop,FS:SiteID=<%Response.Write(APIID); %>,FS:LabelType=PageTitle" ;
rvalue += ",FS:prefix="+document.ListLabel.prefix.value+"$"+document.ListLabel.prefixchar.value;
rvalue += "][/FS:unLoop]" ;
parent.getValue(rvalue);
break;
case "Search":
if(checkIsNull(document.ListLabel.SearchType,document.getElementById("sapnSearchType"),"请选择搜索类型"))
CheckStr=false;
rvalue = "[FS:unLoop,FS:SiteID=<%Response.Write(APIID); %>,FS:LabelType=Search";
if(document.ListLabel.SearchType.value!=""){ rvalue += ",FS:SearchType=" + document.ListLabel.SearchType.value; }
if(document.ListLabel.ShowDate.value!=""){ rvalue += ",FS:ShowDate=" + document.ListLabel.ShowDate.value; }
if(document.ListLabel.ShowClass.value!=""){ rvalue += ",FS:ShowClass=" + document.ListLabel.ShowClass.value; }
rvalue += "][/FS:unLoop]";
if(CheckStr)
parent.getValue(rvalue);
break;
case "Stat":
rvalue = "[FS:unLoop,FS:SiteID=<%Response.Write(APIID); %>,FS:LabelType=Stat";
if(document.ListLabel.ShowUser.value!=""){ rvalue += ",FS:ShowUser=" + document.ListLabel.ShowUser.value; }
if(document.ListLabel.ShowNews.value!=""){ rvalue += ",FS:ShowNews=" + document.ListLabel.ShowNews.value; }
if(document.ListLabel.StatShowClass.value!=""){ rvalue += ",FS:ShowClass=" + document.ListLabel.StatShowClass.value; }
if(document.ListLabel.ShowAPI.value!=""){ rvalue += ",FS:ShowAPI=" + document.ListLabel.ShowAPI.value; }
rvalue += "][/FS:unLoop]";
parent.getValue(rvalue);
break;
case "FlashFilt":
if(checkIsNull(document.ListLabel.Number,document.getElementById("spanNumber"),"循环数目不能为空"))
CheckStr=false;
if(checkIsNumber(document.ListLabel.Number,document.getElementById("spanNumber"),"循环数目只能为正整数"))
CheckStr=false;
if(checkIsNumber(document.ListLabel.Flashweight,document.getElementById("spanFlashweight"),"宽度只能为正整数"))
CheckStr=false;
if(checkIsNumber(document.ListLabel.Flashheight,document.getElementById("spanFlashheight"),"高度只能为正整数"))
CheckStr=false;
if(document.ListLabel.ShowTitle.value=="true")
{
if(checkIsNumber(document.ListLabel.TXTheight,document.getElementById("spanTXTheight"),"文本高度只能为正整数"))
CheckStr=false;
}
rvalue = "[FS:Loop,FS:SiteID=<%Response.Write(APIID); %>,FS:LabelType=FlashFilt";
rvalue += ",FS:FlashType=" + document.ListLabel.FlashType.value;;
if(document.ListLabel.Number.value!=""){ rvalue += ",FS:Number=" + document.ListLabel.Number.value; }
if(document.ListLabel.ClassId.value!="") { rvalue += ",FS:ClassID=" + document.ListLabel.ClassId.value }
if(document.ListLabel.Flashweight.value!=""){ rvalue += ",FS:Flashweight=" + document.ListLabel.Flashweight.value; }
if(document.ListLabel.Flashheight.value!=""){ rvalue += ",FS:Flashheight=" + document.ListLabel.Flashheight.value; }
if(document.ListLabel.FlashBG.value!=""){ rvalue += ",FS:FlashBG=" + document.ListLabel.FlashBG.value; }
if(document.ListLabel.ShowTitle.value!=""){ rvalue += ",FS:ShowTitle=" + document.ListLabel.ShowTitle.value; }
if(document.ListLabel.isSub.value!=""){ rvalue += ",FS:isSub=" + document.ListLabel.isSub.value; }
if(document.ListLabel.Target.value!=""){ rvalue += ",FS:Target=" + document.ListLabel.Target.value; }
if(document.ListLabel.ShowTitle.value=="true")
{ if(document.ListLabel.TXTheight.value!=""){ rvalue += ",FS:TXTheight=" + document.ListLabel.TXTheight.value; } }
rvalue += "][/FS:Loop]";
if(CheckStr)
parent.getValue(rvalue);
break;
case "NorFilt":
rvalue = "[FS:Loop,FS:SiteID=<%Response.Write(APIID); %>,FS:LabelType=NorFilt";
if(document.ListLabel.WNum.value!=""){ rvalue += ",FS:Number=" + document.ListLabel.WNum.value; }
if(document.ListLabel.ClassId.value!="") { rvalue += ",FS:ClassID=" + document.ListLabel.ClassId.value }
if(document.ListLabel.isSub.value!=""){ rvalue += ",FS:isSub=" + document.ListLabel.isSub.value; }
if(document.ListLabel.Cols.value!=""){ rvalue += ",FS:Cols=" + document.ListLabel.Cols.value; }
if(document.ListLabel.TitleNumer.value!=""){ rvalue += ",FS:TitleNumer=" + document.ListLabel.TitleNumer.value; }
if(document.ListLabel.ContentNumber.value!=""){ rvalue += ",FS:ContentNumber=" + document.ListLabel.ContentNumber.value; }
if(document.ListLabel.WCSS.value!=""){ rvalue += ",FS:WCSS=" + document.ListLabel.WCSS.value; }
if(document.ListLabel.ShowTitle.value!=""){ rvalue += ",FS:ShowTitle=" + document.ListLabel.ShowTitle.value; }
if(document.ListLabel.FlashSize.value!=""){ rvalue += ",FS:FlashSize=" + document.ListLabel.FlashSize.value; }
if(document.ListLabel.Target.value!=""){ rvalue += ",FS:Target=" + document.ListLabel.Target.value; }
rvalue += "][/FS:Loop]";
parent.getValue(rvalue);
break;
case "Sitemap":
if(checkIsNumber(document.ListLabel.isSubCols,document.getElementById("spanisSubCols"),"显示数量只能为正整数"))
CheckStr=false;
rvalue = "[FS:unLoop,FS:SiteID=<%Response.Write(APIID); %>,FS:LabelType=Sitemap";
if(document.ListLabel.isSubCols.value!=""){ rvalue += ",FS:isSubCols=" + document.ListLabel.isSubCols.value; }
if(document.ListLabel.MapTitleCSS.value!=""){ rvalue += ",FS:MapTitleCSS=" + document.ListLabel.MapTitleCSS.value; }
if(document.ListLabel.SubCSS.value!=""){ rvalue += ",FS:SubCSS=" + document.ListLabel.SubCSS.value; }
if(document.ListLabel.Mapp.value!=""){ rvalue += ",FS:Mapp=" + document.ListLabel.Mapp.value; }
if(document.ListLabel.MapNavi.value!=""){ rvalue += ",FS:MapNavi=" + document.ListLabel.MapNavi.value; }
if(document.ListLabel.MapNavi.value=="true")
{ if(document.ListLabel.MapNaviText.value!=""){ rvalue += ",FS:MapNaviText=" + document.ListLabel.MapNaviText.value; } }
else
{ if(document.ListLabel.MapNaviPic.value!=""){ rvalue += ",FS:MapNaviPic=" + document.ListLabel.MapNaviPic.value; } }
if(document.ListLabel.MapsubNavi.value!=""){ rvalue += ",FS:MapsubNavi=" + document.ListLabel.MapsubNavi.value; }
if(document.ListLabel.MapsubNavi.value=="true")
{ if(document.ListLabel.MapsubNaviText.value!=""){ rvalue += ",FS:MapsubNaviText=" + document.ListLabel.MapsubNaviText.value; } }
else
{ if(document.ListLabel.MapsubNaviPic.value!=""){ rvalue += ",FS:MapsubNaviPic=" + document.ListLabel.MapsubNaviPic.value; } }
rvalue += "][/FS:unLoop]";
if(CheckStr)
parent.getValue(rvalue);
break;
case "TodayPic":
rvalue = "[FS:unLoop,FS:SiteID=<%Response.Write(APIID); %>,FS:LabelType=TodayPic";
if(document.ListLabel.TodayPicID.value!=""){ rvalue += ",FS:TodayPicID=" + document.ListLabel.TodayPicID.value; }
if(document.getElementById("TCHECK").checked)
{
rvalue += ",FS:TodayPicID=" + document.ListLabel.TodayPicID.value;
if(document.ListLabel.TCHECK.checked==true)
{
rvalue += ",FS:TCHECK=true";
if(document.ListLabel.TNUM.value!=""){ rvalue += ",FS:TNUM=" + document.ListLabel.TNUM.value; }
if(document.ListLabel.TSCHAR.value!=""){ rvalue += ",FS:TSCHAR=" + document.ListLabel.TSCHAR.value; }
if(document.ListLabel.TECHAR.value!=""){ rvalue += ",FS:TECHAR=" + document.ListLabel.TECHAR.value; }
}
}
rvalue += "][/FS:unLoop]";
parent.getValue(rvalue);
break;
case "TodayWord":
rvalue = "[FS:unLoop,FS:SiteID=<%Response.Write(APIID); %>,FS:LabelType=TodayWord";
if(document.ListLabel.ClassId.value!="") { rvalue += ",FS:ClassID=" + document.ListLabel.ClassId.value }
if(document.getElementById("isBIGT").checked)
{
rvalue += ",FS:isBIGT=true";
rvalue += ",FS:BigCSS=" + document.ListLabel.BIGCSS.value;
rvalue += ",FS:bigTitleNumber=" + document.ListLabel.bigTitleNumber.value;
}
else
{
rvalue += ",FS:isBIGT=false";
}
var vTSCHAR=document.ListLabel.TSCHAR.value;
var vTECHAR=document.ListLabel.TECHAR.value;
if(document.ListLabel.TSCHAR.value!=""){ rvalue += ",FS:TSCHAR=" + vTSCHAR.replace("[","$#").replace("]","#$"); }
if(document.ListLabel.TECHAR.value!=""){ rvalue += ",FS:TECHAR=" + vTECHAR.replace("[","$#").replace("]","#$"); }
if(document.ListLabel.isSub.value!=""){ rvalue += ",FS:isSub=" + document.ListLabel.isSub.value; }
if(document.ListLabel.Cols.value!=""){ rvalue += ",FS:Cols=" + document.ListLabel.Cols.value; }
if(document.ListLabel.TitleNumer.value!=""){ rvalue += ",FS:TitleNumer=" + document.ListLabel.TitleNumer.value; }
//if(document.ListLabel.ContentNumber.value!=""){ rvalue += ",FS:ContentNumber=" + document.ListLabel.ContentNumber.value; }
if(document.ListLabel.WNum.value!=""){ rvalue += ",FS:WNum=" + document.ListLabel.WNum.value; }
if(document.ListLabel.WCSS.value!=""){ rvalue += ",FS:WCSS=" + document.ListLabel.WCSS.value; }
rvalue += "][/FS:unLoop]";
parent.getValue(rvalue);
break;
case "CorrNews":
if(checkIsNull(document.ListLabel.Number,document.getElementById("spanNumber"),"循环数目不能为空"))
CheckStr=false;
if(checkIsNumber(document.ListLabel.Number,document.getElementById("spanNumber"),"循环数目只能为正整数"))
CheckStr=false;
if(checkIsNumber(document.ListLabel.Cols,document.getElementById("spanCols"),"每行显示条数只能为正整数"))
CheckStr=false;
if(checkIsNumber(document.ListLabel.ShowDateNumer,document.getElementById("spanShowDateNumer"),"显示多少天天数只能为正整数"))
CheckStr=false;
if(checkIsNumber(document.ListLabel.TitleNumer,document.getElementById("spanTitleNumer"),"标题显示字数只能为正整数"))
CheckStr=false;
if(checkIsNumber(document.ListLabel.ContentNumber,document.getElementById("spanContentNumber"),"内容截取字数只能为正整数"))
CheckStr=false;
if(checkIsNumber(document.ListLabel.NaviNumber,document.getElementById("spanNaviNumber"),"导航截取字数只能为正整数"))
CheckStr=false;
if(document.ListLabel.Root.value=="true")
{
if(checkIsNull(document.ListLabel.StyleID,document.getElementById("sapnStyleID"),"请选择样式"))
CheckStr=false;
}
rvalue = "[FS:Loop,FS:SiteID=<%Response.Write(APIID); %>,FS:LabelType=CorrNews";
if(document.ListLabel.Number.value!=""){ rvalue += ",FS:Number=" + document.ListLabel.Number.value; }
if(document.ListLabel.Root.value=="true")
{ temproot = "[#FS:StyleID=" + document.ListLabel.StyleID.value+"#]"; }
else
{
var oEditor = FCKeditorAPI.GetInstance("UserDefined");
temproot = oEditor.GetXHTML(true);
}
if(document.ListLabel.SubNews.value!=""){ rvalue += ",FS:SubNews=" + document.ListLabel.SubNews.value; }
if(document.ListLabel.Cols.value!=""){ rvalue += ",FS:Cols=" + document.ListLabel.Cols.value; }
if(document.ListLabel.Desc.value!=""){ rvalue += ",FS:Desc=" + document.ListLabel.Desc.value; }
if(document.ListLabel.DescType.value!=""){ rvalue += ",FS:DescType=" + document.ListLabel.DescType.value; }
if(document.ListLabel.isDiv.value!=""){ rvalue
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?