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

📄 manage.js

📁 Comblog 是一个适合在企事业单位、俱乐部及各类团体中使用的信息交流平台
💻 JS
📖 第 1 页 / 共 2 页
字号:
			document.Form1.Command.value = "Special_Deletes";
			document.Form1.action = "../service/topic_action.aspx";
			document.Form1.submit();
		}
	}else{
		window.alert("您没有选择任何专辑,无法继续操作");
	}
}
//	修改专辑信息
function do_special_modify(){
	window.open("detail.aspx?specialid="+id,"_self","");
}

//	修改专辑信息检测脚本
function on_special_modify_check(){
	if (trim(document.Form1.name.value)==""){
		window.alert("专辑标题必须填写。");
		document.Form1.name.focus();
		return false;
	}
	return true;
}
//	锁定专辑
function do_special_lock(id){
	if (confirm("您确定要锁定此专辑吗?")){
		document.Form1.Command.value = "Special_Lock";
		document.Form1.specialid.value = id;
		document.Form1.action = "../service/topic_action.aspx";
		document.Form1.submit();
	}
}
//	取消锁定专辑
function do_special_unlock(id){
	if (confirm("您确定要取消锁定此专辑吗?")){
		window.open("../service/topic_action.aspx?Command=Special_Unlock&specialid=" + id + "&returnurl=" + document.Form1.returnurl.value,"_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_topic_setop(){
	if (sc_select_count($n('Topic'))>0){
		document.Form1.Command.value = "Topic_Setop";
		document.Form1.action = "../service/topic_action.aspx";
		document.Form1.submit();
	}else{
		window.alert("您没有选择任何主题,无法继续操作");
	}
}
//	取消主题置顶
function do_topic_unsetop(){
	if (sc_select_count($n('Topic'))>0){
		document.Form1.Command.value = "Topic_Unsetop";
		document.Form1.action = "../service/topic_action.aspx";
		document.Form1.submit();
	}else{
		window.alert("您没有选择任何主题,无法继续操作");
	}
}
//	发布主题
function do_topic_public(){
	if (sc_select_count($n('Topic'))>0){
		document.Form1.Command.value = "Topic_Public";
		document.Form1.action = "../service/topic_action.aspx";
		document.Form1.submit();
	}else{
		window.alert("您没有选择任何主题,无法继续操作");
	}
}
//	回收主题
function do_topic_recycle(obj, readyid){
	if (readyid>0){
		if (confirm("您确定要回收此主题吗?")){
			obj.disabled = true;
			document.Form1.topicid.value = readyid;
			document.Form1.Command.value = "Topic_Recycle";
			document.Form1.action = "../Service/Topic_Action.aspx";
			document.Form1.submit();
		}
	}else{
		window.alert("您没有选择举报记录,无法继续操作");
	}
}
//	取消举报记录
function do_topic_uncomplaint(obj, readyid){
	if (readyid>0){
		if (confirm("您确定要取消此举报记录吗?")){
			obj.disabled = true;
			document.Form1.topicid.value = readyid;
			document.Form1.Command.value = "Topic_Uncomplaint";
			document.Form1.action = "../Service/Topic_Action.aspx";
			document.Form1.submit();
		}
	}else{
		window.alert("您没有选择举报记录,无法继续操作");
	}
}
//	还原回收站主题
function do_topic_unrecycle(obj, readyid){
	if (readyid>0){
		if (confirm("您确定要还原此主题吗?")){
			obj.disabled = true;
			document.Form1.topicid.value = readyid;
			document.Form1.Command.value = "Topic_Unrecycle";
			document.Form1.action = "../Service/Topic_Action.aspx";
			document.Form1.submit();
		}
	}else{
		window.alert("您没有选择回收主题,无法继续操作");
	}
}
//	移除举报记录
function do_topic_remove(obj, readyid){
	if (readyid>0){
		if (confirm("您确定要彻底删除此主题吗?")){
			obj.disabled = true;
			document.Form1.topicid.value = readyid;
			document.Form1.Command.value = "Topic_Remove";
			document.Form1.action = "../Service/Topic_Action.aspx";
			document.Form1.submit();
		}
	}else{
		window.alert("您没有选择回收主题,无法继续操作");
	}
}
//	编辑主题
function do_topic_modify(id){
	window.open("Detail.aspx?topicid="+id,"_self","");
}

//	显示分类提示信息
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("../../web/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_select_color(mode, input){
	var retval = window.showModalDialog("DialogColor.aspx", window, "dialogWidth:266px; dialogHeight:220px; status:yes; directories:yes; scrollbars:no; resizable=no; help: no;");
	if( retval != null && trim(retval)!="" ) {
		$(input).value = "#"+retval; 
		if (mode == "bg"){
			$(input).style.backgroundColor = "#"+retval; 
		}else{
			$(input).style.color = "#"+retval; 
		}
	}	
}

//	修改LOGO图片检测脚本
function on_style_common_check(){
	this.imageaffix = function(myimage){
		var idotindex = myimage.lastIndexOf(".");
		var affix = myimage.substring(idotindex, myimage.length);
		return affix.toLowerCase();
	}
	if (trim(document.Form1.LOGO_IMAGE.value)!=""){
		this.myaffixs = ".jpeg.jpg.gif.bmp.png";
		if (myaffixs.indexOf(this.imageaffix(document.Form1.LOGO_IMAGE.value))<0){
			window.alert("LOGO图片格式不正确,LOGO图片仅支持 JPEG GIF BMP PNG 格式。");
			document.Form1.LOGO_IMAGE.focus();
			return false;
		}
	}
	document.Form1.bok.disabled = true;
	return true;
}

⌨️ 快捷键说明

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