标题:小生求救
只看楼主
weifacai
Rank: 1
等 级:新手上路
帖 子:4
专家分:0
注 册:2005-10-17
 问题点数:0 回复次数:5 
小生求救

<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%> <!--#include file="tcconn.asp" --> <% if request.Cookies("flag")<>"teacher" then response.write "<script language=JavaScript>{window.alert('网络超时或你还未登录,请重新登陆!');window.location.href='index.htm';}</script>" response.end end if tc_id=request("id") if tc_id="" or tc_id<>request.Cookies("adminuser") then response.write "来源未知或数据丢失!" response.end end if set tcrs=conn.execute("select * from tcinfor where tc_id="&tc_id&"") if tcrs.eof then set tcrs=nothing response.Write "<script language=JavaScript>{window.alert('记录已被删除或不存在!');window.location.href='admin_writeto.asp';}</script>" response.End() end if %> <% tc_key=trim(request("key")) tc_key=replace(tc_key,"'","") tc_cond=request("cond") if tc_key="" then set rs=conn.execute("select tc_id,tc_name,tc_dw from tcinfor order by tc_id desc") else set rs=conn.execute("select tc_id,tc_name,tc_dw from tcinfor where "&tc_cond&" like '%"&tc_key&"%' order by tc_id desc") end if %> <html> <head> <title>业务管理系统</title> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="keywords" content=""> <LINK href="css.css" type=text/css rel=stylesheet> </head>

<body background="img/bg.gif" topmargin="0" leftmargin="0"> <table width="778" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#99CC00"> <tr> <td height="30">&nbsp;</td> </tr> <tr> <td><img src="img/admin_top.gif" width="778" height="66"></td> </tr> <tr> <td>&nbsp;&nbsp;&nbsp; &nbsp;您现在正在操作:<span class="style8">修改信息</span></td> </tr> <tr> <td> <table width="754" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td><img src="img/jb.gif" width="754" height="27"></td> </tr> <tr> <td background="img/table_bg.gif"><table width="754" border="0" cellpadding="0" cellspacing="0"> <tr> <td>&nbsp;</td> <td>&nbsp; </td> <td>&nbsp;</td> </tr> <tr> <td width="70">&nbsp;</td> <td width="624"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><table width="616" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="36">姓名</td> <td width="130"><%=tcrs("tc_name")%></td> <td width="33">性别</td> <td width="66"><%=tcrs("tc_sex")%></td> <td width="60">推荐人</td> <td width="122"><%=tcrs("tc_birt")%></td> <td width="60">联系电话</td> <td width="109"><%=tcrs("tc_indate")%></td> </tr> </table></td> </tr> <tr> <td><table width="616" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="61">身份证号</td> <td width="172"><%=tcrs("tc_code")%></td> <td width="142">银行帐户</td> <td width="241"><%=tcrs("tc_address")%></td> </tr> </table></td> </tr> <tr> <td><table width="616" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="61">管理员</td> <td width="204"><%=tcrs("tc_zhy")%></td> <td width="86">所在区域</td> <td width="265"><%=tcrs("tc_dw")%></td> </tr> </table></td> </tr> </table></td> <td width="60">&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td>销售数量<%=tcrs("tc_xssl")%></td> <td>&nbsp;</td> </tr> </table></td> </tr> <tr> <td background="img/table_btom.gif">&nbsp;</td> </tr> </table> <table width="754" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td><img src="img/bzh.gif" width="754" height="27"></td> </tr> <tr> <td background="img/table_bg.gif"><table width="754" border="0" cellpadding="0" cellspacing="0"> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td width="70">&nbsp;</td> <td width="59" valign="top">备注</td> <td width="579"><%=htmlencode(tcrs("tc_bzh"))%></td> <td width="46">&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td colspan="2" align="center">&nbsp; </td> <td>&nbsp;</td> </tr> </table></td> </tr> <tr> <td background="img/table_btom.gif">&nbsp;</td> </tr> </table>

<table width="754" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td><img src="img/admin_list.gif" width="754" height="27"></td> </tr> <tr> <td background="img/table_bg.gif">

<table width="754" border="0" cellspacing="0" cellpadding="0"> <% tc_name=tcrs("tc_name") set rs_news=server.createobject("adodb.recordset") sqltext4="select * from tcinfor where tc_birt="&tc_name&"" rs_news.open sqltext4,conn,1,1 %>

<tr> <td width="56">&nbsp;</td> <td width="107">&nbsp;</td> <td width="151">&nbsp;</td> <td width="131">&nbsp;</td> <td width="116">&nbsp;</td> <td width="147">&nbsp;</td> <td width="46">&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td><b>姓名</b></td> <td><b>所在区域</b></td> <td><strong>管理员</strong></td> <td><strong>推荐人</strong></td> <td><strong>销售数量</strong></td> <td>&nbsp;</td> </tr> <tr onMouseOver="this.style.backgroundColor='#99CC00'" onMouseOut ="this.style.backgroundColor=''"> <td>&nbsp;</td> <td><%=rs_news("tc_name")%></td> <td><%=rs_news("tc_dw")%></td> <td><%=rs_news("tc_zhy")%></td> <td><%=rs_news("tc_birt")%></td> <td><%=rs_news("tc_xssl")%></td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td width="116">&nbsp;</td> <td width="147">&nbsp;</td> <td width="46">&nbsp;</td> </tr> </table> </td> </tr> <tr> <td background="img/table_btom.gif">&nbsp;</td> </tr> <% rs_news.close %> </table></td> </tr> <tr> <td>&nbsp;</td> </tr> </table> </body> </html>

<% set tcrs=nothing %>

搜索更多相关主题的帖子: 小生 
2005-10-20 17:17
weifacai
Rank: 1
等 级:新手上路
帖 子:4
专家分:0
注 册:2005-10-17
得分:0 
不知道为什么,不能显示出数据!郁闷啊
2005-10-20 17:18
盖茨他爹
Rank: 6Rank: 6
等 级:贵宾
威 望:28
帖 子:5255
专家分:0
注 册:2005-5-3
得分:0 
2005-10-20 17:19
hxfly
Rank: 5Rank: 5
等 级:贵宾
威 望:17
帖 子:5807
专家分:108
注 册:2005-4-7
得分:0 
哦,卖糕的

2005-10-20 17:30
jnzsk
Rank: 1
等 级:新手上路
威 望:1
帖 子:403
专家分:0
注 册:2004-11-13
得分:0 
[CODE]

<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%> <!--#include file="tcconn.asp" --> <% if request.Cookies("flag")<>"teacher" then response.write "<script language=JavaScript>{window.alert('网络超时或你还未登录,请重新登陆!');window.location.href='index.htm';}</script>" response.end end if tc_id=request("id") if tc_id="" or tc_id<>request.Cookies("adminuser") then response.write "来源未知或数据丢失!" response.end end if set tcrs=conn.execute("select * from tcinfor where tc_id="&tc_id&"") if tcrs.eof then set tcrs=nothing response.Write "<script language=JavaScript>{window.alert('记录已被删除或不存在!');window.location.href='admin_writeto.asp';}</script>" response.End() end if %> <% tc_key=trim(request("key")) tc_key=replace(tc_key,"'","") tc_cond=request("cond") if tc_key="" then set rs=conn.execute("select tc_id,tc_name,tc_dw from tcinfor order by tc_id desc") else set rs=conn.execute("select tc_id,tc_name,tc_dw from tcinfor where "&tc_cond&" like '%"&tc_key&"%' order by tc_id desc") end if %> <html> <head> <title>业务管理系统</title> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="keywords" content=""> <LINK href="css.css" type=text/css rel=stylesheet> </head>

<body background="img/bg.gif" topmargin="0" leftmargin="0"> <table width="778" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#99CC00"> <tr> <td height="30">&nbsp;</td> </tr> <tr> <td><img src="img/admin_top.gif" width="778" height="66"></td> </tr> <tr> <td>&nbsp;&nbsp;&nbsp; &nbsp;您现在正在操作:<span class="style8">修改信息</span></td> </tr> <tr> <td> <table width="754" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td><img src="img/jb.gif" width="754" height="27"></td> </tr> <tr> <td background="img/table_bg.gif"><table width="754" border="0" cellpadding="0" cellspacing="0"> <tr> <td>&nbsp;</td> <td>&nbsp; </td> <td>&nbsp;</td> </tr> <tr> <td width="70">&nbsp;</td> <td width="624"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><table width="616" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="36">姓名</td> <td width="130"><%=tcrs("tc_name")%></td> <td width="33">性别</td> <td width="66"><%=tcrs("tc_sex")%></td> <td width="60">推荐人</td> <td width="122"><%=tcrs("tc_birt")%></td> <td width="60">联系电话</td> <td width="109"><%=tcrs("tc_indate")%></td> </tr> </table></td> </tr> <tr> <td><table width="616" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="61">身份证号</td> <td width="172"><%=tcrs("tc_code")%></td> <td width="142">银行帐户</td> <td width="241"><%=tcrs("tc_address")%></td> </tr> </table></td> </tr> <tr> <td><table width="616" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="61">管理员</td> <td width="204"><%=tcrs("tc_zhy")%></td> <td width="86">所在区域</td> <td width="265"><%=tcrs("tc_dw")%></td> </tr> </table></td> </tr> </table></td> <td width="60">&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td>销售数量<%=tcrs("tc_xssl")%></td> <td>&nbsp;</td> </tr> </table></td> </tr> <tr> <td background="img/table_btom.gif">&nbsp;</td> </tr> </table> <table width="754" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td><img src="img/bzh.gif" width="754" height="27"></td> </tr> <tr> <td background="img/table_bg.gif"><table width="754" border="0" cellpadding="0" cellspacing="0"> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td width="70">&nbsp;</td> <td width="59" valign="top">备注</td> <td width="579"><%=htmlencode(tcrs("tc_bzh"))%></td> <td width="46">&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td colspan="2" align="center">&nbsp; </td> <td>&nbsp;</td> </tr> </table></td> </tr> <tr> <td background="img/table_btom.gif">&nbsp;</td> </tr> </table>

<table width="754" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td><img src="img/admin_list.gif" width="754" height="27"></td> </tr> <tr> <td background="img/table_bg.gif">

<table width="754" border="0" cellspacing="0" cellpadding="0"> <% tc_name=tcrs("tc_name") set rs_news=server.createobject("adodb.recordset") sqltext4="select * from tcinfor where tc_birt="&tc_name&"" rs_news.open sqltext4,conn,1,1 %>

<tr> <td width="56">&nbsp;</td> <td width="107">&nbsp;</td> <td width="151">&nbsp;</td> <td width="131">&nbsp;</td> <td width="116">&nbsp;</td> <td width="147">&nbsp;</td> <td width="46">&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td><b>姓名</b></td> <td><b>所在区域</b></td> <td><strong>管理员</strong></td> <td><strong>推荐人</strong></td> <td><strong>销售数量</strong></td> <td>&nbsp;</td> </tr> <tr onMouseOver="this.style.backgroundColor='#99CC00'" onMouseOut ="this.style.backgroundColor=''"> <td>&nbsp;</td> <td><%=rs_news("tc_name")%></td> <td><%=rs_news("tc_dw")%></td> <td><%=rs_news("tc_zhy")%></td> <td><%=rs_news("tc_birt")%></td> <td><%=rs_news("tc_xssl")%></td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td width="116">&nbsp;</td> <td width="147">&nbsp;</td> <td width="46">&nbsp;</td> </tr> </table> </td> </tr> <tr> <td background="img/table_btom.gif">&nbsp;</td> </tr> <% rs_news.close %> </table></td> </tr> <tr> <td>&nbsp;</td> </tr> </table> </body> </html>

<% set tcrs=nothing %>[/CODE]


2005-10-21 15:20
jnzsk
Rank: 1
等 级:新手上路
威 望:1
帖 子:403
专家分:0
注 册:2004-11-13
得分:0 
参数都传递过来了吗?

2005-10-21 15:21



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-30783-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.272311 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved