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

📄 edit1.asp

📁 全球商务网站系统介绍 GLOBALEC.COM.CN[生成HTML版] 系统概述: 软件名称:全球商务网站系统 当前版本:V1.0 最新版本:V1.1 运行环境:WINNT+(IIS)
💻 ASP
📖 第 1 页 / 共 5 页
字号:
    }
    if(form.keywords3.value){
        keywords+=','+form.keywords3.value;
    }    
    form.p_z_Z_Keywords.value = keywords
    if(keywords == "") { 
      alert("请填写信息关键字");
      form.keywords.focus();
      return false;
    }
    var pic0 = document.all.picsample_0.value;
    
           var pic1 = 0;
        
           var pic2 = 0;
    
    document.form.p_z_Z_PicsampleArray.value = pic0 + pic1 + pic2;

    
    return true;
}

function previewPost(thisform)  {
    if(setSubjectText()){
	    thisform.target="preview";
	    thisform.action="";
        area.update();
        if(area.html != "") {
           document.form.p_z_Z_Details.value = area.html;
        }
	    var win = window.open("about:blank","preview","toolbar=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=600,height=500");
	    win.focus();
	    thisform.submit();
	}
}
function contentChange(){
    vChange = 1;
}
function post(thisform) {
    if(setSubjectText()){
        if(picWin) {
            picWin.close();
        }
        area.update();
        if(area.html != "") {
           document.form.p_z_Z_Details.value = area.html;
        }
        var strDetail = document.form.p_z_Z_Details.value;
        
        
        if(strDetail !=""){    
            var lxArray= new Array("联系方法","联系方式","联系人","地址:","电话:","手机:","传真:","网址:","地址:","电话:","手机:","传真:","网址:");
            var cont = 0;
            for(i=0;i<lxArray.length;i++){
                if(strDetail.indexOf(lxArray[i])>=0){
                    cont=1;
                }
            }
            if(cont>0){
                alert("您的联系信息已经包含在您的注册资料中。\n"+
                      "为了让您的联系信息具有唯一性,\n"+
                      "请不要在“详细说明”中填写任何联系信息\n"+
                      "(如:联系人、联系电话、传真、手机、电子邮件地址、网址等)。");
                document.form.p_z_Z_Details.focus()
                return;
            }
        }
        
        //设置图片上传状态
        var pic0 = document.all.picsample_0.value;
        
                   var pic1 = 0;
                
                   var pic2 = 0;
        
        document.form.p_z_Z_PicsampleArray.value = pic0 + pic1 + pic2;
        
		//alert(form.p_z_Z_RootCategory.value+','+form.p_z_Z_CategoryId1.value);

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

function changeInfoType(bid){
    var len=form.InfoType.length;
    var catid="mm";
    var type="1";
	var orgSubject="";
	var bid="";
    if (form.p_z_Z_Type[1].checked){
        type = "1";
    }else{
        type = "0";
    }
        
    
    for (var i=0;i<len;i++){
        if (form.InfoType[i].checked){
            var catid = form.InfoType[i].value;
        }
    }
        
   if (catid=="29"||catid=="14"||catid=="30"||catid=="35"||catid=="31" ||catid=="28"){
        <!--当类目作调整时这里也要有调整,当“合作”,“二手”的类目名称变化时也要小心 -->
        <!-- “合作”,“二手”从类目调整为行业-->
        selectBoard(catid,bid);
        form.p_z_Z_RootCategory.disabled = true;          
   }else{
        selectBoard("","");
        form.p_z_Z_RootCategory.disabled = false;                            
   }    
    if (type == "1"){
        form.p_z_Z_Type[1].checked = true;
    }else{
        form.p_z_Z_Type[0].checked = true;
    }
    
    if (catid=="29"||catid=="14"||catid=="30"||catid=="35"||catid=="31" ||catid=="28"){
        if (catid=="29"){
            typeDispBuy.innerHTML = "提供代理";
            typeDispSale.innerHTML = "寻求代理";
        }
        if (catid=="14"){
            typeDispBuy.innerHTML = "寻求加工";
            typeDispSale.innerHTML = "提供加工";
        } 
        if (catid=="30"){
            typeDispBuy.innerHTML = "寻求项目";
            typeDispSale.innerHTML = "提供项目";
        }  
        if (catid=="35"){

            typeDispBuy.innerHTML = "寻求商务服务";
            typeDispSale.innerHTML = "提供商务服务";
        }  
        if (catid=="31"){
            typeDispBuy.innerHTML = "求购库存产品";
            typeDispSale.innerHTML = "提供库存产品";
        }  
        if (catid=="28"){
            typeDispBuy.innerHTML = "求购二手设备";
            typeDispSale.innerHTML = "提供二手设备";
        }    
    }else{
        typeDispBuy.innerHTML = "求购";
        typeDispSale.innerHTML = "供应";
    }           
    
    typeDispBuy.innerHTML = typeDispBuy.innerHTML;
    typeDispSale.innerHTML = typeDispSale.innerHTML;
  
                              
    if (type == "买"){
        if (catid=="14"||catid=="30"||catid=="35"){
            document.form.p_z_Z_Subject.value="寻求"+orgSubject;
        }else if(catid=="29"){
            document.form.p_z_Z_Subject.value="提供"+orgSubject;
        }else{
            document.form.p_z_Z_Subject.value="求购"+orgSubject;
        }
    }else{                       
        if (catid=="14"||catid=="30"||catid=="35"||catid=="31" ||catid=="28") {
            document.form.p_z_Z_Subject.value="提供"+orgSubject;
        }else if (catid=="29"){
            document.form.p_z_Z_Subject.value="寻求"+orgSubject;
        }else{
            document.form.p_z_Z_Subject.value="供应"+orgSubject;
        }
    }
	
}

//用于三张图片显示效果
function table_display(t_id){
  if (t_id == "table100" && document.all.table100.style.display == "none") {
       document.all.table100.style.display="";
       document.all.table101.style.display = "none"
       document.all.table102.style.display = "none";
       
  } else if (t_id == "table101" && document.all.table101.style.display == "none") {
       document.all.table100.style.display= "none";
       document.all.table101.style.display = "";
       document.all.table102.style.display = "none";
       
  } else if (t_id == "table102" && document.all.table102.style.display == "none") {
       document.all.table100.style.display="none";
       document.all.table101.style.display = "none"
       document.all.table102.style.display = "";
       
  } else {
  
       document.all.table100.style.display= "none";
       document.all.table101.style.display = "none"
       document.all.table102.style.display = "none";
  }

}

function delete_picture(id) {
 
     if(id == "0") {
       document.all.uploaded0.src = "../images/detail_no_pic.gif";
       document.all.uploadPicBtn0.value = "上传";
       document.all.picsample_0.value = "0";
                   form.p_z_Z_Picsample.value = "N";
            }
     if(id == "1") {
       document.all.uploaded1.src = "../images/detail_no_pic.gif";
       document.all.uploadPicBtn1.value = "上传";
       document.all.picsample_1.value = "0";
       if((document.all.picsample_0.value == "0")&&(document.all.picsample_2.value == "0")){
          form.p_z_Z_Picsample.value = "N";
       }
     }
     if(id == "2") {
       document.all.uploaded2.src = "../images/detail_no_pic.gif";
       document.all.uploadPicBtn2.value = "上传";
       document.all.picsample_2.value = "0";
       if((document.all.picsample_1.value == "0")&&(document.all.picsample_0.value == "0")){
          form.p_z_Z_Picsample.value = "N";
       }
     }
}

function set_picture(id,ImageUrl) {
 
     if(id == "0") {
       document.all.uploaded0.src = ImageUrl;
       document.all.uploadPicBtn0.value = "上传";
       document.all.picsample_0.value = "0";
       form.p_z_Z_Picsample.value = ImageUrl;
	   form.p_z_Z_TmpPictureName.value= ImageUrl;
     }
     if(id == "1") {
       document.all.uploaded1.src = ImageUrl;
       document.all.uploadPicBtn1.value = "上传";
       document.all.picsample_1.value = "0";
       if((document.all.picsample_0.value == "0")&&(document.all.picsample_2.value == "0")){
          form.p_z_Z_Picsample.value = ImageUrl;
		  form.p_z_Z_TmpPictureName.value= ImageUrl;
       }
     }
     if(id == "2") {
       document.all.uploaded2.src = ImageUrl;
       document.all.uploadPicBtn2.value = "上传";
       document.all.picsample_2.value = "0";
       if((document.all.picsample_1.value == "0")&&(document.all.picsample_0.value == "0")){
          form.p_z_Z_Picsample.value = ImageUrl;
		  form.p_z_Z_TmpPictureName.value= ImageUrl;
       }
     }
}
function trim(inputString) {
	   
              if (typeof inputString != "string") { return inputString; }
              var retValue = inputString;
              var ch = retValue.substring(0, 1);
              while (ch == " ") { 
	          //检查字符串开始部分的空格
                  retValue = retValue.substring(1, retValue.length);
                  ch = retValue.substring(0, 1);
              }
              ch = retValue.substring(retValue.length-1, retValue.length);
              while (ch == " ") {
                 //检查字符串结束部分的空格
                 retValue = retValue.substring(0, retValue.length-1);
                 ch = retValue.substring(retValue.length-1, retValue.length);
              }
              while (retValue.indexOf("  ") != -1) { 
	         //将文字中间多个相连的空格变为一个空格
                 retValue = retValue.substring(0, retValue.indexOf("  ")) + retValue.substring(retValue.indexOf("  ")+1, retValue.length); 
              }
              return retValue;
           } 	
</SCRIPT>
                  <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;"> <span class="c"><font color="#ff0000">“重发”和“新发”的信息排名,享受同等待遇:</font> </span><br>
                          <font color="#000000">如果您暂时没有全新的产品推出,只需在“管理商业信息”中将以前的信息点击“重发”即可,通过更新发布时间来争取排名!</font></td>
                    </tr>
                  </table>            <FORM method="post" Action="save_edit.asp" Name="form" >
                          <input type='hidden' name='PID' value="">
                          <input type='hidden' name='catId' value="">
                          <input type='hidden' name='ruler_id' value="">
                          <input type='hidden' name='parent_id' value="">
                          <input type='hidden' name='SelectOfferId' value="">
                          <input type='hidden' name="p_z_Z_PictureName" value = "">
                          <input type='hidden' name="p_z_Z_TmpPictureName" value = "">
                          <input type='hidden' name="p_z_Z_PicsampleArray" value = "">
                          <input type='hidden' name="draw" value = "">
                          <input type='hidden' name="draw1" value = "">
                          <input type='hidden' name="draw2" value = "">
						  <input type='hidden' name='jinj' value="">
                          <input type='hidden' name='info_id' value="<%=info_id%>">
<input type='hidden' name='picture_summ' value="">
                        <TABLE cellSpacing=0 cellPadding=4 width="100%" border=0>
              <TBODY>
              <TR>
                <TD>提示:<font color="red">*</font>为必填项</TD>
                        <TD align=right><IMG src="../images/offerfaq.gif" 
                  align=absMiddle border=0> <A 
                  href="javascript:win=window.open('/help/infoexample.html','contact','width=650,height=500,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no');win.focus();"><B><FONT 
                  color=#ff0000>发布供求信息指导</FONT></B></A> | <A 
                  href="javascript:win=window.open('/help/example.html','contact','width=650,height=500,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no');win.focus();">查看范例</A> | <a href="javascript:history.go(-4)">后退</a>&nbsp; 
                        </TD>
                </TR></TBODY></TABLE>
                  <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 width="18%"  bgcolor=#FFFCF7 class=C><font color="#FF0000">*</font> 
                                <b>信息类型:</b></td>
                        <td width="80%" bgcolor=#FFF8EE class="lh15">
						        <input type="radio" name="InfoType" value="mm"  onclick='javascript:changeInfoType("");' checked >供求 
						        <input type="radio" name="InfoType" value="29" onclick='javascript:changeInfoType("");'  >代理 
                                <input type="radio" name="InfoType" value="14" onclick='javascript:changeInfoType("");'  >加工 
                                <input type="radio" name="InfoType" value="30" onclick='javascript:changeInfoType("");'  >合作 
                                <input type="radio" name="InfoType" value="35" onclick='javascript:changeInfoType("");'  >商务服务 
                                <input type="radio" name="InfoType" value="31" onclick='javascript:changeInfoType("");'  >库存产品 
                                <input type="radio" name="InfoType" value="28" onclick='javascript:changeInfoType("");'  >二手设备                                 
                      <br><img src="../images/shim.gif" width="1" height="8"></td>
                    </tr>
              <TR>
                <TD class=C width="20%" bgColor=#FFFCF7><FONT 

⌨️ 快捷键说明

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