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

include("include/db.inc.php");
include("include/bit_functions.inc.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><?=_PAGE_TITLE_;?></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>Here you can see your vouchers</div></div>
        <div class="buygreen3"></div>
      </div>
      <div class="allm100px">

	<?
          $sqlqry="select voucher_id, DATE_FORMAT(recive_date, '%d:%m:%Y') as recive_date,status from t123go_memvoucher where user_id='".$uid."'";
		  $myrst=mysql_query($sqlqry);
		  if(mysql_num_rows($myrst)){
	?> 

		<div id="titlebarn" style="padding-right:10px; padding-top:10px; margin-left:20px;color:#77AE42; font-weight:bold;">
		<div class="sfl tm5px w76"><?=_DATE_;?></div>
		  <div class="sfl tm5px w190" align="left;"><?=_VOUCHER_LABEL_;?></div>
		  <div  class="w73 tm5px sfl" align="left"><?=_AMOUNT_;?></div>
		  <div class="w80px tm5px sfl" align="left"><?=_STATUS_;?></div>
		  <div class="w80px tm5px sfl" align="left"><?=_VALID_TO_;?></div>
          <div class="w55px tm5px sfl" align="left">CODE</div>
          <div style="clear:both"></div>
		 </div>
		 <?
		  while($myshow=mysql_fetch_array($myrst)){
             $sql_qry=mysql_query("select DATE_FORMAT(start_to, '%d:%m:%Y') as dat,voucher_name,amount,combinable,
			 status,DATE_FORMAT(valid_to, '%d:%m:%Y') as valid_date,voucher_code  from t123go_voucher where vid='".$myshow[voucher_id]."'");
				$mystart=mysql_fetch_array($sql_qry);
			 		    ?>
		<div  style="margin-top:10px;color:#000000;margin-left:15px; font-size:11px;">
				  <div style="width:76px; float:left"><?=$mystart['dat']?></div>	
				  <div style="width:190px; float:left;" align="left"><?=ucfirst($mystart['voucher_name'])?></div>
				  <div style="width:73px; float:left; color:#F78418"><?=$currency_symbol_new?><?=$mystart['amount']?></div>
				  <div style="width:80px; float:left;"><?
						 $act=$myshow['status'];
						 if($act=='0'){
						  echo "unUsed";
						  }else {
						  echo "Used";

						  };
						 ?>
						 </div>
			    <div style="width:80px; float:left"><?=$mystart['valid_date']?></div>
                <div style="width:55px; float:left"><?=$mystart['voucher_code']?></div>
                <div style="clear:both"></div>

		</div> <? }?>
	  <? } else{

		 echo "<div class='no_message_show'>"._NOT_RECIEVED_ANY_VOUCHER_."</h3></div>";

		 }?>
         
  </div> <div class="tft1">
              <div class="tft2"></div>
              <div class="tft3"></div>
            </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 style="clear:both">
    <? include("footer.php");?>

