📄 searchfluctuation.js
字号:
}
else
{
DisabledSearchFluctuation(false);
document.all.DateArea.style.display="";
TextArr=new Array('商品名称','商品介绍','商品关键字','厂商','价格')
}
break;
case 'Movie':
if (SearchMoviePower=='False') //搜索影片权限检查
{
DisabledSearchFluctuation(true);
return;
}
else
{
DisabledSearchFluctuation(false);
document.all.DateArea.style.display="";
TextArr=new Array('影片名称','影片介绍','影片关键字','主要演员','添加者')
}
break;
case 'Supply':
if (SearchSupplyPower=='False') //搜索影片权限检查
{
DisabledSearchFluctuation(true);
return;
}
else
{
DisabledSearchFluctuation(false);
document.all.DateArea.style.display="";
TextArr=new Array('信息主题','信息介绍','添加者')
}
break;
case 'Special':
if (SearchSpecialPower=='False') //搜索专题权限检查
{
DisabledSearchFluctuation(true);
return;
}
else
{
DisabledSearchFluctuation(false);
document.all.DateArea.style.display="";
TextArr=new Array('专题名称','简要说明')
}
break;
case 'Link':
if (SearchLinkPower=='False') //搜索友情链接站点权限检查
{
DisabledSearchFluctuation(true);
return;
}
else
{
DisabledSearchFluctuation(false);
document.all.DateArea.style.display="";
TextArr=new Array('站点名称','站点描述')
}
break;
case 'SysLabel':
if (SearchSysLabelPower=='False') //搜索系统标签权限检查
{
DisabledSearchFluctuation(true);
return;
}
else
{
DisabledSearchFluctuation(false);
document.all.DateArea.style.display="";
TextArr=new Array('系统标签名称','系统标签描述')
}
break;
case 'DIYFunctionLabel':
if (SearchDIYFunctionLabelPower=='False') //搜索自定义函数标签权限检查
{
DisabledSearchFluctuation(true);
return;
}
else
{
DisabledSearchFluctuation(false);
document.all.DateArea.style.display="";
TextArr=new Array('自定义函数标签名称','自定义函数标签描述')
}
break;
case 'FreeLabel':
if (SearchFreeLabelPower=='False') //搜索自定义静态标签权限检查
{
DisabledSearchFluctuation(true);
return;
}
else
{
document.all.DateArea.style.display="";
TextArr=new Array('自定义静态标签名称','自定义静态标签描述','自定义静态标签内容')
}
break;
case 'SysJS':
if (SearchSysJSPower=='False') //搜索系统JS权限检查
{
DisabledSearchFluctuation(true);
return;
}
else
{
document.all.DateArea.style.display="";
TextArr=new Array('系统JS 名称','系统JS 描述','系统JS 文件名')
}
break;
case 'FreeJS' :
if (SearchFreeJSPower=='False') //搜索自由JS权限检查
{
DisabledSearchFluctuation(true);
return;
}
else
{
document.all.DateArea.style.display="";
TextArr=new Array('自由JS 名称','自由JS 描述','自由JS 文件名')
}
break;
case 'Manager':
if (SearchAdminPower=='False') //搜索管理员权限检查
{
DisabledSearchFluctuation(true);
return;
}
else
{
DisabledSearchFluctuation(false);
document.all.DateArea.style.display="none";
TextArr=new Array('管理员名称','管理员简介')
}
break;
}
for (var i=0;i<TextArr.length;++i)
document.all.SearchType.options[document.all.SearchType.length] = new Option(TextArr[i], i);
}
function setstatus(Obj)
{var today=new Date()
if (Obj.nextSibling.style.display=='none')
{
Obj.nextSibling.style.display='';
document.all.StartDate.value=today.getYear()+'-'+eval(today.getMonth()+1)+'-'+today.getDate();
}
else
{
Obj.nextSibling.style.display='none';
document.all.StartDate.value='';
}
if (Obj.nextSibling.nextSibling.style.display=='none')
{
Obj.nextSibling.nextSibling.style.display='';
document.all.EndDate.value=today.getYear()+'-'+eval(today.getMonth()+1)+'-'+today.getDate();
}
else
{
Obj.nextSibling.nextSibling.style.display='none';
document.all.EndDate.value='';
}
}
function SearchFormSubmit()
{ var form=document.forms[0];
if (form.elements[0].value=='')
{
alert('请输入关键字!')
form.elements[0].focus();
return false;
}
switch (form.elements[1].value)
{
case 'Article':
form.action="Admin_Article.asp";
parent.frames['BottomFrame'].location.href='Split.asp?OpStr=文章管理 >> <font color=red>搜索文章结果</font>&ButtonSymbol=ArticleSearch';
break;
case 'Picture':
form.action="Admin_Picture.asp";
parent.frames['BottomFrame'].location.href='Split.asp?OpStr=图片管理 >> <font color=red>搜索图片结果</font>&ButtonSymbol=PictureSearch';
break;
case 'DownLoad':
form.action="Admin_Down.asp";
parent.frames['BottomFrame'].location.href='Split.asp?OpStr=下载管理 >> <font color=red>搜索下载结果</font>&ButtonSymbol=DownSearch';
break;
case 'Flash':
form.action="Admin_Flash.asp";
parent.frames['BottomFrame'].location.href='Split.asp?OpStr=动漫管理 >> <font color=red>搜索Flash结果</font>&ButtonSymbol=FlashSearch';
break;
case 'Shop':
form.action="Admin_Shop.asp";
parent.frames['BottomFrame'].location.href='Split.asp?OpStr=商城管理 >> <font color=red>搜索商品结果</font>&ButtonSymbol=ProductSearch';
break;
case 'Movie':
form.action="Admin_Movie.asp";
parent.frames['BottomFrame'].location.href='Split.asp?OpStr=影视管理 >> <font color=red>搜索影片结果</font>&ButtonSymbol=MovieSearch';
break;
case 'Supply':
form.action="Admin_GQ.asp";
parent.frames['BottomFrame'].location.href='Split.asp?OpStr=供求管理 >> <font color=red>搜索信息结果</font>&ButtonSymbol=Disabled';
break;
case 'Special':
form.action="Admin_Special.asp?ChannelID="+ChannelID;
parent.frames['BottomFrame'].location.href='Split.asp?OpStr=专题管理 >> <font color=red>搜索专题结果</font>&ButtonSymbol=SpecialSearch';
break;
case 'Link':
form.action="Admin_FriendLink.asp";
parent.frames['BottomFrame'].location.href='Split.asp?OpStr=常规管理 >> 友情链接管理 >> <font color=red>搜索友情链接站点结果</font>&ButtonSymbol=LinkSearch';
break;
case 'SysLabel' :
form.action="Include/Label_Main.asp?LabelType=0";
parent.frames['BottomFrame'].location.href='Split.asp?OpStr=标签管理 >> <font color=red>搜索系统函数标签结果</font>&ButtonSymbol=SysLabelSearch';
break;
case 'DIYFunctionLabel' :
form.action="Include/Label_Main.asp?LabelType=5";
parent.frames['BottomFrame'].location.href='Split.asp?OpStr=标签管理 >> <font color=red>搜索自定义函数标签结果</font>&ButtonSymbol=DIYFunctionSearch';
break;
case 'FreeLabel' :
form.action="Include/Label_Main.asp?LabelType=1";
parent.frames['BottomFrame'].location.href='Split.asp?OpStr=标签管理 >> <font color=red>搜索自由标签结果</font>&ButtonSymbol=FreeLabelSearch';
break;
case 'SysJS' :
form.action="Include/JS_Main.asp?JSType=0";
parent.frames['BottomFrame'].location.href='Split.asp?OpStr=JS管理 >> <font color=red>搜索系统JS结果</font>&ButtonSymbol=SysJSSearch';
break;
case 'FreeJS' :
form.action="Include/JS_Main.asp?JSType=1";
parent.frames['BottomFrame'].location.href='Split.asp?OpStr=JS管理 >> <font color=red>搜索自由JS结果</font>&ButtonSymbol=FreeJSSearch';
break;
case 'Manager' :
form.action="Admin_Admin.asp";
parent.frames['BottomFrame'].location.href='Split.asp?OpStr=管理员管理 >> <font color=red>搜索管理员结果</font>&ButtonSymbol=ManagerSearch';
break;
}
form.submit();
}
function DisabledSearchFluctuation(Flag)
{ if (Flag==true)
document.all.KeyWord.value='对不起,权限不足!';
var AllBtnArray=document.body.getElementsByTagName('INPUT'),CurrObj=null;
for (var i=0;i<AllBtnArray.length;i++)
{
CurrObj=AllBtnArray[i];
CurrObj.disabled=Flag;
}
AllBtnArray=document.body.getElementsByTagName('SELECT'),CurrObj=null;
for (var i=0;i<AllBtnArray.length;i++)
{
CurrObj=AllBtnArray[i];
CurrObj.disabled=Flag;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -