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

📄 add1.asp

📁 具有计划、任务、通告、公文、员工档案、等网络办公功能
💻 ASP
字号:
<%
   phonename=trim(request("phonename"))
   if   phonename<>""   then
     phonenumber=trim(request("phonenumber"))
Set conn=Server.CreateObject("ADODB.Connection")
DBPath1=server.mappath("../access.mdb")
conn.Open "driver={Microsoft Access Driver (*.mdb)};dbq=" & DBPath1    
 
     conn.Execute "insert into pubphone (phonename,phonenumber) values ('" & phonename & "','" & phonenumber & "')"
     set conn=nothing
%>
 <script language=javascript>
        window.opener.parent.frames("main").document.location ="index.asp";
       if (confirm("新增信息成功,是否继续添加?"))
             document.location.href="add.asp"
       else
             document.location.href="javaScript:window.close()"       
  </script> 
  
<% else %>
<html>
<head>
<title>添加常用电话号码</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../css/eintrdemo.css">
</head>

<body bgcolor="#efefef" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" 
 onload="javascript:document.form.phonename.focus()">
<form method="post" action=""  name="form">
<table width="100%" border="0" cellspacing="1" cellpadding="2">
  <tr bgcolor="#4E5960"> 
    <td class="heading">  <font color="#FFFFFF"><b>添加常用电话号码</b></font></td>
  </tr>
</table>
  <table width="100%" border="1" cellspacing="0" cellpadding="1" bordercolordark="#FFFFFF" bordercolor="#000000">
    <tr> 
      <td width="12%" bgcolor="bfbfbf" valign="top">电话名称</td>
      <td width="88%"> 
        <input type="text" name="phonename" class="form" size="20">
      </td>
    </tr>
    <tr> 
      <td width="12%" bgcolor="bfbfbf" valign="top">电话号码</td>
      <td width="88%"> 
        <input type="text" name="phonenumber" class="form" size="20">
      </td>
    </tr>
  </table>
<div align="center"><br>
  </div>
  <div align="center"><input type="submit" value="提 交" name="B1" style="border-style: groove">&nbsp;   
    <input type="reset" value="重 写" name="B2" style="border-style: groove">&nbsp;&nbsp;     
    <input type="button" value="关 闭"  onClick="javaScript:window.close()"  name="B3" style="border-style: groove">     
  </div>   
</form>   
</body>   
</html>   
<% end  if %>   

⌨️ 快捷键说明

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