?? edit.asp
字號(hào):
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="../css/Style.css" rel=stylesheet type=text/css>
<title>會(huì)員資料修改</title></head>
<%
if Request.Cookies("globalec")("globalecmaster")="" or Request.Cookies("globalec")("masterflag")="" then
response.write "<script language='javascript'>"
response.write"this.location.href='../login.asp';</SCRIPT>"
response.end
end if
%>
<!--#include file="../../conn/conn.asp"-->
<!--#include file="../../inc/safe.asp"-->
<script Language="JavaScript">
function FormCheck()
{
if (trim(document.form.name.value) =="")
{
alert("請(qǐng)輸入您的真實(shí)姓名!");
document.form.name.focus();
return (false);
}
if (trim(document.form.email.value) =="")
{
alert("請(qǐng)輸入您的電子郵件地址!");
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格式不正確,請(qǐng)重新填寫(xiě)!");
document.form.email.focus();
document.form.email.select();
return false;
}
if (trim(document.form.phonecountry.value) =="")
{
alert("請(qǐng)輸入聯(lián)系電話的國(guó)家區(qū)號(hào)!");
document.form.phonecountry.focus();
return (false);
var filter=/^\s*[0-9]{0,3}\s*$/;
if (!filter.test(document.form.phonecountry.value)) {
alert("國(guó)家區(qū)號(hào)不正確,請(qǐng)重新填寫(xiě)!不超過(guò)3個(gè)數(shù)字,注意不要使用空格。");
document.form.phonecountry.focus();
document.form.phonecountry.select();
return false;
}
if (trim(document.form.phonearea.value) =="")
{
alert("請(qǐng)輸入聯(lián)系電話的城市區(qū)號(hào)!");
document.form.phonearea.focus();
return (false);
}
var filter=/^\s*[0-9]{0,4}\s*$/;
if (!filter.test(document.form.phonearea.value)) {
alert("城市區(qū)號(hào)不正確,請(qǐng)重新填寫(xiě)!不超過(guò)4個(gè)數(shù)字,注意不要使用空格。");
document.form.phonearea.focus();
document.form.phonearea.select();
return false;
}
if (trim(document.form.phonenumber.value) =="")
{
alert("請(qǐng)輸入您的聯(lián)系電話號(hào)碼!");
document.form.phonenumber.focus();
return (false);
}
if (trim(document.form.country1.value) =="中國(guó)")
{
if (trim(document.form.province.value) =="")
{
alert("請(qǐng)選擇省份!");
document.form.province.focus();
return (false);
}
if (trim(document.form.city.value) =="")
{
alert("請(qǐng)選擇地級(jí)城市!");
document.form.city.focus();
return (false);
}
}
if (trim(document.form.address.value) =="")
{
alert("請(qǐng)輸入您的聯(lián)系地址!");
document.form.address.focus();
return (false);
}
if (trim(document.form.qymc.value) =="")
{
alert("請(qǐng)輸入您公司的名稱(chēng)!");
document.form.qymc.focus();
return (false);
}
if (trim(document.form.zw.value) =="")
{
alert("請(qǐng)輸入您的職位!");
ādocument.form.zw.focus();
return (false);
}
if(trim(document.form.productionService.value) == "")
{
alert("注意:請(qǐng)按左至右的順序填寫(xiě)\n\n主要相關(guān)產(chǎn)品名/服務(wù)名最少要填一個(gè)");
document.form.productionService.focus();
return (false);
}
var check=true;
for(var i=0;i<document.form.qylb.length;i++){
if (document.form.qylb[i].checked) {
check=false;
break;
}
}
if (check){
alert("請(qǐng)選擇企業(yè)經(jīng)營(yíng)模式!");
document.form.qylb[0].focus();
return (false);
}
if (trim(document.form.qyjj.value.length) <50)
{
alert("公司介紹不能少于50字");
document.form.qyjj.focus();
return (false);
}
if (trim(document.form.qyjj.value.length) >2000)
{
alert("公司介紹不能多于2000字");
document.form.qyjj.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(',',',');}
}
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 == " ") {
//檢查字符串開(kāi)始部分的空格
retValue = retValue.substring(1, retValue.length);
ch = retValue.substring(0, 1);
}
ch = retValue.substring(retValue.length-1, retValue.length);
while (ch == " ") {
//檢查字符串結(jié)束部分的空格
retValue = retValue.substring(0, retValue.length-1);
ch = retValue.substring(retValue.length-1, retValue.length);
}
while (retValue.indexOf(" ") != -1) {
//將文字中間多個(gè)相連的空格變?yōu)橐粋€(gè)空格
retValue = retValue.substring(0, retValue.indexOf(" ")) + retValue.substring(retValue.indexOf(" ")+1, retValue.length);
}
return retValue;
}
//-->
</script>
<%
if Chkrequest(request("id")) then
id=request("id")
else
Response.Redirect ("/login/chklogin.asp?login=4")
end if
dim sql
dim rs
sql="select * from corporation where id="&id
Set rs= Server.CreateObject("ADODB.Recordset")
rs.open sql,conn,1,1
sid=rs("sortid")
tid=rs("typeid")
tid2=rs("typeid_2")
zycp=rs("zycp")
pharry=split(rs("phone")," ")
faarry=split(rs("fax")," ")
set rs3=conn.execute("select class_2.*,class_1.* from class_2,class_1 where class_2.typeid="&rs("typeid")&" and class_1.sortid=class_2.sortid")
%>
<table cellpadding="2" cellspacing="1" border="0" width="95%" class="tableBorder" align=center>
<tr>
<th align=center colspan=8 height=23>用戶(hù)資料管理</th>
</tr>
<tr>
<td width=9% class=forumrowHighlight>注意事項(xiàng)</td>
<td width=91% class=forumrowHighlight colspan=7><li>刪除按鈕將刪除所選定的用戶(hù)全部相關(guān)信息,此操作是不可逆的;</td>
</tr>
</table>
<br>
<form method="post" action="save.asp?id=<%=request("id")%>" name="form">
<table cellpadding="2" cellspacing="1" border="0" width="95%" class="tableBorder" align=center>
<tr>
<th align=left height=23>姓名和聯(lián)系方式</th>
</tr>
<tr>
<td><TABLE cellSpacing=1 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD class=forumrowHighlight><B>會(huì)員登陸名:</B></TD>
<TD class=forumrowHighlight><%=rs("user")%>
</TD></TR>
<TR>
<TD class=forumrowHighlight><B>密碼:</B></TD>
<TD class=forumrowHighlight><%=rs("pass")%>
</TD></TR>
<TR>
<TD class=forumrowHighlight width="25%"><B>真實(shí)姓名:</B></TD>
<TD width="75%" class=forumrowHighlight><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個(gè)字</FONT> </TD></TR>
<TR>
<TD class=forumrowHighlight width="25%"><FONT
color=#ff0000><B>電子郵箱</B>:</FONT></TD>
<TD class=forumrowHighlight><INPUT
maxLength=50 size=30 value="<%=rs("email")%>"
name="email"> <BR> <FONT
class=note>這是客戶(hù)與您聯(lián)系的首選方式,請(qǐng)?zhí)钭畛S玫摹?lt;/FONT><BR></TD></TR>
<TR>
<TD class=forumrowHighlight><FONT
color=#ff0000><B>公司電話</B>:</FONT></TD>
<TD class=forumrowHighlight>
<TABLE cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR>
<TD>
<TABLE cellSpacing=2 cellPadding=0 width="100%"
border=0>
<TBODY>
<TR>
<TD><FONT class=f2>國(guó)家區(qū)號(hào):</FONT></TD>
<TD><FONT class=f2>城市區(qū)號(hào):</FONT></TD>
<TD colSpan=2><FONT class=f2>號(hào)碼:</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 class=forumrowHighlight><B>傳真:</B></TD>
<TD class=forumrowHighlight>
<TABLE cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR>
<TD>
<TABLE cellSpacing=2 cellPadding=0 border=0>
<TBODY>
<TR>
<TD>國(guó)家區(qū)號(hào):</TD>
<TD>城市區(qū)號(hào):</TD>
<TD>號(hào)碼:</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 class=forumrowHighlight><B>手機(jī):</B></TD>
<TD class=forumrowHighlight><INPUT maxLength=15 size=30 value="<%=rs("mobile")%>"
name="mobile"></TD></TR>
<TR>
<TD class=forumrowHighlight><B>郵政編碼:</B></TD>
<TD class=forumrowHighlight><INPUT maxLength=10 size=10 value="<%=rs("post")%>"
name="post"></TD></TR>
<TR>
<TD class=forumrowHighlight><B><FONT
color=#ff0000>所在地區(qū):</FONT></B> </TD>
<TD class=forumrowHighlight colSpan=2>
<TABLE id=div1 cellSpacing=0 cellPadding=3 width="100%"
border=0>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -