⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 addgq1.asp

📁 一个功能强大的黄页查询系统
💻 ASP
字号:
<html>

<head>
<title>企业信息发布</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<style type="text/css"><!-- td           { font-size: 12px; line-height: 17px }
body         { font-size: 12px; line-height: 17px }
a:link       { text-decoration: none; color: blue }
a:visited    { text-decoration: none; color: #993333 }
a:active     { text-decoration: none }
a:hover      { text-decoration: underline; color: red }
-->
</style>
<script language="JavaScript">
function click(e) {
if (document.all) {
if (event.button==2||event.button==3) {
oncontextmenu='return false';
}
}
if (document.layers) {
if (e.which == 3) {
oncontextmenu='return false';
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
document.oncontextmenu = new Function("return false;")
</script>
<script LANGUAGE="javascript">
<!--

function FrmAddLink_onsubmit() {
if (document.addgq.lbid.value=="")
	{
	  alert("对不起,行业类型没有选择!")
	  document.addgq.lbid.focus()
	  return false
	 }
else if (document.addgq.dSubject.value=="")
	{
	  alert("对不起,企业名称没有输入!")
	  document.addgq.dSubject.focus()
	  return false
	 }
else if (document.addgq.dgq.value=="")
	{
	  alert("对不起,企业类型没有选择!")
	  document.addgq.dgq.focus()
	  return false
	 }
else if(document.addgq.dMemo.value=="")
	{
	  alert("对不起,企业信息没有输入!")
	  document.addgq.dMemo.focus()
	  return false
	 }
else if(document.addgq.dMemo.value.length>500)
	{
	  alert("对不起,企业信息请控制在250字以内!")
	  document.addgq.dMemo.focus()
	  return false
	 }
else if (document.addgq.dgs.value=="")
	{
	  alert("对不起,电话没有输入!")
	  document.addgq.dgs.focus()
	  return false
	 }
else if (document.addgq.dname.value=="")
	{
	  alert("对不起,联系人没有输入!")
	  document.addgq.dname.focus()
	  return false
	 }
else if (document.addgq.daddress.value=="")
	{
	  alert("对不起,公司地址没有输入!")
	  document.addgq.daddress.focus()
	  return false
	 }
else if (document.addgq.dcode.value=="")
	{
	  alert("对不起,邮政编码没有输入!")
	  document.addgq.dcode.focus()
	  return false
	 }
else if (document.addgq.dphone.value=="")
	{
	  alert("对不起,网址没有输入!")
	  document.addgq.dphone.focus()
	  return false
	 }
else if (document.addgq.demail.value=="")
	{
	  alert("对不起,email没有输入!")
	  document.addgq.demail.focus()
	  return false
	 }
}

//-->
</script>
</head>
<body topmargin="0" leftmargin="0">

<div align="center">
<table border="0" width="491" cellspacing="0" cellpadding="0">
<center>
<tr>
</center>
<td bgcolor="#FFFFFF" width="325" valign="top">
<table border="2" width="100%" cellspacing="0" cellpadding="0" bordercolor="#FFFFFF">
<tr>
<td width="100%">
<table border="0" cellpadding="0" width="510">
<tr>
<td valign="top" width="443">
<p align="right"><font class="d"><a href="index.asp" target="_parent">回到首页</a></font> 
| <a href="new.asp" target="_parent">最新企业信息</a> | <a href="addgq.asp" target="_parent">发布企业信息</a> |     
<a href="login.asp" target="_parent">     
企业信息管理</a>           
&nbsp;</td>           
</tr>           
<tr>           
<td width="443" valign="top"></td>           
</tr>           
<tr>           
<td width="443" valign="top">           
<table border="0" width="510" cellspacing="0" cellpadding="0">           
<tr>           
<td width="100%">           
<table width="510" border="0" cellspacing="0" cellpadding="0">           
   <form action="savedata.asp" method="POST" name="addgq" LANGUAGE="javascript"               
    onsubmit="return FrmAddLink_onsubmit()">               
                
<tr>           
<td colspan="2">( 带 <font color="red">*</font> 的框为必填项目 )</td>           
</tr>           
<tr>           
<td colspan="2" bgcolor="#ECECEC"><font class="d">  <font color="#000080">商业信息内容:</font></font></td>    
</tr>    
<tr>    
<td colspan="2"> </td>
</tr>
<tr valign="top">
<td align="right" width="20%">选择行业类别:</td>
<td><select class="smallSel" name="lbid" size="1">
<option selected>选择行业类型</option>
          <%

connstr="DBQ="+server.mappath("database/20020122.mdb")+";DefaultDir=;DRIVER={Microsoft Access Driver (*.mdb)};"
     set conn=server.createobject("ADODB.CONNECTION")
     conn.open connstr 
 set rst=server.createobject("adodb.recordset")
  sqlt="select * from gqlb"
 rst.open sqlt,conn,1,1
			  do while not rst.eof
                     response.write "<option value='"+CStr(rst("lbid"))+"' >"+rst("lbmc")+"</option>"+chr(13)+chr(10)
		             rst.movenext
    		          loop
			rst.close
			  %> 
 </select> <font color="ff0000">* 
  (注:行业类型请查看左栏内的行业分类编号)</font></td>          
</tr>          
<tr valign="top">          
<td align="right">单位名称:</td>        
<td><input type="text" size="50" maxlength="80" name="dSubject"> <font color="ff0000">*</font></td>         
</tr>         
<tr valign="top">         
<td align="right">企业类别:</td>         
<td><select name="dgq">         
<option selected>选择供求类型</option>      
<option value="单位名称">单位名称</option>      
<option value="企业名称">企业名称</option>      
</select> <font color="ff0000">*</font></td>           
</tr>           
<tr valign="top">           
<td align="right">详细信息:</td>          
<td><textarea name="dMemo" cols="50" rows="10" wrap="PHYSICAL"></textarea> <font color="ff0000">*</font></td>           
</tr>           
<tr valign="top">           
<td colspan="2" bgcolor="#ececec"><font class="d">  <font color="#000080">公司联络信息:</font></font></td>          
</tr>          
   <tr>        
<td align="right">详细地址:</td>          
<td><input type="text" name="daddress" size="48" maxlength="100"> <font color="red">(*)</font></td>          
   </tr>        
   <tr>        
<td align="right">联系人:</td>         
<td><input type="text" name="dname" size="12" maxlength="20"> <font color="red">(*)</font></td>         
   </tr>       
<tr>         
<td align="right">电话:</td>         
<td><input type="text" name="dgs" size="12" maxlength="50"> <font color="red">(*)</font></td>          
</tr>          
   <tr>        
<td align="right">邮政编码:</td>          
<td><input type="text" name="dcode" size="12" maxlength="10"> <font color="red">(*)</font></td>          
   </tr>        
   <tr>        
<td align="right">网址:</td>         
<td><input type="text" name="dphone" size="15" maxlength="50"> <font color="red">(*)</font></td>         
   </tr>       
   <tr>       
<td align="right">邮件:</td>         
<td><input type="text" name="demail" size="15" maxlength="50"> <font color="red">(*)</font></td>         
   </tr>       
<tr>         
<td align="right"></td>         
<td><br>         
<input type="submit" style="font-family: 宋体; font-size: 9pt;" value="写完了" name="submit">       
  &nbsp;&nbsp; <input type="reset" style="font-family: 宋体; font-size: 9pt;" value="重新写" name="reset">&nbsp;&nbsp;&nbsp;            
<input type="button" value="不想写" name="cmdExit" style="font-family: 宋体; font-size: 9pt;" onclick=" history.back()"></td>           
</tr>           
  </form>               
</table>           
</td>           
</tr>           
</table>           
</td>           
</tr>           
</table>           
<center>           
</center></td>         
</tr>         
</table>         
</td>         
</tr>         
</table>         
</div>         
</body>         
         
</html>         

⌨️ 快捷键说明

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