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

📄 top.asp

📁 一个比较完整的企业erp系统
💻 ASP
字号:
<%Public HOME_PATH:HOME_PATH = "../"%>
<%Public title:title = "menu"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN">
<!--#include file="../db.asp"-->
<!--#include file="../inc/function.asp"-->
<html><head><title><%=title%></title><%
  if isLogin = false then
     Response.Write viewinfo("Logingo","","")
	 Response.end
  end if
%><meta http-equiv=content-type content="text/html; charset=gb2312">
<meta content="mshtml 6.00.2800.1528" name=generator>
<meta content=frontpage.editor.document name=progid></head>
<link href="<%=HOME_PATH%>css/style.css" rel="stylesheet" type="text/css">
<script type = 'text/javascript' src = '<%=HOME_PATH%>js/layer00.js'></script>

<script type = 'text/javascript'>
function SDD_(Url,WN,W,H,scroll_){
    if (scroll_!='') {scroll_ = 'scroll:yes';}else{scroll_ = 'scroll:no'}
    var WN = window.showModalDialog(Url,WN,'dialogWidth:'+W+'px;dialogHeight:'+H+'px;'+scroll_+';help:no;status:no;center:yes;edge:raised;');
    if(WN!=null) {
	   parent.right.form.movetomtypeid.value = WN[0] ;
	   parent.right.form.submit();
	}else{
	   parent.right.form.movetomtypeid.value = '' ;
	}
}
</script>
</head>
<body style = 'margin:0px;'>
<div style = 'text-align:center;'>
<table border = '0' cellspacing = '0' cellpadding = '1' />
   <tr>
   <form method='post' action="" name = 'form' id = 'form'>
<!--#include file="../topleft.asp"-->

	 <td style = 'width:auto;'>&nbsp;</td>





	 <td style = 'width:10px;'></td>
	 <td style = 'width:35px; height:auto;' valign='bottom'><div class = 'bar' style = 'width:35px; height:33px;'><a href = "javascript:parent.right.form.Options.value = 'move';SDD_('mMove.asp','mAdd',210,138,'');" onclick = "javascript:return che('move');" /><img src="../images/move00.gif" width="35" height="33" border="0" alt="移动"></a></div></td>


	 <td style = 'width:10px;'></td>
	 <td style = 'width:35px; height:auto;' valign='bottom'><div class = 'bar' style = 'width:35px; height:33px;'><a href = "javascript:javascript:SDD('mAdd.asp','mAdd',430,508,'');" /><img src="../images/add00.gif" width="35" height="33" border="0" alt="增加"></div></td>

	 <td style = 'width:10px;'></td>
	 <td style = 'width:35px; height:auto;' valign='bottom'><div class = 'bar' style = 'width:35px; height:33px;'><a href = "javascript:che('m');" /><img src="../images/mingxi00.gif" width="35" height="33" border="0" alt="明细"></div></td>

	 <td style = 'width:10px;'></td>
	 <td style = 'width:35px; height:auto;' valign='bottom'><div class = 'bar' style = 'width:35px; height:33px;'><a href = "javascript:che('m');" /><img src="../images/update00.gif" width="35" height="33" border="0" alt="修改"></div></td>

 	 <td style = 'width:10px;'></td>
     <td style = 'width:35px; height:auto;' valign='bottom'><div class = 'bar' style = 'width:35px; height:33px;'><a href = "javascript:parent.right.form.submit();" onclick = "javascript:return che('del');" /><img src="../images/del00.gif" width="35" height="33" border="0" alt="删除"></div></td>


	 <td style = 'width:10px;'></td>
	 <td style = 'width:35px; height:auto;' valign='bottom'><div class = 'bar' style = 'width:35px; height:33px;'><a href = "javascript:che('reload');" /><img src="../images/reload00.gif" width="35" height="33" border="0" alt="刷新"></div></td>


	 <td style = 'width:10px;'></td>
	 <td style = 'width:35px; height:auto;' valign='bottom'><div class = 'bar' style = 'width:35px; height:33px;'><a href = "javascript:SDD('<%=HOME_PATH%>Logout.asp','Logout',400,150,'');" /><img src="../images/exit00.gif" width="35" height="33" border="0" alt="退出"></div></td>
	 <td style = 'width:10px;'></td>
<input type = 'hidden' name ='Options'/>
   </tr>
   </form>
</table>
</div>
<script language="JavaScript">
<!--
function che(sel) {
   if(sel=='m') {
      var chem_len = parent.right.document.form.boxm_.length
      if(chem_len == undefined && parent.right.document.form.boxm_.checked == true) {
         WindowOpen('mListview.asp?stockmid='+parent.right.document.form.boxm_.value,'mListview',screen.availWidth-50,screen.availHeight-100,'');
      }else{
           for(i_che = 0 ;i_che < chem_len;i_che++) {
               if(parent.right.document.form.boxm_[i_che].checked == true) {               WindowOpen('mListview.asp?stockmid='+parent.right.document.form.boxm_[i_che].value,'mListview',screen.availWidth-50,screen.availHeight-100,'');
	           }else{
	           }
	       }
	  }

	  var che_len = parent.right.document.form.box_.length
      if(che_len == undefined && parent.right.document.form.box_.checked == true) {
         SDD('mview.asp?stockid='+parent.right.document.form.box_.value,'mview',440,638,'');
      }else{
           for(i_che = 0 ;i_che < che_len;i_che++) {
               if(parent.right.document.form.box_[i_che].checked == true) {
			      SDD('mview.asp?stockid='+parent.right.document.form.box_[i_che].value,'mview',430,638,'');
	           }else{
	           }
	       }
	  }
   }

   if(sel=='reload') { parent.right.location.reload();}


   if(sel=='del' || sel == 'move') {
////////////////////////////////////////
	  var vinfom_ = '' ;
	  var vinfoselm = '';
	  var vinfoselm_ = '';
	  var vinfoboxm = '';
	  var vinfoboxm_ = '';

	  var vinfo = '';
      var vinfo_ = '';
	  var vinfobox = '';
	  var vinfobox_ = '';
	  var vinfosel = '';
	  var vinfosel_ = '';
////////////////////////////////////////


      var mLen = parent.right.document.form.selAnnouncem.length ;
	      if (mLen==undefined) {
		      var selAnnounceCheckm = parent.right.document.form.selAnnouncem.checked ;
		      var selAnnounceValuem = parent.right.document.form.selAnnouncem.value ;
		      var box_Checkm = parent.right.document.form.boxm_.checked ;
		      var box_Valuem = parent.right.document.form.boxm_.value ;
			  if (selAnnounceCheckm == true) {
			      vinfoselm = selAnnounceValuem ;
			  }else{
			      vinfoselm = '' ;
			  }
			 if(box_Checkm == true) {
			    vinfoboxm = box_Valuem ;
			 }else{
			    vinfoboxm = '';
			 }
			 vinfoselm_+=vinfoboxm
			 vinfoboxm_+=vinfoselm
		  }else{
			 for(i_m = 0; i_m < mLen ; i_m++) {
				 var selAnnounceCheckm = parent.right.document.form.selAnnouncem[i_m].checked
				 var selAnnounceValuem = parent.right.document.form.selAnnouncem[i_m].value + "," ;
		         var box_Checkm = parent.right.document.form.boxm_[i_m].checked ;
		         var box_Valuem = parent.right.document.form.boxm_[i_m].value ;
				 if(selAnnounceCheckm == true) {
					vinfoselm = selAnnounceValuem ;
				 }else{
					vinfoselm = '';
				 }

			     if(box_Checkm == true) {
			        vinfoboxm = box_Valuem ;
			     }else{
			        vinfoboxm = '';
			     }

			     vinfoselm_+=vinfoselm
			     vinfoboxm_+=vinfoboxm
			 }
		 }
			      

	 if(!vinfoselm_ == '') {vinfom_ = vinfoselm_;}else{vinfom_ = vinfoboxm_;}

	 if(vinfom_!='') {
		var vinfom_Split = vinfom_.split(",")
		vinfom_SplitLen = vinfom_Split.length
		var str_ = '';
		for(i = 0 ; i < vinfom_SplitLen-1;i++) {
            if(i!==vinfom_SplitLen-2) {
			   str = vinfom_Split[i] + "," ;
			}else{
			   str = vinfom_Split[i] 
			}

			str_+=str
        }

	     if (str_ == '')str_ = vinfom_ ;
		 parent.right.document.form.Execute.value = str_ ;
	     if(sel=='del') {
           parent.right.form.Options.value = 'delTruem';
		   return confirm('即将删除主记录(' + str_ + ')和[所有相关的子记录]!是否继续?');
		   return true;
		 }

     }

////////////////////////////////////////////////////////////////////////////////////////////////////

	  
	  var che_len = parent.right.document.form.box_.length
      var sel_len = parent.right.document.form.selAnnounce.length
      if(sel_len==undefined) {
		 var selAnnounceCheck = parent.right.document.form.selAnnounce.checked
		 var selAnnounceValue = parent.right.document.form.selAnnounce.value ;
		 var box_Check = parent.right.document.form.box_.checked ;
		 var box_Value = parent.right.document.form.box_.value ;
	  	 if(selAnnounceCheck == true) {
			vinfosel = selAnnounceValue ;
		 }else{
			vinfosel = '';
		 }

		 if(box_Check == true) {
			vinfobox = box_Value ;
		 }else{
			vinfobox = '';
		 }

			vinfosel_+=vinfobox
			vinfobox_+=vinfosel

	  }else{

	     for(i_sel = 0; i_sel < sel_len ; i_sel++) {
		     var selAnnounceCheck = parent.right.document.form.selAnnounce[i_sel].checked
			 var selAnnounceValue = parent.right.document.form.selAnnounce[i_sel].value + "," ;
		     var box_Check = parent.right.document.form.box_[i_sel].checked ;
		     var box_Value = parent.right.document.form.box_[i_sel].value ;

		     if(selAnnounceCheck == true) {
			    vinfosel = selAnnounceValue ;
			 }else{
			    vinfosel = '';
			 }

			 if(box_Check == true) {
			    vinfobox = box_Value ;
			 }else{
			    vinfobox = '';
			 }
			vinfosel_+=vinfosel
			vinfobox_+=vinfobox
		 }
     }
	 



	 if(!vinfosel_ == '') {vinfo_ = vinfosel_;}else{vinfo_ = vinfobox_;}
	 if(vinfo_!='') {
		var vinfo_Split = vinfo_.split(",")
		vinfo_SplitLen = vinfo_Split.length
		var str_ = '';
		for(i = 0 ; i < vinfo_SplitLen-1;i++) {
            if(i!==vinfo_SplitLen-2) {
			   str = vinfo_Split[i] + "," ;
			}else{
			   str = vinfo_Split[i] 
			}

			str_+=str
        }

	     if (str_ == '')str_ = vinfo_ ;
		 parent.right.document.form.Execute.value = str_ ;
         if(sel == 'move') {
		 }
	     if(sel=='del') {
           parent.right.form.Options.value = 'delTrue';
		   return confirm('即将删除记录:\n' + str_ + '\n是否继续?');
		   return true;
		 }

	 }else{
	  return false;
     }

   }
	     
}//-->
</script>
</body>
</html>

⌨️ 快捷键说明

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