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

📄 serviceindex.js

📁 电信的网厅的整站代码
💻 JS
字号:
        var bInited = false;
		function fn_initPage() {
		    document.getElementById("managerStore").Enabled = false;
		    document.getElementById("changeStore").Enabled = false;
	        window.setTimeout("cltScript_Toolbar();",30);
            if (! bInited ) {
            	bInited = true;
            	window.setTimeout("fn_OnSubmit();",20);
            }
		}
		
		function fnStartInit(){
		   if (document.readyState=="complete" && ! bInited){
				fn_initPage();
		   }
		}
		
		document.onreadystatechange=fnStartInit;
		function cltScript_Toolbar() {
            if ( self.parent != self ){
                var pel = parent.document.all.tags("frame");
                for ( i=0; i< pel.length; i++)
                {
                    if ( pel(i).name == "main") {
						divTop.style.width = pel(i).width;
						divMain.style.width = pel(i).width;
						divMain.style.height = pel(i).height - divTop.clientHeight;
                    }
                }
            }
		}
		
		function onChoosed() {
		
		   for ( var i=0; i < Result.selectedAllIndexs.length; i++) {
				var oTr = Result.rows[Result.selectedAllIndexs[i]];
				var tempName = oTr.cells[5].innerHTML;
		        document.getElementById("managerStore").Enabled = true;
		   	    document.getElementById("changeStore").Enabled = true; 
		    }
		    
		}
		
		function fn_dblClick(){
			fnManagerGoods();
		}
		
		function onUnChoosed(){
		    
		    document.getElementById("managerStore").Enabled = false;
		    document.getElementById("changeStore").Enabled = false;
		}
		
		function onContentLoad(){
		}
		
		function fnToolRecision() {
		
		}
		
		function fnManagerGoods() {
		  var oResult = document.all.Result;
		  if ( oResult != null && oResult.selectedIndex >= 0 ) {
				var sType = oResult.selectedRow.getAttribute("type");
				if ( sType == null ) {
					alert("记录不合法。");
					return;
				}
				var sURL = "?storeid=" + oResult.key;
			    window.location.href = "goodsindex.jsp"+sURL;
		  }
		}
		
		function fnStateClick(that) {
		    
		    document.getElementById("managerStore").Enabled = false;
		    document.getElementById("changeStore").Enabled = false;
		    //that.value == "6",取选择类的值.
			var result = document.getElementById("Result");
			var qr = document.getElementById("QueryResult");
			
			var cap = qr.caption.cloneNode(true);
			if ( result.caption == null ) result.createCaption();
			
			result.caption.replaceNode(cap);

			var action = document.createElement("<input NAME='"+ that.name + "' TYPE='text'>");
			action.value = that.value;
			result.caption.appendChild(action);
			
			result.reload();
			
			// 标注一下当前状态的颜色。
			var aLink = that.parentElement.getElementsByTagName("A");
			for ( var i=0; i<aLink.length; i++){
				if ( aLink[i] != that ) {
					aLink[i].style.color = "white";
					aLink[i].style.fontWeight = "normal";
				}
			}
			that.style.color="blue";
			that.style.fontWeight = "bold";
			
		}
		
		function fnShowSimple() {
			var qr = document.getElementById("QueryTable");
			qr.tBodies[1].style.display='none';
			window.setTimeout("cltScript_Toolbar();",30);
		}
		
		function fnShowAll() {
			var qr = document.getElementById("QueryTable");
			qr.tBodies[1].style.display='block';
			window.setTimeout("cltScript_Toolbar();",30);
		}

		function fnAddStoreType(){
		    window.windowOpen("storetype.jsp",500,400,"商店类型");
		}

	    function fnAddStore(){
	        window.windowOpen("addstore.jsp",700,500,"添加商店");
	    } 
	    
	    function fnChangeStore(root){
	        var oResult = document.all.Result;
		    if ( oResult != null && oResult.selectedIndex >= 0 ) {
		        var sURL = root+"/netstore.clt?STOREID=" + oResult.key;
		        sURL += "&action=SingleStoreCmm";
		        window.windowOpen(sURL,700,500,"修改商店信息");
		    }
	    }
	    

⌨️ 快捷键说明

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