recomco_add.asp

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

ASP
264
字号
<!--#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 --><script language="javascript" src="../fyfile/ResExplore.js"></script>
<script language="JavaScript">
//资源管理器所在的具体目录
ResourceExplorePath="../fyfile/ResourceExplore.asp";
/*
参数说明:
自定义函数(返回的资源记录ID,资源名题,原始文件名称,最后更新时间) 
*/
function bb(Id,fTitle,fName,fDate)
{
	//请在下面添加你的代码
	form2.imgname.value="OpenFile01.asp?pID="+Id;
}
</script>
<!-- 结束 -->
<script language="JavaScript">
/*
当操用户选择"资源管理器中的文件项目后便激发默认的返回函数:OnResWinReturn()"
参数说明:
OnResWinRecurn(返回的资源记录ID,资源名题,原始文件名称,最后更新时间) 
*/
function OnResWinReturn(Id,fTitle,fName,fDate)
{
//请在下面添加你的代码
alert("你选择的文件信息如下:\n资源ID:"+Id+"\n资源标题:"+fTitle+"\n资源文件名:"+fName+"\n资源更新时间:"+fDate);
}
</script>

<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">
        <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_add_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" 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 selected value="">请选择!</option>
                            <option value="1">房产公司</option>
                            <option value="2">搬家公司</option>
                            <option value="3">评估公司</option>
                            <option value="4">物业公司</option>
                          </select></td>
                      </tr>
                      <tr bgcolor="#585858"> 
                        <td height="24" align="center">公司小图:</td>
                        <td height="24">
						<input name="imgname" type="text" size="30">
                                      <input name="wzimgnamade" type="button" onClick="OpenResourceExplore(2,600,350,180,'选择图片','bb')" value="选择图片"></td>
                      </tr>
                      <tr bgcolor="#585858"> 
                        <td height="24" align="center">公司地址:</td>
                        <td height="24"> <input name="CoAddress" type="text" id="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"> 
                          <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"> 
                          <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"></td>
                      </tr>
                      <tr bgcolor="#585858"> 
                        <td height="24" align="center">邮  编:</td>
                        <td height="24"> <input name="CoZIP" type="text" id="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" 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" 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"></textarea> 
                          <font color="#FF6600">*</font></td>
                      </tr>
                      <tr bgcolor="#585858"> 
                        <td height="24" colspan="2" align="center"> 
                          <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.submit();
	return true;
  }			
</script></td>
                      </tr>
                    </form>
                  </table></td>
              </tr>
              <tr> 
                <td><img src="../images/httable_04.gif" width=606 height=19></td>
              </tr>
            </table></td>
        </tr>
      </table></td>
  </tr>
</table>
<table width="778" border="0" cellspacing="0" cellpadding="0">
  <tr> 
    <td><img src="../images/ht_04.gif" width="778" height="4"></td>
  </tr>
</table>
<!-- End ImageReady Slices -->
<map name="Map">
  <area shape="rect" coords="630,36,775,56" href="http://www.fyasp.com" target="_blank">
</map>
</body>
</html>

⌨️ 快捷键说明

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