📄 execute.js
字号:
xmlDoc.loadXML(returnValue);
nodes=xmlDoc.documentElement.childNodes;
bindSelect('txtSortId',nodes);
*/
ValMe('execute.AddressListAdd()');
}
else
{
var url=ServerPath+'ClubManage/Skin/'+'addressListPost.aspx?AddressListID='+editId+'&cacheid='+Math.random();
setInnerHtmlById('mainContent',getHttpHtml(url));
ValMe('execute.AddressListUpdate()');
}
}
//添加通讯录
this.AddressListAdd=function()
{
var returnValue=this.OBJ.addressListAdd(getValueById('txtTrueName'),getValueById('txtNiceName'),getSelectValue('txtSortId'),getValueById('txtBirthday')||'1900-01-01',getValueById('txtTel'),getValueById('txtMobile'),getValueById('txtQQ'),getValueById('txtEmail'),getValueById('txtAddress'),getValueById('txtExplian')).value;
if(returnValue!=true)
{
alert('添加失败!请检查输入数据是否正确!');
}
else
{
this.AddressListLoad();
}
}
//修改通讯录
this.AddressListUpdate=function()
{
var returnValue=this.OBJ.addressListUpdate(getValueById('txtID'),getValueById('txtTrueName'),getValueById('txtNiceName'),getSelectValue('txtSortId'),getValueById('txtBirthday')||'1900-01-01',getValueById('txtTel'),getValueById('txtMobile'),getValueById('txtQQ'),getValueById('txtEmail'),getValueById('txtAddress'),getValueById('txtExplian')).value;
if(returnValue!=true)
{
alert('修改失败!请检查输入数据是否正确!');
}
else
{
this.AddressListLoad();
}
}
//通讯录显示
this.AddressListShow=function(showId)
{
var dataObj=document.getElementById(showId);
var showObj=document.getElementById('infoContent');
OpenCloseShowInfo(true);
showObj.innerHTML=dataObj.innerHTML;
}
//删除通讯录
this.AddressListDelete=function(id,sortID,pageIndex)
{
if(confirm("慎重!\n你的操作将删除该通讯录,确定删除?"))
{
var returnValue=this.OBJ.addressListDelete(id).value;
if(returnValue!=true)
{
alert('删除失败!请稍后再试或将问题提交网站管理员!');
}
else
{
this.AddressListLoad(pageIndex,sortID);
}
}
}
//删除多条通讯录
this.AddressListDeleteMore=function(sortID,pageIndex)
{
if(confirm("慎重!\n你的操作将删除所选中的通讯录,确定删除?"))
{
var checkObjs = document.getElementsByName("checkID");
var delCount=0;
try
{
for(var i=0;i<checkObjs.length;i++)
{
if(checkObjs[i].checked==true)
{
this.OBJ.addressListDelete(checkObjs[i].value).value;
delCount++;
}
}
if(delCount<=0)
{
alert('请选择要删除的通讯录!');
return;
}
alert('已删除'+delCount+'条记录!');
this.AddressListLoad(pageIndex,sortID);
}catch(e)
{
alert('删除过程出错!请稍后再试或将问题提交网站管理员!');
}
}
}
//转移通讯录
this.AddressListMove=function(sortID,pageIndex)
{
if(confirm("确定转移?")!=true)
{
return ;
}
var checkObjs = document.getElementsByName("checkID");
var moveCount=0;
var ids='';
try
{
for(var i=0;i<checkObjs.length;i++)
{
if(checkObjs[i].checked==true)
{
ids=ids+checkObjs[i].value+',';
moveCount++;
}
}
if(moveCount<=0)
{
alert('请选择要转移的通讯录!');
return;
}
this.OBJ.addressListMove(getSelectValue('moveSortID'),ids);
alert('已转移'+moveCount+'条记录');
this.AddressListLoad(pageIndex,sortID);
}catch(e)
{
alert('转移过程出错!请稍后再试或将问题提交网站管理员!');
}
}
/*
收藏夹管理操作
Author:笨笨
Date:2006-2-20
*/
//添加面板载入
this.FavoritePostLoad=function(editId)
{
if(editId==null)
{
var url=ServerPath+'ClubManage/Skin/'+'favoritePost.aspx?cacheid='+Math.random();
setInnerHtmlById('mainContent',getHttpHtml(url));
ValMe('execute.FavoriteAdd()');
}
else
{
var url=ServerPath+'ClubManage/Skin/'+'favoritePost.aspx?FavoriteID='+editId+'&cacheid='+Math.random();
setInnerHtmlById('mainContent',getHttpHtml(url));
ValMe('execute.FavoriteUpdate()');
}
}
//添加网络收藏夹
this.FavoriteAdd=function()
{
var returnValue=this.OBJ.favoriteAdd(getValueById('txtUrl'),getValueById('txtTitle'),getValueById('txtExplain'),getSelectValue('txtSortId')).value;
if(returnValue!=true)
{
alert('添加失败!请检查输入数据是否正确!');
}
else
{
this.FavoriteLoad();
}
}
//更新网络收藏夹
this.FavoriteUpdate=function()
{
var returnValue=this.OBJ.favoriteUpdate(getValueById('txtID'),getValueById('txtUrl'),getValueById('txtTitle'),getValueById('txtExplain'),getSelectValue('txtSortId')).value;
if(returnValue!=true)
{
alert('添加失败!请检查输入数据是否正确!');
}
else
{
this.FavoriteLoad();
}
}
//网络收藏夹管理
this.FavoriteLoad=function(pageIndex,sortId)
{
var url=ServerPath+'ClubManage/Skin/'+'favoriteShow.aspx?cacheid='+Math.random();
if(pageIndex!=null)
{
url=ServerPath+'ClubManage/Skin/'+'favoriteShow.aspx?PageIndex='+pageIndex+'&cacheid='+Math.random();
}
if(sortId!=null)
{
url=ServerPath+'ClubManage/Skin/'+'favoriteShow.aspx?SortID='+sortId+'&cacheid='+Math.random();
}
if(pageIndex!=null&&sortId!=null)
{
url=ServerPath+'ClubManage/Skin/'+'favoriteShow.aspx?SortID='+sortId+'&PageIndex='+pageIndex+'&cacheid='+Math.random();
}
setInnerHtmlById('mainContent',getHttpHtml(url));
}
//删除地址
this.FavoriteDelete=function(id,sortID,pageIndex)
{
if(confirm("慎重!\n你的操作将删除该收藏地址,确定删除?"))
{
var returnValue=this.OBJ.favoriteDelete(id).value;
if(returnValue!=true)
{
alert('删除失败!请稍后再试或将问题提交网站管理员!');
}
else
{
this.FavoriteLoad(pageIndex,sortID);
}
}
}
//删除多条地址
this.FavoriteDeleteMore=function(sortID,pageIndex)
{
if(confirm("慎重!\n你的操作将删除所选中的收藏地址,确定删除?"))
{
var checkObjs = document.getElementsByName("checkID");
var delCount=0;
try
{
for(var i=0;i<checkObjs.length;i++)
{
if(checkObjs[i].checked==true)
{
this.OBJ.favoriteDelete(checkObjs[i].value).value;
delCount++;
}
}
if(delCount<=0)
{
alert('请选择要删除的通讯录!');
return;
}
alert('已删除'+delCount+'条记录!');
this.FavoriteLoad(pageIndex,sortID);
}catch(e)
{
alert('删除过程出错!请稍后再试或将问题提交网站管理员!');
}
}
}
//转移通讯录
this.FavoriteMove=function(sortID,pageIndex)
{
if(confirm("确定转移?")!=true)
{
return ;
}
var checkObjs = document.getElementsByName("checkID");
var moveCount=0;
var ids='';
try
{
for(var i=0;i<checkObjs.length;i++)
{
if(checkObjs[i].checked==true)
{
ids=ids+checkObjs[i].value+',';
moveCount++;
}
}
if(moveCount<=0)
{
alert('请选择要转移的通讯录!');
return;
}
this.OBJ.favoriteMove(getSelectValue('moveSortID'),ids);
alert('已转移'+moveCount+'条记录');
this.FavoriteLoad(pageIndex,sortID);
}catch(e)
{
alert('转移过程出错!请稍后再试或将问题提交网站管理员!');
}
}
/*相册管理操作
Author:笨笨
Date:2006-2-21
*/
//添加面板载入
this.PhotoPostLoad=function(photoType,sortType,editId)
{
if(editId==null)
{
var url=ServerPath+'ClubManage/Skin/'+'photoPost.aspx?PhotoType='+photoType+'&SortType='+sortType+'&cacheid='+Math.random();
setInnerHtmlById('mainContent',getHttpHtml(url));
ValMe('execute.PhotoAdd ('+photoType+')');
}
else
{
var url=ServerPath+'ClubManage/Skin/'+'photoPost.aspx?PhotoType='+photoType+'&SortType='+sortType+'&PhotoID='+editId+'&cacheid='+Math.random();
setInnerHtmlById('mainContent',getHttpHtml(url));
ValMe('execute.PhotoUpdate()');
}
}
//照片管理
this.PhotoShowLoad=function(photoType,sortType,pageIndex,sortId)
{
var url=ServerPath+'ClubManage/Skin/'+'photoShow.aspx?PhotoType='+photoType+'&SortType='+sortType+'&cacheid='+Math.random();
if(pageIndex!=null)
{
url=ServerPath+'ClubManage/Skin/'+'photoShow.aspx?PhotoType='+photoType+'&SortType='+sortType+'&PageIndex='+pageIndex+'&cacheid='+Math.random();
}
if(sortId!=null)
{
url=ServerPath+'ClubManage/Skin/'+'photoShow.aspx?PhotoType='+photoType+'&SortType='+sortType+'&SortID='+sortId+'&cacheid='+Math.random();
}
if(pageIndex!=null&&sortId!=null)
{
url=ServerPath+'ClubManage/Skin/'+'photoShow.aspx?PhotoType='+photoType+'&SortType='+sortType+'&SortID='+sortId+'&PageIndex='+pageIndex+'&cacheid='+Math.random();
}
setInnerHtmlById('mainContent',getHttpHtml(url));
}
//上穿面版显示
this.OnPanelUpLoadShow=function(type)
{
if(type==1)
{
var returnValue=window.showModalDialog(ServerPath+'ClubManage/upFile.aspx?Show=False',null,'dialogWidth:350px;dialogHeight:150px;');
if(returnValue)
{
document.getElementById('showImg').src=getValueById('txtSPhotoPath')+returnValue;
document.getElementById('txtFileName').value=returnValue;
document.getElementById('showButton').style.display='none';
document.getElementById('showDel').style.display='';
document.getElementById('showImg').style.display='';
document.getElementById('panelUrl').style.display='none';
}
else
{
var isUpLoadObj = document.getElementsByName('txtIsUpload');
isUpLoadObj[0].checked=true;
isUpLoadObj[1].checked=false;
document.getElementById('panelUrl').style.display='';
}
}
else
{
document.getElementById('txtUrl').value='';
document.getElementById('panelUrl').style.display='';
}
}
//删除图片
this.DelImage=function()
{
if(!confirm("你的操作将删除所上传图片,确定删除?"))
{
return;
}
this.OBJ.delImage(getValueById('txtFileName'));
var isUpLoadObj = document.getElementsByName('txtIsUpload');
isUpLoadObj[0].checked=true;
isUpLoadObj[1].checked=false;
document.getElementById('txtUrl').value='';
document.getElementById('panelUrl').style.display='';
/*var isUpLoadObj = document.getElementsByName('txtIsUpload');
if(isUpLoadObj[0].checked)
{
this.OnPanelUpLoadShow(0);
}
else
{
this.OnPanelUpLoadShow(1);
}*/
document.getElementById('showDel').style.display='none';
document.getElementById('showButton').style.display='';
document.getElementById('showImg').style.display='none';
document.getElementById('showImg').src='';
setValueById('txtFileName','');
}
this.PhotoDel=function(photoType,sortType,id,imageName,sortId,pageIndex)
{
if(!confirm("你将删除该图片,确定删除?"))
{
return;
}
var returnValue=this.OBJ.photoDel(id,imageName).value;
if(returnValue!=true)
{
alert('删除失败!请重试或与管理员联系!');
}
else
{
alert('删除成功!');
this.PhotoShowLoad(photoType,sortType,pageIndex,sortId);
}
}
//删除多条图片记录
this.PhotoDeleteMore=function(photoType,sortType,sortId,pageIndex)
{
if(!confirm("慎重!\n你将删除所选择图片,确定删除?"))
{
return;
}
var checkObjs = document.getElementsByName("checkID");
var imageObjs = document.getElementsByName("txtImageName");
var delCount=0;
try
{
for(var i=0;i<checkObjs.length;i++)
{
if(checkObjs[i].checked==true)
{
this.OBJ.photoDel(checkObjs[i].value,imageObjs[i].value).value;
delCount++;
}
}
if(delCount<=0)
{
alert('请选择要删除的照片!');
return;
}
alert('已删除'+delCount+'条记录!');
this.PhotoShowLoad(photoType,sortType,pageIndex,sortId);
}catch(e)
{
alert('删除过程出错!请稍后再试或将问题提交网站管理员!');
}
}
//添加图片
this.PhotoAdd=function(photoType)
{
showLogin();
var isUpLoadObj = document.getElementsByName('txtIsUpload');
var imageName;
var isUpLoad;
if(isUpLoadObj[0].checked)
{
isUpLoad='false';
imageName=getValueById('txtUrl');
if(!imageName)
{
alert('请输入图片地址,格式如http://www.dooogo.com/abc.gif,图片格式:jpg,gif,png,bmp');
return;
}
else
{
if(CheckFileType(imageName,'gif,bmp,jpg,png')!=true)
{
alert('请输入正确格式的图片地址');
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -