| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1248 人关注过本帖
标题:help me !!!waiting online.....
只看楼主 加入收藏
rainic
Rank: 6Rank: 6
等 级:贵宾
威 望:27
帖 子:2367
专家分:0
注 册:2005-8-9
收藏
得分:0 
你发你的代码给我,我看看能不能做好

2005-11-25 13:56
mengya
Rank: 1
等 级:新手上路
帖 子:74
专家分:0
注 册:2005-11-8
收藏
得分:0 

<!--#include file=achky.asp -->
<!--#include file=../../include/conn.asp -->


<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<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">
<title>管 理 界 面</title>
<style type="text/css">
<!--
.style3 {font-size: 12px}
-->
</style>
<base target=main>
</head>

<body leftmargin="0" bgcolor="#FFFFFF" topmargin="0">

<div align="left">
<form action="Aruku.asp" method=post name="form1" id="form1">
<table border="1" cellpadding="0" cellspacing="0" width="604" height="394">
<tr>
<td width="16" height="369" valign="top" bgcolor="#D5DDEA" rowspan="7"> </td>


<td width="582" height="36" valign="middle" bgcolor="#D5DDEA">
<p align="center"><font size="2">&nbsp;&nbsp;</font><font size="4" color="#FF0000">增 加 信 息</font>
</td>
</tr>
<tr>
<td width="582" height="3" valign="bottom" bgcolor="#D5DDEA"><font size="2">
  </font></td>
</tr>
<tr>
<td width="582" height="20" valign="top" bgcolor="#D5DDEA"><font size="2">&nbsp;
标&nbsp; 题:
<input type="text" name="title" size="57">
</font></td>
</tr>
<tr>
<td width="582" height="227" valign="top" bgcolor="#D5DDEA">
<p align="center"><font size="3">内 容:</font><font size="3"><br>
</font><font size="2">
<br>
<textarea rows="11" name="content" cols="77"></textarea>
</font></p> </td>
</tr>
<tr >
<td width="582" valign="middle" bgcolor="#D5DDEA" heitht="1">
<p>&nbsp;</p>
<p><font size="2">日&nbsp; 期:&nbsp;
<input name="addtime" type="text" value="<% =now %>" size="27">
</font></p>
<p align="left"> </td>
</tr>
<tr>
<td bgcolor="#D5DDEA" heitht="1"><font size=2>选 择 类 别:</font><span class="style3">

<select size="1" class="style3" id="select2" name=select >
<option selected value="出租转让">出租转让</option>
<option value="积压物资">积压物资</option>
<option value="商务合作">商务合作</option>
<option value="求租求购">求租求购</option>
</select> 
    
<select name="scid" size="1">
<%
dim bc
bc='select.value'
set rs0 =server.createobject("adodb.recordset")
sql0="select * from no1 where " no1name='"&bc&"'"
rs0.open sql0,conn,1,1

set rs =server.createobject("adodb.recordset")
sql="select * from no2 where no1id='"&rs0("no1id")&"'"
rs.open sql,conn,1,1
if rs.eof and rs.bof then
response.Write "<option selected>请选择类别</option>"  
else
do while not rs.eof
response.Write "<option value="&rs("no2id")&">"&rs("no2name")&"</option>"
rs.movenext
Loop
end if
%>
</select>////两个select
<%
rs.close
rs0.close
set rs=nothing
set rs0=nothing
%>
<input type=hidden name=bcid value="<%=rs0("no1id")%>">
</span></td>
</tr>
<tr>
<td width="582" height="1" valign="top" bgcolor="#D5DDEA">
<p align="center">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>
&nbsp; <input type="submit" value="提交" name="B1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="reset" value="全部重写" name="B2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</td>
</tr>
</table>
</form>
</div>

</body>

</html>

先谢谢啦!!呵呵。。。。


2005-11-25 13:59
rainic
Rank: 6Rank: 6
等 级:贵宾
威 望:27
帖 子:2367
专家分:0
注 册:2005-8-9
收藏
得分:0 

刚才老打不开编程论坛,现在才行。
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<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">
<title>管 理 界 面</title>
<style type="text/css">
<!--
.style3 {font-size: 12px}
-->
</style>
<base target=main>
</head>

<body leftmargin="0" bgcolor="#FFFFFF" topmargin="0">

<div align="left">
<form action="Aruku.asp" method=post name="form1" id="form1">
<table border="1" cellpadding="0" cellspacing="0" width="604" height="394">
<tr>
<td width="16" height="369" valign="top" bgcolor="#D5DDEA" rowspan="7"> </td>


<td width="582" height="36" valign="middle" bgcolor="#D5DDEA">
<p align="center"><font size="2">&nbsp;&nbsp;</font><font size="4" color="#FF0000">增 加 信 息</font>
</td>
</tr>
<tr>
<td width="582" height="3" valign="bottom" bgcolor="#D5DDEA"><font size="2">
  </font></td>
</tr>
<tr>
<td width="582" height="20" valign="top" bgcolor="#D5DDEA"><font size="2">&nbsp;
标&nbsp; 题:
<input name="title" type="text" value="<%=request("title")%>" size="57">
</font></td>
</tr>
<tr>
<td width="582" height="227" valign="top" bgcolor="#D5DDEA">
<p align="center"><font size="3">内 容:</font><font size="3"><br>
</font><font size="2">
<br>
<textarea rows="11" name="content" cols="77"><%=request("content")%></textarea>
</font></p> </td>
</tr>
<tr >
<td width="582" valign="middle" bgcolor="#D5DDEA" heitht="1">
<p>&nbsp;</p>
<p><font size="2">日&nbsp; 期:&nbsp;
<input name="addtime" type="text" value="<% =now %>" size="27">
</font></p>
<p align="left"> </td>
</tr>
<tr>
<td bgcolor="#D5DDEA" heitht="1"><font size=2>选 择 类 别:</font><span class="style3">

<select size="1" class="style3" id="select2" name="select1" onChange="nextselect()">
<%if request("select1")="出租转让" then%>
<option value="">请选择</option>
<option value="出租转让" selected="selected">出租转让</option>
<option value="积压物资">积压物资</option>
<option value="商务合作">商务合作</option>
<option value="求租求购">求租求购</option>
<%elseif request("select1")="积压物资" then%>
<option value="">请选择</option>
<option value="出租转让">出租转让</option>
<option value="积压物资" selected="selected">积压物资</option>
<option value="商务合作">商务合作</option>
<option value="求租求购">求租求购</option>
<%elseif request("select1")="商务合作" then%>
<option value="">请选择</option>
<option value="出租转让">出租转让</option>
<option value="积压物资">积压物资</option>
<option value="商务合作" selected="selected">商务合作</option>
<option value="求租求购">求租求购</option>
<%elseif request("select1")="求租求购" then%>
<option value="">请选择</option>
<option value="出租转让">出租转让</option>
<option value="积压物资">积压物资</option>
<option value="商务合作">商务合作</option>
<option value="求租求购" selected="selected">求租求购</option>
<%else%>
<option value="" selected="selected">请选择</option>
<option value="出租转让">出租转让</option>
<option value="积压物资">积压物资</option>
<option value="商务合作">商务合作</option>
<option value="求租求购">求租求购</option>
<%end if%>
</select>
<select name="scid" size="1">
<%
dim bc
bc=request("select1")
if bc<>"" then
set rs0 =server.createobject("adodb.recordset")
sql0="select * from no1 where no1name='"&bc&"'"
rs0.open sql0,conn,1,1
set rs =server.createobject("adodb.recordset")
sql="select * from no2 where no1id='"&rs0("no1id")&"'"
rs.open sql,conn,1,1
if rs.eof and rs.bof then
response.Write "<option selected>请选择类别</option>"
else
do while not rs.eof
response.Write "<option value="&rs("no2id")&">"&rs("no2name")&"</option>"
rs.movenext
Loop
end if
end if
%>
</select>////两个select
<%
rs.close
rs0.close
set rs=nothing
set rs0=nothing
%>
<input type=hidden name=bcid value="<%=rs0("no1id")%>">
</span></td>
</tr>
<tr>
<td width="582" height="1" valign="top" bgcolor="#D5DDEA">
<p align="center">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>
&nbsp; <input type="submit" value="提交" name="B1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="reset" value="全部重写" name="B2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</td>
</tr>
</table>
</form>
</div>
<script language="javascript">
function nextselect()
{
window.location = "本页名字.asp?title=" + form1.title.value + "&content=" + form1.content.value + "&select1=" + form1.select1.value;
}
</script>
</body>

</html>

[此贴子已经被作者于2005-11-25 16:31:48编辑过]


2005-11-25 16:30
islet
Rank: 12Rank: 12Rank: 12
等 级:贵宾
威 望:89
帖 子:6548
专家分:0
注 册:2005-1-28
收藏
得分:0 
[QUOTE]<select size="1" class="style3" id="select" name=select >
<option selected>出租转让</option>
<option>积压物资</option>
<option>商务合作</option>
<option>求租求购</option>
</select>     
<select name="scid" size="1">
<%
dim bc
bc='"select.value"'
set rs0 =server.createobject("adodb.recordset")
sql0="select * from no1 where " no1name='"&bc&"'"
rs0.open sql0,conn,1,1[/QUOTE]

<select size="1" class="style3" id="select" name=select onChange="window.location.href='?select='+this.value">
2005-11-25 16:59
mengya
Rank: 1
等 级:新手上路
帖 子:74
专家分:0
注 册:2005-11-8
收藏
得分:0 
呵呵....
谢谢啦,我刚才改成用两个页面设计了!!真的很感谢你们!!

[此贴子已经被作者于2005-11-25 17:02:58编辑过]


2005-11-25 17:00
快速回复:help me !!!waiting online.....
数据加载中...
 
   



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

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