admin/common/control.js

(开头部分) 6KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

//==========================================
// JS For PJBlog2 Background Control
//   By PuterJam 2006-6-10
//==========================================

	 function CheckMove(){
		  if (document.forms[0].source.value=="null") {
		   alert("请选择日志分类源")
		   document.forms[0].source.focus()
		   return false
		  }
		  if (document.forms[0].target.value=="null") {
		   alert("请选择需要移动到的目标日志分类")
		   document.forms[0].target.focus()
		   return false
		  }
		  if (document.forms[0].source.value==document.forms[0].target.value){
		   alert("源分类和目标分类一致无法移动")
		   return false
		  }
		return true
	  }

     function checkAll(e){
      for (i=0;i<document.forms[0].length;i++){
       if (document.forms[0][i].tagName=="INPUT"){
        if (document.forms[0][i].type=="checkbox") {document.forms[0][i].checked=!((!e)?(!window.cAll)?true:false:e.checked);document.forms[0][i].click();}
       }
      }
      if (!e) {window.cAll = !window.cAll}
     }
     
     function CheckDel(id){
	     if (confirm("确定要删除吗?\n\n假如你要删除的日志分类中包含日志,那么分类中的日志也会被删除")){
		  document.forms[0].DelCate.value=id
		  document.forms[0].whatdo.value="DelCate"
		  document.forms[0].submit()
		 }
	  }
	  
	  function CheckDelGroup(id){
	     if (confirm("确定要删除吗?\n\n假如你删除某个权限分组,那么该分组中的会员将会被重置为一般会员")){
		  document.forms[0].DelGroup.value=id
		  document.forms[0].whatdo.value="DelGroup"
		  document.forms[0].submit()
		 }
	  }
	  
    function addSpanKey(){
            var kWord = document.getElementById("keyWord")
            if (kWord.value.length<1 || kWord.value=="请输入关键字") {kWord.value="请输入关键字";kWord.style.backgroundColor="#ffc4a4";kWord.select();return false}
	        var splitWord=kWord.value.split(/[,\s]/g)
	        for (var i=0;i<splitWord.length;i++){
		        if(window.event)
			        document.getElementById("spamList").add(new Option(splitWord[i],splitWord[i]),0);
			       else
			        document.getElementById("spamList").insertBefore(new Option(splitWord[i],splitWord[i]),document.getElementById("spamList").firstChild);
		      }
            document.getElementById("spamList").selectedIndex = 0;
            kWord.value="";
后面还有 154 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。