liuchen_detail.asp

来自「房地产管理系统 vb写的,很不错!!!!!!!!!!!」· ASP 代码 · 共 277 行

ASP
277
字号
<!--#include file="../inc/conn.asp"--><%'┌─  风云ASP在线  ────────────────────────┐'│                                                                 │'│  作者:赵振波.	http://www.fyasp.com	    				    │'│                                                                 │'│   Q Q:176189168  										   	    │'│                                                                 │'│ Email:fy96@163.com                                             │'│                                                                 │'│ 程序定做,系统开发,网站制作,提供高质量的网络产品、技术和服务!│'│                                                                 │'│                                                                 │'└───────────────────  http://www.fyasp.com ──┘%>
<%
If session("manager")="" Then
  Response.Redirect("manage.asp")
  Response.end
 End If
%>
<html>
<!-- DW6 -->
<head>
<title>后台管理系统</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../ht.css" type="text/css">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//-->
</script>
</head>

<body bgcolor="#666666" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- ImageReady Slices (index.psd) -->
<table width="778" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td><img src="../images/ht_01.gif" width=778 height=62 usemap="#Map" border="0"></td>
  </tr>
</table>
<table width="778" border="0" align="center" cellpadding="0" cellspacing="0" background="../images/htbj.gif">
  <tr> 
    <td valign="top" align="left" width="145" height="395">
      <!--#include file="List.asp" -->
    </td>
    <td height="395" align="center" valign="top"> <br> <table width="621" border="0" cellspacing="0" cellpadding="0" height="98">
        <%
	    opendataconn
	    coid=Trim(request("coid"))
	    Set Rs=Server.CreateObject("adodb.recordset")
		  rs.Open"select * from recomco where coid="&coid&"",conn,1,1
		  if rs.eof then
		   response.Write("记录不存在!")
		   response.end
		  End if
	   %>
        <tr> 
          <td align="center" valign="top"> <table width="606" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td><img src="../images/httable_01.gif" width=606 height=17></td>
              </tr>
              <tr> 
                <td background="../images/httable_02.gif"><table width="315" height="26" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr> 
                      <td width="50%"> <div align="center"><a href="recomco_add.asp">[增加推荐公司]</a></div></td>
                      <td width="50%"> <div align="center"><a href="recomco_del.asp">[删除,修改]</a></div></td>
                    </tr>
                  </table></td>
              </tr>
              <tr> 
                <td background="../images/httable_02.gif"> </td>
              </tr>
              <tr> 
                <td background="../images/httable_02.gif" height="268"><table width="88%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#000000">
                    <form action="recomco_modi_ok.asp" name="form2" method="post">
                      <tr bgcolor="#585858"> 
                        <td height="25" colspan="2" align="center"> 推 荐 公 司 修 
                          改</td>
                      </tr>
                      <tr bgcolor="#585858"> 
                        <td width="19%" height="24" align="center">公司名称:</td>
                        <td height="24"> <input name="CoName" type="text" id="CoName" value="<%=Trim(rs("CoName"))%>" size="30"> 
                          <font color="#FF6600">*</font></td>
                      </tr>
                      <tr bgcolor="#585858"> 
                        <td height="24" align="center">公司类别:</td>
                        <td height="24"><select name="CoType" id="CoType">
                            <option value="1" <%if Trim(Rs("cotype"))=1 Then response.Write("selected")%>>房产公司</option>
                            <option value="2" <%if Trim(Rs("cotype"))=2 Then response.Write("selected")%>>搬家公司</option>
                            <option value="3" <%if Trim(Rs("cotype"))=3 Then response.Write("selected")%>>评估公司</option>
                            <option value="4" <%if Trim(Rs("cotype"))=4 Then response.Write("selected")%>>物业公司</option>
                          </select></td>
                      </tr>
                      <tr bgcolor="#585858"> 
                        <td height="24" align="center">公司图片:</td>
                        <td height="24"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
                            <tr> 
                              <td width="63%"><span id="img"> 
                                <%if Trim(Rs("img"))<>"" Then Response.Write("<a href='#'onclick=javascript:window.open('../inc/upload_modi.asp?textField=img&filename="&Left(Trim(Rs("img")),12)&"','_blank','width=310,height=105,top=300,left=300');>"&Trim(Rs("img"))&"</a>")%>
                                </span></td>
                              <td width="37%">[<a href="#" onClick="javascript:return LoadImg('img','img','add');">上传图片</a>]<font color="#FF6600">*</font></td>
                            </tr>
                          </table></td>
                      </tr>
                      <tr bgcolor="#585858"> 
                        <td height="24" align="center">公司地址:</td>
                        <td height="24"> <input name="CoAddress" type="text" id="CoAddress" value="<%=Trim(rs("CoAddress"))%>" size="40"> 
                          <font color="#FF6600">*</font></td>
                      </tr>
                      <tr bgcolor="#585858"> 
                        <td height="24" align="center">联 系 人:</td>
                        <td height="24"><input name="LinkMan" type="text" id="LinkMan" value="<%=Trim(Rs("LinkMan"))%>"> 
                          <font color="#FF6600">*</font></td>
                      </tr>
                      <tr bgcolor="#585858"> 
                        <td height="24" align="center">联系电话:</td>
                        <td height="24"><input name="CoTel" type="text" id="CoTel" value="<%=Trim(Rs("CoTel"))%>"> 
                          <font color="#FF6600">*</font></td>
                      </tr>
                      <tr bgcolor="#585858"> 
                        <td height="24" align="center">传  真:</td>
                        <td height="24"><input name="CoFax" type="text" id="CoFax" value="<%=Trim(Rs("CoFax"))%>"></td>
                      </tr>
                      <tr bgcolor="#585858"> 
                        <td height="24" align="center">邮  编:</td>
                        <td height="24"> <input name="CoZIP" type="text" id="CoZIP" value="<%=Trim(Rs("CoZIP"))%>" size="15"></td>
                      </tr>
                      <tr bgcolor="#585858"> 
                        <td height="24" align="center">E-mail:</td>
                        <td height="24"><input name="email" type="text" id="email" value="<%=Trim(Rs("coemail"))%>" size="50"> 
                          <font color="#FF6600">*</font></td>
                      </tr>
                      <tr bgcolor="#585858"> 
                        <td height="24" align="center">公司网址:</td>
                        <td height="24"><input name="CoHomeweb" type="text" id="CoHomeweb" value="<%=Trim(Rs("CoHomeweb"))%>" size="65"></td>
                      </tr>
                      <tr bgcolor="#585858"> 
                        <td height="120" align="center">公司简介:</td>
                        <td height="24"><textarea name="CoComment" cols="47" rows="7" id="CoComment"><%=Replace(Trim(Rs("CoComment")),"<br>",vbcrlf)%></textarea> 
                          <font color="#FF6600">*</font></td>
                      </tr>
                      <tr bgcolor="#585858"> 
                        <td height="24" colspan="2" align="center"><input name="coid" type="hidden" id="coid" value="<%=Trim(Rs("coid"))%>"> 
                          <input name="imgname" type="hidden" id="imgname"> <input type="button" name="Submit" value=" 修 改 " onClick="return check();">
                             
                          <input type="reset" name="Submit2" value=" 重 置 "> <script language="JavaScript">
 function check()
  {
   var number="1234567890.";
   var astring="1234567890-()"
   if(document.form2.CoName.value=="")
    {
	 alert("请填写公司名称!");
	 document.form2.CoName.focus();
	 return false;
	}
   if(document.form2.CoType.value=="")
    {
	 alert("请选择公司类别!");
	 document.form2.CoType.focus();
	 return false;
	}
   if(document.form2.CoAddress.value=="")
    {
	 alert("请填写公司地址!");
	 document.form2.CoAddress.focus();
	 return false;
	}
   if(document.form2.LinkMan.value=="")
    {
	 alert("请填写联系人!");
	 document.form2.LinkMan.focus();
	 return false;
	}
   if(document.form2.CoTel.value=="")
    {
	 alert("请填写联系电话!");
	 document.form2.CoTel.focus();
	 return false;
	}
   if(document.form2.email.value=="")
    {
	 alert("请填写电子信箱!");
	 document.form2.email.focus();
	 return false;
	}
   if(document.form2.CoComment.value=="")
    {
	 alert("请填写公司简介");
	 document.form2.CoComment.focus();
	 return false;
	}
	 for(i=0;i<=document.form2.CoTel.value.length;i++)
	 {
	  if (astring.indexOf(document.form2.CoTel.value.substring(i,i+1))==-1)
	   {
	    alert("联系电话中含有非法字符!");
		document.form2.CoTel.focus();
		return false;
	   }
	 }
	 for(i=0;i<=document.form2.CoZIP.value.length;i++)
	 {
	  if (astring.indexOf(document.form2.CoZIP.value.substring(i,i+1))==-1)
	   {
	    alert("邮编中含有非法字符!");
		document.form2.CoZIP.focus();
		return false;
	   }
	 }
	 for(i=0;i<=document.form2.CoFax.value.length;i++)
	 {
	  if (astring.indexOf(document.form2.CoFax.value.substring(i,i+1))==-1)
	   {
	    alert("传真中含有非法字符!");
		document.form2.CoFax.focus();
		return false;
	   }
	 }
	document.form2.imgname.value=img.innerText;
	document.form2.submit();
	return true;
  }
 function LoadImg(TextField,imgtype,action)
  {
   var TextField=TextField;
   var imgtype=imgtype;
   var action=action;
   if(document.all(TextField).innerText=="")
    {
	 window.open('../inc/upload.asp?filename=&imgtype='+imgtype+'&imgname=&textField='+TextField+'&action='+action+'','_blank','width=310,height=105,top=300,left=300')
	 return true;
	}
   else
    {
	 alert("图片只允许上传一张!");
	 return false;
	}
  
  }					
</script></td>
                      </tr>
                    </form>
                  </table></td>
              </tr>
              <tr> 
                <td><img src="../images/httable_04.gif" width=606 height=19></td>
              </tr>
            </table></td>
        </tr>
        <%
	    rs.close
		Set rs=Nothing
	   %>
      </table></td>
  </tr>
</table>
<div align="center"><table width="778" border="0" cellspacing="0" cellpadding="0">
  <tr> 
    <td><img src="../images/ht_04.gif" width="778" height="4"></td>
  </tr>
</table>
</div><!-- End ImageReady Slices -->
<map name="Map">
  <area shape="rect" coords="630,36,775,56" href="http://www.fyasp.com" target="_blank">
</map>
</body>
</html>
<%
 Closedataconn
%>

⌨️ 快捷键说明

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