You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
restaurant/images/SearchFluctuation.js

502 lines
18 KiB

//Search For Kesion CMS
//Version 3.0
//Powered By Kesion.Com
var normal='slategray'; //color;
var zindex=10000; //z-index;
var openTF=false;
var width=165,height=window.document.body.offsetHeight-5;
var left=0,top=0,title='<27><><EFBFBD><EFBFBD>С<EFBFBD><D0A1><EFBFBD><EFBFBD>';
var SearchBodyStr=''
+'<table width="100%" border="0" cellspacing="0" cellpadding="0">'
+'<form name="searchform" target="MainFrame" method="post">'
+'<tr> '
+'<td height="25"><strong><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȫ<EFBFBD><C8AB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></strong></td>'
+' </tr>'
+'<tr><td height="25">ȫ<><C8AB><EFBFBD>򲿷ֹؼ<D6B9><D8BC><EFBFBD></td></tr>'
+'<tr><td height="25"><input style="width:95%" type="text" name="KeyWord"></td></tr>'
+' <tr><td height="25"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Χ</td></tr>'
+' <tr><td height="25"> <select style="width:95%" name="SearchArea" onchange="SetSearchTypeOption(this.value)">'
+' </select></td></tr>'
+'<tr><td height="25"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td></tr>'
+'<tr><td height="25"><select style="width:95%" name="SearchType">'
+'</select></td></tr>'
+' <tr id="DateArea" onclick="setstatus(this)" style="cursor:hand"><td height="25"><strong>ʲôʱ<C3B4><CAB1><EFBFBD>޸ĵ<DEB8>?</strong></td></tr>'
+' <tr style="display:none"><td height="25"><3E><>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD><input type="text" readonly style="width:80%" name="StartDate" id="StartDate">'
+' <span style="cursor:hand" onClick=OpenThenSetValue("Include/DateDialog.asp",160,170,window,document.all.StartDate);document.all.StartDate.focus();><img src="Images/date.gif" width="20" height="20" border="0" align="absmiddle" title="ѡ<><D1A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"></span></td></tr>'
+' <tr style="display:none"><td height="25"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><input type="text" readonly style="width:80%" name="EndDate" id="EndDate">'
+' <span style="cursor:hand" onClick=OpenThenSetValue("Include/DateDialog.asp",160,170,window,document.all.EndDate);document.all.EndDate.focus();><img src="Images/date.gif" width="20" height="20" border="0" align="absmiddle" title="ѡ<><D1A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"></span></td></tr>'
+' <tr><td height="40" align="center"><input type="submit" name="SearchButton" value="<22><>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD>" onclick="return(SearchFormSubmit())"></td></tr>'
+'</form>'
+' <tr><td><strong>ʹ<><CAB9>˵<EFBFBD><CBB5>:</strong></td></tr>'
+' <tr><td> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ñ<EFBFBD><C3B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>¡<EFBFBD>ͼƬ<CDBC><C6AC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Flash<73><68>ר<EFBFBD><EFBFBD><E2A1A2>ǩ<EFBFBD><C7A9>JS<4A><53>,<2C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ŀ¼<C4BF><C2BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƶ<EFBFBD><C6B5><EFBFBD><EFBFBD><EFBFBD>ơ<EFBFBD><C6A1><EFBFBD>Ŀ<EFBFBD><C4BF><EFBFBD>ƣ<EFBFBD><C6A3><EFBFBD>ǩĿ¼<C4BF><C2BC></td></tr>'
+' <tr><td> <20><> <20><> <font color=red>Ctrl+F</font> <20><><EFBFBD>Կ<EFBFBD><D4BF>ٽ<EFBFBD><D9BD>д򿪻<D0B4><F2BFAABB>ر<EFBFBD><D8B1><EFBFBD><EFBFBD><EFBFBD>С<EFBFBD><D0A1><EFBFBD><EFBFBD></td></tr>'
+'</table>'
var str=""
+"<div id='SearchBox' "
+ "style='display:none;"
+ "z-index:" + zindex + ";"
+ "width:" + width + ";"
+ "height:" + height + ";"
+ "left:" + left + ";"
+ "top:" + top + ";"
+ "background-color:" + normal + ";"
+ "color:black;"
+ "font-size:12px;"
+ "font-family:Verdana, Arial, Helvetica, sans-serif;"
+ "position:absolute;"
+ "cursor:default;"
+ "border:3px solid " + normal + ";"
+ "'"
+ ">"
+ "<div "
+ "style='"
+ "background-color:" + normal + ";"
+ "width:" + (width) + ";"
+ "height:23;"
+ "color:white;"
+ "' "
+ ">"
+ "<span style='width:" + (width-2*12-4) + ";padding-left:3px;'>" + title + "</span>"
+ "<span id='Close' style='width:20;border-width:0px;color:white;font-family:webdings;' onclick='CloseSearchBox(this)'>r</span>"
+ "</div>"
+ "<div style='"
+ "width:158;overflow:auto;"
+ "height:" + (height-20-4) + ";"
+ "background-color:white;"
+ "line-height:14px;"
+ "word-break:break-all;"
+ "padding:3px;"
+ "'>" + SearchBodyStr + "</div>"
+ "</div>"
+ "<div style='display:none;"
+ "width:" + width + ";"
+ "height:" + height + ";"
+ "top:" + top + ";"
+ "left:" + left + ";"
+ "z-index:" + (zindex-1) + ";"
+ "position:absolute;"
+ "background-color:black;"
+ "filter:alpha(opacity=40);"
+ "'></div>";
//<2F>ر<EFBFBD>;
function CloseSearchBox(el)
{ if (el.id=='Close')
{ var twin = el.parentNode.parentNode;
var shad = twin.nextSibling;
twin.style.display = "none";
shad.style.display = "none";
openTF=false;
SearchBodyStr=null;
str=null;
}
}
function initial()
{
if (!openTF)
{
document.body.insertAdjacentHTML("beforeEnd",str);
openTF=true;
}
}
//<2F><>ʼ<EFBFBD><CABC>;
function initializeSearch(SearchArea)
{
initial();
initialSearchAreaOption(SearchArea);
if (document.all.SearchBox.style.display=='none')
{
document.all.SearchBox.style.display='';
if (document.forms[0].disabled==false) document.forms[0].focus();
}
else
document.all.SearchBox.style.display='none';
}
function initialSearchAreaOption(SearchArea)
{ var EF=false;
var TextArr=new Array('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>','ͼƬ<CDBC><C6AC><EFBFBD><EFBFBD>','<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>','<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>','<27>̳<EFBFBD><CCB3><EFBFBD><EFBFBD><EFBFBD>',<><D3B0><EFBFBD><EFBFBD><EFBFBD><EFBFBD>','<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ',<><D7A8><EFBFBD><EFBFBD><EFBFBD><EFBFBD>','<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>վ<EFBFBD><D5BE>','ϵͳ<CFB5><CDB3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ǩ','<27>Զ<EFBFBD><D4B6><EFBFBD><E5BAAF><EFBFBD><EFBFBD>ǩ','<27>Զ<EFBFBD><D4B6>徲̬<E5BEB2><CCAC>ǩ','ϵͳ JS','<27><><EFBFBD><EFBFBD> JS','<27><><EFBFBD><EFBFBD>Ա')
var valueArr=new Array('Article','Picture','DownLoad','Flash','Shop','Movie','Supply','Special','Link','SysLabel','DIYFunctionLabel','FreeLabel','SysJS','FreeJS','Manager')
for(var i=0;i<valueArr.length;++i)
if (SearchArea==valueArr[i])
{
EF=true;
break;
}
if (!EF) return false;
document.all.KeyWord.value='';
document.all.SearchArea.length=0;
for (var i=0;i<TextArr.length;++i)
{
document.all.SearchArea.options[document.all.SearchArea.length] = new Option(TextArr[i],valueArr[i]);
if (SearchArea==valueArr[i])
document.all.SearchArea.options(i).selected=true;
}
//<2F><><EFBFBD><EFBFBD>Ȩ<EFBFBD>޼<EFBFBD><DEBC><EFBFBD>,<2C><>û<EFBFBD><C3BB>Ȩ<EFBFBD>޵<EFBFBD><DEB5><EFBFBD><EFBFBD><EFBFBD>ģ<EFBFBD><C4A3>,<2C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
var n=0;
for (var i=0;i<TextArr.length;++i)
{ var removeTF=false;
if (valueArr[i]!=SearchArea)
{ if (valueArr[i]=='Article' && SearchArticlePower=='False')
removeTF=true;
if (valueArr[i]=='Picture' && SearchPicturePower=='False')
removeTF=true;
if (valueArr[i]=='DownLoad' && SearchDownLoadPower=='False')
removeTF=true;
if (valueArr[i]=='Flash' && SearchFlashPower=='False')
removeTF=true;
if (valueArr[i]=='Shop' && SearchShopPower=='False')
removeTF=true;
if (valueArr[i]=='Movie' && SearchMoviePower=='False')
removeTF=true;
if (valueArr[i]=='Supply' && SearchSupplyPower=='False')
removeTF=true;
if (valueArr[i]=='Special' && SearchSpecialPower=='False')
removeTF=true;
if (valueArr[i]=='Link' && SearchLinkPower=='False')
removeTF=true;
if (valueArr[i]=='SysLabel' && SearchSysLabelPower=='False')
removeTF=true;
if (valueArr[i]=='DIYFunctionLabel' && SearchDIYFunctionLabelPower=='False')
removeTF=true;
if (valueArr[i]=='FreeLabel' && SearchFreeLabelPower=='False')
removeTF=true;
if (valueArr[i]=='SysJS' && SearchSysJSPower=='False')
removeTF=true;
if (valueArr[i]=='FreeJS' && SearchFreeJSPower=='False')
removeTF=true;
if (valueArr[i]=='Manager' && SearchAdminPower=='False')
removeTF=true;
}
if (removeTF==true)
{document.all.SearchArea.options.remove(i-n);
n++;
}
}
SetSearchTypeOption(SearchArea);
}
function SetSearchTypeOption(AreaType)
{ //Remove all Option
var TextArr=new Array();
document.all.SearchType.options.length=0
switch (AreaType)
{
case 'Article':
if (SearchArticlePower=='False') //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȩ<EFBFBD>޼<EFBFBD><DEBC><EFBFBD>
{
DisabledSearchFluctuation(true);
return;
}
else
{
DisabledSearchFluctuation(false);
document.all.DateArea.style.display="";
TextArr=new Array('<27><><EFBFBD><EFBFBD>(<28><>)<29><><EFBFBD><EFBFBD>','<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>','<27><><EFBFBD>¹ؼ<C2B9><D8BC><EFBFBD>','<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>','<27><><EFBFBD><EFBFBD>¼<EFBFBD><C2BC>')
}
break;
case 'Special':
if (SearchSpecialPower=='False') //<2F><><EFBFBD><EFBFBD>ר<EFBFBD><D7A8>Ȩ<EFBFBD>޼<EFBFBD><DEBC><EFBFBD>
{
DisabledSearchFluctuation(true);
return;
}
else
{
DisabledSearchFluctuation(false);
document.all.DateArea.style.display="";
TextArr=new Array(<><D7A8><EFBFBD><EFBFBD><EFBFBD><EFBFBD>','<27><>Ҫ˵<D2AA><CBB5>')
}
break;
case 'Picture':
if (SearchPicturePower=='False') //<2F><><EFBFBD><EFBFBD>ͼƬȨ<C6AC>޼<EFBFBD><DEBC><EFBFBD>
{
DisabledSearchFluctuation(true);
return;
}
else
{
DisabledSearchFluctuation(false);
document.all.DateArea.style.display="";
TextArr=new Array('ͼƬ<CDBC><C6AC><EFBFBD><EFBFBD>','ͼƬ<CDBC><C6AC><EFBFBD><EFBFBD>','ͼƬ<CDBC>ؼ<EFBFBD><D8BC><EFBFBD>','ͼƬ<CDBC><C6AC><EFBFBD><EFBFBD>','ͼƬ¼<C6AC><C2BC>')
}
break;
case 'DownLoad':
if (SearchDownLoadPower=='False') //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȩ<EFBFBD>޼<EFBFBD><DEBC><EFBFBD>
{
DisabledSearchFluctuation(true);
return;
}
else
{
DisabledSearchFluctuation(false);
document.all.DateArea.style.display="";
TextArr=new Array('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>','<27><><EFBFBD>ؼ<EFBFBD><D8BC><EFBFBD>','<27><><EFBFBD>عؼ<D8B9><D8BC><EFBFBD>','<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>','<27><><EFBFBD><EFBFBD>¼<EFBFBD><C2BC>')
}
break;
case 'Flash':
if (SearchFlashPower=='False') //<2F><><EFBFBD><EFBFBD>FlashȨ<68>޼<EFBFBD><DEBC><EFBFBD>
{
DisabledSearchFluctuation(true);
return;
}
else
{
DisabledSearchFluctuation(false);
document.all.DateArea.style.display="";
TextArr=new Array('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>','<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>','<27><><EFBFBD><EFBFBD><EFBFBD>ؼ<EFBFBD><D8BC><EFBFBD>','<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>','<27><><EFBFBD><EFBFBD>¼<EFBFBD><C2BC>')
}
break;
case 'Shop':
if (SearchShopPower=='False') //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƷȨ<C6B7>޼<EFBFBD><DEBC><EFBFBD>
{
DisabledSearchFluctuation(true);
return;
}
else
{
DisabledSearchFluctuation(false);
document.all.DateArea.style.display="";
TextArr=new Array('<27><>Ʒ<EFBFBD><C6B7><EFBFBD><EFBFBD>','<27><>Ʒ<EFBFBD><C6B7><EFBFBD><EFBFBD>','<27><>Ʒ<EFBFBD>ؼ<EFBFBD><D8BC><EFBFBD>','<27><><EFBFBD><EFBFBD>','<27>۸<EFBFBD>')
}
break;
case 'Movie':
if (SearchMoviePower=='False') //<2F><><EFBFBD><EFBFBD>ӰƬȨ<C6AC>޼<EFBFBD><DEBC><EFBFBD>
{
DisabledSearchFluctuation(true);
return;
}
else
{
DisabledSearchFluctuation(false);
document.all.DateArea.style.display="";
TextArr=new Array('ӰƬ<D3B0><C6AC><EFBFBD><EFBFBD>','ӰƬ<D3B0><C6AC><EFBFBD><EFBFBD>','ӰƬ<D3B0>ؼ<EFBFBD><D8BC><EFBFBD>','<27><>Ҫ<EFBFBD><D2AA>Ա','<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>')
}
break;
case 'Supply':
if (SearchSupplyPower=='False') //<2F><><EFBFBD><EFBFBD>ӰƬȨ<C6AC>޼<EFBFBD><DEBC><EFBFBD>
{
DisabledSearchFluctuation(true);
return;
}
else
{
DisabledSearchFluctuation(false);
document.all.DateArea.style.display="";
TextArr=new Array('<27><>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD>','<27><>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD>','<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>')
}
break;
case 'Special':
if (SearchSpecialPower=='False') //<2F><><EFBFBD><EFBFBD>ר<EFBFBD><D7A8>Ȩ<EFBFBD>޼<EFBFBD><DEBC><EFBFBD>
{
DisabledSearchFluctuation(true);
return;
}
else
{
DisabledSearchFluctuation(false);
document.all.DateArea.style.display="";
TextArr=new Array(<><D7A8><EFBFBD><EFBFBD><EFBFBD><EFBFBD>','<27><>Ҫ˵<D2AA><CBB5>')
}
break;
case 'Link':
if (SearchLinkPower=='False') //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>վ<EFBFBD><D5BE>Ȩ<EFBFBD>޼<EFBFBD><DEBC><EFBFBD>
{
DisabledSearchFluctuation(true);
return;
}
else
{
DisabledSearchFluctuation(false);
document.all.DateArea.style.display="";
TextArr=new Array(<><D5BE><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',<><D5BE><EFBFBD><EFBFBD><EFBFBD><EFBFBD>')
}
break;
case 'SysLabel':
if (SearchSysLabelPower=='False') //<2F><><EFBFBD><EFBFBD>ϵͳ<CFB5><CDB3>ǩȨ<C7A9>޼<EFBFBD><DEBC><EFBFBD>
{
DisabledSearchFluctuation(true);
return;
}
else
{
DisabledSearchFluctuation(false);
document.all.DateArea.style.display="";
TextArr=new Array('ϵͳ<CFB5><CDB3>ǩ<EFBFBD><C7A9><EFBFBD><EFBFBD>','ϵͳ<CFB5><CDB3>ǩ<EFBFBD><C7A9><EFBFBD><EFBFBD>')
}
break;
case 'DIYFunctionLabel':
if (SearchDIYFunctionLabelPower=='False') //<2F><><EFBFBD><EFBFBD><EFBFBD>Զ<EFBFBD><D4B6><EFBFBD><E5BAAF><EFBFBD><EFBFBD>ǩȨ<C7A9>޼<EFBFBD><DEBC><EFBFBD>
{
DisabledSearchFluctuation(true);
return;
}
else
{
DisabledSearchFluctuation(false);
document.all.DateArea.style.display="";
TextArr=new Array('<27>Զ<EFBFBD><D4B6><EFBFBD><E5BAAF><EFBFBD><EFBFBD>ǩ<EFBFBD><C7A9><EFBFBD><EFBFBD>','<27>Զ<EFBFBD><D4B6><EFBFBD><E5BAAF><EFBFBD><EFBFBD>ǩ<EFBFBD><C7A9><EFBFBD><EFBFBD>')
}
break;
case 'FreeLabel':
if (SearchFreeLabelPower=='False') //<2F><><EFBFBD><EFBFBD><EFBFBD>Զ<EFBFBD><D4B6>徲̬<E5BEB2><CCAC>ǩȨ<C7A9>޼<EFBFBD><DEBC><EFBFBD>
{
DisabledSearchFluctuation(true);
return;
}
else
{
document.all.DateArea.style.display="";
TextArr=new Array('<27>Զ<EFBFBD><D4B6>徲̬<E5BEB2><CCAC>ǩ<EFBFBD><C7A9><EFBFBD><EFBFBD>','<27>Զ<EFBFBD><D4B6>徲̬<E5BEB2><CCAC>ǩ<EFBFBD><C7A9><EFBFBD><EFBFBD>','<27>Զ<EFBFBD><D4B6>徲̬<E5BEB2><CCAC>ǩ<EFBFBD><C7A9><EFBFBD><EFBFBD>')
}
break;
case 'SysJS':
if (SearchSysJSPower=='False') //<2F><><EFBFBD><EFBFBD>ϵͳJSȨ<53>޼<EFBFBD><DEBC><EFBFBD>
{
DisabledSearchFluctuation(true);
return;
}
else
{
document.all.DateArea.style.display="";
TextArr=new Array('ϵͳJS <20><><EFBFBD><EFBFBD>','ϵͳJS <20><><EFBFBD><EFBFBD>','ϵͳJS <20>ļ<EFBFBD><C4BC><EFBFBD>')
}
break;
case 'FreeJS' :
if (SearchFreeJSPower=='False') //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>JSȨ<53>޼<EFBFBD><DEBC><EFBFBD>
{
DisabledSearchFluctuation(true);
return;
}
else
{
document.all.DateArea.style.display="";
TextArr=new Array('<27><><EFBFBD><EFBFBD>JS <20><><EFBFBD><EFBFBD>','<27><><EFBFBD><EFBFBD>JS <20><><EFBFBD><EFBFBD>','<27><><EFBFBD><EFBFBD>JS <20>ļ<EFBFBD><C4BC><EFBFBD>')
}
break;
case 'Manager':
if (SearchAdminPower=='False') //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ԱȨ<D4B1>޼<EFBFBD><DEBC><EFBFBD>
{
DisabledSearchFluctuation(true);
return;
}
else
{
DisabledSearchFluctuation(false);
document.all.DateArea.style.display="none";
TextArr=new Array('<27><><EFBFBD><EFBFBD>Ա<EFBFBD><D4B1><EFBFBD><EFBFBD>','<27><><EFBFBD><EFBFBD>Ա<EFBFBD><D4B1><EFBFBD><EFBFBD>')
}
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('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ؼ<EFBFBD><D8BC><EFBFBD>!')
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=<3D><><EFBFBD>¹<EFBFBD><C2B9><EFBFBD> >> <font color=red><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>½<EFBFBD><C2BD><EFBFBD></font>&ButtonSymbol=ArticleSearch';
break;
case 'Picture':
form.action="Admin_Picture.asp";
parent.frames['BottomFrame'].location.href='Split.asp?OpStr=ͼƬ<CDBC><C6AC><EFBFBD><EFBFBD> >> <font color=red><3E><><EFBFBD><EFBFBD>ͼƬ<CDBC><C6AC><EFBFBD><EFBFBD></font>&ButtonSymbol=PictureSearch';
break;
case 'DownLoad':
form.action="Admin_Down.asp";
parent.frames['BottomFrame'].location.href='Split.asp?OpStr=<3D><><EFBFBD>ع<EFBFBD><D8B9><EFBFBD> >> <font color=red><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ؽ<EFBFBD><D8BD><EFBFBD></font>&ButtonSymbol=DownSearch';
break;
case 'Flash':
form.action="Admin_Flash.asp";
parent.frames['BottomFrame'].location.href='Split.asp?OpStr=<3D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> >> <font color=red><3E><><EFBFBD><EFBFBD>Flash<73><68><EFBFBD><EFBFBD></font>&ButtonSymbol=FlashSearch';
break;
case 'Shop':
form.action="Admin_Shop.asp";
parent.frames['BottomFrame'].location.href='Split.asp?OpStr=<3D>̳ǹ<CCB3><C7B9><EFBFBD> >> <font color=red><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʒ<EFBFBD><C6B7><EFBFBD><EFBFBD></font>&ButtonSymbol=ProductSearch';
break;
case 'Movie':
form.action="Admin_Movie.asp";
parent.frames['BottomFrame'].location.href='Split.asp?OpStr=Ӱ<>ӹ<EFBFBD><D3B9><EFBFBD> >> <font color=red><3E><><EFBFBD><EFBFBD>ӰƬ<D3B0><C6AC><EFBFBD><EFBFBD></font>&ButtonSymbol=MovieSearch';
break;
case 'Supply':
form.action="Admin_GQ.asp";
parent.frames['BottomFrame'].location.href='Split.asp?OpStr=<3D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> >> <font color=red><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD></font>&ButtonSymbol=Disabled';
break;
case 'Special':
form.action="Admin_Special.asp?ChannelID="+ChannelID;
parent.frames['BottomFrame'].location.href='Split.asp?OpStr=ר<><D7A8><EFBFBD><EFBFBD><EFBFBD><EFBFBD> >> <font color=red><3E><><EFBFBD><EFBFBD>ר<EFBFBD><D7A8><EFBFBD><EFBFBD><EFBFBD><EFBFBD></font>&ButtonSymbol=SpecialSearch';
break;
case 'Link':
form.action="Admin_FriendLink.asp";
parent.frames['BottomFrame'].location.href='Split.asp?OpStr=<3D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> >> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ӹ<EFBFBD><D3B9><EFBFBD> >> <font color=red><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>վ<EFBFBD><D5BE><EFBFBD><EFBFBD><EFBFBD><EFBFBD></font>&ButtonSymbol=LinkSearch';
break;
case 'SysLabel' :
form.action="Include/Label_Main.asp?LabelType=0";
parent.frames['BottomFrame'].location.href='Split.asp?OpStr=<3D><>ǩ<EFBFBD><C7A9><EFBFBD><EFBFBD> >> <font color=red><3E><><EFBFBD><EFBFBD>ϵͳ<CFB5><CDB3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ǩ<EFBFBD><C7A9><EFBFBD><EFBFBD></font>&ButtonSymbol=SysLabelSearch';
break;
case 'DIYFunctionLabel' :
form.action="Include/Label_Main.asp?LabelType=5";
parent.frames['BottomFrame'].location.href='Split.asp?OpStr=<3D><>ǩ<EFBFBD><C7A9><EFBFBD><EFBFBD> >> <font color=red><3E><><EFBFBD><EFBFBD><EFBFBD>Զ<EFBFBD><D4B6><EFBFBD><E5BAAF><EFBFBD><EFBFBD>ǩ<EFBFBD><C7A9><EFBFBD><EFBFBD></font>&ButtonSymbol=DIYFunctionSearch';
break;
case 'FreeLabel' :
form.action="Include/Label_Main.asp?LabelType=1";
parent.frames['BottomFrame'].location.href='Split.asp?OpStr=<3D><>ǩ<EFBFBD><C7A9><EFBFBD><EFBFBD> >> <font color=red><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɱ<EFBFBD>ǩ<EFBFBD><C7A9><EFBFBD><EFBFBD></font>&ButtonSymbol=FreeLabelSearch';
break;
case 'SysJS' :
form.action="Include/JS_Main.asp?JSType=0";
parent.frames['BottomFrame'].location.href='Split.asp?OpStr=JS<4A><53><EFBFBD><EFBFBD> >> <font color=red><3E><><EFBFBD><EFBFBD>ϵͳJS<4A><53><EFBFBD><EFBFBD></font>&ButtonSymbol=SysJSSearch';
break;
case 'FreeJS' :
form.action="Include/JS_Main.asp?JSType=1";
parent.frames['BottomFrame'].location.href='Split.asp?OpStr=JS<4A><53><EFBFBD><EFBFBD> >> <font color=red><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>JS<4A><53><EFBFBD><EFBFBD></font>&ButtonSymbol=FreeJSSearch';
break;
case 'Manager' :
form.action="Admin_Admin.asp";
parent.frames['BottomFrame'].location.href='Split.asp?OpStr=<3D><><EFBFBD><EFBFBD>Ա<EFBFBD><D4B1><EFBFBD><EFBFBD> >> <font color=red><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ա<EFBFBD><D4B1><EFBFBD><EFBFBD></font>&ButtonSymbol=ManagerSearch';
break;
}
form.submit();
}
function DisabledSearchFluctuation(Flag)
{ if (Flag==true)
document.all.KeyWord.value='<27>Բ<EFBFBD><D4B2><EFBFBD><>޲<EFBFBD><DEB2><EFBFBD>!';
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;
}
}