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

📄 edit1.asp

📁 全球商务网站系统介绍 GLOBALEC.COM.CN[生成HTML版] 系统概述: 软件名称:全球商务网站系统 当前版本:V1.0 最新版本:V1.1 运行环境:WINNT+(IIS)
💻 ASP
📖 第 1 页 / 共 5 页
字号:
                  color=#ff0000>*</FONT> <B>买卖方向:</B></TD>
                <TD width="80%" bgColor=#FFF8EE class=lh15> <input type="radio" value="买" name="p_z_Z_Type" onClick="javascript:setSubject()" <%if rs("type")="买" and jinji=0 then response.write"checked"%>> 
                                <span id="typeDispBuy" > </span> <input type="radio" value="卖" name="p_z_Z_Type" onClick="javascript:setSubject()" <%if rs("type")="卖" then response.write"checked"%>> 
                                <span id="typeDispSale" > </span> <input type="radio" value="买" name="p_z_Z_Type" onClick="javascript:setSubject()" <%if jinji=1 then response.write"checked"%>>
                      紧急求购&nbsp;&nbsp;&nbsp;<IMG src="../images/offerfaq.gif" 
                  border=0> <A 
                  href="../../help/index.html" target="_blank">如何选择买卖方向?</A> <br><img src="../images/shim.gif" width="1" height="8"></TD></TR>
              <TR>
                <TD class=C bgColor=#FFFCF7><FONT color=#ff0000>*</FONT> 
                  <B>主题:</B></TD>
                <TD bgColor=#FFF8EE class=lh15><INPUT maxLength=50 size=35 
                  value="<%=rs("showname")%>" name=p_z_Z_Subject> 
                <BR>
                      <SPAN 
                  class=note>例:“供应FF-180型直流微电机”或“求购二手发电机”,注意要带动词</SPAN> </TD>
                    </TR>
              <TR>
                <TD class=C bgColor=#FFFCF7><FONT color=#ff0000>*</FONT> 
                  <B>行业:</B></TD>
                <TD bgColor=#FFF8EE class=lh15> <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 bgColor=#FFFCF7><FONT 
                  color=#ff0000>*</FONT> <B>关键字:</B></TD>
                <TD bgColor=#FEF1E0 class=lh15><%
				keywords=rs("keywords")
				if keywords<>"" then
				  if instr(keywords,",")>0 then
				     kwarry=split(keywords,",")
					 if ubound(kwarry)=1 then
				           response.write"<INPUT maxLength=8 size=10 value='"&kwarry(0)&"' name=keywords>, <INPUT maxLength=8 size=10 value='"&kwarry(1)&"' name=keywords2>, <INPUT maxLength=8 size=10 name=keywords3>"
				           elseif ubound(kwarry)=2 then
				           response.write"<INPUT maxLength=8 size=10 value='"&kwarry(0)&"' name=keywords>, <INPUT maxLength=8 size=10 value='"&kwarry(1)&"' name=keywords2>, <INPUT maxLength=8 size=10 value='"&kwarry(2)&"' name=keywords3>"
                           elseif ubound(kwarry)>2 then
				           response.write"<INPUT maxLength=8 size=10 value='"&kwarry(0)&"' name=keywords>, <INPUT maxLength=8 size=10 value='"&kwarry(1)&"' name=keywords2>, <INPUT maxLength=8 size=10 value='"&kwarry(2)&"' name=keywords3>"
                     end if
				  else
				  response.write"<INPUT maxLength=8 size=10 value='"&keywords&"' name=keywords>, <INPUT maxLength=8 size=10 name=keywords2>, <INPUT maxLength=8 size=10 name=keywords3>"
                  end if
				else
				response.write"<INPUT maxLength=8 size=10 name=keywords>, <INPUT maxLength=8 size=10 name=keywords2>, <INPUT maxLength=8 size=10 name=keywords3>"
				end if
				%> <INPUT type=hidden 
                  name=p_z_Z_Keywords> <SPAN 
                  class=note><BR>
                  用产品名、行业类目做关键字,可填1-3个(每个最多8个字),尽量填全;<BR>
                          例:供应发电机,可填“发电机”“发电机及电动机”“机械”为关键字<BR>
                    </SPAN></TD>
                </TR>
				     <TR>
                <TD class=c bgColor=#FFFCF7><FONT color=#ff0000>*</FONT> 
                  <B>有效期:</B></TD>
                <td bgcolor=#FFF8EE class="s"> <div id=putong style="display: <%if jinji=1 then response.write"none"%>"> 
                                  <input name="p_z_Z_OfferExpire" type="radio" value="10"  checked    >
                                  10天 
                                  <input name="p_z_Z_OfferExpire" type="radio" value="20"  checked    >
                                  20天 
                                  <input name="p_z_Z_OfferExpire" type="radio" value="30"  checked    >
                                  一个月 
                                  <input name="p_z_Z_OfferExpire" type="radio" value="90"  checked    >
                                  三个月 <br>
                                </div>
                                <div id=jinji style="display: <%if jinji=0 then response.write"none"%>"> 
                                  <table width="100%" border="0" cellspacing="2" cellpadding="2">
                                    <tr> 
                                      <td width="1" valign="top">&nbsp;</td>
                                      <td><b><span class="s style1">3 天</span></b></td>
                                    </tr>
                                    <tr> 
                                      <td valign="top"><span class="note"><font color="#FF0000">*</font></span></td>
                                      <td><SPAN class=note>紧急采购的有效期默认为3天;</span></td>
                                    </tr>
                                    <tr> 
                                      <td valign="top"><span class="note"><font color="#FF0000">*</font></span></td>
                                      <td><SPAN class=note>采购完成后,请及时在<a href="edit.asp" class=S>管理商业信息</a>页面中撤销这条采购信息!</span></td>
                                    </tr>
                                  </table>
                       </div></td></TR><TR>
                <TD class=C bgColor=#FFFCF7><B>产品规格:</B></TD>
                <TD bgColor=#FEF1E0 class=lh15><INPUT 
                  name="Specifications" 
                  style="FONT-SIZE: 9pt; WIDTH: 250px" value="<%=rs("Specifications")%>" size=30 maxLength=50> </TD></TR>
              <TR>
                <TD class=C bgColor=#FFFCF7><B>产品数量</B>:</TD>
                <TD bgColor=#FEF1E0 class=lh15><INPUT 
                  name="Quantity" 
                  style="FONT-SIZE: 9pt; WIDTH: 250px" value="<%=rs("Quantity")%>" size=30 maxLength=50></TD></TR>
              <TR>
                <TD class=C bgColor=#FFFCF7><B>包装说明:</B></TD>
                <TD bgColor=#FEF1E0 class=lh15><INPUT 
                  name="Packaging" 
                  style="FONT-SIZE: 9pt; WIDTH: 250px" value="<%=rs("Packaging")%>" size=30 maxLength=50></TD></TR>
              <TR>
                <TD class=C bgColor=#FFFCF7><B>价格说明:</B></TD>
                <TD bgColor=#FEF1E0 class=lh15><INPUT 
                  name="PriceTerms" 
                  style="FONT-SIZE: 9pt; WIDTH: 250px" value="<%=rs("PriceTerms")%>" size=30 maxLength=50></TD></TR>
              <TR>
                <td bgcolor=#FFFCF7 class=C><font color="#FF0000">*</font>                          <b>详细说明:</b></td>

<td bgcolor=#FFF8EE class="lh15"> <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;
		text="this.render\n\n";
		for(i=0;i<this.controlNames.length;i++){
			text = text + "\t" + this.controlNames[i] + "\n";
		}
		if (this.isRichText) {
			this._renderRTE(html);
		} else {
			this._renderDefault(html);
		}
	}

	this._renderDefault = function(html){
	    //alert("this._renderDefault");  
	    
		document.writeln('<textarea name="' + this.name + '" id="' + this.name + '" style="width: ' + this.width + 'px; height: ' + this.height + 'px;">' + html + '</textarea>');

	}

	this.getControlNames = function(lable){
		text= lable + "\n\n";
		for(i=0;i<this.controlNames.length;i++){
			text = text + "\t" + this.controlNames[i] + "\n";
		}
		return text;
		
	}
	
	this._renderControls = function(){
	    //alert("this._renderControls");    
		text = "";
		for(x=0;x<this.controlNames.length;x++){
			control = this.controlsByName[this.controlNames[x]];
			if(control){
				text = text + control.getRenderedText();
			}
		}	
		text = text + '</tr>';
		text = text + '</table>';
		document.writeln(text);
	}
	
	this._renderRTE = function(){
	    //alert("this._renderRTE");    
		document.writeln('<style type="text/css">');
		document.writeln('.btnImage {cursor: pointer; cursor: hand;}');
		document.writeln('</style>');

		this._renderControls();
		document.writeln('<iframe id="' + this.name + '" width="' + this.width + 'px" height="' + this.height + 'px"></iframe>');
		//document.writeln('<br /><input type="checkbox" id="chkSrc' + this.name + '" onclick="HyperTextArea.getArea(\''+this.name+'\').toggleHTMLSrc();" />&nbsp;查看HTML代码');
		//reimplement this so that it is not in an iframe, rather in a div.
		document.writeln('<iframe width="145" height="130" id="cp' + this.name + '" name="cp' + this.name + '" marginwidth="0" marginheight="0" scrolling="no" style="visibility:hidden; position: absolute;"></iframe>');
		document.writeln('<input type="hidden" id="hdn' + this.name + '" name="' + this.name + '" value="">');
		document.getElementById('hdn' + this.name).value = this.html;
		this.setContent(this.html);
		setTimeout('onHyperTextAreaLoad(\'' + this.name + '\')', 500);
	}

	this.setContent = function(html){
	    //alert("this.setContent");    
		HyperTextArea.activeArea = this;
		var frameHtml = "<html>\n";
		frameHtml += "<head>\n";
		if (this.styleSheetUrl){
			frameHtml += "<link media=\"all\" type=\"text/css\" href=\"style.css\" rel=\"stylesheet\">\n";
		}
		frameHtml += "</head>\n";
		frameHtml += "<body>\n";
		frameHtml += html;
		frameHtml += "</body>\n";
		frameHtml += "</html>";
		
		if (document.all) {
			var oRTE = frames[this.name].document;
			oRTE.open();
			oRTE.write(frameHtml);
			oRTE.close();

⌨️ 快捷键说明

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