⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 execute.js

📁 1、用SQL查询器打开install目录下的dooogo.sql运行之后创建数据库dooogo。 2、然后打开web.config修改 <DbProvider type="Club.Fram
💻 JS
📖 第 1 页 / 共 4 页
字号:
/*
Copyright (C) 2006 dooogo.com
Author:benben
www.aspxclub.com
*/
function editSiteSetting()
{
	setInnerHtmlById('mainContent',getHttpHtml('skin/editSiteSetting.htm?cacheid='+Math.random()));
}

//显示消息
function showMessage(msgType,message,clickEvent)
{
	setInnerHtmlById('mainContent',getMessage(msgType,message,clickEvent));
}
function OpenPlayer(registerId)
{
	var ids="";
	var isHas=false;
	var objs=document.getElementsByName('checkID');
	for(var i=0;i<objs.length;i++)
	{
		if(objs[i].checked==true)
		{
			ids+=objs[i].value+",";
			isHas=true;
		}
	}
	if(isHas==false)
	{
		alert('请选择要播放的音乐!');
		return ;
	}
	window.open(ServerPath+'Home/MP3Player/MP3Player.aspx?RegisterId='+registerId+'&ids='+ids,'MP3Player','width=345px,height=390px');
}
//备忘录
var msecs = 500; //改变时间得到不同的闪烁间隔;
var counter = 0; 
function soccerOnload() {
setTimeout("blink()", msecs);
}
function blink() {
if(counter<0)
{
	return ;
}
var obj=document.getElementById('bell');
if(obj==null)
{
	return ;
}
obj.style.visibility =(obj.style.visibility == "hidden") ? "visible" : "hidden";
counter +=1;
setTimeout("blink()", msecs);
}
function OpenMemoShow(id)
{
	counter=-1;
	var obj=document.getElementById('bell');
	obj.style.display='none';
	window.open(ServerPath+'ClubManage/memoShow.aspx?MemoId='+id,'MemoShow','width=345px,height=200px');
}
function LoadBlogList()
{
	setInnerHtmlById('mainContent',getHttpHtml('blogList.aspx?cacheid='+Math.random()));
}
function LoadArticleList()
{
	setInnerHtmlById('mainContent',getHttpHtml('ArticleList.aspx?cacheid='+Math.random()));
}
function LoadMusicList()
{
	setInnerHtmlById('mainContent',getHttpHtml('MusicList.aspx?cacheid='+Math.random()));
}
/*数据操作*/
function Execute(obj)
{
	this.OBJ = obj;
	this.LoadGuest=function()
	{
		setInnerHtmlById('mainContent',getHttpHtml('guest.aspx?cacheid='+Math.random()));
	}
	this.LoadOnline=function(pageIndex)
	{
		var url=ServerPath+'ClubManage/'+'onlineUser.aspx?cacheid='+Math.random();
		if(pageIndex!=null)
		{
			url=ServerPath+'ClubManage/'+'onlineUser.aspx?PageIndex='+pageIndex+'&cacheid='+Math.random();
		}
		setInnerHtmlById('mainContent',getHttpHtml(url));
	}
	this.LoadPhotoList=function(photoType)
	{
		showLogin();
		var content=getHttpHtml('PhotoList.aspx?PhotoType='+photoType+'&cacheid='+Math.random());
		setInnerHtmlById('mainContent',content);
		loadState=false;
	}
	this.LoadHome=function()
	{
		setInnerHtmlById('mainContent',getHttpHtml('skin/home.aspx?cacheid='+Math.random()));
	}
	/*
	用户资料管理操作
	Author:笨笨
	Date:2006-3-2
	*/
	//载入菜单栏目显示
	this.LoadSiteMenuSetting=function()
	{
		showLogin();
		setInnerHtmlById('mainContent',getHttpHtml('skin/siteMenuSetting.aspx?cacheid='+Math.random()));
		ValMe('execute.SiteMenuSettiong()');
		loadState=false;
	}
	//栏目菜单修改
	this.SiteMenuSettiong=function()
	{
		var menuObjs=document.getElementsByName('txtMenu');
		var returnValue;
		var siteMenuSetting='';
		for(var i=0;i<menuObjs.length;i++)
		{
			siteMenuSetting+=menuObjs[i].checked+",";
		}
		returnValue=this.OBJ.updateSiteTemplate(getRadioValue('txtTemplateID'),siteMenuSetting).value;
		if(returnValue!=true)
		{
			alert('修改设置失败!请重试或与管理员联系!');
			return ;
		}
		alert('修改设置成功!');
		this.LoadSiteMenuSetting();
		
	}
	//载入网站设置资料
	this.LoadEditSiteSetting=function()
	{
		showLogin();
		setInnerHtmlById('mainContent',getHttpHtml('skin/editSiteSetting.aspx?cacheid='+Math.random()));
		ValMe('execute.EditSiteSetting()');
		var userType =  new BindSelect(ServerPath+"Javascript/userType.xml");
		userType.BindData(document.getElementById("txtMessagePostType"),getValueById('editMessagePostType'));
		userType.BindData(document.getElementById("txtCommentPostType"),getValueById('editCommentPostType'));
		userType.BindData(document.getElementById("txtGuestBookPostType"),getValueById('editGuestBookPostType'));
		
		var settingColor = new BindSelect(ServerPath+"Javascript/settingColor.xml");
		settingColor.BindData(document.getElementById("txtAdminUIColorID"),getValueById('editAdminUIColorID'));
		loadState=false;
	}
	//修改网站设置
	this.EditSiteSetting=function()
	{
		var returnValue;
		var adminUIColorID=getSelectValue('txtAdminUIColorID');
		var cssObj=document.getElementById('adminCss');
		try
		{
			returnValue=this.OBJ.editHomeSetting(getCheckValue('txtIsOpen'),getSelectValue('txtMessagePostType'),getSelectValue('txtCommentPostType'),getSelectValue('txtGuestBookPostType'),adminUIColorID,getValueById('txtSiteTitle'),getValueById('txtSiteAffiche'),getCheckValue('txtPhotoIsDownLoad')).value;
		}catch(e)
		{
			alert('修改站点设置出错,请请稍后再试或与管理员联系!');
		}
		if(returnValue!=true)
		{
			alert('修改站点设置失败,请稍后再试或与管理员联系!');
			return ;
		}
		alert('修改站点设置成功!');
		cssObj.href="css/default_"+adminUIColorID+".css";
		this.LoadEditSiteSetting();
	}
	//载入用户资料
	this.LoadEditUserInfo=function()
	{
		showLogin();
		setInnerHtmlById('mainContent',getHttpHtml('skin/editUserInfo.aspx?cacheid='+Math.random()));
		ValMe('execute.EditUserInfo()');
		var Bodily = new BindSelect(ServerPath+"Javascript/Bodily.xml");
		Bodily.BindData(document.getElementById("txtBodilyID"),getValueById('editBodilyID'));
		
		var Earning = new BindSelect(ServerPath+"Javascript/Earning.xml");
		Earning.BindData(document.getElementById("txtEarningID"),getValueById('editEarningID'));
		
		var Education = new BindSelect(ServerPath+"Javascript/Education.xml");
		Education.BindData(document.getElementById("txtEducationID"),getValueById('editEducationID'));
		
		Place = new BindSelect(ServerPath+"Javascript/Place.xml");
		var placeValues=getValueById('txtCountryID')+"|"+getValueById('txtProvinceID')+"|"+getValueById('txtCityID');
		Place.BindGear([document.getElementById("Country"),document.getElementById("Province"),document.getElementById("City")],placeValues, "Place");
		loadState=false;
	}
	//修改用户资料
	this.EditUserInfo=function()
	{
		var txtCountry=getSelectValue('Country')?getSelectValue('Country'):'0';
		var txtProvince=getSelectValue('Province')?getSelectValue('Province'):'0';
		var txtCity=getSelectValue('City')?getSelectValue('City'):'0';
		var userReValue;
		var userDateReValue;
		try
		{
			userReValue=this.OBJ.editUserInfo(getValueById('txtEmail'),getValueById('txtFamilyName'),getValueById('txtFirstName'),getValueById('txtNiceName'),getRadioValue('txtSex'),getValueById('txtBirthday'),txtCountry,txtProvince,txtCity,getValueById('txtIdiograph'),getValueById('editIcon'),getValueById('txtIdeal')).value;
		}catch(e)
		{
			alert('修改资料出错,请检查你的输入是否正确或与管理员联系!');
			return ;
		}
		if(!userReValue)
		{
			alert('请正确选择你的所在的地方!');
			return ;
		}
		if(userReValue!=true)
		{
			alert('个人修改资料失败,请检查你的输入是否正确或与管理员联系!');
			return ;
		}
		var bodilyID=getSelectValue('txtBodilyID')?getSelectValue('txtBodilyID'):'0';
		var educationID=getSelectValue('txtEducationID')?getSelectValue('txtEducationID'):'0';
		var earningID=getSelectValue('txtEarningID')?getSelectValue('txtEarningID'):'0';
		var qq=getValueById('txtQQ');
		if(!qq)
		{
			qq=0;
		}
		try
		{
			userDateReValue = this.OBJ.editUserData(bodilyID,getValueById('txtJob'),educationID,earningID,getValueById('txtTel'),getCheckValue('txtIsOpen'),qq,getValueById('txtMsn'),getValueById('txtHomepage')).value;
		}
		catch(e)
		{
			alert('修改详细资料出错,请检查你的输入是否正确或与管理员联系!');
		}
		if(userDateReValue!=true)
		{
			alert('修改详细资料失败,请检查你的输入是否正确或与管理员联系!');
			return ;
		}
		alert('修改个人资料成功!');
		this.LoadEditUserInfo();
	}
	//选择图标
	this.GetIcon=function()
	{
		var imgObj=document.getElementById('Icon');
		var valueObj=document.getElementById('editIcon');
		var sPhoto=window.showModalDialog('getPhoto.aspx?Show=False&cacheid='+Math.random());
		//var photoPath=sPhoto.substr(0,sPhoto.lastIndexOf('/'));
		if(sPhoto!=null)
		{
			var imageName=sPhoto.substring(sPhoto.lastIndexOf('/')+1);
			//转换大图路径为小图 改变图片路径时改变以下参数
			imgObj.src=sPhoto.replace('/Photo','/SmallPhoto');
			valueObj.value=imageName;
		}
	}
	this.LoadEditPassword=function()
	{
		setInnerHtmlById('mainContent',getHttpHtml('skin/editPassword.htm?cacheid='+Math.random()));
		ValMe('execute.EditPassword()');
	}
	//修改密码
	this.EditPassword=function()
	{
		var oldPassword=getValueById('txtOldPassword');
		if(oldPassword.length<=0)
		{
			alert('请输入旧密码!');
			return ;
		}
		var returnValue=this.OBJ.editPassword(oldPassword,getValueById('txtNewPassword')).value
		if(returnValue!=true)
		{
			alert('旧密码不正确!');
		}
		else
		{
			alert('密码修改成功!请记住新密码!');
			this.LoadEditPassword();
		}
	}
	/*
	类别管理操作
	Author:笨笨
	Date:2006-1-13
	*/
	//类别添加
	this.SortAdd = function ()
	{
		var txtSortName=getValueById('txtSortName');
		if(txtSortName=='')
		{
			alert('请输入类别名称!');
			setObjectFocus('txtSortName');
			return;
		}
		var returnValue=this.OBJ.sortAdd(getValueById('txtSortType'),getValueById('txtSortName')).value;
		if(returnValue!=true)
		{
			showMessage(0,"添加失败!存在相同类别!请修改后重新添加","execute.SortShow("+getValueById('txtSortType')+")")
		}
		else
		{
			this.SortShow(getValueById('txtSortType'));
		}
	}
	//打开管理类别界面
	this.SortShow=function(sortType)
	{
		var url=ServerPath+'ClubManage/Skin/'+'sortShow.aspx?SortType='+sortType+'&cacheid='+Math.random();
		setInnerHtmlById('mainContent',getHttpHtml(url));
	}
	//删除类别
	this.SortDelete=function(id,sortType)
	{
		if(confirm("慎重!\n你的操作将删除该类别和类别下所有已添加数据,确定删除?"))
		{
			var returnValue=this.OBJ.sortDelete(id).value;
			if(returnValue!=true)
			{
				showMessage(0,"删除失败!请返回重试!返回信息:"+returnValue,"execute.SortShow("+sortType+")")
			}
			else
			{
				this.SortShow(sortType);
			}
		}
	}
	//显示编辑项
	this.SortEdit=function(showObj,editObj)
	{
		setObjectShow(editObj);
		setObjectHidden(showObj);
	}
	//取消编辑
	this.SortCancel=function(showObj,editObj)
	{
		setObjectHidden(editObj);
		setObjectShow(showObj);
	}
	//更新类别
	this.SortUpdate=function(id,sortName,sortType)
	{
		var returnValue=this.OBJ.sortUpdate(id,sortName).value;
		if(returnValue!=true)
		{
			showMessage(0,"更新失败!已存在相同类别!请返回重新修改!","execute.SortShow("+sortType+")")
		}
		else
		{
			this.SortShow(sortType);
		}
	}
	//上升
	this.SortUp=function(index)
	{
		if(index<=0)
		{
			alert("对不起,已经到顶啦!");
			return ;
		}
		var returnValue=this.OBJ.sortMove(getValueById('id_'+index),getValueById('orderId_'+index),getValueById('id_'+(index-1)),getValueById('orderId_'+(index-1))).value;
		if(returnValue!=true)
		{
			showMessage(0,"上移失败!请返回重试!返回信息:"+returnValue,"execute.SortShow("+getValueById('txtSortType')+")")
		}
		else
		{
			this.SortShow(getValueById('txtSortType'));
		}
	}
	//下降
	this.SortDown=function(index)
	{
		if(index>=(document.getElementById('sortList').getElementsByTagName('tr').length/2-1))
		{
			alert("对不起,已经到底啦!");
			return ;
		}
		var returnValue=this.OBJ.sortMove(getValueById('id_'+index),getValueById('orderId_'+index),getValueById('id_'+(index+1)),getValueById('orderId_'+(index+1))).value;
		if(returnValue!=true)
		{
			showMessage(0,"下移失败!请返回重试!返回信息:"+returnValue,"execute.SortShow("+getValueById('txtSortType')+")")
		}
		else
		{
			this.SortShow(getValueById('txtSortType'));
		}
	}
	//显示隐藏类别
	this.SortIsVisible=function(id)
	{
		var returnValue=this.OBJ.sortVisible(id).value;
		if(returnValue!=true)
		{
			showMessage(0,"显示隐藏操作失败!请返回重试!返回信息:"+returnValue,"execute.SortShow("+getValueById('txtSortType')+")")
		}
		else
		{
			this.SortShow(getValueById('txtSortType'));
		}
	}
	/*
	通讯录管理操作
	Author:笨笨
	Date:2006-1-15
	*/
	//通讯录载入
	this.AddressListLoad=function(pageIndex,sortId)
	{
		var url=ServerPath+'ClubManage/Skin/'+'addressListShow.aspx?cacheid='+Math.random();
		if(pageIndex!=null)
		{
			url=ServerPath+'ClubManage/Skin/'+'addressListShow.aspx?PageIndex='+pageIndex+'&cacheid='+Math.random();
		}
		if(sortId!=null)
		{
			url=ServerPath+'ClubManage/Skin/'+'addressListShow.aspx?SortID='+sortId+'&cacheid='+Math.random();
		}
		if(pageIndex!=null&&sortId!=null)
		{
			url=ServerPath+'ClubManage/Skin/'+'addressListShow.aspx?SortID='+sortId+'&PageIndex='+pageIndex+'&cacheid='+Math.random();
		}
		setInnerHtmlById('mainContent',getHttpHtml(url));
	}
	//添加面板载入
	this.AddressListPostLoad=function(editId)
	{
		if(editId==null)
		{
			var url=ServerPath+'ClubManage/Skin/'+'addressListPost.aspx?cacheid='+Math.random();
			setInnerHtmlById('mainContent',getHttpHtml(url));
			/*var returnValue=this.OBJ.sortList(2).value;
			var xmlDoc=CreateXMLDom();

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -