<?php
function checkaucstatus($status)
	{
		$st = $status;
		if($st=="2")
		{
			$qryauc = "select * from auction a left join auc_due_table adt on a.auctionID=adt.auction_id where adt.auc_due_time!=0 and auc_status='".$st."'";
		}
		else
		{
		$qryauc = "select * from auction where auc_status='".$st."'";
		}
		$rsauc = mysql_query($qryauc);
		$totalauc = mysql_num_rows($rsauc);
		return $totalauc;
	}
	
	function getcatname($category)
	{
			$qrysel = "select *,c.".$lng_prefix."name as catname from auction a left join products p on a.productID=p.productID left join categories c on a.categoryID=c.categoryID where a.categoryID=".$category." and auc_status='2'";
			$rssel = mysql_query($qrysel);
			$totalsel = mysql_num_rows($rssel);
			return $totalsel;
	}
?>

<!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=iso-8859-15" />
<title></title>
<link rel="stylesheet" type="text/css" href="layout.css?t=2" / >
<link rel="stylesheet" media="all" type="text/css" href="dd.css" />

</head>
<body id="home" >

<div id="olayer"></div>
<a name="swoopo_iframe"></a>

<div id="totalwidth">

  <div id="logo"><a href="/"><img src="/images/logo.png" alt="Swoopo" title="Swoopo" name="Swoopo" width="230" height="87" border="0" onmouseover="MM_swapImage('Swoopo','','/images/logo_home.png',1)" onmouseout="MM_swapImgRestore()" /></a></div>

  <div id="header">

    <!-- Country: -->
    <div id="logo2">
      
      <div style="float:right; width:410px; height:75px;">
        <div style="text-align:right; padding:5px; padding-top:12px;">
         
        </div>
        <div style="font-size:1em; font-weight:bold; text-align:right; padding-top:13px; height:20px;">

      <img src="/images/pixel.gif" width="10" height="1" /><a href="/">首页</a><img src="/images/pixel.gif" width="10" height="1" />
|
      <img src="/images/pixel.gif" width="10" height="1" /><a href="myaccount.html">帐户</a><img src="/images/pixel.gif" width="10" height="1" />
|
      <img src="/images/pixel.gif" width="10" height="1" /><a href="help.html">帮助</a><img src="/images/pixel.gif" width="10" height="1" />
|
      <img src="/images/pixel.gif" width="10" height="1" /><a href="registration.html">注册</a><img src="/images/pixel.gif" width="10" height="1" />
|
      <img src="/images/pixel.gif" width="10" height="1" /><a href="siteadmin/index.php">后台管理</a><img src="/images/pixel.gif" width="10" height="1" />

          </div>
      </div>
      <div style="float:right; width:70px;">&nbsp;</div>
      <div style="float:right; width:260px; font-size:0.8em;">
      <div style="position:absolute; padding-top:10px;"><a href="#"><img src="/images/inthenews2.gif" alt="Swoopo in the news" name="ITN" width="180" height="25" id="ITN" onmouseover="MM_swapImage('ITN','','/images/inthenews2_a.gif',1)" onmouseout="MM_swapImgRestore()"/></a></div>
      <div style="padding-top:50px;">
        <strong>体验最刺激的血拼</strong>
        <span style="font-size:0.9em;"></span>
      </div>
      </div>
      <div style="clear:right;"></div>
    </div>



    <div id="headerbc">
      <div id="bctext"></div>
      <div id="auction_bubbles" style="padding:0px; margin:0px; border:0px;">
      
  <script language="javascript">
    function _delete_login_fields(_field, _default, _current) {
      if (_default == _current) {
        _field.value='';
      }
    }
  </script>
  <div id="bcsubtext">
    <table width="715" border="0" cellpadding="0" cellspacing="0">
				<? if($_SESSION["userid"]==""){ ?>

    	
    <form method="POST" action="password.html" name="loginboxsmpl" style="margin:0px; padding:0px;">
    <input type="hidden" name="wdywtg" value="/" />
      <tr>
        <td width="245">&nbsp;</td>
        <td width="35" align="left"><!--Username:--><img src="/images/hdicon_user.png" alt="" width="25" height="16" /></td>
        <td align="left" width="155">
          <div class="input130x20">
            <input class="IPT130x20" name="username" type="text" value="younet" onclick="_delete_login_fields(this, 'younet', this.value);" />
          </div>
        </td>
        <td width="35" align="left"><!-- Password: --><img src="/images/hdicon_pw.png" alt="" width="25" height="16" /></td>
        <td align="left" width="155">
          <div class="input130x20">
            <input class="IPT130x20" name="password" type="password" value="111111" onclick="_delete_login_fields(this, '111111', this.value);" onFocus="_delete_login_fields(this, 'Password:', this.value);"/>
          </div>
        </td>
        <td align="center" width="100"><strong><a href="javascript:document.loginboxsmpl.submit();">登录</a><input type="image" src="/images/pixel.gif" width="1" height="1" /></strong></td>
      </tr>
    </form>

				<? } else { ?>
			<div align=right><?=$lng_welcome;?>&nbsp;<?=getUserName($_SESSION["userid"]);?>&nbsp;<span>|</span>&nbsp;<?=$lng_availablebids;?> : <span id="bids_count" style="color: #000000"><?=GetUserFinalBids($_SESSION["userid"]);?></span>&nbsp;&nbsp;<a href="logout.html"><font color=blue><?=$lng_logout;?></font></a></div>
				<? } ?>

    </table>
  </div>

      </div>
    </div>


    <div id="header_ddmenu">
      
    <script language="javascript">
      MM_preloadImages('/images/hg_bottom.gif', '/images/hg_amenu.gif', '/images/hg_amenu_a.gif', '/images/hg_amenu2.gif', '/images/hg_amenu2_a.gif');
    </script>
    <div class="menu">
    
    <ul>
    <li><a class="hide" href="#">全部分类 </a>
    
    <!--[if lte IE 6]>
    <a href="#">All categories
    <table><tr><td>
    <![endif]-->

      <ul>
  
  <li><a href="all_live_auctions_2.html"><?=$lng_allliveauc;?> (<?=checkaucstatus(2);?>)</a></li>
  
		<?
				$qryc = "select *,".$lng_prefix."name as name from categories where status='1'";
				$resc = mysql_query($qryc);
				$totalc = mysql_num_rows($resc);

				while($cat = mysql_fetch_array($resc))
				{
					echo '<li style="margin-top: -5px;"><a href="all_auctions_'.$cat["categoryID"].'.html">&nbsp;&nbsp;&nbsp;'.stripslashes($cat["name"]).' ('.getcatname($cat["categoryID"]).')</a></li>';
				}
		?>
				<li ><a href="all_future_auctions_1.html"><?=$lng_futureaucs;?> (<?=checkaucstatus(1);?>)</a></li>
				<li ><a href="all_ended_auctions_3.html"><?=$lng_endedauc;?> (<?=checkaucstatus(3);?>)</a></li>
		    <li id="ddf" ><a></a></li>        
      </ul>

    <!--[if lte IE 6]>
    </td></tr></table>
    </a>
    <![endif]-->
    </li>
    </ul>
    
    </div>



      <!-- auctions start -->
      
      <!-- auctions end -->

      <!-- error messages start -->
      <div style="position:absolute; height:27px; width:541px; margin-left:433px; z-index:10; display:none;" id="center_success_msg_container">
        <div style="position:absolute; width:433px; height:37px; left:0px; top:0px;">
          <div style="width:532px; padding:0px; padding-left:55px; padding-top:3px; text-align:left; font-size:0.7em; vertical-align:middle;"><!--img src="/images/loading_info.gif" width="25" height="15" alt="info" title="info" style="text-align:middle; vertical-align:middle;" /--><span id="center_success_msg"></span></div>
        </div>
      </div>

      <div style="position:absolute; height:27px; width:541px; margin-left:433px; z-index:10; display:none;" id="center_loading_msg_container">
        <div style="position:absolute; width:433px; height:37px; left:0px; top:0px;">
          <div style="width:532px; padding:0px; padding-left:55px; padding-top:3px; text-align:left; font-size:0.7em;" id="center_loading_msg"><!--img src="/images/loading_ocb.gif" height="15px" width="100px" alt="" title="" /--></div>
        </div>
      </div>

      <div style="position:absolute; height:200px; width:280px; margin-top:-100px; margin-left:-140px; top: 50%; left:50%; z-index:10; display:none;" id="center_error_msg_container">
        <div style="position:absolute; width:280px; height:200px; left:0px; top:0px;">
          <div style="background:url(/images/hg_pay_error_t.gif) no-repeat bottom; height:6px; width:280px;">
            <div style="position:absolute; left:265px; top:3px;"><a href="javascript:hidedisplay('center_error_msg_container');"><!--img src="/images/btn_emclose.gif" height="13" width="12" /--></a></div>
          </div>
          <div style="background:url(/images/hg_pay_error_m.gif) repeat-y; width:260px; padding:10px; text-align:center;" id="center_error_msg"></div>
          <div style="background:url(/images/hg_pay_error_b.gif) no-repeat top; height:6px; width:280px;"></div>
        </div>
      </div>
      <!-- error messages end -->

    </div>
  </div>

  <noscript>
    <div id="content">
      <div style="width:100%; border: solid 1px red; background-color:#FFF2F2; color:#FF0000; text-align:center; margin-bottom:15px; margin-top:10px;padding-top:5px; padding-bottom:5px; font-size:0.8em;"><b>Sorry you have currently no Javascript enabled!</b><br />To experience all Swoopo functionalities you have to enable Javascript. <a href="/javascripthelp.html">Here</a> you can read how to do this.</div>
    </div>
  </noscript>

  <!-- CONTENT AREA START -->
<!--div id="content">

    
<script language="javascript1.2" src="/eluminate.js" type="text/javascript"></script>
                            <script language="javascript1.2" src="/cmdatatagutils.js" type="text/javascript"></script>
<script language="javascript1.2" type="text/javascript">

cmSetProduction();

cmCreatePageviewTag("index","0");

</script>

  <script language="javascript" src="/promote_a_friend.js" >
  </script>
  <script language="javascript">
     var promote_data = new Array();
     promote_data['parent_module'] = "motd";
  </script>
   <div id="mgm_home" style="width: 680px;  position:fixed; z-index: 1001; left: 250px; top: 130px; display: none;">
   </div>


   <script src="AC_RunActiveContent.js" type="text/javascript"></script>
   <div style="width:980px; height:200px; padding-bottom:10px;">
      <table width="980" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="745" align="left">
            <script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','745','height','200','title','','src','http://img2.swoopo.com/telebid-us/flash/marketing/main_flash2_newuser','quality','high','wmode','opaque','allowScriptAccess','always','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','http://img2.swoopo.com/telebid-us/flash/marketing/main_flash2_newuser' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="745" height="200" title="">
              <param name="movie" value="/images/main_flash2_newuser.swf" />
              <param name="quality" value="high" />
              <param name="wmode" value="opaque">
        <param name="allowScriptAccess" value="always">
              <embed wmode="opaque" src="/images/main_flash2_newuser.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="745" height="200" allowScriptAccess="always"></embed>
            </object>
            </noscript></td>
          <td align="center"><script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','235','height','200','title','','src','http://img2.swoopo.com/telebid-us/flash/marketing/rechts_newuser','quality','high','wmode','opaque','allowScriptAccess','always','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','http://img2.swoopo.com/telebid-us/flash/marketing/rechts_newuser' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="235" height="200" title="">
            <param name="movie" value="/images/rechts_newuser.swf" />
            <param name="quality" value="high" />
            <param name="wmode" value="opaque">
      <param name="allowScriptAccess" value="always">
            <embed src="/images/rechts_newuser.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="235" height="200" allowScriptAccess="always"></embed>
          </object></noscript></td>
        </tr>
      </table>
    </div>


    <script language="javascript">
      MM_preloadImages('/images/btn_bieten_a.png', '/images/btn_bieten_d.png', '/images/btn_bieten_lg.png', '/images/btn_bieten_lgd.png', '/images/btn_bieten_be.png', '/images/hg_errorstart_t.png', '/images/hg_errorstart_m.png', '/images/hg_errorstart_b.png');
    </script>
    
</div-->


</body>
</html>
