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

📄 add_product.asp

📁 全球商务网站系统介绍 GLOBALEC.COM.CN[生成HTML版] 系统概述: 软件名称:全球商务网站系统 当前版本:V1.0 最新版本:V1.1 运行环境:WINNT+(IIS)
💻 ASP
📖 第 1 页 / 共 5 页
字号:
			frames[areaName].document.designMode = "On";
		}else{
			contentDocument = document.getElementById(areaName).contentDocument;
			contentDocument.designMode = "on";
		}	
		self.status = "";
		area.setContent(area.html)
	}catch(e){
		//attempt to recover from any exceptions
		exp = "enableDesignMode('"+areaName+"')";
		area = HyperTextArea.getArea(areaName);
		area.designModeRetryCount++
		self.status = "Error in setting designMode property on attempt number "+ area.designModeRetryCount +".  Retrying.";
		if(area.designModeRetryCount <= 10){
			t = setTimeout(exp,100);
		}else{
			self.status = areaName + " failed to initialize properly";
			throw e;
		}
	}
}

function onHyperTextAreaLoad(areaName) {
	self.status = "attempting to set designMode property";
	area = HyperTextArea.getArea(areaName);
	area.cpWindow = frames['cp' + areaName].window;
	
	//enables the area to determine what form it belongs to
	area.form = document.getElementById("hdn"+areaName).form;
	
	//attaches to the forms submit handler only once
	formAlreadyStored = false;
	for(i=0;i<HyperTextArea.forms.length;i++){
		if(area.form == HyperTextArea.forms[i]){
			formAlreadyStored = true;
			break;
		}
	}
	if(!formAlreadyStored){		
              onSubmitFunc = area.form.onsubmit;
  	      area.form.onsubmit = function(){
	  	   HyperTextArea.updateAllAreas();
		   if(onSubmitFunc){
			onSubmitFunc();
		   }	
	      }		
              HyperTextArea.forms[HyperTextArea.forms.length] = area.form;
	}	
	area.setContent(area.html)
	if (document.all) {
		cp = frames["cp" + areaName];
		cp.document.write(getPaletteAsString());
	} else {
		cp = document.getElementById("cp"+areaName);
		d = cp.contentDocument;
		d.open();
		d.write(getPaletteAsString());
		d.close()
	}
	enableDesignMode(areaName);
	area.setContent(area.html)
}
//-->
</script>
							   <script>
								var details = '';
							    area = new HyperTextArea("area1", details, 450, 200,"");
							   </script>
                                </div>
                                <textarea style="display:none" name="p_z_Z_Details" cols=50 rows=10></textarea> 
                                <table width="100%" cellPadding="0" cellSpacing="0" border="0">
                                  <tr> 
                                    <td class="S"> <font color="#FF0000">您可直接从word、excel中将现成资料拷贝过来,经过优化后可能会与原内容不同。</font> 
                                    <br><SPAN class=note>说明尽可能详细,以提高信息的可信度,促使您做成生意;</SPAN></td>
                                  </tr>
                      </table></td>

</TR>

			  </TBODY></TABLE>                  <table width="100%"  border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td height="2" bgcolor="ff7300"></td>
                    </tr>
                  </table><BR> 
            <IMG id=img1 src="../images/downArrow.gif" align=absMiddle>
			 <span class="C"><b>补充更多信息(非必须)</b></span><BR><BR>
            <TABLE cellSpacing=2 cellPadding=3 width="100%" border=0>
              <COLGROUP>
              <COL class=formtop></COLGROUP>
              <TBODY>
			  <TR>
                <TD class=C bgColor=#FFFCF7><B>产品品牌:</B></TD>
                <TD class=lh15 bgColor=#FFF8EE><INPUT 
                  style="FONT-SIZE: 9pt; WIDTH: 250px" maxLength=50 size=30 
                  name="cpsb"> </TD></TR>
              
              <TR>
                <TD class=C bgColor=#FFFCF7><B>产品数量</B>:</TD>
                <TD class=lh15 bgColor=#FFF8EE><INPUT 
                  style="FONT-SIZE: 9pt; WIDTH: 250px" maxLength=50 size=30 
                  name="Quantity"></TD></TR>
              <TR>
                <TD class=C bgColor=#FFFCF7><B>包装说明:</B></TD>
                <TD class=lh15 bgColor=#FFF8EE><INPUT 
                  style="FONT-SIZE: 9pt; WIDTH: 250px" maxLength=50 size=30 
                  name="Packaging"></TD></TR>
              <TR>
                <TD class=C bgColor=#FFFCF7><B>价格说明:</B></TD>
                <TD class=lh15 bgColor=#FFF8EE><INPUT 
                  style="FONT-SIZE: 9pt; WIDTH: 250px" maxLength=50 size=30 
                  name="cpjg"></TD></TR></TBODY></TABLE>                  <table width="100%"  border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td height="2" bgcolor="ff7300"></td>
                    </tr>
                  </table><BR>
            <TABLE cellSpacing=6 cellPadding=3 width="100%" bgColor=#f9f9f9 
            border=0>
              <TBODY>

              <TR>
                <TD><INPUT type=checkbox CHECKED name="FeedbackFlag">
                          我将优先考虑“<A 
                  href="javascript:win=window.open('../../help/trust_score.html','contact','width=550,height=550,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no');win.focus();">商贸通会员</A>”的反馈 
                      </TD>
                </TR></TBODY></TABLE>                  <table width="100%"  border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td height="2" bgcolor="ff7300"></td>
                    </tr>
                  </table><BR>
            <TABLE width="95%">
              <TBODY>
              <TR>
                <TD class=lh15><SPAN class=C><FONT 
                  color=#ff0000><STRONG>最后一步很重要!<BR>
                          </STRONG></FONT></SPAN><STRONG>请确保联系资料是完整准确的,以保证客户找到您。如要修改,<A 
                  href="../modify/modify_info.asp" 
                  target=_blank>点此修改联系资料</A></STRONG></TD>
                    </TR></TBODY></TABLE>
            <TABLE cellSpacing=0 cellPadding=0 width="95%" border=0>
              <TBODY>
              <TR>
                <TD bgColor=#cccccc>
                  <TABLE cellSpacing=1 cellPadding=4 width="100%" border=0>
                    <TBODY>
                    <TR>
                      <TD style="PADDING-LEFT: 10px" align=right width="25%" 
                      bgColor=#ffffff>姓名:</TD>
                      <TD style="PADDING-LEFT: 10px" bgColor=#ffffff><%=rs2("name")%>&nbsp; 
                        <%=rs2("ch")%> </TD></TR>
                    <TR>
                      <TD style="PADDING-LEFT: 10px" align=right 
                        bgColor=#ffffff>公司名称:</TD>
                      <TD style="PADDING-LEFT: 10px" bgColor=#ffffff><%=rs2("qymc")%> </TD></TR>
                    <TR>
                      <TD style="PADDING-LEFT: 10px" align=right 
                        bgColor=#ffffff>电话:</TD>
                      <TD style="PADDING-LEFT: 10px" bgColor=#ffffff><%=rs2("phone")%> </TD></TR>
                    <TR>
                      <TD style="PADDING-LEFT: 10px" align=right 
                        bgColor=#ffffff>传真:</TD>
                      <TD style="PADDING-LEFT: 10px" bgColor=#ffffff><%=rs2("fax")%> </TD></TR>
                    <TR>
                      <TD style="PADDING-LEFT: 10px" align=right 
                        bgColor=#ffffff>电子邮件:</TD>
                      <TD style="PADDING-LEFT: 10px" 
                        bgColor=#ffffff><%=rs2("email")%> 
                </TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE><BR>
            <TABLE cellSpacing=0 cellPadding=4 border=0>
              <TBODY>
              <TR>
                
                <TD vAlign=top noWrap><INPUT class=subbutton style="WIDTH: 160px" onclick="javascript:post(this.form)" type=button value=一切完成,我要发布! name=Post> 
                </TD></TR></TBODY></TABLE></FORM><BR>
				
            <TABLE class=bdr1 cellSpacing=0 cellPadding=0 width="95%" 
              border=0><TBODY>
              <TR>
                <TD height=103>
                  <TABLE class=bdr2 cellSpacing=0 cellPadding=0 width="100%" 
                  border=0>
                    <TBODY>
                    <TR>
                      <TD class=lh13 height=91><SPAN 
                        class=M>重要提醒:</SPAN><BR><BR>
                                1、只要两小时!您发布的信息就能被百万商人看到!(工作日8:00-17:30) <BR>
                                · 节假日发布的信息顺延至工作日上网;<BR>· 
                        信息发布高峰期上网时间稍有延后,敬请谅解!<BR><BR>2、发布信息后,为保证客户及时与您联系,请确保您的联系信息(特别是电话、电子邮箱地址)准确无误。<BR><BR>3、请勿一天内重复提交相同内容的信息,否则将不被审核通过。<BR><BR></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE><BR><BR>

            <BR><BR></TD></TR></TBODY></TABLE><BR><BR></TD></TR>
  </TABLE><IMG 
height=10 src="../images/bottom.gif" width=778><BR>
<script>

        //category methods
        function Category(id,title) {
                this.id = id;
                this.title=title;
                this.boardlist=new Array();
                this.addBoard=addBoard;
                this.getOptions = getOptions;
        }        
        
        function addBoard(board) {
                this.boardlist = this.boardlist.concat(board);
        }
        
        function getOptions() {
                var tmp = new Array();
                for(var i=0; i < this.boardlist.length;i++) {
                        var b = this.boardlist[i];
                        tmp[i]= b.getOption();
                }
                return tmp;
        }
        
        //board methods
        function Board(catid,id,title,total) {                
                this.catid=catid;
                this.id=id;
                this.title=title;
                this.getOption=getOption;
        }
                
        function getOption() {
                return new Option(this.title,this.id);                
        }
                
        function changeCategory(list) {
        if (list.selectedIndex<=0) {
                catForm.options[0].selected=true;
                var len = boardForm.options.length;
                for (var i=len-1;i>0;i--){
                        boardForm.options[i]=null;
                }                                        
         }
        else {
                var boards = catArr[list.selectedIndex-1].getOptions();
                var len = boardForm.options.length;
                for (var i=len-1;i>0;i--){
                        boardForm.options[i]=null;
                }                
                for (var i=0;i<boards.length;i++) {
                        boardForm.options[i+1]=boards[i];
                }
                }
                boardForm.options[0].selected=true;
        }
                
        function selectBoard(catid,bid,list) {
                var isExist = false; //是否是叶子类目
                for(var i=0;i<catForm.length;i++) {
                        if (catForm.options[i].value==catid) {
                                //alert("get Category");
                                catForm.options[i].selected=true;
                                changeCategory(catForm);
                                break;                        
                        }                        
                }                                
                for(var i=0;i<boardForm.length;i++) {
                        if (boardForm.options[i].value==bid) {
                                //alert("get Board");
                                boardForm.options[i].selected=true;  
                                isExist = true;                              
                                break;
                        }                        
                }   
                
                if (!isExist) {//如果是二级类目,则下拉框只显示该二级类目下所有类目                   
                    var boards = catArr[catForm.selectedIndex-1].getOptions();
                    var len = boardForm.options.length;
                    for (var i=len-1;i>0;i--){
                        boardForm.options[i]=null;
                    }     
                    var locate = 1;           
                    for (var i=0;i<boards.length;i++) {                                                              
                        if(boards[i].text.indexOf(bid) == 0){
                            boardForm.options[locate]=boards[i];
                            locate++;
                        }                                                
                    }
                
                    boardForm.options[0].selected=true;   
                }            
        }        

        //static methods        
        var catArr = new Array();
        var cur;   
		//init catform
        var catForm = document.form.p_z_Z_RootCategory;
        var boardForm = document.form.p_z_Z_CategoryId1;
        
        
        
        function showCategorys() {
            var catId = catForm.value
            if(boardForm.value){
                catId = boardForm.value
            }else if(catForm.value){
                catId = catForm.value
            }
            window.open('/tradeinfo/smalllist.asp?sortid='+catId,'newwin','toolbar=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=600,height=500')            
        }
        for (var i=0;i<catArr.length;i++) {
                catForm.options[i+1]=new Option(catArr[i].title,catArr[i].id);
        }
  
                      function initRootCategorys(){
	    for (var i=0;i<catArr.length;i++) {
		 catForm.options[i+1]=new Option(catArr[i].title,catArr[i].id);
	    }
	}  
        //init                
</script>
<script src="/js/allCategorys.js"></script>
<script>
initRootCategorys(); 
</script>
<script>
selectBoard("<%=Replace_Text(request("p_z_Z_RootCategory"))%>","<%=Replace_Text(request("p_z_Z_CategoryId1"))%>");
</script>
<!--#include file="../end.asp"-->
<%
rs2.close
set rs2=nothing
conn.close
set conn=nothing
%>

⌨️ 快捷键说明

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