行业网站建设论坛,开源论坛,中国建站论坛,.net程序员社区-易想论坛

首页 » YxB2B商务网交流 » 安装使用 » 关于给易想用户页面增加可视编辑框问题
狐龙 - 2008-9-3 18:48:00
超超管管
  能帮下不?
  因为用户模板没几套好看的,不能满足用户需求,不能个性自己的页面。所有本人在做用户首页可视编辑器。编辑页面为首页公司简介内从新调整用户模板布局。
  现在我的编辑器已经嵌入进去。但是提交数据时就过滤了“< >”等符号
所有今天特来请教。

<script Language="JavaScript">
function gosure()
{
var i=confirm("你确定要删除吗?");
if(i)
{
return true;
}
else
{
return false;
}
}
function FormCheck()
{
if (trim(document.Form1.qymc.value) =="")
{
alert("请输入公司全称!");
document.Form1.qymc.focus();
return (false);
}
if (trim(document.Form1.p_z_Z_EmployeesCount.value) =="")
{
alert("请选择公司员工人数!");
document.Form1.p_z_Z_EmployeesCount.focus();
return (false);
}
if (trim(document.Form1.p_z_Z_LegalStatus.value) =="")
{
alert("请选择企业类型!");
document.Form1.p_z_Z_LegalStatus.focus();
return (false);
}
var  check=true;
      for(var i=0;i<document.Form1.qylb.length;i++){
if (document.Form1.qylb[i].checked) {
  check=false;
  break;
        }
      }
              if (check){
          alert("请选择企业经营模式!");
          document.Form1.qylb[0].focus();
          return (false);
      }
   
    if (trim(document.Form1.p_z_Z_AnnualRevenue.value) =="")
{
alert("请选择企业年营业额!");
document.Form1.p_z_Z_AnnualRevenue.focus();
return (false);
}
if(trim(document.Form1.productionService.value) == "")
{
alert("主要相关产品名/服务名最少要填一个\n\n并且按左至右的顺序填写");
document.Form1.productionService.focus();
return (false);
}
if (trim(document.Form1.p_z_Z_FoundedPlace.value) =="")
{
alert("请填写公司注册地!");
document.Form1.p_z_Z_FoundedPlace.focus();
return (false);
}
if (trim(document.Form1.p_z_Z_BizPlace.value) =="")
{
alert("请填写主要经营地点!");
document.Form1.p_z_Z_BizPlace.focus();
return (false);
}
if (trim(document.Form1.qyjj.value.length) <50)
{
alert("公司介绍不能少于50字");
document.Form1.qyjj.focus();
return (false);
}
if (trim(document.Form1.qyjj.value.length) >3000)
{
alert("公司介绍不能多于2000字");
document.Form1.qyjj.focus();
return (false);
}
if (trim(document.Form1.phonecountry.value) =="")
{
alert("请输入联系电话的国家区号!");
document.Form1.phonecountry.focus();
return (false);
}
var filter=/^\s*[0-9]{0,3}\s*$/;
if (!filter.test(document.Form1.phonecountry.value)) {
alert("国家区号不正确,请重新填写!不超过3个数字,注意不要使用空格。");
document.Form1.phonecountry.focus();
document.Form1.phonecountry.select();
return false;
}
if (trim(document.Form1.phonearea.value) =="")
{
alert("请输入联系电话的城市区号!");
document.Form1.phonearea.focus();
return (false);
}
var filter=/^\s*[0-9]{0,4}\s*$/;
if (!filter.test(document.Form1.phonearea.value)) {
alert("城市区号不正确,请重新填写!不超过4个数字,注意不要使用空格。");
document.Form1.phonearea.focus();
document.Form1.phonearea.select();
return false;
}
if (trim(document.Form1.phonenumber.value) =="")
{
alert("请输入您的联系电话号码!");
document.Form1.phonenumber.focus();
return (false);
}
if (trim(document.Form1.country1.value) =="中国")
{
if (trim(document.Form1.province.value) =="")
{
alert("请选择省份!");
document.Form1.province.focus();
return (false);
}
if (trim(document.Form1.city.value) =="")
{
alert("请选择地级城市!");
document.Form1.city.focus();
return (false);
}
}
if (trim(document.Form1.address.value) =="")
{
alert("请输入您的联系地址!");
document.Form1.address.focus();
return (false);
}
if (trim(document.Form1.email.value) =="")
{
alert("请输入您的电子邮件地址!");
document.Form1.email.focus();
document.Form1.email.select();
return false;
}
var str1 = document.Form1.email.value
if(str1.indexOf("@") == -1 || str1.indexOf(".") == -1){
alert("E-mail格式不正确,请重新填写!");
document.Form1.email.focus();
document.Form1.email.select();
return false;
}
  var productionService = Form1.productionService.value;
  for(i=0;i<productionService.length;i++){productionService=productionService.replace(',',',');}
    if(Form1.productionService2.value){
        for(i=0;i<Form1.productionService2.value.length;i++){Form1.productionService2.value=Form1.productionService2.value.replace(',',',');}
        productionService+=','+Form1.productionService2.value;
    }
    if(Form1.productionService3.value){
        for(i=0;i<Form1.productionService3.value.length;i++){Form1.productionService3.value=Form1.productionService3.value.replace(',',',');}
        productionService+=','+Form1.productionService3.value;
    }   
    Form1.p_z_Z_productionService.value = productionService

document.Form1.submit()
}
//-->
//-->
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>

function gosure()
{
var i=confirm("你确定要删除吗?");
if(i)
{
return true;
}
else
{
return false;
}
}
function FormCheck()
{
if (trim(document.Form1.qymc.value) =="")
{
alert("请输入公司全称!");
document.Form1.qymc.focus();
return (false);
}
if (trim(document.Form1.p_z_Z_EmployeesCount.value) =="")
{
alert("请选择公司员工人数!");
document.Form1.p_z_Z_EmployeesCount.focus();
return (false);
}
if (trim(document.Form1.p_z_Z_LegalStatus.value) =="")
{
alert("请选择企业类型!");
document.Form1.p_z_Z_LegalStatus.focus();
return (false);
}
var  check=true;
      for(var i=0;i<document.Form1.qylb.length;i++){
if (document.Form1.qylb[i].checked) {
  check=false;
  break;
        }
      }
              if (check){
          alert("请选择企业经营模式!");
          document.Form1.qylb[0].focus();
          return (false);
      }
   
    if (trim(document.Form1.p_z_Z_AnnualRevenue.value) =="")
{
alert("请选择企业年营业额!");
document.Form1.p_z_Z_AnnualRevenue.focus();
return (false);
}
if(trim(document.Form1.productionService.value) == "")
{
alert("主要相关产品名/服务名最少要填一个\n\n并且按左至右的顺序填写");
document.Form1.productionService.focus();
return (false);
}
if (trim(document.Form1.p_z_Z_FoundedPlace.value) =="")
{
alert("请填写公司注册地!");
document.Form1.p_z_Z_FoundedPlace.focus();
return (false);
}
if (trim(document.Form1.p_z_Z_BizPlace.value) =="")
{
alert("请填写主要经营地点!");
document.Form1.p_z_Z_BizPlace.focus();
return (false);
}
if (trim(document.Form1.qyjj.value.length) <50)
{
alert("公司介绍不能少于50字");
document.Form1.qyjj.focus();
return (false);
}
if (trim(document.Form1.qyjj.value.length) >3000)
{
alert("公司介绍不能多于2000字");
document.Form1.qyjj.focus();
return (false);
}
if (trim(document.Form1.phonecountry.value) =="")
{
alert("请输入联系电话的国家区号!");
document.Form1.phonecountry.focus();
return (false);
}
var filter=/^\s*[0-9]{0,3}\s*$/;
if (!filter.test(document.Form1.phonecountry.value)) {
alert("国家区号不正确,请重新填写!不超过3个数字,注意不要使用空格。");
document.Form1.phonecountry.focus();
document.Form1.phonecountry.select();
return false;
}
if (trim(document.Form1.phonearea.value) =="")
{
alert("请输入联系电话的城市区号!");
document.Form1.phonearea.focus();
return (false);
}
var filter=/^\s*[0-9]{0,4}\s*$/;
if (!filter.test(document.Form1.phonearea.value)) {
alert("城市区号不正确,请重新填写!不超过4个数字,注意不要使用空格。");
document.Form1.phonearea.focus();
document.Form1.phonearea.select();
return false;
}
if (trim(document.Form1.phonenumber.value) =="")
{
alert("请输入您的联系电话号码!");
document.Form1.phonenumber.focus();
return (false);
}
if (trim(document.Form1.country1.value) =="中国")
{
if (trim(document.Form1.province.value) =="")
{
alert("请选择省份!");
document.Form1.province.focus();
return (false);
}
if (trim(document.Form1.city.value) =="")
{
alert("请选择地级城市!");
document.Form1.city.focus();
return (false);
}
}
if (trim(document.Form1.address.value) =="")
{
alert("请输入您的联系地址!");
document.Form1.address.focus();
return (false);
}
if (trim(document.Form1.email.value) =="")
{
alert("请输入您的电子邮件地址!");
document.Form1.email.focus();
document.Form1.email.select();
return false;
}
var str1 = document.Form1.email.value
if(str1.indexOf("@") == -1 || str1.indexOf(".") == -1){
alert("E-mail格式不正确,请重新填写!");
document.Form1.email.focus();
document.Form1.email.select();
return false;
}
  var productionService = Form1.productionService.value;
  for(i=0;i<productionService.length;i++){productionService=productionService.replace(',',',');}
    if(Form1.productionService2.value){
        for(i=0;i<Form1.productionService2.value.length;i++){Form1.productionService2.value=Form1.productionService2.value.replace(',',',');}
        productionService+=','+Form1.productionService2.value;
    }
    if(Form1.productionService3.value){
        for(i=0;i<Form1.productionService3.value.length;i++){Form1.productionService3.value=Form1.productionService3.value.replace(',',',');}
        productionService+=','+Form1.productionService3.value;
    }   
    Form1.p_z_Z_productionService.value = productionService

document.Form1.submit()
}
//-->
//-->
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;
          }
//-->


所在页面/member/corporation/company_edit.asp
狐龙 - 2008-9-3 18:50:00
被改后的页面代码为:
[code]<meta http-equiv="Content-Type" c>
<!--#include file="../head.asp"-->
  <!--#include file="../checkrole.asp"-->
<%

    call checkuser("gj")
if issession=0 then
id=Replace_Text(request.Cookies("Yxmemberid"))
username=Replace_Text(request.Cookies("Yxmember"))
else
id=session("id")
username=session("user")
end if

sql="select * from Yixiang_corporation where id="&id&""
Set rs= Server.CreateObject("ADODB.Recordset")
rs.open sql,conn,1,1
if rs.eof then
response.Redirect("../index.asp")
response.end
else
zycp=rs("zycp")
pharry=split(rs("phone")," ")
faarry=split(rs("fax")," ")
%>

<script Language="JavaScript">
function gosure()
{
var i=confirm("你确定要删除吗?");
if(i)
{
return true;
}
else
{
return false;
}
}
function FormCheck()
{
if (trim(document.Form1.qymc.value) =="")
{
alert("请输入公司全称!");
document.Form1.qymc.focus();
return (false);
}
if (trim(document.Form1.p_z_Z_EmployeesCount.value) =="")
{
alert("请选择公司员工人数!");
document.Form1.p_z_Z_EmployeesCount.focus();
return (false);
}
if (trim(document.Form1.p_z_Z_LegalStatus.value) =="")
{
alert("请选择企业类型!");
document.Form1.p_z_Z_LegalStatus.focus();
return (false);
}
var  check=true;
      for(var i=0;i<document.Form1.qylb.length;i++){
if (document.Form1.qylb.checked) {
  check=false;
  break;
        }
      }
              if (check){
          alert("请选择企业经营模式!");
          document.Form1.qylb[0].focus();
          return (false);
      }
   
    if (trim(document.Form1.p_z_Z_AnnualRevenue.value) =="")
{
alert("请选择企业年营业额!");
document.Form1.p_z_Z_AnnualRevenue.focus();
return (false);
}
if(trim(document.Form1.productionService.value) == "")
{
alert("主要相关产品名/服务名最少要填一个\n\n并且按左至右的顺序填写");
document.Form1.productionService.focus();
return (false);
}
if (trim(document.Form1.p_z_Z_FoundedPlace.value) =="")
{
alert("请填写公司注册地!");
document.Form1.p_z_Z_FoundedPlace.focus();
return (false);
}
if (trim(document.Form1.p_z_Z_BizPlace.value) =="")
{
alert("请填写主要经营地点!");
document.Form1.p_z_Z_BizPlace.focus();
return (false);
}
if (trim(document.Form1.qyjj.value.length) <50)
{
alert("公司介绍不能少于50字");
document.Form1.qyjj.focus();
return (false);
}
if (trim(document.Form1.qyjj.value.length) >2000)
{
alert("公司介绍不能多于2000字");
document.Form1.qyjj.focus();
return (false);
}
if (trim(document.Form1.phonecountry.value) =="")
{
alert("请输入联系电话的国家区号!");
document.Form1.phonecountry.focus();
return (false);
}
var filter=/^\s*[0-9]{0,3}\s*$/;
if (!filter.test(document.Form1.phonecountry.value)) {
alert("国家区号不正确,请重新填写!不超过3个数字,注意不要使用空格。");
document.Form1.phonecountry.focus();
document.Form1.phonecountry.select();
return false;
}
if (trim(document.Form1.phonearea.value) =="")
{
alert("请输入联系电话的城市区号!");
document.Form1.phonearea.focus();
return (false);
}
var filter=/^\s*[0-9]{0,4}\s*$/;
if (!filter.test(document.Form1.phonearea.value)) {
alert("城市区号不正确,请重新填写!不超过4个数字,注意不要使用空格。");
document.Form1.phonearea.focus();
document.Form1.phonearea.select();
return false;
}
if (trim(document.Form1.phonenumber.value) =="")
{
alert("请输入您的联系电话号码!");
document.Form1.phonenumber.focus();
return (false);
}
if (trim(document.Form1.country1.value) =="中国")
{
if (trim(document.Form1.province.value) =="")
{
alert("请选择省份!");
document.Form1.province.focus();
return (false);
}
if (trim(document.Form1.city.value) =="")
{
alert("请选择地级城市!");
document.Form1.city.focus();
return (false);
}
}
if (trim(document.Form1.address.value) =="")
{
alert("请输入您的联系地址!");
document.Form1.address.focus();
return (false);
}
if (trim(document.Form1.email.value) =="")
{
alert("请输入您的电子邮件地址!");
document.Form1.email.focus();
document.Form1.email.select();
return false;
}
var str1 = document.Form1.email.value
if(str1.indexOf("@") == -1 || str1.indexOf(".") == -1){
alert("E-mail格式不正确,请重新填写!");
document.Form1.email.focus();
document.Form1.email.select();
return false;
}
  var productionService = Form1.productionService.value;
  for(i=0;i<productionService.length;i++){productionService=productionService.replace(',',',');}
    if(Form1.productionService2.value){
        for(i=0;i<Form1.productionService2.value.length;i++){Form1.productionService2.value=Form1.productionService2.value.replace(',',',');}
        productionService+=','+Form1.productionService2.value;
    }
    if(Form1.productionService3.value){
        for(i=0;i<Form1.productionService3.value.length;i++){Form1.productionService3.value=Form1.productionService3.value.replace(',',',');}
        productionService+=','+Form1.productionService3.value;
    }   
    Form1.p_z_Z_productionService.value = productionService

document.Form1.submit()
}
//-->
//-->
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>
<br>
<TABLE width=778 border=0 align="center" cellPadding=0 cellSpacing=0>
  <TBODY>
  <TR>
    <TD
    style="BACKGROUND-POSITION: right 50%; BACKGROUND-IMAGE: url(i../mages/bg1.gif); BACKGROUND-REPEAT: repeat-y; BACKGROUND-COLOR: #ffffff"
    vAlign=top align=middle>      <TABLE cellSpacing=0 cellPadding=0 width=100% border=0>
        <TBODY>
        <TR>
          <TD width="74%"><IMG height=32 src="../images/company_add.gif" width=576
            border=0></TD>
          <TD width="26%" background="../images/info_bg.gif"> </TD>
        </TR></TBODY></TABLE>
      <TABLE class=content_border cellSpacing=0 cellPadding=0 width=100%
border=0>
        <TBODY>
        <TR>
          <TD align=middle>
<FORM name="Form1" action="company_save.asp" method="post">
<TABLE cellSpacing=0 cellPadding=4 width="100%" border=0>
              <TBODY>
              <TR>
                <TD align=right bgcolor="#EFF7FF">为提高发布效率,获得更多贸易机会,请用汉字如实填写以下表格。 (打<FONT
                  color=#ff0000>*</FONT>为必填项)</TD>
              </TR></TBODY></TABLE>
           
            <table width="100%"  >
        <tr>
          <td height="30" bgcolor="#F9F9F9"><font color="red">◆</font><strong><font style="font-size:14px;">创建公司档案</font> </strong></td>
        </tr>
      </table>
            <TABLE cellSpacing=2 cellPadding=1 width="100%" border=0>
              <COLGROUP>
              <COL class=formtop></COLGROUP>
              <TBODY>
             
              <TR>
                <TD class=C width="28%" bgColor=#eff7ff><FONT color=#ff0000>*
                  </FONT><B>公司全称:</B></TD>
                <TD width="75%" bgColor=#ffffde><INPUT maxLength=50 size=30
                  value="<%=rs("qymc")%>" name="qymc"><BR><SPAN
                  class=note>请填写贵公司的<font color="red">中文全称</font>(4~25个汉字)。</SPAN></TD></TR>
                  <tr>
        <td class="C" bgcolor=EFF7FF><font color="ff0000">*</font> <b>员工人数:</b></td>
        <td bgcolor=FFFFDE>
          <select name="p_z_Z_EmployeesCount">
            <option value="0"    selected  > -- 请选择 --</option>
            <option value="1" <%if rs("p_z_Z_EmployeesCount")=1 then response.write"selected"%>> 5 人以下 </option>
            <option value="2" <%if rs("p_z_Z_EmployeesCount")=2 then response.write"selected"%>> 5 - 10 人 </option>
            <option value="3" <%if rs("p_z_Z_EmployeesCount")=3 then response.write"selected"%>> 11 - 50 人 </option>
            <option value="4" <%if rs("p_z_Z_EmployeesCount")=4 then response.write"selected"%>> 51 - 100 人 </option>
            <option value="5" <%if rs("p_z_Z_EmployeesCount")=5 then response.write"selected"%>> 101 - 200 人 </option>
            <option value="6" <%if rs("p_z_Z_EmployeesCount")=6 then response.write"selected"%>> 201 - 300 人 </option>
            <option value="7" <%if rs("p_z_Z_EmployeesCount")=7 then response.write"selected"%>> 301 - 500 人 </option>
            <option value="8" <%if rs("p_z_Z_EmployeesCount")=8 then response.write"selected"%>> 501 - 1000 人 </option>
            <option value="9" <%if rs("p_z_Z_EmployeesCount")=9 then response.write"selected"%>> 1000 人以上 </option>
          </select> <font color=red class=S>(为了赢得客户信任,请您正确选择贵公司员工人数)</font>
        </td>
      </tr>
狐龙 - 2008-9-3 18:51:00
<tr>
        <td class="C" bgcolor=EFF7FF><font color="ff0000">*</font> <b>企业类型:</b></td>
        <td bgcolor=FFFFDE>
        <select name="p_z_Z_LegalStatus">
          <option value="0"      selected  > --请选择-- </option>
          <option value="24" <%if rs("p_z_Z_LegalStatus")=24 then response.write"selected"%>>个体工商户</option>
          <option value="3" <%if rs("p_z_Z_LegalStatus")=3 then response.write"selected"%>>私营独资企业</option>
          <option value="8" <%if rs("p_z_Z_LegalStatus")=8 then response.write"selected"%>>私营合伙企业</option>
          <option value="9" <%if rs("p_z_Z_LegalStatus")=9 then response.write"selected"%>>私营有限责任公司</option>
          <option value="10" <%if rs("p_z_Z_LegalStatus")=10 then response.write"selected"%>>私营股份有限公司</option>
          <option value="4" <%if rs("p_z_Z_LegalStatus")=4 then response.write"selected"%>>国有企业</option>
          <option value="11" <%if rs("p_z_Z_LegalStatus")=11 then response.write"selected"%>>集体企业</option>
          <option value="12" <%if rs("p_z_Z_LegalStatus")=12 then response.write"selected"%>>股份合作企业</option>
          <option value="13" <%if rs("p_z_Z_LegalStatus")=13 then response.write"selected"%>>联营企业</option>
          <option value="14" <%if rs("p_z_Z_LegalStatus")=14 then response.write"selected"%>>国有独资公司</option>
          <option value="15" <%if rs("p_z_Z_LegalStatus")=15 then response.write"selected"%>>其他有限责任公司</option>
          <option value="16" <%if rs("p_z_Z_LegalStatus")=16 then response.write"selected"%>>股份有限公司</option>
          <option value="17" <%if rs("p_z_Z_LegalStatus")=17 then response.write"selected"%>>其他内资企业</option>
          <option value="">----------------------</option>
          <option value="18" <%if rs("p_z_Z_LegalStatus")=18 then response.write"selected"%>>与港澳台商合资经营</option>
          <option value="19" <%if rs("p_z_Z_LegalStatus")=19 then response.write"selected"%>>与港澳台商合作经营</option>
          <option value="20" <%if rs("p_z_Z_LegalStatus")=20 then response.write"selected"%>>港澳台商独资</option>
          <option value="21" <%if rs("p_z_Z_LegalStatus")=21 then response.write"selected"%>>港澳台商投资股份有限公司</option>
          <option value="2" <%if rs("p_z_Z_LegalStatus")=2 then response.write"selected"%>>中外合资经营</option>
          <option value="22" <%if rs("p_z_Z_LegalStatus")=22 then response.write"selected"%>>中外合作经营</option>
          <option value="1" <%if rs("p_z_Z_LegalStatus")=1 then response.write"selected"%>>外商独资</option>
          <option value="23" <%if rs("p_z_Z_LegalStatus")=23 then response.write"selected"%>>外商投资股份有限公司</option>
          <option value="">----------------------</option>
          <option value="5" <%if rs("p_z_Z_LegalStatus")=5 then response.write"selected"%>>政府机构</option>
          <option value="6" <%if rs("p_z_Z_LegalStatus")=6 then response.write"selected"%>>非盈利组织</option>
          <option value="7" <%if rs("p_z_Z_LegalStatus")=7 then response.write"selected"%>>其他</option>
        </select>
        </td>
      </tr>
  <TR>
                <TD class=C align=right bgColor=#eff7ff><FONT color=#ff0000>* </FONT><B>经营模式:</B></TD>
                <TD bgColor=#ffffde><INPUT type=checkbox value="生产型" <%if instr(rs("qylb"),"生产型")>0 then Response.Write "checked"%> name=qylb>生产型
    <INPUT type=checkbox value="贸易型" <%if  instr(rs("qylb"),"贸易型")>0  then Response.Write "checked"%> name=qylb>贸易型
    <INPUT type=checkbox value="服务型" <%if  instr(rs("qylb"),"服务型")>0  then Response.Write "checked"%> name=qylb>服务型
      <INPUT  type=checkbox value="政府或其他机构" <%if instr(rs("qylb"),"政府或其他机构")>0  then Response.Write "checked"%> name=qylb>政府或其他机构 </TD></TR>
                <tr>
        <td class="C" bgcolor=EFF7FF><font color="ff0000">*</font> <b>年营业额:</b></td>
        <td bgcolor=FFFFDE>
          <select name="p_z_Z_AnnualRevenue">
            <option value="0"      selected  > --请选择-- </option>
            <option value="1" <%if rs("p_z_Z_AnnualRevenue")=1 then response.write"selected"%>>人民币 10 万元/年以下</option>
            <option value="2" <%if rs("p_z_Z_AnnualRevenue")=2 then response.write"selected"%>>人民币 10 万元/年 - 30 万元/年</option>
            <option value="3" <%if rs("p_z_Z_AnnualRevenue")=3 then response.write"selected"%>>人民币 30 万元/年 - 50 万元/年</option>
            <option value="4" <%if rs("p_z_Z_AnnualRevenue")=4 then response.write"selected"%>>人民币 50 万元/年 - 100 万元/年</option>
            <option value="5" <%if rs("p_z_Z_AnnualRevenue")=5 then response.write"selected"%>>人民币 100 万元/年 - 200 万元/年</option>
            <option value="6" <%if rs("p_z_Z_AnnualRevenue")=6 then response.write"selected"%>>人民币 200 万元/年 - 300 万元/年</option>
            <option value="7" <%if rs("p_z_Z_AnnualRevenue")=7 then response.write"selected"%>>人民币 300 万元/年 - 500 万元/年</option>
            <option value="8" <%if rs("p_z_Z_AnnualRevenue")=8 then response.write"selected"%>>人民币 500 万元/年 - 700 万元/年</option>
            <option value="9" <%if rs("p_z_Z_AnnualRevenue")=9 then response.write"selected"%>>人民币 700 万元/年 - 1000 万元/年</option>
            <option value="10" <%if rs("p_z_Z_AnnualRevenue")=10 then response.write"selected"%>>人民币 1000 万元/年 - 2000 万元/年</option>
            <option value="11" <%if rs("p_z_Z_AnnualRevenue")=11 then response.write"selected"%>>人民币 2000 万元/年 - 3000 万元/年</option>
            <option value="12" <%if rs("p_z_Z_AnnualRevenue")=15 then response.write"selected"%>>人民币 3000 万元/年 - 5000 万元/年</option>
            <option value="13" <%if rs("p_z_Z_AnnualRevenue")=13 then response.write"selected"%>>人民币 5000 万元/年 - 1 亿元/年</option>
            <option value="14" <%if rs("p_z_Z_AnnualRevenue")=14 then response.write"selected"%>>人民币 1 亿元/年以上</option>
          </select>
        </td>
      </tr>
  <TR>
                <TD class=C bgColor=#eff7ff><FONT color=#ff0000>*</FONT>
                  <B>主营产品/服务:</B></TD>
                <TD bgColor=#ffffde>
              <%
    if zycp>"" then
      if instr(zycp,",")>0 then
            zcarry=split(rs("zycp"),",")
            if ubound(zcarry)=1 then
              response.write"<INPUT maxLength=20 size=10 value='"&zcarry(0)&"' name=productionService>, <INPUT maxLength=20 size=10 value='"&zcarry(1)&"' name=productionService2>, <INPUT maxLength=20 size=10 name=productionService3>"
              elseif ubound(zcarry)=2 then
              response.write"<INPUT maxLength=20 size=10 value='"&zcarry(0)&"' name=productionService>, <INPUT maxLength=20 size=10 value='"&zcarry(1)&"' name=productionService2>, <INPUT maxLength=20 size=10 value='"&zcarry(2)&"' name=productionService3>"
                          elseif ubound(zcarry)>2 then
              response.write"<INPUT maxLength=20 size=10 value='"&zcarry(0)&"' name=productionService>, <INPUT maxLength=20 size=10 value='"&zcarry(1)&"' name=productionService2>, <INPUT maxLength=20 size=10 value='"&zcarry(2)&"' name=productionService3>"
                        end if
      else
      response.write"<INPUT maxLength=20 size=10 value='"&zycp&"' name=productionService>, <INPUT maxLength=20 size=10 name=productionService2>, <INPUT maxLength=20 size=10 name=productionService3>"
                  end if
    else
    response.write"<INPUT maxLength=20 size=10 name=productionService>, <INPUT maxLength=20 size=10 name=productionService2>, <INPUT maxLength=20 size=10 name=productionService3>"
    end if%>
             
    <INPUT type=hidden
                  name=p_z_Z_productionService> <BR>
                          <SPAN class=note>(3个主要相关产品名/服务名,最少要填一个) </SPAN></TD>
                      </TR>
      <tr>
        <td class="C" bgcolor=EFF7FF><font color="ff0000">*</font> <b>公司注册地:</b></td>
        <td bgcolor=FFFFDE>
          <input type="text" name="p_z_Z_FoundedPlace" value="<%=rs("p_z_Z_FoundedPlace")%>" size="30" maxlength=50>
          <span class="note">(城市)</span>
        </td>
      </tr>
            <tr>
        <td class="C" bgcolor=EFF7FF><font color="ff0000">*</font> <b>主要经营地点:</b></td>
        <td bgcolor=FFFFDE>
          <input type="text" name="p_z_Z_BizPlace" value="<%=rs("p_z_Z_BizPlace")%>" size="30" maxlength=50>
        </td>
      </tr>
    <TR>
                <TD class=C width="28%" bgColor=#eff7ff><FONT color=#ff0000>*
                  </FONT><B>公司介绍:</B><BR>
                          <SPAN
                  class=note>(50-2000字)</SPAN></TD>
                <TD bgColor=#ffffde><TEXTAREA name="qyjj" style="display:none"><%=rs("qyjj")%></TEXTAREA><iframe ID="eWebEditor1" src="../../eWebEditor/ewebeditor.htm?id=qyjj&style=coolblue" frameborder="0" scrolling="no" width="617" HEIGHT="450"></iframe><BR><FONT
                  class=note>
                  <LI>此处<FONT
                  color=#ff0000>禁止填写联系人、电话、传真、地址、网址、email等信息</FONT>。这些信息需在下面的表格里填写。
                  <LI>请用汉字描述公司优势(不要用英文),不要反复复制。
                  <LI>不要使用广告词或夸大性的语句,不要加图片及Html代码。 </LI></FONT>
   
    <%
    if rs("despic")<>"" then
    picjs=split(Replace_Text(rs("despic")),",")
    if  ubound(picjs)<10 then
   
      %>  <br><br>
      <iframe id="d_file" frameborder="0" src="../../inc/upload.asp?tMode=10&istwo=0&utype=guser&guser=<%=username%>" width="300" height="40" scrolling="no"></iframe>
       
      <div id="zhu" align="center"    ><font color="blue" style="cursor:hand"><b>再传一张</b></font></div>
    <%
    end if
    else
    %>
      <br><br>
      <iframe id="d_file" frameborder="0" src="../../inc/upload.asp?tMode=10&istwo=0&utype=guser&guser=<%=username%>" width="300" height="40" scrolling="no"></iframe>
       
      <div id="zhu" align="center"    ><font color="blue" style="cursor:hand"><b>再传一张</b></font></div>
    <%
     
    end if
    %>
    <br>
<input type="text"  name="picture" value="<%=rs("despic")%>"  readonly style="display:none">   
提示:公司简介展示性图片最多10张(操作:<font color="red">上传完后,点击提交按钮即可生效!</font>)<br>
    <table border="1" width="100%" cellpadding="0" bgcolor="#FFFFFF"  bordercolor="#F5F5F5" cellspacing="0" align="center"><tr><%
    if rs("despic")<>"" then
    picjs=split(Replace_Text(rs("despic")),",")
      for i=0 to  ubound(picjs)-1
    %>
<td><%=i+1%>. <a href="<%=HOPE_InstallDir%>vipcom/<%=username%>/<%=picjs(i)%>" target="_blank"><img border="0"  width="35"  height="35" src="<%=HOPE_InstallDir%>vipcom/<%=username%>/<%=picjs(i)%>"></a><a href="delpic.asp?noid=<%=picjs(i)%>" >删除</a></td>
    <%
    if (i+1) mod 5=0 then
    response.Write("</tr><tr>")   
    end if
    next
    end if
    %></tr></table>
      </TD></TR>
      <tr>
      <td class="C" bgcolor=EFF7FF> <b>公司成立时间:</b></td>
        <td bgcolor=FFFFDE>
          <input type="text" size=4 maxlength=4 name="p_z_Z_EstablishedYear" value="<%=rs("p_z_Z_EstablishedYear")%>" >
          <span class=note>(年份,如:2004)</span>
        </td>
      </tr>
            <tr>
        <td class="C" bgcolor=EFF7FF> <b>品牌名称:</b></td>
        <td bgcolor=FFFFDE>
          <input type="text" name="p_z_Z_BrandName" value="<%=rs("p_z_Z_BrandName")%>" size="30" maxlength=32>
        </td>
      </tr>
            <tr>
        <td class="C" bgcolor=EFF7FF> <b>法人代表/负责人:</b></td>
        <td bgcolor=FFFFDE>
          <input name="frdb" type="text" id="frdb" value="<%=rs("frdb")%>" size=30 maxlength=32>
        </td>
      </tr>
            <tr>
        <td class="C" bgcolor=EFF7FF> <b>注册资金:</b></td>
        <td bgcolor=FFFFDE>
          <select name="p_z_Z_RegCapital">
        <option value="0"      selected  > --请选择-- </option>
            <option value="1" <%if rs("p_z_Z_RegCapital")=1 then response.write"selected"%>>人民币 10 万元以下</option>
            <option value="2" <%if rs("p_z_Z_RegCapital")=2 then response.write"selected"%>>人民币 10 万元 - 30 万元</option>
            <option value="3" <%if rs("p_z_Z_RegCapital")=3 then response.write"selected"%>>人民币 30 万元 - 50 万元</option>
            <option value="4" <%if rs("p_z_Z_RegCapital")=4 then response.write"selected"%>>人民币 50 万元 - 100 万元</option>
            <option value="5" <%if rs("p_z_Z_RegCapital")=5 then response.write"selected"%>>人民币 100 万元 - 200 万元</option>
            <option value="6" <%if rs("p_z_Z_RegCapital")=6 then response.write"selected"%>>人民币 200 万元 - 300 万元</option>
            <option value="7" <%if rs("p_z_Z_RegCapital")=7 then response.write"selected"%>>人民币 300 万元 - 500 万元</option>
            <option value="8" <%if rs("p_z_Z_RegCapital")=8 then response.write"selected"%>>人民币 500 万元 - 700 万元</option>
            <option value="9" <%if rs("p_z_Z_RegCapital")=9 then response.write"selected"%>>人民币 700 万元 - 1000 万元</option>
            <option value="10" <%if rs("p_z_Z_RegCapital")=10 then response.write"selected"%>>人民币 1000 万元 - 2000 万元</option>
            <option value="11" <%if rs("p_z_Z_RegCapital")=11 then response.write"selected"%>>人民币 2000 万元 - 3000 万元</option>
            <option value="12" <%if rs("p_z_Z_RegCapital")=12 then response.write"selected"%>>人民币 3000 万元 - 5000 万元</option>
            <option value="13" <%if rs("p_z_Z_RegCapital")=13 then response.write"selected"%>>人民币 5000 万元 - 1 亿元</option>
            <option value="14" <%if rs("p_z_Z_RegCapital")=14 then response.write"selected"%>>人民币 1 亿元以上</option>
      </select>
      <span class="note">(请如实填写)</span>
        </td>
      </tr>
狐龙 - 2008-9-3 18:52:00
<tr>
        <td class="C" bgcolor=EFF7FF> <b>主要客户群:</b></td>
        <td bgcolor=FFFFDE>
          <input type="text" name="p_z_Z_KeyClients" value="<%=rs("p_z_Z_KeyClients")%>" size="30" maxlength=50>
          <span class="note"> 如:超市、服装厂、印染厂</span></td>
      </tr>
            <tr>
        <td class="C" bgcolor=EFF7FF> <b>年出口额:</b></td>
        <td bgcolor=FFFFDE>
          <select name="p_z_Z_AnnualExportAmount">
        <option value="0"      selected  >--请选择--</option>
            <option value="1" <%if rs("p_z_Z_AnnualExportAmount")=1 then response.write"selected"%>>人民币 10 万元以下</option>
            <option value="2" <%if rs("p_z_Z_AnnualExportAmount")=2 then response.write"selected"%>>人民币 10 万元 - 30 万元</option>
            <option value="3" <%if rs("p_z_Z_AnnualExportAmount")=3 then response.write"selected"%>>人民币 30 万元 - 50 万元</option>
            <option value="4" <%if rs("p_z_Z_AnnualExportAmount")=4 then response.write"selected"%>>人民币 50 万元 - 100 万元</option>
            <option value="5" <%if rs("p_z_Z_AnnualExportAmount")=5 then response.write"selected"%>>人民币 100 万元 - 200 万元</option>
            <option value="6" <%if rs("p_z_Z_AnnualExportAmount")=6 then response.write"selected"%>>人民币 200 万元 - 300 万元</option>
            <option value="7" <%if rs("p_z_Z_AnnualExportAmount")=7 then response.write"selected"%>>人民币 300 万元 - 500 万元</option>
            <option value="8" <%if rs("p_z_Z_AnnualExportAmount")=8 then response.write"selected"%>>人民币 500 万元 - 700 万元</option>
            <option value="9" <%if rs("p_z_Z_AnnualExportAmount")=9 then response.write"selected"%>>人民币 700 万元 - 1000 万元</option>
            <option value="10" <%if rs("p_z_Z_AnnualExportAmount")=10 then response.write"selected"%>>人民币 1000 万元 - 2000 万元</option>
            <option value="11" <%if rs("p_z_Z_AnnualExportAmount")=11 then response.write"selected"%>>人民币 2000 万元 - 3000 万元</option>
            <option value="12" <%if rs("p_z_Z_AnnualExportAmount")=12 then response.write"selected"%>>人民币 3000 万元 - 5000 万元</option>
            <option value="13" <%if rs("p_z_Z_AnnualExportAmount")=13 then response.write"selected"%>>人民币 5000 万元 - 1 亿元</option>
            <option value="14" <%if rs("p_z_Z_AnnualExportAmount")=14 then response.write"selected"%>>人民币 1 亿元以上</option>
          </select>
        </td>
      </tr>
            <tr>
        <td class="C" bgcolor=EFF7FF> <b>年进口额:</b></td>
        <td bgcolor=FFFFDE>
          <select name="p_z_Z_AnnualImportAmount">
            <option value="0"      selected  >--请选择--</option>
            <option value="1" <%if rs("p_z_Z_AnnualImportAmount")=1 then response.write"selected"%>>人民币 10 万元以下</option>
            <option value="2" <%if rs("p_z_Z_AnnualImportAmount")=2 then response.write"selected"%>>人民币 10 万元 - 30 万元</option>
            <option value="3" <%if rs("p_z_Z_AnnualImportAmount")=3 then response.write"selected"%>>人民币 30 万元 - 50 万元</option>
            <option value="4" <%if rs("p_z_Z_AnnualImportAmount")=4 then response.write"selected"%>>人民币 50 万元 - 100 万元</option>
            <option value="5" <%if rs("p_z_Z_AnnualImportAmount")=5 then response.write"selected"%>>人民币 100 万元 - 200 万元</option>
            <option value="6" <%if rs("p_z_Z_AnnualImportAmount")=6 then response.write"selected"%>>人民币 200 万元 - 300 万元</option>
            <option value="7" <%if rs("p_z_Z_AnnualImportAmount")=7 then response.write"selected"%>>人民币 300 万元 - 500 万元</option>
            <option value="8" <%if rs("p_z_Z_AnnualImportAmount")=8 then response.write"selected"%>>人民币 500 万元 - 700 万元</option>
            <option value="9" <%if rs("p_z_Z_AnnualImportAmount")=9 then response.write"selected"%>>人民币 700 万元 - 1000 万元</option>
            <option value="10" <%if rs("p_z_Z_AnnualImportAmount")=10 then response.write"selected"%>>人民币 1000 万元 - 2000 万元</option>
            <option value="11" <%if rs("p_z_Z_AnnualImportAmount")=11 then response.write"selected"%>>人民币 2000 万元 - 3000 万元</option>
            <option value="12" <%if rs("p_z_Z_AnnualImportAmount")=12 then response.write"selected"%>>人民币 3000 万元 - 5000 万元</option>
            <option value="13" <%if rs("p_z_Z_AnnualImportAmount")=13 then response.write"selected"%>>人民币 5000 万元 - 1 亿元</option>
            <option value="14" <%if rs("p_z_Z_AnnualImportAmount")=14 then response.write"selected"%>>人民币 1 亿元以上</option>
    </select>
        </td>
      </tr>
            <tr>
        <td class="C" bgcolor=EFF7FF> <b>管理体系认证:</b></td>
        <td bgcolor=FFFFDE>          <input name="p_z_Z_Certification" type="text" value="<%=rs("p_z_Z_Certification")%>" size="30" maxlength=32>
          <br><span class="note"> 如:ISO9001质量体系认证</span>
        </td>
      </tr>
            <tr>
        <td class="C" bgcolor=EFF7FF> <b>开户银行:</b></td>
        <td bgcolor=FFFFDE>
          <input type="text" name="p_z_Z_Bank" value="<%=rs("p_z_Z_Bank")%>" size=30 maxlength=50>
        </td>
      </tr>
            <tr>
        <td class="C" bgcolor=EFF7FF> <b>帐号:</b></td>
        <td bgcolor=FFFFDE>
          <input type="text" name="p_z_Z_Account" value="<%=rs("p_z_Z_Account")%>" size=30 maxlength=50>
        </td>
      </tr>
                </TBODY>
            </TABLE>
  <br>
  <table width="100%"  >
      <tr>
        <td height="30" bgcolor="#F9F9F9"><font color="red">◆</font><strong><font style="font-size:14px;">工厂信息</font></strong></td>
      </tr>
    </table>
    <table width="100%" align=center border="0" cellspacing="1" cellpadding="4">
      <colgroup><col class="formtop"></colgroup>
            <tr>
        <td width=28% class="C" bgcolor=EFF7FF><b>是否提供OEM代加工?</b></td>
        <td width=72% bgcolor=FFFFDE>
          <input type="radio" name="p_z_Z_OemOdm" value="y" <%if rs("p_z_Z_OemOdm") ="y" then Response.Write "checked"%>>是  
          <input type="radio" name="p_z_Z_OemOdm" value="n" <%if rs("p_z_Z_OemOdm") ="n" then Response.Write "checked"%>>否
        </td>
      </tr>
            <tr>
        <td class="C" bgcolor=EFF7FF><b>研发部门人数:</b></td>
        <td bgcolor=FFFFDE>
          <select name="p_z_Z_RndStaffNum">
                        <option value=""  selected  >--请选择--</option>
                          <option value="1" <%if rs("p_z_Z_RndStaffNum")=1 then response.write"selected"%>>少于5 人</option>
                          <option value="2" <%if rs("p_z_Z_RndStaffNum")=2 then response.write"selected"%>>5 - 10 人</option>
                          <option value="3" <%if rs("p_z_Z_RndStaffNum")=3 then response.write"selected"%>>11 - 20 人</option>
                          <option value="4" <%if rs("p_z_Z_RndStaffNum")=4 then response.write"selected"%>>21 - 30 人</option>
                          <option value="5" <%if rs("p_z_Z_RndStaffNum")=5 then response.write"selected"%>>31 - 40 人</option>
                          <option value="6" <%if rs("p_z_Z_RndStaffNum")=6 then response.write"selected"%>>41 - 50 人</option>
                          <option value="7" <%if rs("p_z_Z_RndStaffNum")=7 then response.write"selected"%>>51 - 60 人</option>
                          <option value="8" <%if rs("p_z_Z_RndStaffNum")=8 then response.write"selected"%>>61 - 70 人</option>
                          <option value="9" <%if rs("p_z_Z_RndStaffNum")=9 then response.write"selected"%>>71 - 80 人</option>
                          <option value="10" <%if rs("p_z_Z_RndStaffNum")=10 then response.write"selected"%>>81 - 90 人</option>
                          <option value="11" <%if rs("p_z_Z_RndStaffNum")=11 then response.write"selected"%>>91 - 100 人</option>
                          <option value="12" <%if rs("p_z_Z_RndStaffNum")=12 then response.write"selected"%>>100 人以上</option>
            </select>
        </td>
      </tr>
            <tr>
        <td class="C" bgcolor=EFF7FF><b>月产量:</b></td>
        <td bgcolor=FFFFDE>
          <input type="text" name="p_z_Z_ProductionCapacity" value="<%=rs("p_z_Z_ProductionCapacity")%>" size="15" maxlength=32>
          <br>
    <span class="note">如:1520箱 或 53吨</span>
        </td>
      </tr>
            <tr>
        <td class="C" bgcolor=EFF7FF><b>厂房面积:</b></td>
        <td bgcolor=FFFFDE>
          <input name="p_z_Z_FactorySize" type="text" value="<%=rs("p_z_Z_FactorySize")%>" size="30" maxlength=16>
          <span class="note"> (平方米)</span>
        </td>
      </tr>
            <tr>
        <td class="C" bgcolor=EFF7FF><b>质量控制:</b></td>
        <td bgcolor=FFFFDE>
          <input type="radio" name="p_z_Z_QaQc" value="内部" <%if rs("p_z_Z_QaQc") ="内部" then Response.Write "checked"%>>内部  
          <input type="radio" name="p_z_Z_QaQc" value="第三方" <%if rs("p_z_Z_QaQc") ="第三方" then Response.Write "checked"%>>第三方 
          <input type="radio" name="p_z_Z_QaQc" value="无" <%if rs("p_z_Z_QaQc") ="无" then Response.Write "checked"%>>无
        </td>
      </tr>
    </table>
    <br>    <table width="100%"  >
        <tr>
          <td height="31" bgcolor="#F9F9F9"><font color="red">◆</font><strong><font style="font-size:14px;">联系方式</td>
        </tr>
      </table>       
            <TABLE cellSpacing=2 cellPadding=3 width="100%" border=0>
  <colgroup><col class="formtop"></colgroup>
  <TBODY>
              <TR>
                <TD width="28%" bgColor=#eff7ff class=C><FONT color=#ff0000>* </FONT><B>姓名:</B></TD>
                <TD bgColor=#ffffde><INPUT
                  name="myworldecname" id="myworldecname" value="<%=rs("name")%>" size=20 maxLength=18> </TD></TR>
      <tr>
          <td class="C" bgcolor=EFF7FF> <b>部门:</b></td>
                                        <td width="72%" bgcolor=#ffffde>
              <input name="bm" id="bm" value="<%=rs("bm")%>" size=30 maxlength="10">
              <br>
            </td>
        </tr>
                <tr>
          <td class="C" bgcolor=EFF7FF> <b>职位:</b></td>
                                        <td width="72%" bgcolor=#ffffde>
              <input name="zw" id="zw" value="<%=rs("zw")%>" size=30 maxlength="20">
              <br>
            </td>
        </tr>
  <tr>
          <td class="C" bgcolor=EFF7FF> <b><font color="#FF0000">即时通讯TM号:</font></b></td>
                        <td width="72%" bgcolor=#ffffde class="lh15">
              <input name="tm" id="tm" value="<%=rs("tm")%>" size=30 maxlength="28" >
              <input name=regtm  type=button value="注册TM帐号" class="m"><br>
    <FONT class=S color=#cc3300>建议使用!</font><FONT class=S color=#9a9a9a>这是客户直接与您即时沟通的重要工具。</FONT><br>
    <span class="s">既填写您的QQ号码; 本站使用TM为<font color="cc3300">即时通讯</font>工具!</span>            </td>
        </tr>
              <TR>
                <TD class=C bgColor=#eff7ff><FONT color=#ff0000>*</FONT>
                  <B>公司电话:</B></TD>
                <TD bgColor=#ffffde>
                  <TABLE width="100%" border=0>
                    <TBODY>
                    <TR>
                      <TD>国家区号:</TD>
                      <TD>城市区号:</TD>
                      <TD>号码:</TD></TR>
                    <TR>
                      <TD><INPUT style="FONT-SIZE: 9pt" maxLength=5 size=8
                        value="<%=pharry(0)%>" name=phonecountry> </TD>
                      <TD><INPUT style="FONT-SIZE: 9pt" maxLength=5 size=8
                        value="<%=pharry(1)%>" name=phonearea> </TD>
                      <TD><INPUT style="FONT-SIZE: 9pt" maxLength=15 size=15
                        value="<%=pharry(2)%>" name=phonenumber>
                      <span class=note>(只能填写<font color="#FF0000">固定电话</font>!)</span></TD></TR>
                    <TR>
                                <TD colSpan=3><font class=note>(为提高您信息的发布效率,请按正确格式填写。如:86 10 12345678 ) </font></TD>
                              </TR></TBODY></TABLE></TD></TR>
              <TR>
                <TD class=C bgColor=#eff7ff><B>传真:</B></TD>
                <TD bgColor=#ffffde>
                  <TABLE width="75%">
                    <TBODY>
                    <TR>
                      <TD>国家区号:</TD>
                      <TD>城市区号:</TD>
                      <TD>号码:</TD></TR>
                    <TR>
                                <%select case ubound(faarry)
    case 0
    response.write"<TD><INPUT style='FONT-SIZE: 9pt' maxLength=8 size=8 value='"&rs("fax")&"' name=faxCountry></TD><TD><INPUT style='FONT-SIZE: 9pt' maxLength=8 size=8 name=faxArea></TD><TD><INPUT style='FONT-SIZE: 9pt' maxLength=30 size=15 name=faxNumber></TD>"
    case 1
    response.write"<TD><INPUT style='FONT-SIZE: 9pt' maxLength=8 size=8 value='"&faarry(0)&"' name=faxCountry></TD><TD><INPUT style='FONT-SIZE: 9pt' maxLength=8 size=8 value='"&faarry(1)&"' name=faxArea></TD><TD><INPUT style='FONT-SIZE: 9pt' maxLength=30 size=15 name=faxNumber></TD>"
    case 2
    response.write"<TD><INPUT style='FONT-SIZE: 9pt' maxLength=8 size=8 value='"&faarry(0)&"' name=faxCountry></TD><TD><INPUT style='FONT-SIZE: 9pt' maxLength=8 size=8 value='"&faarry(1)&"' name=faxArea></TD><TD><INPUT style='FONT-SIZE: 9pt' maxLength=30 size=15 value='"&faarry(2)&"' name=faxNumber></TD>"
    end select%>
                               
                               
    </TR></TBODY></TABLE>
    <font class=note>(为提高您信息的发布效率,请按正确格式填写。如:86 10 12345678)</font></TD></TR>
    <tr>
          <td class="C" bgcolor=EFF7FF> <b>手机:</b></td>
          <td bgcolor=FFFFDE>
            <input name="mobile" type="text" id="mobile" value="<%=rs("mobile")%>" size="30" maxlength=16>
          </td>
        </tr>
    <TR>
                <TD class=C bgColor=#eff7ff><FONT color=#ff0000>*</FONT>
                  <B>所属国家或地区:</B></TD>
                <TD class=lh15 bgColor=#ffffde>
<SELECT style="WIDTH: 90px"
            onchange=javascript:changeCountry1(this); name=country1>
                    </SELECT> <SELECT style="WIDTH: 60px"
            onchange=changeProvince(this); name=province>
                      <OPTION value=""
              selected>省份</OPTION>
                    </SELECT> <SELECT name=city>
                      <OPTION value=""
              selected>地级</OPTION>
                    </SELECT>
          <SCRIPT language=javascript src="../../js/area.js"   
      purpose="INITIALIZER"></SCRIPT>
  <SCRIPT language=javascript>
<!--
    //设置国家1的缺省值
    for (var i=0;i<5;i++){
    if (country1Form1.options.value == '<%=rs("country")%>'){
      country1Form1.options.selected=true;
  }
}
    for (var i=0;i<catArr1.length;i++) {
  catForm1.options[i+1]=new Option(catArr1.title,catArr1.id);
  //设置省选择框的选择值
  if(catForm1.options[i+1].value == '<%=rs("sf")%>'){
          catForm1.options[i+1].selected=true;
        }
}
changeProvince(catForm1);
var len = boardForm1.options.length;
for (var i=0;i<len;i++) {
  //设置城市选择框的选择值
  if(boardForm1.options.value == '<%=rs("city")%>') {
      boardForm1.options.selected=true;
  }
}

    if (country1Form1.options[country1Form1.selectedIndex].value!='中国') {
    catForm1.style.display = 'none';
    boardForm1.style.display = 'none';
  }
-->
</SCRIPT>
</TD></TR>
              <TR>
                <TD class=C bgColor=#eff7ff><FONT color=#ff0000>*</FONT>
                  <B>街道地址:</B></TD>
                <TD bgColor=#ffffde><INPUT maxLength=50 size=30 value="<%=rs("address")%>"
                  name="address">
                <SPAN class=note>填写县(区)、街道、门牌号</SPAN></TD></TR>
    <TR>
                  <TD class=C bgColor=#eff7ff> <B>邮政编码:</B></TD>
                <TD bgColor=#ffffde><INPUT maxLength=10 size=30 value="<%=rs("post")%>"
                  name="post"></TD></TR>
      <TR>
                  <TD class=C bgColor=#eff7ff><FONT color=#ff0000>*</FONT> <B>电子邮件:</B></TD>
                <TD bgColor=#ffffde><INPUT maxLength=50 size=30
                  value="<%=rs("email")%>" name=email> <BR><FONT
                  class=note>(非常重要,请务必填写正确,以便客户联系!)</FONT>
            </TD></TR>
      <TR>
                  <TD class=C bgColor=#eff7ff> <B>网站地址:</B></TD>
                <TD bgColor=#ffffde><INPUT
                  name="web" value="http://" size=30 maxLength=50 <%if rs("web")="" then response.write"value='http://'" else response.write"value='"&rs("web")&"'" end if%>>
                <SPAN class=note>(请填写有效网址.)</SPAN> </TD>
      </TR>
     

              </TBODY>
            </TABLE>
  <%
 
   
  if(rs("yx_userskin")=0) then
 
   
    Set RsSkin=Server.CreateObject("Adodb.Recordset")
    SqlSkin="Select top 1 * From yixiang_userskin "
    RsSkin.Open SqlSkin,Conn,1,3
    if not RsSkin.Eof then
      SkinID=rsSkin("ID")
      rsSkin.close
      Set rsSkin=nothing
     
      conn.execute("update yixiang_corporation Set yx_userskin="&SkinID&" Where ID="&id&" ")
    Else
      rsSkin.close
      Set rsSkin=nothing
     
    End if
  else
    SkinId=Rs("yx_userskin")
  end if
  %>
            <input name="url" type="hidden" id="url" value="<%=SkinId%>">
            <BR>
           
            <BR>
            <TABLE cellSpacing=0 cellPadding=4 border=0>
              <TBODY>
              <TR>
               
                <TD vAlign=top noWrap><INPUT class=subbutton style="WIDTH: 160px"  type=button value=" 填好了,提交! " name=Post>
                </TD></TR></TBODY></TABLE></FORM><BR></TD></TR></TBODY></TABLE></TD></TR>
</TABLE>
<%
end if
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
红超志明 - 2008-9-5 16:41:00
添加编辑器只需要将一段编辑器代码直接调入即可,你可以参照后台编辑器调用方法直接调用.
狐龙 - 2008-9-6 3:27:00
这个我知道
编辑框嵌入成功,就是提交数据后被过滤了
"< >" 等符号
导致无法启用编辑框
JavaScript 过滤的。
直接删除过滤代码后又报错,特来求助!
狐龙 - 2008-9-6 3:28:00
<TD bgColor=#ffffde><TEXTAREA name="qyjj" style="display:none"><%=rs("qyjj")%></TEXTAREA><iframe ID="eWebEditor1" src="../../eWebEditor/ewebeditor.htm?id=qyjj&style=coolblue" frameborder="0" scrolling="no" width="617" HEIGHT="450"></iframe>
这是我嵌入的代码
狐龙 - 2008-9-8 13:44:00
起来
狐龙 - 2008-9-8 19:20:00

易想的今天都没上班
  嘎嘎...
  AD下
  http://www.qitego.com
红超志明 - 2008-9-9 9:30:00
把你的资料发我去查看一下.
狐龙 - 2008-9-9 12:20:00
只改动这个文件吧!
我上传了这个文件
是/member/corporation/company_edit.asp
这是已经添加好编辑框的页面!

附件: company_edit.rar
狐龙 - 2008-9-9 12:21:00
感谢易想!
感谢红超志明
changehope_2008 - 2008-9-11 8:34:00
请把文件company_save.asp里面的qyjj=Replace_Text(request.form("qyjj")) 这段代码换成qyjj=request.form("qyjj")即可.
狐龙 - 2008-9-12 21:09:00


引用:
原帖由 changehope_2008 于 2008-9-11 8:34:00 发表
请把文件company_save.asp里面的qyjj=Replace_Text(request.form("qyjj")) 这段代码换成qyjj=request.form("qyjj")即可.

感谢您!
我怎么也没查到这个页面去
老认为是 JS过滤了
原来提交数据的时候只提交文本文件
1
查看完整版本: 关于给易想用户页面增加可视编辑框问题