?? buttons.js
字號:
function closeWin()
{
parent.parent.window.close();
}
function enabledBtns(bEnabled)
{
// parent.frames("Buttons").document.getElementById("btnConfirm").disabled=1-bEnabled;
// parent.frames("Buttons").document.getElementById("btnClose").disabled=0;
}
function saveInfo()
{
var index;
initItems();
enabledBtns(0);
for (index=0; index<parent.frames.item("AddFunction").document.all.item("FieldCode").length; index++)
{
parent.frames.item("AddFunction").document.all.item("FieldCode").options[index].selected=true;
parent.frames.item("AddFunction").document.all.item("Permit").options[index].selected=true;
}
parent.frames.item("AddFunction").document.forms.item("theAddForm").submit();
}
function resetInfo()
{
var index,FunCode,FunName,ListCount,Len;
if ( parent.frames.item("AddFunction").document.forms.item("AddFunForm").SelectedList.length>0)
{
Count= parent.frames.item("AddFunction").document.forms.item("AddFunForm").SelectedList.length;
for (index=Count-1;index>=0;index--)
{
FunCpde=parent.frames.item("AddFunction").document.forms.item("AddFunForm").SelectedList.options(index).value;
FunName=parent.frames.item("AddFunction").document.forms.item("AddFunForm").SelectedList.options(index).text;
parent.frames.item("AddFunction").document.forms.item("AddFunForm").SelectedList.remove(index);
Len=parent.frames.item("FunctionList").FunctionList.length;
parent.frames.item("FunctionList").FunctionList.length=Len+1;
parent.frames.item("FunctionList").FunctionList.options(Len).text=FunName;
parent.frames.item("FunctionList").FunctionList.options(Len).value=FunCode;
}
}
}
function initItems()
{
var optionLen,selObj;
parent.frames("AddFunction").document.all.item("Permit").length=0;
parent.frames("AddFunction").document.all.item("FieldCode").length=0;
selObj=parent.frames("AddFunction").document.all.tags("Select");
if (selObj!=null)
{
for (i=0;i<selObj.length-2;i++)
{
optionLen=parent.frames("AddFunction").document.all.item("Permit").length;
parent.frames("AddFunction").document.all.item("Permit").length=optionLen+1;
parent.frames("AddFunction").document.all.item("FieldCode").length=optionLen+1;
parent.frames("AddFunction").document.all.item("Permit").options(optionLen).value=selObj[i].value;
parent.frames("AddFunction").document.all.item("Permit").options(optionLen).text=selObj[i].value;
parent.frames("AddFunction").document.all.item("FieldCode").options(optionLen).value=parent.frames("AddFunction").document.all.item("Tb").rows(i+1).id;
parent.frames("AddFunction").document.all.item("FieldCode").options(optionLen).text=parent.frames("AddFunction").document.all.item("Tb").rows(i+1).id;
}
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -