📄 modify_info.asp
字号:
<!--#include file="../head.asp"-->
<!--#include file="../checkrole.asp"-->
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<%
call checkuser("xz")
id=session("id")
sql="select * from wygkcn_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
sid=rs("sortid")
tid=rs("typeid")
tid2=rs("typeid_2")
zycp=rs("zycp")
pharry=split(rs("phone")," ")
faarry=split(rs("fax")," ")
%>
<SCRIPT language=javascript>
<!-- Hide
function killErrors() {
return true;
}
window.onerror = killErrors;
// -->
</SCRIPT>
<script Language="JavaScript">
function FormCheck()
{
if (trim(document.form.name.value) =="")
{
alert("请输入您的真实姓名!");
document.form.name.focus();
return (false);
}
if (trim(document.form.email.value) =="")
{
alert("请输入您的电子邮件地址!");
document.form.email.focus();
document.form.email.select();
return false;
}
var str1 = document.form.email.value
if(str1.indexOf("@") == -1 || str1.indexOf(".") == -1){
alert("E-mail格式不正确,请重新填写!");
document.form.email.focus();
document.form.email.select();
return false;
}
if (trim(document.form.phonecountry.value) =="")
{
alert("请输入联系电话的国家区号!");
document.form.phonecountry.focus();
return (false);
}
var filter=/^\s*[0-9]{0,3}\s*$/;
if (!filter.test(document.form.phonecountry.value)) {
alert("国家区号不正确,请重新填写!不超过3个数字,注意不要使用空格。");
document.form.phonecountry.focus();
document.form.phonecountry.select();
return false;
}
if (trim(document.form.phonearea.value) =="")
{
alert("请输入联系电话的城市区号!");
document.form.phonearea.focus();
return (false);
}
var filter=/^\s*[0-9]{0,4}\s*$/;
if (!filter.test(document.form.phonearea.value)) {
alert("城市区号不正确,请重新填写!不超过4个数字,注意不要使用空格。");
document.form.phonearea.focus();
document.form.phonearea.select();
return false;
}
if (trim(document.form.phonenumber.value) =="")
{
alert("请输入您的联系电话号码!");
document.form.phonenumber.focus();
return (false);
}
if (trim(document.form.country1.value) =="中国")
{
if (trim(document.form.province.value) =="")
{
alert("请选择省份!");
document.form.province.focus();
return (false);
}
if (trim(document.form.city.value) =="")
{
alert("请选择地级城市!");
document.form.city.focus();
return (false);
}
}
if (trim(document.form.address.value) =="")
{
alert("请输入您的联系地址!");
document.form.address.focus();
return (false);
}
if (trim(document.form.qymc.value) =="")
{
alert("请输入您公司的名称!");
document.form.qymc.focus();
return (false);
}
if (trim(document.form.zw.value) =="")
{
alert("请输入您的职位!");
document.form.zw.focus();
return (false);
}
if(trim(document.form.productionService.value) == "")
{
alert("主要相关产品名/服务名最少要填一个\n\n并且按左至右的顺序填写");
document.form.productionService.focus();
return (false);
}
if(trim(document.form.p_z_Z_RootCategory.value) =="0")
{
alert("请选择主营行业!");
document.form.p_z_Z_RootCategory.focus();
return (false);
}
var productionService = form.productionService.value;
for(i=0;i<productionService.length;i++){productionService=productionService.replace(',',',');}
if(form.productionService2.value){
for(i=0;i<form.productionService2.value.length;i++){form.productionService2.value=form.productionService2.value.replace(',',',');}
productionService+=','+form.productionService2.value;
}
if(form.productionService3.value){
for(i=0;i<form.productionService3.value.length;i++){form.productionService3.value=form.productionService3.value.replace(',',',');}
productionService+=','+form.productionService3.value;
}
form.p_z_Z_productionService.value = productionService
document.form.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>
<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> <BR>
<TABLE cellSpacing=0 cellPadding=0 width=100% border=0>
<TBODY>
<TR>
<TD width="19%"><IMG height=32 src="../images/modifymemberinfo.gif" width=149
border=0></TD>
<TD width="81%" 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="form" action="modify_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%">
<TBODY>
<TR>
<TD height="30"><font color="red">◆</font><strong>姓名和联系方式</strong></TD>
</TR></TBODY></TABLE>
<TABLE cellSpacing=1 cellPadding=1 width="100%" border=0>
<COLGROUP>
<COL
style="VERTICAL-ALIGN: top; PADDING-TOP: 6px; TEXT-ALIGN: right"></COLGROUP>
<TBODY>
<TR>
<TD width="22%" bgColor=#eff7ff><B>真实姓名:</B></TD>
<TD width="78%" bgColor=#ffffde><FONT color=#ff0000
>*</FONT> <INPUT maxLength=10 size=12 value="<%=rs("name")%>" name="name"> <INPUT type=radio <%if rs("ch") ="先生" then Response.Write "checked"%> value="先生"
name="ch"> <FONT class=f2>先生 <INPUT type=radio <%if rs("ch") ="女士" then Response.Write "checked"%>
value="女士" name="ch"> 女士 </FONT><BR> <FONT class=f2
color=#ff5500>姓名必须是1-10个字</FONT> </TD>
</TR>
<TR>
<TD width="22%" height="25" bgColor=#eff7ff><FONT
color=#ff0000><B>电子邮箱</B>:</FONT></TD>
<TD bgColor=#ffffde><FONT color=#ff0000 >*</FONT> <INPUT
maxLength=50 size=30 value="<%=rs("email")%>"
name="email"> <FONT
class=note>这是客户与您联系的首选方式,请填最常用的。</FONT><BR></TD>
</TR>
<tr>
<td bgcolor=EFF7FF> <FONT color=#ff0000><b>即时通讯TM号:</b></FONT></td>
<td width="78%" bgcolor=#ffffde class="lh15"><font class=s> </font>
<input name="tm" id="tm" value="<%=rs("tm")%>" size=30 maxlength="28" onKeyUp="value=value.replace(/[^\d]/g,'') ">
<input name=regtm onclick="javascript:win=window.open('http://freereg.qq.com/step1.shtml');win.focus();" type=button value="注册TM帐号" class="m"><br>
<font class=s> </font><FONT class=S color=#cc3300>建议使用!</font><FONT class=S color=#9a9a9a>这是客户直接与您即时沟通的重要工具。</FONT><br>
<font class=s> </font><span class="s">既填写您的QQ号码 !</span>
</td>
</tr>
<tr><td bgcolor=EFF7FF> <FONT color=#ff0000><b>MSN:</b></FONT></td>
<td width="78%" bgcolor=#ffffde class="lh15"><font class=s> </font>
<input name="msn" id="msn" value="<%=rs("msn")%>" size=30 maxlength="28" >
<br>
<font class=s> </font><FONT class=S color=#cc3300>建议使用!</font><FONT class=S color=#9a9a9a>这是客户直接与您即时沟通的重要工具。</FONT><br>
<font class=s> </font><span class="s"> </span>
</td></tr>
<TR>
<TD bgColor=#eff7ff><FONT
color=#ff0000><B>公司电话</B>:</FONT></TD>
<TD bgColor=#ffffde>
<TABLE cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR>
<TD>
<TD><FONT color=#ff0000 >*</FONT> </TD>
<TD>
<TABLE cellSpacing=2 cellPadding=0 width="60%"
border=0><TBODY>
<TR>
<TD><FONT class=f2>国家区号:</FONT></TD>
<TD><FONT class=f2>城市区号:</FONT></TD>
<TD colSpan=2><FONT class=f2>号码:</FONT></TD></TR>
<TR>
<TD><INPUT class=f2 maxLength=8 size=8 value="<%=pharry(0)%>"
name="phonecountry"></TD>
<TD><INPUT class=f2 maxLength=8 size=8 value="<%=pharry(1)%>"
name="phonearea"></TD>
<TD><INPUT class=f2 maxLength=30 size=13
value="<%=pharry(2)%>"
name="phonenumber"></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD height="25" bgColor=#eff7ff><B>传真:</B></TD>
<TD bgColor=#ffffde>
<TABLE cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR>
<TD>
<TD> </TD>
<TD>
<TABLE cellSpacing=2 cellPadding=0 border=0>
<TBODY>
<TR>
<TD>国家区号:</TD>
<TD>城市区号:</TD>
<TD>号码:</TD></TR>
<TR>
<%select case ubound(faarry)
case 0
response.write"<TD><INPUT class=f2 maxLength=8 size=8 value='"&rs("fax")&"' name=faxCountry></TD><TD><INPUT class=f2 maxLength=8 size=8 name=faxArea></TD><TD><INPUT class=f2 maxLength=30 size=13 name=faxNumber></TD>"
case 1
response.write"<TD><INPUT class=f2 maxLength=8 size=8 value='"&faarry(0)&"' name=faxCountry></TD><TD><INPUT class=f2 maxLength=8 size=8 value='"&faarry(1)&"' name=faxArea></TD><TD><INPUT class=f2 maxLength=30 size=13 name=faxNumber></TD>"
case 2
response.write"<TD><INPUT class=f2 maxLength=8 size=8 value='"&faarry(0)&"' name=faxCountry></TD><TD><INPUT class=f2 maxLength=8 size=8 value='"&faarry(1)&"' name=faxArea></TD><TD><INPUT class=f2 maxLength=30 size=13 value='"&faarry(2)&"' name=faxNumber></TD>"
end select%>
</TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD height="25" bgColor=#eff7ff><B>手机:</B></TD>
<TD bgColor=#ffffde> <INPUT maxLength=15 size=30 value="<%=rs("mobile")%>"
name="mobile"></TD></TR>
<TR>
<TD height="25" bgColor=#eff7ff><B>邮政编码:</B></TD>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -