<?
		ob_start();session_start();
		
		if($_SESSION['lang']=='')
		{
		$_SESSION['lang'] = "en";
		}	
		include 'languages/lang.'.$_SESSION['lang'].'.php';
		include 'languages/lang_common_'.$_SESSION['lang'].'.php';

		include("include/db.inc.php");
		include("include/bit_functions.inc.php");
		include("include/functions.php"); 
		include("include/banner_inc.php");
 		$db1=new db;
   $db1->open();
  mysql_query("SET NAMES 'utf8'");  $currency_symbol_new=symbol_currency();
		check_login();
    	$uid=$_SESSION['uid'];
   
?>
 <!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>
<base href="<?=_BASEURL_?>/" />
<meta content="<?=_TITLE1_?> offers bargain auctions of new brand products. Save up to 70% for every product almost. Bid and Win high quality products.<?=_TITLE1_?> offers amazing bargains." />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="author" content="Info-Tech Ltd. | We simplify web 2.0"/>
<title><?=_DBD_BD_ACCNT12_?></title>  
<link href="<?=_BASEURLCSSNEW_?>/index.css" rel="stylesheet" type="text/css" />
<link href="<?=_BASEURLCSSNEW_?>/index_sec.css" rel="stylesheet" type="text/css" />
<link href="<?=_BASEURLCSSNEW_?>/personal_acc.css" rel="stylesheet" type="text/css" />
<link href="<?=_BASEURLCSSNEW_?>/green_bo.css" rel="stylesheet" type="text/css" />
<!--[if lte IE 6]><style type="text/css" media="screen">/* <![CDATA[ */ @import url(<?=_BASEURLCSSNEW_?>/ie6.css?0:102290); /* ]]> */</style><![endif]-->
<!--[if gte IE 7]><style type="text/css" media="screen">/* <![CDATA[ */ @import url(<?=_BASEURLCSSNEW_?>/ie7.css?0:99961); /* ]]> */</style><![endif]-->

</head>
<body>
<div id="container"> 
<? include("header.php");?>
  <div id="accountleft_bar">
    <? include("view.php");?>
  </div>
    <div id="accountright_bar">
   <div id="green_bo">
      <div class="buygreen1" >
        <div class="buygreen2"><div>Account details</div></div>
        <div class="buygreen3"></div>
      </div>
      <div class="allm100px">
<div class="allp10px">
  <span class="historyfont ">In this section you will find your Available Green Credits which are used to place Bids on Auctions.</span></div>
  <?
     $sql_qry=mysql_query("select * from t123go_memberpack where uid='$uid' and payment='c'");
	 $rst=mysql_num_rows($sql_qry);
   if($rst>0)
   {
  ?>
   <div class="mtb_adresse">
  		 
             <table width="500" cellpadding="2" cellspacing="1" border="0" align="center">
              <tr >
			  <td width="201" ><strong>S.No.</strong></td>
			  <td width="166" align="center"><strong><?=_TTL_PRC_?></strong></td>
			  <td width="117" align="center"><strong><?=_TTL_BDS12_?></strong></td>
			 </tr>
			 <? $x=1;
			   while($myrwd=mysql_fetch_array($sql_qry)){
			   $sql_pkg=mysql_query("select * from t123go_bidpackage where pkgid=".$myrwd[package_id]);
			   $mypack=mysql_fetch_array($sql_pkg);
			 ?>			 
			 <tr >
			  <td width="201" ><?=$x?>.</td>
			  <td width="166" align="center"><?=$currency_symbol_new?>&nbsp;<?=$mypack['total_price'];?></td>
			  <td width="117" align="center">&nbsp;<?=$mypack['total_bid'];?>Bids</td>
			 </tr>
			 <?  $x++;
			 }?>
		
			 </table>
	</div>
  <? }else{?>
   <div  class="tac"><?=_UHAVE_NOBID_URACC_?></div>
   <? }?>
   
   <?
   $recnum=mysql_fetch_array(mysql_query("select no_bids from user where id=".$uid));
			?> 
			 <div class="boringhistory1">
			 
			
			 <div class="boringhistory2">Total Remaining Credits : &nbsp;&nbsp;&nbsp;<span style="margin-left:30px;color:#000;"><?=$recnum[no_bids]?>&nbsp;<?=_BIDS_?></span></div>
			
			 

   </div>
   
</div> <div class="tft1">
              <div class="tft2"></div>
              <div class="tft3"></div>
            </div> </div> 
            
            <div  class="w99">
            <h3 class="tac tm40px"><div class="tm40px tac"><br /><br /><br /><br /><br />Advertisment Sponsors</div></h3>

  <? 
  $page='innerpage';
  $query_num=mysql_query("select bid from zb_banners where `status`='1' and pagename='$page' order by rand() limit 0,4");
 while($brow=mysql_fetch_array($query_num))
  {
  ?>
<?=banner_home("innerpage","bottom",158,103,$brow['bid']);?>
<? }?>
</div>


            
            </div>

  <div style="clear:both">
    <? include("footer.php");?>

