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

📄 personal.js

📁 Comblog 是一个适合在企事业单位、俱乐部及各类团体中使用的信息交流平台
💻 JS
📖 第 1 页 / 共 2 页
字号:
function do_message_delete(){
	if (trim($('messageid').value)==""){
		window.alert("您没有选择任何消息,无法继续操作");
	}else{
		if (confirm("您确定要删除此消息吗?")){
			window.open("../../service/message_action.aspx?Command=Delete&Message=" + $("messageid").value, "_self", "");
		}
	}
}
//	回复消息
function do_message_reply(){
	if (trim($('messageid').value)==""){
		window.alert("您没有选择任何消息,无法继续操作");
	}else{
		window.open("post.aspx?title=Re:"+$("title").value+"&recvsid="+$("sendid").value, "_self", "");
	}
}
//	***********************************************************************************||
//	邀请函
//	***********************************************************************************||
//	邀请函重新排序
function do_invite_order(){
	document.Form1.submit();
}
//	查询发出的邀请函
function do_invite_search(){
	if (trim($("searchkey").value)==""){
		window.alert("查询关键字不能为空");
	}else{
		document.Form1.submit();
	}
}
//	发送邀请函检测脚本
function on_invite_send(){
	if (trim(document.Form1.email.value)==""){
		window.alert("电子信箱不能为空");
		document.Form1.email.focus();
		return false;
	}
	if (trim(document.Form1.title.value)==""){
		window.alert("邀请函标题不能为空");
		document.Form1.title.focus();
		return false;
	}
	return true;
}
function do_invite_copy_link(email, code){
	var _url = getlocal() + "web/member/join.aspx?email="+email+"&code="+code;
	setcopy(_url);
	window.alert("提取成功,您可以直接粘贴至QQ,MSN,论坛等工具中发送给好友。");
}
//	***********************************************************************************||
//	文件夹
//	***********************************************************************************||
//	文件夹重新排序
function do_file_order(){
	document.Form1.submit();	
}
//	查询上传的文件
function do_file_search(){
	if (trim($("searchkey").value)==""){
		window.alert("查询关键字不能为空");
	}else{
		document.Form1.submit();
	}
}
//	上传文件检测脚本
function on_upload_check(){
	var fcount = 0;
	this.extensions = document.Form1._upload_extensions.value;
	this.getextension = function(filepath){
		var idotindex = filepath.lastIndexOf(".");
		var affix = filepath.substring(idotindex, filepath.length);
		return affix.toLowerCase();
	}
	for (i=1; i<10; i++){
		if (trim($("file"+i).value)!=null){
			if (extensions.indexOf(this.getextension($("file"+i).value))<0){
				window.alert("不支持您选择的文件类型,仅支持(" + extensions + ")");
				$("file"+i).focus();
				return false;
			}
			fcount ++;
		}
	}
	if (fcount>0){
		return true;
	}else{
		window.alert("对不起!您没有选择要上传的文件");
		return false;
	}
}
//	显示文件上传进度
function progress_file(){
	this.success = function(t){
		$("lu_status").innerHTML = t;
	}
	this.error = function(){
		$("lu_status").innerHTML = "错误";
	}
	var theajax = new ajax(false, this.success, this.error);
		theajax.get(url, true);
}
//	删除选中的文件
function do_file_deletes(){
	if (sc_select_count($n('File'))>0){
		if (confirm("您确定要删除选中的文件吗?")){
			document.Form1.Command.value = "File_Delete";
			document.Form1.action = "../../service/file_action.aspx";
			document.Form1.submit();
		}
	}else{
		window.alert("您没有选择任何文件,无法继续操作");
	}
}
//	设置选中的文件为共享
function do_file_share(){
	if (sc_select_count($n('File'))>0){
		document.Form1.Command.value = "File_Share";
		document.Form1.action = "../../service/file_action.aspx";
		document.Form1.submit();
	}else{
		window.alert("您没有选择任何文件,无法继续操作");
	}
}
//	取消选中的文件为共享
function do_file_noshare(){
	if (sc_select_count($n('File'))>0){
		document.Form1.Command.value = "File_Noshare";
		document.Form1.action = "../../service/file_action.aspx";
		document.Form1.submit();
	}else{
		window.alert("您没有选择任何文件,无法继续操作");
	}
}
//	修改文件信息
function do_file_modify(id){
	window.open("detail.aspx?fileid="+id,"_self","");
}
//	编辑专辑信息
function on_file_modify_check(){
	if (trim(document.Form1.name.value)==""){
		window.alert("文件名称必须填写。");
		document.Form1.name.focus();
		return false;
	}
	return true;
}
//	返回我的文件夹
function go_myfile(){
	window.open("default.aspx", "_self", "");
}
//	继续上传文件
function go_upload(){
	window.open("upload.aspx", "_self", "");
}
//	***********************************************************************************||
//	主题
//	***********************************************************************************||
//	主题重新排序
function do_topic_order(){
	document.Form1.submit();	
}
//	查询发表的主题
function do_topic_search(){
	if (trim($("searchkey").value)==""){
		window.alert("查询关键字不能为空");
	}else{
		document.Form1.submit();
	}
}
//	删除主题
function do_topic_deletes(){
	if (sc_select_count($n('Topic'))>0){
		if (confirm("您确定要永久删除选中的主题吗?")){
			document.Form1.Command.value = "Topic_Deletes";
			document.Form1.action = "../../service/topic_action.aspx";
			document.Form1.submit();
		}
	}else{
		window.alert("您没有选择任何主题,无法继续操作");
	}
}
//	显示分类提示信息
function do_show_sort_info(sortid){
	this.success = function(t){
		$("ls_tips").className = "cls_tips";
		$("ls_tips").innerHTML = t;
	}
	this.error = function(){
		$("ls_tips").className = "cls_error";
		$("ls_tips").innerHTML = "获取分类阅读权限信息失败";
	}
	$("ls_tips").className = "cls_progress";
	$("ls_tips").innerHTML = "正在获取阅读权限信息,请等待...";
	var theajax = new ajax(false, this.success, this.error);
	theajax.get("../../Service/Ajax_Action.aspx?Command=Sort_Grade&SortID="+sortid, true);
}
//	发表主题
function on_topic_post(){
	if (trim(document.Form1.title.value)==""){
		window.alert("主题标题不能为空。");
		document.Form1.title.focus();
		return false;
	}
	if (trim(document.Form1.sortid.value)==""){
		window.alert("主题分类必须选择。");
		document.Form1.sortid.focus();
		return false;
	}
	if (IWE_Frame!=null){
		if (IWE_Design_Mode)
		{	
			var _icount = 0;
			var _images = IWE_Frame.document.getElementsByTagName("IMG");
			for (i=0; i<_images.length; i++){
				if (_images[i].src.indexOf("/uploads/user_")>-1){
					if (trim(document.Form1.miniurl.value)==""){
						var _old = getfullfilename(_images[i].src);
						var _new = "mini_" + _old;
						document.Form1.miniurl.value = _images[i].src.replace(_old, _new);
					}
					_icount ++;
				}
			}
			var _lcount = 0;
			var _link = IWE_Frame.document.getElementsByTagName("A");
			for (i=0; i<_link.length; i++){
				if (_link[i].href.indexOf("/uploads/user_")>-1){
					_lcount ++;
				}
			}
			var _ocount = 0;
			var _object = IWE_Frame.document.getElementsByTagName("EMBED");
			for (i=0; i<_object.length; i++){
				if (_object[i].src.indexOf("/uploads/user_")>-1){
					_ocount ++;
				}
			}
			document.Form1.acount.value = _icount + _lcount + _ocount;
			document.Form1.content.value = IWE_Filter(IWE_Frame.document.body.innerHTML);
		}else{
			document.Form1.content.value = IWE_Frame.document.body.innerText
		}
	}
	if (trim(document.Form1.content.value)==""){
		window.alert("主题内容不能为空。");
		if (IWE_Frame!=null){
			IWE_Frame.focus();
		}else{
			document.Form1.content.focus();			
		}
		return false;
	}
	return true;
}
//	回复重新排序
function do_reply_order(){
	document.Form1.submit();
}
//	查询发表的回复
function do_reply_search(){
	if (trim($("searchkey").value)==""){
		window.alert("查询关键字不能为空");
	}else{
		document.Form1.submit();
	}
}
//	查询谁关注了我
function do_attention_search(){
	document.Form1.submit();
}
//	***********************************************************************************||
//	专辑
//	***********************************************************************************||
//	专辑重新排序
function do_special_order(){
	document.Form1.submit();
}
//	查询创建的专辑
function do_special_search(){
	if (trim($("searchkey").value)==""){
		window.alert("查询关键字不能为空");
	}else{
		document.Form1.submit();
	}
}
//	编辑专辑信息
function on_special_create_check(){
	if (trim(document.Form1.name.value)==""){
		window.alert("专辑标题必须填写。");
		document.Form1.name.focus();
		return false;
	}
	return true;
}
//	修改专辑信息
function do_special_modify(id){
	window.open("detail.aspx?specialid="+id,"_self","");
}
//	删除专辑信息
function do_special_delete(id){
	if (confirm("您确定要删除此专辑吗?")){
		window.open("../../service/topic_action.aspx?Command=Special_Delete&specialid="+id+"&returnurl="+document.Form1.returnurl.value,"_self","");
	}
}
//	专辑主题重新排序
function do_special_topic_order(){
	document.Form1.submit();
}
//	查询我的主题
function do_special_mytopic(){
	this.success = function(t){
		$("div_list").innerHTML = t;
	}
	this.error = function(){
		$("div_list").innerHTML = "<div class='cls_error'>查询主题失败</div>";
	}
	$("div_list").innerHTML = "<div class='cls_progress'>正在查询主题,请等待...</div>";
	var theajax = new ajax(false, this.success, this.error);
	theajax.get("../../Service/Ajax_Action.aspx?Command=Topic_Find&searchkey="+escape($("searchkey").value)+"&pageid="+$("_pageid").value, true);
}
//	选择主题
function do_special_topic_find(){
	if (isiexplorer()){
		var retval = window.showModalDialog("topics.aspx", window, "dialogWidth:640px; dialogHeight:480px; status:yes; directories:yes; scrollbars:no; resizable=no; help: no;");
		if( retval != null && trim(retval)!="" ) {
			document.Form1.topicsid.value = retval;
			document.Form1.Command.value = "Special_Topic_Entry";
			document.Form1.action = "../../service/topic_action.aspx";
			document.Form1.submit();
		}
	}else{
		modelDialog = window.open("topics.aspx", "_blank", "width=640,height=480,scroolbars=0");
	}
}
//	选中确定的主题
function do_special_topic_select(){
	var _scount = sc_select_count($n("Topic"));
	var _topics = "";
	if (_scount>0){
		if (typeof(document.Form1.Topic.length)=="undefined")
		{
			if (document.Form1.Topic.checked){
				_topics = document.Form1.Topic.value;
			}
		}else{
			for(i=0;i<document.Form1.Topic.length;i++){
				if (document.Form1.Topic[i].checked){
					if (trim(_topics)==""){
						_topics += document.Form1.Topic[i].value;
					}else{
						_topics += "," + document.Form1.Topic[i].value;
					}
				}
			}
		}
		if (isiexplorer()){
			window.returnValue = _topics;
			window.close();
		}else{
			window.opener.document.Form1.topicsid.value = _topics;
			window.opener.document.Form1.Command.value = "Special_Topic_Entry";
			window.opener.document.Form1.action = "../../service/topic_action.aspx";
			window.opener.document.Form1.submit();
			window.close();
		}
	}else{
		window.alert("没有选择任何主题。");
	}
}
//	从专辑中删除主题
function do_special_topic_delete(){
	if (sc_select_count($n('Topic'))>0){
		if (confirm("您确定要从专辑中删除选中的主题吗?")){
			document.Form1.Command.value = "Special_Topic_Delete";
			document.Form1.action = "../../service/topic_action.aspx";
			document.Form1.submit();
		}
	}else{
		window.alert("您没有选择任何主题,无法继续操作");
	}
}

⌨️ 快捷键说明

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