createlabel_member.aspx
来自「这也是关于论坛的一个源代码」· ASPX 代码 · 共 700 行 · 第 1/3 页
ASPX
700 行
{
if(type=="true")
{ document.getElementById("TrulID").style.display="";document.getElementById("TrulClass").style.display=""; }
else
{ document.getElementById("TrulID").style.display="none";document.getElementById("TrulClass").style.display="none"; }
}
function CloseDiv()
{
parent.document.getElementById("LabelDivid").style.display="none";
}
function checkIsNull(obj,spanobj,error)
{
if(obj.value=="")
{
spanobj.innerHTML="<span class=reshow>(*)"+error+"</spna>";
return true;
}
return false;
}
function checkIsNumber(obj,spanobj,error)
{
var re = /^[0-9]*$$/;
if(re.test(obj.value)==false)
{
spanobj.innerHTML="<span class=reshow>(*)"+error+"</spna>";
return true;
}
return false;
}
function selectRoot(type)
{
if(type=="false")
{ document.getElementById("TrStyleID").style.display="none";document.getElementById("TrUserDefined").style.display=""; }
else
{ document.getElementById("TrStyleID").style.display="";document.getElementById("TrUserDefined").style.display="none"; }
}
function ReturnDivValue()
{
var CheckStr = true;
var rvalue= "";
var temproot = "";
switch(document.ListLabel.LabelType.value)
{
case "UserLogin":
if(checkIsNull(document.ListLabel.LoginP,document.getElementById("spanLoginP"),"请选择显示方式"))
CheckStr=false;
rvalue="[FS:unLoop,FS:SiteID=<%Response.Write(APIID); %>,FS:LabelType=UserLogin,FS:LoginP=" + document.ListLabel.LoginP.value;
if(document.ListLabel.FormCSS.value!=""){ rvalue += ",FS:FormCSS=" + document.ListLabel.FormCSS.value; }
if(document.ListLabel.LoginCSS.value!=""){ rvalue += ",FS:LoginCSS=" + document.ListLabel.LoginCSS.value; }
if(document.ListLabel.RegCSS.value!=""){ rvalue += ",FS:RegCSS=" + document.ListLabel.RegCSS.value; }
if(document.ListLabel.PassCSS.value!=""){ rvalue += ",FS:PassCSS=" + document.ListLabel.PassCSS.value; }
rvalue += "][/FS:unLoop]";
if(CheckStr)
parent.getValue(rvalue);
break;
case "TopUser":
if(checkIsNumber(document.ListLabel.Number,document.getElementById("spanNumber"),"循环数目只能为正整数"))
CheckStr=false;
rvalue = "[FS:Loop,FS:SiteID=<%Response.Write(APIID); %>,FS:LabelType=" + document.ListLabel.LabelType.value;
if(document.ListLabel.Number.value!=""){ rvalue += ",FS:Number=" + document.ListLabel.Number.value; }
if(document.ListLabel.TopUserType.value!=""){ rvalue += ",FS:TopUserType=" + document.ListLabel.TopUserType.value; }
if(document.ListLabel.ShowNavi.value!=""){ rvalue += ",FS:ShowNavi=" + document.ListLabel.ShowNavi.value; }
if(document.ListLabel.ShowNavi.value!=""&&document.ListLabel.ShowNavi.value!="4"){ rvalue += ",FS:NaviCSS=" + document.ListLabel.NaviCSS.value; }
if(document.ListLabel.ShowNavi.value=="4")
{ if(document.ListLabel.NaviPic.value!=""){ rvalue += ",FS:NaviPic=" + document.ListLabel.NaviPic.value; } }
if(document.ListLabel.CSS.value!=""){ rvalue += ",FS:CSS=" + document.ListLabel.CSS.value; }
if(document.ListLabel.PointParam.value!=""){ rvalue += ",FS:PointParam=" + document.ListLabel.PointParam.value; }
rvalue += "][/FS:Loop]";
if(CheckStr)
parent.getValue(rvalue);
break;
case "LastComm":
if(checkIsNumber(document.ListLabel.Number,document.getElementById("spanNumber"),"循环数目只能为正整数"))
CheckStr=false;
rvalue = "[FS:Loop,FS:SiteID=<%Response.Write(APIID); %>,FS:LabelType=" + document.ListLabel.LabelType.value;
if(document.ListLabel.Number.value!=""){ rvalue += ",FS:Number=" + document.ListLabel.Number.value; }
if(document.ListLabel.ShowNavi.value!=""){ rvalue += ",FS:ShowNavi=" + document.ListLabel.ShowNavi.value; }
if(document.ListLabel.TitleNumer.value!=""){ rvalue += ",FS:TitleNumer=" + document.ListLabel.TitleNumer.value; }
if(document.ListLabel.ShowNavi.value!=""&&document.ListLabel.ShowNavi.value!="4"){ rvalue += ",FS:NaviCSS=" + document.ListLabel.NaviCSS.value; }
if(document.ListLabel.ShowNavi.value=="4")
{ if(document.ListLabel.NaviPic.value!=""){ rvalue += ",FS:NaviPic=" + document.ListLabel.NaviPic.value; } }
if(document.ListLabel.CSS.value!=""){ rvalue += ",FS:CSS=" + document.ListLabel.CSS.value; }
if(document.ListLabel.ShowDate.value!=""){ rvalue += ",FS:ShowDate=" + document.ListLabel.ShowDate.value; }
rvalue += "][/FS:Loop]";
if(CheckStr)
parent.getValue(rvalue);
break;
case "NewUser":
if(checkIsNumber(document.ListLabel.Number,document.getElementById("spanNumber"),"循环数目只能为正整数"))
CheckStr=false;
rvalue = "[FS:Loop,FS:SiteID=<%Response.Write(APIID); %>,FS:LabelType=" + document.ListLabel.LabelType.value;
if(document.ListLabel.Number.value!=""){ rvalue += ",FS:Number=" + document.ListLabel.Number.value; }
if(document.ListLabel.ShowDate.value!=""){ rvalue += ",FS:ShowDate=" + document.ListLabel.ShowDate.value; }
if(document.ListLabel.ShowNavi.value!=""){ rvalue += ",FS:ShowNavi=" + document.ListLabel.ShowNavi.value; }
if(document.ListLabel.ShowNavi.value!=""&&document.ListLabel.ShowNavi.value!="4"){ rvalue += ",FS:NaviCSS=" + document.ListLabel.NaviCSS.value; }
if(document.ListLabel.ShowNavi.value=="4")
{ if(document.ListLabel.NaviPic.value!=""){ rvalue += ",FS:NaviPic=" + document.ListLabel.NaviPic.value; } }
if(document.ListLabel.CSS.value!=""){ rvalue += ",FS:CSS=" + document.ListLabel.CSS.value; }
rvalue += "][/FS:Loop]";
if(CheckStr)
parent.getValue(rvalue);
break;
case "ConstrNews":
if(checkIsNumber(document.ListLabel.Number,document.getElementById("spanNumber"),"循环数目只能为正整数"))
CheckStr=false;
if(checkIsNumber(document.ListLabel.Cols,document.getElementById("spanCols"),"每行显示条数只能为正整数"))
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(checkIsNumber(document.ListLabel.ShowDateNumer,document.getElementById("spanShowDateNumer"),"显示多少天天数只能为正整数"))
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=" + document.ListLabel.LabelType.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.Number.value!=""){ rvalue += ",FS:Number=" + document.ListLabel.Number.value; }
if(document.ListLabel.ClassId.value!="") { rvalue += ",FS:ClassID=" + document.ListLabel.ClassId.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 += ",FS:isDiv=" + document.ListLabel.isDiv.value; }
if(document.ListLabel.isDiv.value=="true")
{
if(document.ListLabel.ulID.value!=""){ rvalue += ",FS:ulID=" + document.ListLabel.ulID.value; }
if(document.ListLabel.ulClass.value!=""){ rvalue += ",FS:ulClass=" + document.ListLabel.ulClass.value; }
}
if(document.ListLabel.isPic.value!=""){ rvalue += ",FS:isPic=" + document.ListLabel.isPic.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.NaviNumber.value!=""){ rvalue += ",FS:NaviNumber=" + document.ListLabel.NaviNumber.value; }
if(document.ListLabel.SubNews.value!=""){ rvalue += ",FS:SubNews=" + document.ListLabel.SubNews.value; }
if(document.ListLabel.ShowDateNumer.value!=""){ rvalue += ",FS:ShowDateNumer=" + document.ListLabel.ShowDateNumer.value; }
if(document.ListLabel.ShowNavi.value!=""){ rvalue += ",FS:ShowNavi=" + document.ListLabel.ShowNavi.value; }
if(document.ListLabel.ShowNavi.value!=""&&document.ListLabel.ShowNavi.value!="4"){ rvalue += ",FS:NaviCSS=" + document.ListLabel.NaviCSS.value; }
if(document.ListLabel.ShowNavi.value=="4")
{ if(document.ListLabel.NaviPic.value!=""){ rvalue += ",FS:NaviPic=" + document.ListLabel.NaviPic.value; } }
rvalue += "]" + temproot + "[/FS:Loop]";
if(CheckStr)
parent.getValue(rvalue);
break;
case "GroupMember":
if(checkIsNumber(document.ListLabel.Number,document.getElementById("spanNumber"),"循环数目只能为正整数"))
CheckStr=false;
if(checkIsNumber(document.ListLabel.Cols,document.getElementById("spanCols"),"每行显示条数只能为正整数"))
CheckStr=false;
if(checkIsNumber(document.ListLabel.TitleNumer,document.getElementById("spanTitleNumer"),"标题显示字数只能为正整数"))
CheckStr=false;
rvalue = "[FS:Loop,FS:SiteID=<%Response.Write(APIID); %>,FS:LabelType=" + document.ListLabel.LabelType.value;
if(document.ListLabel.Number.value!=""){ rvalue += ",FS:Number=" + document.ListLabel.Number.value; }
if(document.ListLabel.ShowNavi.value!=""){ rvalue += ",FS:ShowNavi=" + document.ListLabel.ShowNavi.value; }
if(document.ListLabel.ShowNavi.value!=""&&document.ListLabel.ShowNavi.value!="4"){ rvalue += ",FS:NaviCSS=" + document.ListLabel.NaviCSS.value; }
if(document.ListLabel.ShowNavi.value=="4")
{ if(document.ListLabel.NaviPic.value!=""){ rvalue += ",FS:NaviPic=" + document.ListLabel.NaviPic.value; } }
if(document.ListLabel.Cols.value!=""){ rvalue += ",FS:Cols=" + document.ListLabel.Cols.value; }
if(document.ListLabel.GroupType.value!=""){ rvalue += ",FS:GroupType=" + document.ListLabel.GroupType.value; }
if(document.ListLabel.isDiv.value!=""){ rvalue += ",FS:isDiv=" + document.ListLabel.isDiv.value; }
if(document.ListLabel.CSS.value!=""){ rvalue += ",FS:CSS=" + document.ListLabel.CSS.value; }
if(document.ListLabel.isDiv.value=="true")
{
if(document.ListLabel.ulID.value!=""){ rvalue += ",FS:ulID=" + document.ListLabel.ulID.value; }
if(document.ListLabel.ulClass.value!=""){ rvalue += ",FS:ulClass=" + document.ListLabel.ulClass.value; }
}
if(document.ListLabel.TitleNumer.value!=""){ rvalue += ",FS:TitleNumer=" + document.ListLabel.TitleNumer.value; }
if(document.ListLabel.ShowM.value!=""){ rvalue += ",FS:ShowM=" + document.ListLabel.ShowM.value; }
rvalue += "][/FS:Loop]";
if(CheckStr)
parent.getValue(rvalue);
break;
default:
parent.getValue("");
break;
}
}
function getValue(value)
{
var oEditor = FCKeditorAPI.GetInstance("UserDefined");
if (oEditor.EditMode==FCK_EDITMODE_WYSIWYG)
{
oEditor.InsertHtml(value);
}
else
{
return false;
}
}
function setValue(value)
{
var oEditor = FCKeditorAPI.GetInstance("UserDefined");
if (oEditor.EditMode==FCK_EDITMODE_WYSIWYG)
{
oEditor.InsertHtml('{FS:define='+value+'} ');
}
else
{
return false;
}
}
</script>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?