📄 event.js
字号:
function doEvent(_method,_params,_params2)
{
switch (_method)
{
case "remsg":
dialog.Method = "showModelessDialog";
dialog.Href = root.path + "frame.jsp?url=" + root.path + "book/book.jsp?J_Blog_ID=" + _params;
dialog.Width = window.screen.width/1.7 + "px";
dialog.Height = window.screen.height/1.7 + "px";
dialog.Open();
break;
case "delete":
if (sAlert("您确定要删除选中的留言吗?","这个过程可能需要很长的时间,您确认现在执行么?",true))
{
doEvent("lockelement",0);
hiddenexec.location = "/j_blog_get.jsp?action=deletebook&J_Blog_ID="+_params;
}
break;
case "viewmsg":
window.location = root.path + "system_book.jsp?page=1&J_Blog_IsRemsg=" + _params;
break;
case "reload":
reLoad();
break;
case "lockelement":
doLockElement(_params);
break;
}
}
function doLockElement(action)
{
if (action == 0)
{
document.all.eachitem.disabled = true;
}else if(action == 1){
var sURL = root.path + "system_book.jsp?page="+top.request("page",self.window.location.href)+"&J_Blog_IsRemsg="+top.request("J_Blog_IsRemsg",self.window.location.href);
document.all.eachitem.disabled = false;
//hiddenexec.location = sURL;
frmlist.location = sURL;
doClickcheckbox(this,"noview");
}else{
document.all.eachitem.disabled = false;
doClickcheckbox(this,"noview");
}
}
function setData(sHTML)
{
document.all.DivEachItem.innerHTML = sHTML;
}
function sAlert(Title,Description,isConfirm,showtype,Width,Height)
{
var odialog;
odialog = getDialog(Title,Description,showtype,Width,Height);
if (isConfirm)
{
if (odialog == 1)
{
return true;
}else{
return false;
}
}else{
if (odialog == 1)
{
return false;
}else{
return true;
}
}
}
function getDialog(title,description,showtype,width,height)
{
showtype = showtype?showtype:"alert";
if (showtype == "alert")
{
this.url = root.path + "confirm.jsp?title="+title+"&description="+description;
}else{
this.url = root.path + "alert.jsp?title="+title+"&description="+description;
}
this.width = width?width:"350px";
this.height = height?height:"200px";
dialog.Method = "showModalDialog";
dialog.Href = this.url;
dialog.Width = this.width;
dialog.Height = this.height;
dialog.Status = "no";
return (dialog.Open());
}
function doClickcheckbox(object,oview)
{
checkBoxALL(frm_product_itemlist,object,'selected_checkbox',oview);
}
function getFromAllElement(frm)
{
var sHTML = "";
for (var i=0;i<=frm.elements.length-1;i++)
{
var e = frm.elements[i];
if ((e.type == "checkbox") && (e.checked) && (e.name == "Id"))
{
if (sHTML.length == 0)
{
sHTML = e.value;
}else{
sHTML += "," + e.value;
}
}
}
return (sHTML);
}
function reLoad()
{
var page = top.request("page",self.window.location.href);
var J_Blog_IsRemsg = top.request("J_Blog_IsRemsg",self.window.location.href);
this.location.href= root.path + "system_book.jsp?page=" + page + "&J_Blog_IsRemsg=" + J_Blog_IsRemsg;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -