📄 show1.asp
字号:
<!--#include file="conn.asp"-->
<%
if session("username")=empty then
response.Write("<script>alert('请先登陆!');document.location.href='enter.asp';</script>")
end if
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0032)http://www.doofan.cn/25175/4400/ -->
<HEAD><TITLE>25175材料网,信息价系统</TITLE>
<script language="javascript" src="inc/ssq.js"></script>
<script>
function close(){
if(document.body.clientWidth-event.clientX< 170&&event.clientY< 0||event.altKey)
{
window.location.href="outlogin.asp";
}
}
window.onbeforeunload=close;
</script>
<SCRIPT language=JavaScript>
//下拉菜单相关代码
var h;
var w;
var l;
var t;
var topMar = 1;
var leftMar = -55;
var space = 1;
var isvisible;
var MENU_SHADOW_COLOR='#BBE0F0'; //定义下拉菜单阴影色
var global = window.document
global.fo_currentMenu = null
global.fo_shadows = new Array
function HideMenu()
{
var mX;
var mY;
var vDiv;
var mDiv;
if (isvisible == true)
{
vDiv = document.all("menuDiv");
mX = window.event.clientX + document.body.scrollLeft;
mY = window.event.clientY + document.body.scrollTop;
if ((mX < parseInt(vDiv.style.left)) || (mX > parseInt(vDiv.style.left)+vDiv.offsetWidth) || (mY < parseInt(vDiv.style.top)-h) || (mY > parseInt(vDiv.style.top)+vDiv.offsetHeight)){
vDiv.style.visibility = "hidden";
isvisible = false;
}
}
}
function ShowMenu(vMnuCode,tWidth) {
vSrc = window.event.srcElement;
vMnuCode = "<table id='submenu' cellspacing=2 cellpadding=2 style='border: 1px #444444 solid;width:"+tWidth+"' onmouseout='HideMenu()'><tr><td nowrap align=right height=20>" + vMnuCode + "</td></tr></table>";
h = vSrc.offsetHeight;
w = vSrc.offsetWidth;
l = vSrc.offsetLeft + leftMar+4;
t = vSrc.offsetTop + topMar + h + space-2;
vParent = vSrc.offsetParent;
while (vParent.tagName.toUpperCase() != "BODY")
{
l += vParent.offsetLeft;
t += vParent.offsetTop;
vParent = vParent.offsetParent;
}
menuDiv.innerHTML = vMnuCode;
menuDiv.style.top = t;
menuDiv.style.left = l;
menuDiv.style.visibility = "visible";
isvisible = true;
makeRectangularDropShadow(submenu, MENU_SHADOW_COLOR, 4)
}
function makeRectangularDropShadow(el, color, size)
{
var i;
for (i=size; i>0; i--)
{
var rect = document.createElement('div');
var rs = rect.style
rs.position = 'absolute';
rs.left = (el.style.posLeft + i) + 'px';
rs.top = (el.style.posTop + i) + 'px';
rs.width = el.offsetWidth + 'px';
rs.height = el.offsetHeight + 'px';
rs.zIndex = el.style.zIndex - i;
rs.backgroundColor = color;
var opacity = 1 - i / (i + 1);
rs.filter = 'alpha(opacity=' + (100 * opacity) + ')';
el.insertAdjacentElement('afterEnd', rect);
global.fo_shadows[global.fo_shadows.length] = rect;
}
}
//读取下拉菜单
var menulists1 = ' '
</SCRIPT>
<script>
function getzhong(did){
var zhong=document.all("zhong");
var xiao=document.all("xiao");
for(i=zhong.length-1;i>0;i--){
zhong.options.remove(i);
}
for(i=xiao.length-1;i>0;i--){
xiao.options.remove(i);
}
var xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
xmlDoc.async="false" ;
xmlDoc.load("xml/class.xml");
if (xmlDoc.parseError.errorCode!=0)
{
alert("文件不存在");
}
var xmlNodes=xmlDoc.selectNodes("/root/info");
var recordCount=xmlNodes.length;
var i,f,yyt="";
for(i=0;i<recordCount;i++){
var node=xmlNodes[i];
var id=node.selectSingleNode("id").text;
var title=node.selectSingleNode("title").text;
var fid=node.selectSingleNode("fid").text;
if( fid==did)
zhong.options.add(new Option(title,id));
}
}
function getxiao(did){
var xiao=document.all("xiao");
for(i=xiao.length-1;i>0;i--){
xiao.options.remove(i);
}
var xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
xmlDoc.async="false" ;
xmlDoc.load("xml/class.xml");
if (xmlDoc.parseError.errorCode!=0)
{
alert("文件不存在");
}
var xmlNodes=xmlDoc.selectNodes("/root/info");
var recordCount=xmlNodes.length;
var i,f,yyt="";
for(i=0;i<recordCount;i++){
var node=xmlNodes[i];
var id=node.selectSingleNode("id").text;
var title=node.selectSingleNode("title").text;
var fid=node.selectSingleNode("fid").text;
if( fid==did)
xiao.options.add(new Option(title,id));
}
}
</script>
<META http-equiv=Content-Type content="text/html; charset=gb2312"><LINK
href="images/25175css_pro.css" type=text/css rel=stylesheet>
<META content="MSHTML 6.00.2900.3243" name=GENERATOR>
<style type="text/css">
<!--
.STYLE1 {color: #FF0000}
-->
</style>
</HEAD>
<BODY onmousemove=HideMenu() bgColor=#fbfdff leftMargin=0 topMargin=0
marginheight="0" marginwidth="0">
<!--#include file="top.asp"-->
<TABLE cellSpacing=0 cellPadding=0 width=970 border=0>
<TBODY>
<TR>
<TD width=10>
<DIV align=center></DIV></TD></TR>
<TR>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD vAlign=top bgColor=#a5bec6 rowSpan=2>
<TABLE cellSpacing=1 cellPadding=0 width=970 border=0>
<TBODY>
<TR>
<TD bgColor=#e7f3ff>
<TABLE cellSpacing=4 cellPadding=0 width=970 border=0>
<TBODY>
<TR>
<TD vAlign=top bgColor=#004194 height=300>
<TABLE cellSpacing=1 cellPadding=0 width=970 border=0>
<TBODY>
<TR>
<TD vAlign=top bgColor=#ffffff height=400>
<TABLE cellSpacing=0 cellPadding=2 width="100%"
align=center border=0>
<TBODY>
<TR>
<TD><IMG height=18
src="images/face5.gif" width=18>
<STRONG> <a href="show.asp">综合版</a></STRONG>
<STRONG> <a href="show1.asp">商情版</a></STRONG>
<STRONG> <a href="updatepwd.asp">修改密码</a></STRONG> <STRONG> <a href="updateuser1.asp">修改资料</a></STRONG> <STRONG> <a href="outlogin.asp" class="STYLE1">退出</a> </TD>
</TR>
<TR>
<TD>
<TABLE cellSpacing=0 cellPadding=2 width="100%"
align=center border=0>
<TBODY>
<TR>
<TD height=23 align="center" >
<form action="in1.asp" method="post" target="search">
<table width="55%@">
<tr><td width="30%" align="right">
区域选择:
</td>
<td width="70%" align="left">
<SELECT id=city1 onchange="eval('city_1('+this.value+')');eval('city_2('+document.all.city2.value+')');getCityValue();" name=city1><OPTION value="" selected>请选择</OPTION></SELECT>
<SELECT id=city2 onchange="eval('city_2('+this.value+')');getCityValue();" name=city2><OPTION value="" selected>请选择</OPTION></SELECT>
<SELECT id=city3 name=city3 onchange="getCityValue()"><OPTION value="" selected>请选择</OPTION></SELECT>
<!------------上面三行不用管他,是辅助项目,你要使用的是下面一行,注意ID不能改变,NAME你可以随意改变。如果你默认了VALUE,则会自动选中代码为你的默认值的城市------------------->
<input type=hidden name="F0208" id="city_value" value="">
<script language=javascript>
full_city();selectedValue()
</script>
</td></tr>
<tr><td align="right">
类别选择:
</td><td align="left">
<select name="da" onchange="getzhong(this.value)" >
<option value="">请选择</option>
<%
set rs1=server.createobject("adodb.recordset")
sql="select * from class where fid=2"
rs1.open sql,conn,1,1
if not rs1.eof then
%>
<%do while not rs1.eof%>
<option value="<%=rs1("id")%>"><%=rs1("title")%></option>
<%rs1.movenext%>
<%loop%>
<%end if
rs1.close
set rs1=nothing
%>
</select>
<select name="zhong" onchange="getxiao(this.value)">
<option value="">请选择</option>
</select>
<select name="xiao">
<option value="">请选择</option>
</select>
</td></tr>
<tr><td align="right">
日期选择:
</td><td align="left">
<select name="nian" >
<option value="">请选择</option>
<%for i=1999 to 2020
%>
<option value="<%=i%>" ><%=i%></option>
<%
next
%>
</select>
<select name="yue" >
<option value="">请选择</option>
<%for i=1 to 12
%>
<option value="<%=i%>" ><%=i%></option>
<%
next
%>
</select>
</td></tr>
<tr>
<td align="right">
材料名称或型号规格:
</td>
<td align="left">
<input type=text size=40 name="title"/>
</td></tr>
</table>
<input type="submit" value="查询"/>
</form>
<%
if session("provinceid")<>empty then%>
<script>
document.all.city1.value=<%=session("provinceid")%>;
city_1(document.all.city1.value);city_2(document.all.city2.value);getCityValue();
document.all.city1.disabled = true;
</script>
<%end if
if session("cityid")<>empty then
%>
<script>
document.all.city2.value=<%=session("cityid")%>;
city_2(document.all.city2.value);getCityValue();
document.all.city2.disabled = true;
</script>
<%end if
if session("areaid")<>empty then
%>
<script>
document.all.city3.value=<%=session("areaid")%>;
document.all.city3.disabled = true;
</script>
<%end if%>
<script>
</script>
</TD>
</TR></TBODY></TABLE></TD></TR>
<TR>
<TD>
<iframe width="100%" src="in1.asp" name="search" height="400" />
</TD></TR>
</TBODY></TABLE>
</TD>
</TR>
</TBODY>
</TABLE>
</TD>
</TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD>
<DIV align=center></DIV></TD></TR>
<TR>
<TD width=10>
<DIV align=center></DIV></TD></TR>
<TR>
<TD bgColor=#b1d6e4 height=25>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD bgColor=#b1d6e4 height=25> Copyright © 2007-2010 25175材料网 All
rights reserved. Powered by </TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD> </TD></TR></TBODY></TABLE>
</BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -