<!--#include virtual="/incs/config.asp"-->
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
	<meta name="Module" content="">
	<script language="JavaScript">
	<!--
		var imgExitColor = new Image ( ) ;
		var imgExitGray = new Image ( ) ;

		imgExitColor.src = "images/exit.gif" ;
		imgExitGray.src = "images/exitg.gif" ;

		function chgfrm( )
		{
			var nClientHeight = parent.frm_bdy.document.body.clientHeight ;
			if ( top.allowChangeView )
			{
				if ( parent.frm5.rows != "20,*,0" )
				{
					parent.frm5.rows = "20,*,0" ;
					top.canResize = false ;
				}
				else
				{
					parent.frm5.rows = "20,"+( nClientHeight / 5*2 ) + ",*" ;
					top.canResize = true ;
				}
			}
			else
			{
				parent.frm5.rows = "20,*,0" ;
				top.canResize = false ;
			}
		}

		function fn_BtnFlat ( )
		{
			table_logout.className = "StatusBarButton" ;
		}

		function fn_BtnGroove ( )
		{
			table_logout.className = "StatusBarButtonUp" ;
		}

		function fn_BtnDown ( )
		{
			table_logout.className = "StatusBarButtonDown" ;
		}

		function fn_Logout ( )
		{
			if ( confirm ( "您真的要退出系统么？" ) )
			{
				form_logout.submit ( ) ;
			}
		}
		function refresh_dtl()
		{
		if ( parent.frm5.rows != "20,*,0" )
		parent.parent.frm_dtl.location.reload();
		}
		
    	function open_dtl()
		{
		var nClientHeight = parent.frm_bdy.document.body.clientHeight ;
		if ( parent.frm5.rows == "20,*,0" )
		parent.frm5.rows = "20,"+( nClientHeight / 5*2 ) + ",*" ;
		else
		parent.frm5.rows="20,*,0";
		}
	//-->
	</script>
	<link id="style_sheet" href="/css/green.css" type="text/css" rel="stylesheet">
	<script language="JavaScript">style_sheet.href = parent.style_sheet.href;</script>
	<title></title>
</head>
<body  class="StatusBar"> 
<form name="form_logout" action="memmng/quit.asp" target="_top" method="post">
</form> <table width="100%" height="20" border="0" cellpadding="0" cellspacing="0" style="font-size:9pt;">
	<tr>
		<td nowrap align="left" width="150" valign="top" height="20"><table id="table_logout" border="0" cellpadding="0" cellspacing="0" style="width:127px; height:20px;" class="StatusBarButton">
				<tr>
					<td height="18" align="left" valign="top" onclick="JavaScript:fn_Logout();" onmouseover="JavaScript:fn_BtnGroove()" onmouseout="JavaScript:fn_BtnFlat()" onmousedown="JavaScript:fn_BtnDown()" onmouseup="JavaScript:fn_BtnGroove()"><table border="0" cellpadding="0" cellspacing="0" style="font-size:9pt;" width="125" height="18">
							<tr>
								<td nowrap width="10" height="18"></td>
								<td nowrap width="19" height="18"></td>
								<td nowrap align="left" valign="bottom" height="18"><b style="color:Navy;">退出系统</b></td></tr>
					</table></td>
				</tr>
		</table></td>
		<td nowrap valign="top" align="center" height="20" class="StatusBarTitle">Powered by www.vvx.cn</td>
		<td nowrap valign="top" width="150" class="StatusBarQuickLunch" height="20"><table width="200" height="18" border="0" cellpadding="0" cellspacing="0">
				<tr>
					
          <td align="right"><a href="javascript:refresh_dtl();">刷新下窗口</a>&nbsp;<a href="javascript:parent.parent.frm_ttl.open_bdy();">开关上窗口</a>&nbsp;<a href="javascript:open_dtl();">开关下窗口</a></td>
		
				</tr>
		</table></td>
	</tr>
</table>
<%

module=trim(SafeRequest("module"))
if module<>"" then
chk_log()
select case module
case "qry_prc"
grd=trim(SafeRequest("grd"))
unme=trim(SafeRequest("unme"))
if grd="" then
%>
<script>
alert("对不起，请选择产品编号！");
</script>
<%
elseif unme="" then
%>
<script>
alert("对不起，请选择会员名称！");
</script>
<%
else
conn.open constr
alertstrs=""
query="select * from memlst where u_nme='"&unme&"'"
rs.open query,conn,1,1
if not rs.eof then
p_cls=rs("u_prc")
else
%>
<script>
alert("对不起，会员不存在！");
</script>
<%
end if
rs.close
query="select * from v_prclst where p_prd='"&grd&"' and p_cls="&p_cls&" order by p_yar"
rs.open query,conn,1,1
if rs.eof then
alertstrs="对不起，该产品价格不存在！"
else
alertstrs=alertstrs&"产品名称："&trim(rs("g_nme"))&"（"&rs("pc_nme")&"）\n"
alertstrs=alertstrs&"产品编号："&trim(rs("g_prd"))&"\n"
alertstrs=alertstrs&"简短说明："&trim(rs("g_inf"))&"\n\n"
while not rs.eof 
alertstrs=alertstrs&rs("p_yar")&"年："&rs("p_prc")&"元人民币（成本："&cint(rs("g_cst"))*cint(rs("p_yar"))&"元）\n"
rs.movenext
wend
end if
rs.close
%>
<script>
alert("<%=alertstrs%>");
</script>
<%
conn.close
end if
end select
end if
%>
</body>
</html>