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

📄 add_product.asp

📁 全球商务网站系统介绍 GLOBALEC.COM.CN[生成HTML版] 系统概述: 软件名称:全球商务网站系统 当前版本:V1.0 最新版本:V1.1 运行环境:WINNT+(IIS)
💻 ASP
📖 第 1 页 / 共 5 页
字号:
                      "请不要在“详细说明”中填写任何联系信息\n"+
                      "(如:联系人、联系电话、传真、手机、电子邮件地址、网址等)。");
                document.form.p_z_Z_Details.focus()
                return;
            }
        }
        
        //设置图片上传状态
        
		//alert(form.p_z_Z_RootCategory.value+','+form.p_z_Z_CategoryId1.value);

	    thisform.target="";
	    thisform.action="save_product.asp";
	    thisform.submit();
	}
}

</SCRIPT>

<script language = "JavaScript"> 
sallt=new Array();
<%
Dim ii
ii=0
set rs8=conn.execute("select * from productclass_1 where gsid="&session("id")&"")
do while not rs8.eof
%>
sallt[<%=ii%>]=new Array("<%=rs8("smallclassname")%>","<%=rs8("bigclassid")%>","<%=rs8("smallclassid")%>");
<%
ii=ii+1
rs8.movenext
loop
rs8.close
%>
function changeselect1(selvalue)  
   { 
      document.form.smallclassid.length=0;  
      var selvalue=selvalue;
      var ii;
      for(ii=0;ii<sallt.length;ii++) 
	{
	    if(sallt[ii][1]==selvalue) 
      		{
  	var newOption1=new Option(sallt[ii][0],sallt[ii][2]);
	document.all.smallclassid.add(newOption1);
		}
	}
}
</script> 

<form method="POST" action="save_product.asp" name="form">

                  <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
                    <TBODY>
                    <TR>
                        <TD height=30 align="right" class=M><img src="../images/classpic.gif"> <a href="addclass.asp">产品大类管理</a>&nbsp;&nbsp;<img src="../images/classpic.gif"> <a href="addclass_1.asp">产品小类管理</a></TD>
                      </TR>
			    </TBODY></TABLE>
<table width="98%"  border="0" align="center" cellpadding="8" cellspacing="0" id="table103">
                    <tr>
                      <td class="s lh15" style="border:#FFCB99 1px solid; background:#FFF8EE;">
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
                    <TBODY>
					  <TR>
                      <TD height=30 colspan="2" class=M>产品目录的好处</TD>
                      </TR>
                    <TR>
                      <TD colSpan=2><SPAN 
                        class=lh15>它帮您体现供应实力,直观在网上展示产品,它有3大优势:</SPAN></TD></TR>
                    <TR>
                      <TD>
                        <DIV align=center><FONT 
                        face="Verdana, Arial, Helvetica, sans-serif" 
                        size=2>1.</FONT></DIV></TD>
                      <TD><SPAN class=lh15>长期有效:相当于您的长期供应清单!</SPAN></TD></TR>
                    <TR>
                      <TD>
                        <DIV align=center><FONT 
                        face="Verdana, Arial, Helvetica, sans-serif" 
                        size=2>2.</FONT></DIV></TD>
                      <TD><SPAN class=lh15>数量多:可容纳200个产品!</SPAN></TD></TR>
                    <TR>
                      <TD>
                        <DIV align=center><FONT 
                        face="Verdana, Arial, Helvetica, sans-serif" 
                        size=2>3.</FONT></DIV></TD>
                      <TD><SPAN class=lh15>直观:型号、图片,一目了然!</SPAN></TD></TR>
                    </TBODY></TABLE>
</td>
                    </tr>
                </table>
					  <BR>
                  <table width="100%"  border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td height="2" bgcolor="ff7300"></td>
                    </tr>
                  </table>
            <TABLE cellSpacing=2 cellPadding=3 width="100%" border=0>
              <COLGROUP>
              <COL class=formtop></COLGROUP>
              <TBODY>
              <TR>
                        <TD class=C bgColor=#FFFCF7><FONT color=#ff0000>*</FONT> 
                          <B>产品系列:</B></TD>
                <TD class=lh15 bgColor=#FFF8EE>
				<select name="bigclassid" onChange="changeselect1(document.form.bigclassid.options[document.form.bigclassid.selectedIndex].value)" size="1"> 
<option selected value="">--请选择产品大类--</option> 
<%
set rs7=conn.execute("select * from productclass where gsid="&session("id")&"")
do while not rs7.eof
response.write "<option value='"&rs7("bigclassid")&"'>"&rs7("bigclassname")&"</option>"&chr(13)+chr(10)
rs7.movenext
loop
rs7.close
%>
</select> 
<select name="smallclassid"> 
<option selected value="">--请选择产品小类--</option> 
</select> <SPAN class=note><a href="addclass.asp">您可以添加更多产品系列</a></SPAN></TD>
                    </TR>
			  
              <TR>
                <TD class=C bgColor=#FFFCF7><FONT color=#ff0000>*</FONT> 
                  <B>产品名称:</B></TD>
                <TD class=lh15 bgColor=#FFF8EE><INPUT maxLength=50 size=30 name="cpmc"> <BR>
                      <SPAN 
                  class=note>例:“数控车床”</SPAN></TD>
                    </TR>
				<TR>
                <TD class=C bgColor=#FFFCF7><FONT color=#ff0000>*</FONT> 
                  <B>产品型号:</B></TD>
                <TD class=lh15 bgColor=#FFF8EE><INPUT maxLength=50 size=30 name="cpgg"> <BR>
                      <SPAN 
                  class=note>例:“CJK0632”</SPAN> </TD>
                    </TR>
				<TR>
                <TD class=C bgColor=#FFFCF7><FONT color=#ff0000>*</FONT> 
                  <B>原 产 地:</B></TD>
                <TD class=lh15 bgColor=#FFF8EE><INPUT maxLength=50 size=30 name="cpcd"> <BR>
                      <SPAN 
                  class=note>例:“广东省广州市”</SPAN> </TD>
                    </TR>
              <TR>
                <TD class=C bgColor=#FFFCF7><FONT color=#ff0000>*</FONT> 
                  <B>行 业:</B></TD>
                <TD class=lh15 bgColor=#FFF8EE>
				<select name="p_z_Z_RootCategory" onchange="changeCategory(this)"  > 
          <option selected>--请选择行业大类--</option> 
        </select> 
        <select name="p_z_Z_CategoryId1" maxlength="80"> 
          <option value="" selected>--请选择行业子类--</option> 
        </select>
		
	   <BR>
                      <SPAN 
                  class=note>指您产品所属的行业</SPAN> </TD>
                    </TR>
              
				<TR>
                <TD class=C vAlign=top width="20%" 
                bgColor=#FFFCF7>
				<B>产品图片:</B></TD>
                <TD class=lh15 bgColor=#FFF8EE>
<input type='hidden' name='picture' value="">
<input type='hidden' name='picture_summ' value="">
                  <input name="pic" type="text" id="pic" value="" size="30" disabled=true>
                  <input name="pic_on" type="button" id="pic_on" onClick=window.open("AdvUploadPicture.asp?type="+value,"",'toolbar=no,directories=no,scrollbars=0,resizable=1,status=no,menubar=0,width=400,height=120'); value="上传图片">
</TD>
             <TR>
                <TD class=C vAlign=top bgColor=#FFFCF7><FONT 
                  color=#ff0000>*</FONT> <B>关键字:</B></TD>
                <TD class=lh15 bgColor=#FFF8EE><INPUT maxLength=8 size=10 
                  name=keywords>, <INPUT maxLength=8 size=10 name=keywords2>, 
                  <INPUT maxLength=8 size=10 name=keywords3> <INPUT type=hidden 
                  name=p_z_Z_Keywords> <SPAN 
                  class=note><BR>用产品名、行业类目做关键字,可填1-3个(每个最多8个字),尽量填全;<BR>
                          例:发电机,可填“发电机”“发电机及电动机”“机械”为关键字<BR>
                    </SPAN></TD>
                </TR>
              <TR>
                <td bgcolor=#FFFCF7 class=C><font color="#FF0000">*</font>                          <b>详细说明:</b></td>

<td class="lh15" bgcolor=#FFF8EE> <div id="hyperTextEditor"> 
                                      <script language="JavaScript" type="text/javascript">
                           <!--
                           

function HyperTextArea(name, html, width, height,resourcePath,styleSheetUrl,delayRender){
	this.isRichText = false;
	this.rng = null;
	this.name = name;
	this.html = html||"";
	this.width = width;
	this.height = height;
	this.resourcePath = resourcePath||"";
	this.styleSheetUrl = styleSheetUrl||null;
	if(this.resourcePath.length && this.resourcePath.substring(this.resourcePath.length-1) != "/"){
		this.resourcePath = this.resourcePath + "/";
	}
	this.delayRender = delayRender||false;
	this.controlNames = new Array();
	this.controlsByName = new Array();
	this.toolbarNames = new Array();
	this.designModeRetryCount = 0;
	this.isSrcView = false;

	this.init = function(){
		HyperTextArea.areas[this.name] = this;
		//check to see if designMode mode is available
		if (document.getElementById) {
			if (document.all) {
				//check for Internet Explorer 5+
				this.isRichText = true;
			} else {
				//check for browsers that support designmode
				//make sure that this is not safari (and perhaps other khtml based browsers)
				//which returns "inherit" for document.designMode 
				if (document.designMode && document.designMode.toLowerCase() != "inherit"){
					this.isRichText = true;
				}
			}
		}

		//this.addControl(new Toolbar("toolbar0"));
		//menus
		//styleMenu = new Menu("formatblock","formatblock");
		//styleMenu.addItems("","Style","<p>","Paragraph","<h1>","Heading 1","<h2>","Heading 2","<h3>","Heading 3","<h4>","Heading 4","<h5>","Heading 5","<h6>","Heading 6","<address>","Address","<pre>","Preformatted");
		//this.addControl(styleMenu);
		//fontMenu = new Menu("fontname","fontname");
		//fontMenu.addItems("","Font","Arial, Helvetica, sans-serif","Arial","Courier New, Courier, mono","Courier New","Times New Roman, Times, serif","Times New Roman","Verdana, Arial, Helvetica, sans-serif","Verdana");
		//this.addControl(fontMenu);
		//sizeMenu = new Menu("fontsize","fontsize");
		//sizeMenu.addItems("","Size",1,1,2,2,3,3,4,4,5,5,6,6,7,7);
		//this.addControl(sizeMenu);
	
		this.addControl(new Toolbar("toolbar1"));

		//增加功能点

        //字体大小:10号、12号、14号、18号、24号
        //字体默认为宋体
		sizeMenu = new Menu("fontsize","fontsize");
		sizeMenu.addItems("","字号",2,"1(小五)",3,"2(五号)",4,"3(小四)",5,"4(四号)",6,"5(小三)");
		this.addControl(sizeMenu);

        //颜色:褐色、黑色、红色、蓝色、绿色
		colorMenu = new Menu("foreColor","foreColor");
		colorMenu.addItems("","颜色","brown","褐色","black","黑色","red","红色","blue","蓝色","green","绿色");
		this.addControl(colorMenu);


		//第一部分
		this.addControl(new TextFormatButton("copy","复制","../images/post_button_copy.gif","copy"));
		this.addControl(new TextFormatButton("paste","粘贴","../images/post_button_paste.gif","paste"));
		this.addControl(new TextFormatButton("cut","剪切","../images/post_button_cut.gif","cut"));
		//this.addControl(new Spacer());
		//第二部分
		this.addControl(new TextFormatButton("bold","粗体","../images/post_button_bold.gif","bold"));
		this.addControl(new TextFormatButton("italic","斜体","../images/post_button_italic.gif","italic"));
		//this.addControl(new Spacer());
		//第三部分
		this.addControl(new TextFormatButton("left","左对齐","../images/post_button_left_just.gif","justifyleft"));
		this.addControl(new TextFormatButton("center","居中","../images/post_button_centre.gif","justifycenter"));
		this.addControl(new TextFormatButton("right","右对齐","../images/post_button_right_just.gif","justifyright"));
		//this.addControl(new Spacer());
		//第四部分
		this.addControl(new TextFormatButton("orderedlist","编号","../images/post_button_numbered_list.gif","insertorderedlist"));
		this.addControl(new TextFormatButton("unorderedlist","项目符号","../images/post_button_list.gif","insertunorderedlist"));
		//this.addControl(new Spacer());
		//第五部分
		this.addControl(new TextFormatButton("outdent","减少缩进量","../images/post_button_outdent.gif","outdent"));
		this.addControl(new TextFormatButton("indent","增加缩进量","../images/post_button_indent.gif","indent"));
		//this.addControl(new TextFormatButton("forecolor","字体颜色","../images/post_button_textcolor.gif","forecolor"));
		//this.addControl(new TextFormatButton("backcolor","背景颜色","../images/post_button_bgcolor.gif","backcolor"));
		//this.addControl(new Spacer());
		//第六部分
		//this.addControl(new Button("insertImage","../images/post_button_image.gif","Insert Image","addImage"));
		//this.addControl(new TextFormatButton("link","Create Link","../images/post_button_hyperlink.gif","createlink"));
		//this.addControl(new Button("insertTable","../images/post_button_table.gif","插入表格","insertTableDialog"));

		
	}
	
	this.addControl = function(control){
		control.resourcePath = this.resourcePath;
		control.area = this;
		i = this.controlNames.length
		this.controlNames[eval(i)] = control.name;
		this.controlsByName[control.name] = control;
	}
	
	this.getControl = function(name){
		return this.controlsByName[name];
	}
	
	this.replaceControl = function(oldName,newControl){
		if(this.getControl(oldName)){
			for(i=0;i<this.controlNames.length;i++){
				if(this.controlNames[i] == oldName){
					break;
				}
			}
		}else{
			i = this.controlNames.length;
		}
		newControl.area = this;
		newControl.resourcePath = this.resourcePath;
		this.controlNames[i] = newControl.name;
		this.controlsByName[newControl.name] = newControl;
	}
	
	this.insertControl = function(i,control){
		control.resourcePath = this.resourcePath;
		control.area = this;
		this.controlNames.splice(i,0, control.name);
		this.controlsByName[control.name] = control;
	}
	
	this.removeControl = function(name){
	    //alert("this.removeControl");    
		for(i=0;i<this.controlNames.length;i++){
			if(this.controlNames[i] == name){
				this.controlNames.splice(i,1);
				return true;
			}
		}
		return false;
	}

	this.render = function(html){
	    //alert("this.render");    
		HyperTextArea.activeArea = this;

⌨️ 快捷键说明

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