cgi|dhtml|用戶端 //第六步,修改版主
function On_ChangeMaster()
{
//如果沒有論壇被選中,則退出
if (frmManager.selForumName .selectedIndex == -1)
{
return 0 ;
}
if (frmManager.btnChangeMaster .value == "修改")
{
frmManager.btnChangeName .disabled = true ;
frmManager.btnDown .disabled = true ;
frmManager.btnUp .disabled = true ;
frmManager.btnModifyDescription .disabled = true ;
frmManager.btnAddForum .disabled = true ;
frmManager.btnDeleteForum .disabled = true ;
frmManager.btnSubmit .disabled =true ;
frmManager.selCategoryName .disabled = true ;
frmManager.selForumName .disabled = true ;
frmManager.selMaster .disabled = false ;
frmManager.btnChangeMaster.value = "確定" ;
return 0 ;
}
else
{
frmManager.btnChangeMaster.value = "修改" ;
frmManager.selCategoryName .disabled = false ;
frmManager.selForumName .disabled = false ;
frmManager.selMaster .disabled = true ;
frmManager.btnSubmit .disabled = false ;
var intForumIndex ;
for (var i = 0 ; i < aForum.length ; i ++)
{
if (frmManager.selForumName[frmManager.selForumName.selectedIndex].value == aForum[i].CategoryID )
{
intForumIndex = i ;
break ;
}
}
aForum[i].MasterID = frmManager.selMaster .value ;
}
On_ForumChange() ;
&