<%temp_detail_goods_list_property_price_show=site.object_p%>
<!-- object[<%=site.object_p%>]::temp_detail_goods_list_property_price_show -->
<%
dim ii_price
ii_price=0
if site.check.DbNameSearch("jins_goods_price","price_"&site.temp.customer.info.sort_name_e) then
	site.object(site.object_p).rs.open "select top "&site.object(site.object_p).qu&" * from jins_goods_price where goods_id="&site.object(temp_detail_goods_detail_show).rs_other(0)("goods_id")&" and price_"&site.temp.customer.info.sort_name_e&">0 order by price_addtime desc " ,conn,1,1
	price_draw="$"
	date_draw="$"
	do while  not site.object(site.object_p).rs.eof
		price_draw=replace(price_draw,"$","$,"&site.object(site.object_p).rs("price_"&site.temp.customer.info.sort_name_e))
		date_draw=replace(date_draw,"$","$,'<a href=# title=此价格于["&site.object(site.object_p).rs("price_addtime")&"]发布>"&month(site.object(site.object_p).rs("price_addtime"))&"."&day(site.object(site.object_p).rs("price_addtime"))&"</a>'")
		'price_draw&","&site.object(site.object_p).rs("price_price")
		'date_draw=date_draw&",'<a href=# title=此价格于["&site.object(site.object_p).rs("price_addtime")&"]发布>"&month(site.object(site.object_p).rs("price_addtime"))&"."&day(site.object(site.object_p).rs("price_addtime"))&"</a>'"
		site.object(site.object_p).rs.movenext
		ii_price=ii_price+1
	
	loop
	if price_draw<>"$" then price_draw=right(price_draw,len(price_draw)-2)
	if date_draw<>"$" then date_draw=right(date_draw,len(date_draw)-2)
end if
%>
		
<form name=price ><input type=hidden name=price_draw ><input type=hidden name=date_draw ></form>
		<table cellpadding="0" cellspacing="0" width="100%" height=400 bgcolor="#FFFFFF" style="border: 1px solid #EBEBEB">
			<!-- MSTableType="layout" -->
			<tr>
				<td height="50%" width="100%" valign="top">
				<iframe name="I1" marginwidth=2  marginheight=2 height=320 width="100%" scrolling="no" border="0" frameborder="0">
				浏览器不支持嵌入式框架，或被配置为不显示嵌入式框架。</iframe>
				</td>
			</tr>
			<tr>
				<td height="25" width="100%" align="center">
				上图是<font color="#FF0000">最后<%=site.object(site.object_p).qu%>次</font>报价的[<font color="#FF0000"><%=site.temp.customer.info.sort_name%>价格</font>]曲线。下面是所有的报价记录：</td>
			</tr>
			<tr>
				<td height="50%" width="100%" align="center" style="padding-left: 30px; padding-right: 20px; padding-top: 15px; padding-bottom: 15px">
				<div align="left">
					<table cellpadding="0" cellspacing="0" height="98%" width="100%" style="border: 1px solid #EBEBEB">
						<!-- MSTableType="nolayout" -->
						<tr>
							<td height="25" width="60%" bgcolor='#F7F7F7' align="center" style='border-bottom: 1px solid #EBEBEB;border-right: 1px solid #EBEBEB'>　发布日期</td>
							<td height="25" width="40%" bgcolor='#F7F7F7' align="center" style='border-bottom: 1px solid #EBEBEB'>　价格(<%=site.info.unit_money(0)%>)</td>
						</tr>
<%
if ii_price>0 then
price_temp_detail=0
n_temp_detail=0
site.object(site.object_p).rs.movefirst
do while not site.object(site.object_p).rs.eof 
	response.write"<tr>"
	response.write"<td height='25' width='60%' align='center' style='border-bottom: 1px solid #EBEBEB;border-right: 1px solid #EBEBEB'>"&site.object(site.object_p).rs("price_addtime")&"</td>"
	response.write"<td height='25' width='40%' align='center' style='border-bottom: 1px solid #EBEBEB'>"&site.info.unit_money(1)&site.object(site.object_p).rs("price_"&site.temp.customer.info.sort_name_e)&"</td>"
	response.write"</tr>"
	price_temp_detail=price_temp_detail+site.object(site.object_p).rs("price_"&site.temp.customer.info.sort_name_e)
	n_temp_detail=n_temp_detail+1
	site.object(site.object_p).rs.movenext
loop
end if
%>
						<tr>
							<td height="25" width="100%" bgcolor='#F7F7F7' align="center" style='border-bottom: 1px solid #EBEBEB;border-right: 1px solid #EBEBEB' colspan="2">　
							平均价格：<%=site.info.unit_money(1)%><%=int(price_temp_detail*100/n_temp_detail)/100%></td>
						</tr>
					</table>
				</div>
				</td>
			</tr>
			<tr>
				<td height="50%" width="100%" align="center">
			</tr>
		</table>
	    <script>
		document.price.price_draw.value='<%=price_draw%>';
		document.price.date_draw.value="<%=date_draw%>";
		document.price.target='I1';
		document.price.method='post';
		document.price.action='<%=site.info.folder_object%>/temp_detail_goods_list_property_price_draw_iframe.asp?unit_money_name=<%=site.info.unit_money(0)%>';
		document.price.submit();
		</script>
<%
site.object(site.object_p).rs.close
%>