CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
可用分押宝游戏火热进行中... 专题改版:Java Web 专题
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  Web 开发 >  ASP

求助.

楼主aiolia725(海水太蓝)2005-06-04 15:38:34 在 Web 开发 / ASP 提问

from   page:<%if   session("password")<>""   then%>  
  <script   language="javascript">  
  function   confirmud(name){  
  if   (confirm("确定这个注销?"))    
  {  
  window.location.href   =   "zjudnews.asp?id="   +id  
  }  
  }  
  </script>  
  <HTML>  
  <HEAD>  
  <title>出租模块</title>  
  <meta   http-equiv="Content-Type"   content="text/html;   charset=gb2312">  
   
  <link   href="css.css"   rel="stylesheet"   type="text/css">  
  </HEAD>  
  <BODY>  
  <div   align="center">  
  </div>  
   
  <table   width="500"   border="0"   align="center"   cellpadding="0"   cellspacing="0">  
      <tr   bgcolor="#E7E7E7">  
          <td   width="590"   height="25"><A   HREF="index1.asp">首页</A>   <A   HREF="add.asp">添加</A>   <A   HREF="modify.asp">修改</A>   <a   href="SEARCH.ASP">查询</a>   <a   href="del.asp">删除</a>   <a   href="addzj.asp">添加租借信息</a>   <a   href="20050130_logout.asp">退出</a>   </td>  
      </tr>  
  </table>  
  <table   width="500"   border="0"   align=center   cellpadding="0"   cellspacing="0">  
  <tr></tr>  
      <tr>  
          <td   colspan=8   bgcolor="#E7E7E7"><img   src="nv.jpg"   width="500"   height="350"></td>  
      </tr>  
   
  </table>  
  <table   width="500"   border="0"   align="center"   cellpadding="0"   cellspacing="0">  
      <tr   bgcolor="#F6F6F6">  
          <td   width="100"   height="25">客户ID</td>  
          <td   width="300">租借日期</td>  
          <td   width="200">租借片名</td>  
          <td   width="100">押金</td>  
          <td   width="100">注销</td>  
          </tr>  
  </table>  
  <!--#include   file="conn.asp"   -->    
  <%    
  sql="select   *   from   customer"    
  rs.open   sql,conn,1,1           'RS参数设定为执行SQL的查询语法,数据库文件里的customer表中的数据,无论任何条件,全部设计为查询的对象,并由RS作为管理的参数。  
   
  if   rs.EOF   or   rs.BOF   then  
  Response.Write   "数据库中暂无资料!"  
  else  
  do   while   not   rs.EOF   or   rs.BOF  
  %>  
  <table   width="500"   border="0"   align="center"   cellpadding="0"   cellspacing="0">  
      <tr>  
          <td   width="100"   height="25">   <%=rs("customerid")%></td>   <!--   用户名   -->  
          <td   width="300"><%=rs("rq")%></td>          
          <td   width="200"><%=rs("name")%></td>                  
          <td   width="100"><%=rs("deposit")%></td>            
          <td   width="25"><a   href='javascript:confirmud(<%=   rs("id")   %>)'>是</a>     </td>  
              <td   width="25"><div   align="center">          
          <!--备份   -->  
      </tr>  
  </table>  
  <%  
  rs.movenext  
  loop  
  end   if  
  set   rs=nothing    
  set   conn=nothing  
  %>  
  </BODY>  
  </HTML>  
  <%else  
  Response.Redirect   "login.asp"  
  end   if%> 问题点数:0、回复次数:4Top

1 楼ztmaster(totem)回复于 2005-06-04 15:43:11 得分 0

要别人猜你求助什么吗?Top

2 楼aiolia725(海水太蓝)回复于 2005-06-04 15:43:46 得分 0

执行page:<!--#include   file="conn.asp"   -->    
  <%  
  id1=request("id")  
  sql   =   "update   total   set   storage=storage+1   where   id="+id1  
  rs.Open   sql,conn,1,3  
  set   rs=nothing  
  set   conn=nothing  
  response.write   "<script   language=JavaScript>"   &   chr(13)   &   "alert('此条记录信息已经更新!');"&"window.location.href   =   'index1.asp'"&"   </script>"    
  %>  
  我想实现的是点击注销栏能相应的使total表的storage字段+1.但是ID是customer表中的,请各位帮忙看看应该如何实现.  
  万分感谢Top

3 楼lovebanyi(风云)回复于 2005-06-04 15:43:59 得分 0

说点信息吧。。直接把哪么长的代码贴出来。人家看了会晕Top

4 楼ztmaster(totem)回复于 2005-06-04 15:51:03 得分 0

<script   language="javascript">  
  function   confirmud(name){  
  if   (confirm("确定这个注销?"))    
  {  
  id=name;  
  window.location.href   =   "zjudnews.asp?id="   +id;  
  }  
  }  
  </script>Top

相关问题

关键词

  • 租借

得分解答快速导航

  • 帖主:aiolia725

相关链接

  • Web开发类图书

广告也精彩

反馈

请通过下述方式给我们反馈
反馈
提问
网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|问题报告
世纪乐知(北京)网络技术有限公司 版权所有, 京 ICP 证 020026 号
北京创新乐知广告有限公司 提供技术支持
Copyright © 2000-2007, CSDN.NET, All Rights Reserved
GongshangLogo