<!--#include file="top.asp"--><%usertopview%>
<script language="JavaScript">
<!--
function checkdata() {
if( addform.colxr.value =="" || addform.colxr.value.length<2 || addform.colxr.value.length>16) {
alert("\资料修改出错，下面是产生错误的可能原因：\n\n·请输入企业联系人")
return false;
}
if( isNumberString(addform.cotelq.value,"1234567890")!=1 || isNumberString(addform.cotel.value,"1234567890")!=1 || addform.cotelq.value =="" || addform.cotel.value=="" || addform.cotelq.value.length<3 || addform.cotelq.value.length>4 || addform.cotel.value.length<7 || addform.cotel.value.length>8) {
alert("\资料修改出错，下面是产生错误的可能原因：\n\n·请输入正确的企业联系电话及区号")
return false;
}
if( isNumberString(addform.mail.value,"1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_@.-")!=1 || addform.mail.value.length<8) {
alert("\资料修改出错，下面是产生错误的可能原因：\n\n·请输入正确的联系邮箱")
return false;
}
if( addform.coaddress.value =="" ) {
alert("\资料修改出错，下面是产生错误的可能原因：\n\n·请输入您的企业详细地址")
return false;
}
return true;
}
function isNumberString (InString,RefString)
{
if(InString.length==0) return (false);
for (Count=0; Count < InString.length; Count++)  {
	TempChar= InString.substring (Count, Count+1);
	if (RefString.indexOf (TempChar, 0)==-1)  
	return (false);
}
return (true);
}
// -->
</script>
<table width="760" border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF">
<tr>
<td width="150" valign=top bgcolor=#efefef>
<!--==============-->
<!--#include file="left.asp"-->
<!--==============-->
</td>
<td width="610" valign=top>
<!--==============-->
<table width="500" border="0" cellspacing="0" cellpadding="0" align="center">
<tr><td height=25>您现在的位置是：管理中心 > 企业资料</td></tr>
  <tr>
    <td>
<!--####################################-->
<table width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor=#6C94D1>
  <tr>
    <td height=25 bgcolor=#6C94D1>　　<font color=white>企业联系方式管理</font></td>
  </tr>
  <tr>
    <td bgcolor=#ffffff height=25>
<!--======-->

<table width="80%" border="0" cellspacing="0" cellpadding="0" align=center>
<%sql1="select *  from dlxf_yp where dlxf_id="&session("id")
set rs1=server.createobject("ADODB.Recordset")
rs1.open sql1,conn,1,1%>
<form name="addform" method="post" action="lcdlx_save.asp" onSubmit="return checkdata()">
  <tr>
    <td height=30 align="center" colspan="2"><font color=#666666>带 * 为必填项</font></td>
  </tr>
  <tr>
    <td height=30 width="21%" align=right><font color=red>*</font>联系人： &nbsp;</td>
	<td width="79%"><input name="colxr" type="text" size="10" maxlength="5" value="<%=rs1("dlxf_colxr")%>"> <input name="colxrsex" type="radio" value="先生" <%if rs1("dlxf_colxrsex")="先生" then%>checked<%end if%> style="border:0px">先生　<input name="colxrsex" type="radio" value="小姐" <%if rs1("dlxf_colxrsex")="小姐" then%>checked<%end if%> style="border:0px">小姐</td>
  </tr>
  <tr>
    <td height=30 align=right><font color=red>*</font>联系电话： &nbsp;</td>
	<td><input name="cotelq" type="text" size="5" maxlength="4" value="<%=rs1("dlxf_cotelq")%>"> - <input name="cotel" type="text" size="10" maxlength="8" value="<%=rs1("dlxf_cotel")%>"> 请填写电话及区号</td>
  </tr>
  <tr>
    <td height=30 align=right>传真： &nbsp;</td>
	<td><input name="cofaxq" type="text" size="5" maxlength="4" value="<%=rs1("dlxf_cofaxq")%>"> - <input name="cofax" type="text" size="10" maxlength="8" value="<%=rs1("dlxf_cofax")%>"></td>
  </tr>
  <tr>
    <td height=30 align=right><font color=red>*</font>E-mail： &nbsp;</td>
	<td><input name="mail" type="text" size="40" maxlength="40" value="<%=rs1("dlxf_mail")%>"></td>
  </tr>
  <tr>
    <td height=30 align=right>Oicq： &nbsp;</td>
	<td><input name="Oicq" type="text" size="30" maxlength="48" value="<%=rs1("dlxf_Oicq")%>"> 多个请用 "," 分开</td>
  </tr>
  <tr>
    <td height=30 align=right>邮政编码： &nbsp;</td>
	<td><p style="line-height:180%"><input name="coyb" type="text" size="20" maxlength="6" value="<%=rs1("dlxf_coyb")%>"></td>
  </tr>
  <tr>
    <td height=50 align=right><font color=red>*</font>详细地址： &nbsp;</td>
	<td><p style="line-height:180%"><input name="coaddress" type="text" size="40" maxlength="40" value="<%=rs1("dlxf_coaddress")%>"><br>请填写市级以下的包括“区、县、街道、门牌”等详细地址</td>
  </tr>
  <tr>
    <td height=50 align=right>其它方式： &nbsp;</td>
	<td><p style="line-height:180%"><input name="colxother" type="text" size="40" maxlength="40" value="<%=rs1("dlxf_colxother")%>"><br>不超过40字符</td>
  </tr>
  <tr>
    <td height=30 align="center" colspan="2"><input type="submit" name="Submit" value="修 改" class="input1"></td>
  </tr>
</form>
<%rs1.close%>
</table>

<!--======-->
	</td>
  </tr>
</table>
<!--####################################-->
	</td>
  </tr>
<tr><td height=25></td></tr>
</table>
<!--==============-->
</td>
</tr>
</table>
<!--====== bottom ========-->
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" background="img/bottom_bg.gif">
<tr><td height=2 bgcolor=#6C94D1></td></tr>
  <tr>
    <td align="center" height=80><%=citybottom%></td>
  </tr>
</table>
</body>
</html>