<?
  error_reporting(0);
  include("config/connect.php");
	include("functions.php");
	$arcid=$_REQUEST["arcid"];
	if($arcid!=""){
		$qrynews2 = "select * from news where id = ".$arcid;		
		$resnews2 = mysql_query($qrynews2);
		$objnews2=mysql_fetch_object($resnews2);				    
	}
	
?>
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<meta name="description" content="" />

<meta name="keywords"  content="" />

<link href="css/havepai.css" rel="stylesheet" type="text/css" />
<!--script src="js/prototype.js" type="text/javascript"></script>
<script src="js/effects.js" type="text/javascript"></script>
<script src="js/application.js" type="text/javascript"></script-->
</head>
<body>
<?
	include("d1.php");
?>

<div id="wrap">
	<div id="col1">
        <div class="position">当前位置：<a href="announce-index.html">网站公告</a> >> <?=$objnews2->news_title;?></div>
        <div class="article-title"><?=$objnews2->news_title;?></div>
        <div class="article-content"><?=$objnews2->news_long_content;?></div>
    </div>
    <div id="col2">
        
        <div class="new" style="margin-top:0">
        	<div class="new-title">最新成交</div>
            <div class="new-list">
            	<ul>
                	<?php
  $qrycount = "select w.id,r.username,w.won_date,p.name,a.auc_final_price,a.auctionID,p.picture1,p.price,(100-100*a.auc_final_price/p.price) as discount,a.auctionID from won_auctions w left join auction a on w.auction_id=a.auctionID left join products p on a.productID=p.productID inner join registration r on w.userid = r.id where w.userid>=0 order by w.won_date desc limit 0,7 ";  
  $rescount = mysql_query($qrycount);
  
  while($obj1 = mysql_fetch_array($rescount))
  { 
	  ?>
  
                	<li style="margin-top:0">
                    	<div class="thumb">
						<a  href="auction_<?=str_replace(" ","_",strtolower(stripslashes($obj1["name"])));?>_<?=$obj1["auctionID"];?>.html" >
                    		<img src="uploads/products/thumbs_big/thumbbig_<?=$obj1["picture1"];?>" alt="<?=stripslashes($obj1["name"]);?>" width="92" height="75" border="0" />
</a>
						</div>
                        <div class="new-info">
                        	<div class="title"><a  href="auction_<?=str_replace(" ","_",strtolower(stripslashes($obj1["name"])));?>_<?=$obj1["auctionID"];?>.html" >
							<?=$obj1["name"];?></a></div>
                            <div class="username">获胜者：<?=$obj1["username"];?>  </div>
                            <div class="price"> 成交价：￥<?=$obj1["auc_final_price"];?>  </div>
                        </div>
                    </li>
					<?php 
		  }
 
?>                                                                                                                                          
                </ul>
            </div>
        </div>
    </div>
    <div class="clear"></div>
</div>


<div class="clear"></div>
<?php
  include("footer2.php");
?>   

</body>
</html>