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

📄 modifyphone.asp

📁 功能非常强大的一款办公自动化软件原代码,其中的文档签收功能特别实用.不相信下下来看下.
💻 ASP
字号:
<!--#include file="check.asp"-->
<!--#INCLUDE FILE="connect.asp" --> 
<%if Request.ServerVariables("Request_Method")="POST" then
     set rs=server.createobject("adodb.recordset")
	 if request("choose")="1" then
sql="select * from phone where userid='"&session("uid")&"' and id="&CLng(request("id"))
rs.Open sql,conn,1,3 
rs("username")=request("username")
rs("name")=request("name")
rs("mobilephone")=request("mobilephone")
rs("telephone")=request("telephone")
rs("email")=request("email")
rs("company")=request("company")
rs("address")=request("address")
rs("postcode")=request("postcode")
rs("work")=request("work")
rs("fax")=request("fax")
rs("remark")=request("remark")
rs.update 
rs.close
set conn=nothing
response.write("<script>opener.location=opener.location;window.close()</script>")
response.end
end if
if request("choose")="2" then
sql="delete from phone where userid='"&session("uid")&"' and id="&CLng(request("id"))
conn.execute(sql)
conn.close
set conn=nothing
response.write("<script>opener.location=opener.location;window.close()</script>")
response.end
end if
end if

%>
<html>
<head>
<title>修改通讯录</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="outplan.css" type="text/css">
</head>
<script language="javascript" src="apply.js"></script>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<%

  set rs=server.createobject("adodb.recordset")
  sql="select * from phone where userid='"&session("uid")&"' and id="&CLng(request("id"))
  rs.open sql,conn,1,1
%>
<form action="" method="POST" name="form" >
  <table width="100%" border="0" cellspacing="0" cellpadding="0" height="35">
    <tr> 
      <td background="images/outplan4.gif" valign="top"> 
        <table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%">
          <tbody> 
          <tr> 
            <td width="30" align="right"><img src="images/outplan7.gif" width="22" height="35"></td>
            <td width="70" align="center"> <a href="#" class="wlink" onClick="return checkphonemodify()">保 
              存</a></td>
            <td width="10"><img src="images/outplanline.gif" width="16" height="35"></td>
            <td width="22"><img src="images/outplan6.gif" width="22" height="35"></td>
            <td width="70" align="center"> <a href="#" class="wlink" onClick="return checkphonedel()">删 
              除</a></td>
            <td width="3"><img src="images/outplanline.gif" width="16" height="35"></td>
            <td width="22"><img src="images/outplan5.gif" width="22" height="35"></td>
            <td width="70" align="center"> <a href="#" onClick="window.close()" class="wlink">关 
              闭</a></td>
            <td width="6"><img src="images/outplanline.gif" width="16" height="35"></td>
            <td class="wnolink">&nbsp;</td>
          </tr>
          </tbody> 
        </table>
      </td>
    </tr>
  </table>
  <table width="100%" border="0" cellspacing="0" cellpadding="0" height="40">
    <tbody> 
    <tr> 
      <td width="210" background="images/outplan1.gif" class="outtitle">&nbsp;&nbsp;修改通讯录</td>
      <td width="91"><img src="images/outplan11.gif" width="91" height="40"></td>
      <td background="images/outplan3.gif" valign="top" width="45">&nbsp; </td>
      <td width="2"><img src="images/outplan8.gif" width="2" height="40"></td>
      <td background="images/outplan9.gif" width="75" align="center" valign="middle"> 
        <table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%">
          <tbody> 
          <tr height="6"> 
            <td align="center" height="6"></td>
          </tr>
          <tr> 
            <td align="center" class="whitetd">详细内容</td>
          </tr>
          </tbody> 
        </table>
      </td>
      <td width="2"><img src="images/outplan8.gif" width="2" height="40"></td>
      <td background="images/outplan3.gif" valign="top">&nbsp; </td>
    </tr>
    </tbody> 
  </table>
  <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" height="123">
    <tr> 
      <td height="33" valign="top"> 
        <div align="center"> 
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr> 
              <td width="30">&nbsp;</td>
              <td> 
                <table width="100%" cellspacing="0" cellpadding="0" bordercolordark="#FFFFFF" align="center">
                  <tr> 
                    <td width="100" height="40" align="left"> 姓 名: </td>
                    <td height="40"> 
                      <table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%">
                        <tr> 
                          <td width="43%"> 
                            <input type="text" class="noinput" name="name" maxlength="25" size="25" value="<%=rs("name")%>">
                          </td>
                          <td width="13%" align="center">&nbsp;</td>
                          <td width="44%">&nbsp; </td>
                        </tr>
                      </table>
                    </td>
                  </tr>
                  <tr> 
                    <td width="100" height="40" align="left">手 机: </td>
                    <td height="40"> 
                      <table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%">
                        <tr> 
                          <td width="43%"> 
                            <input class="noinput" type="text" name="mobilephone" maxlength="25" size="25" value="<%=rs("mobilephone")%>">
                          </td>
                          <td width="13%" align="center">&nbsp;</td>
                          <td width="44%">&nbsp; </td>
                        </tr>
                      </table>
                    </td>
                  </tr>
                  <tr> 
                    <td width="100" height="40" align="left">电 话: </td>
                    <td height="40"> 
                      <table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%">
                        <tr> 
                          <td width="43%"> 
                            <input class="noinput" type="text" name="telephone" maxlength="25" size="25" value="<%=rs("telephone")%>">
                          </td>
                          <td width="13%" align="center">传 真:</td>
                          <td width="44%"> 
                            <input class="noinput" type="text" name="fax" maxlength="25" size="15" value="<%=rs("fax")%>">
                          </td>
                        </tr>
                      </table>
                    </td>
                  </tr>
                  <tr> 
                    <td width="100" height="40" align="left"> 电子邮箱:</td>
                    <td height="40"> 
                      <input type="text" name="email" size="25" class="noinput" maxlength="25" value="<%=rs("email")%>">
                    </td>
                  </tr>
                  <tr> 
                    <td width="100" height="40" align="left"> 单 位:</td>
                    <td height="40"> 
                      <table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%">
                        <tr> 
                          <td width="43%"> 
                            <input class="noinput" type="text" name="company" size="25" maxlength="25" value="<%=rs("company")%>">
                          </td>
                          <td width="13%" align="center">职 务:</td>
                          <td width="44%"> 
                            <input class="noinput" type="text" name="work" maxlength="25" size="15" value="<%=rs("work")%>">
                          </td>
                        </tr>
                      </table>
                    </td>
                  </tr>
                  <tr> 
                    <td width="100" height="40" align="left"> 通讯地址:</td>
                    <td height="40"> 
                      <table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%">
                        <tr> 
                          <td width="43%"> 
                            <input class="noinput" type="text" name="address" size="25" maxlength="25" value="<%=rs("address")%>">
                          </td>
                          <td width="13%" align="center">邮 编:</td>
                          <td width="44%"> 
                            <input class="noinput" type="text" name="postcode" maxlength="25" size="15" value="<%=rs("postcode")%>">
                          </td>
                        </tr>
                      </table>
                    </td>
                  </tr>
                </table>
              </td>
            </tr>
          </table>
          <table width="85%" border="0" cellspacing="0" cellpadding="0">
            <tr height="1"> 
              <td bgcolor="0066CC" height="1"></td>
            </tr height="1">
            <tr> 
              <td bgcolor="ffffff" height="1"></td>
            </tr>
          </table>
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr height="20"> 
              <td ></td>
              <td></td>
            </tr>
            <tr> 
              <td width="30">&nbsp;</td>
              <td> 
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr> 
                    <td width="100" align="left">备 注:</td>
                    <td> 
                      <textarea name="remark" rows="5" cols="69" class="body1"><%=rs("remark")%></textarea>
                    </td>
                  </tr>
                </table>
              </td>
            </tr>
          </table>
          <input type="hidden" name="choose">
          <input type="hidden" name="id" value="<%=CLng(request("id"))%>">
        </div>
      </td>
    </tr>
  </table>
</form>
<!--#include file="close.asp"-->
</body>
</html>

⌨️ 快捷键说明

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