<?
		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'];

		// product id
		 $productIdArr  = array();
		 foreach($_POST as $i=>$k){
			if(substr($i,0,6)=="check_"){
				   $productIdArr[] = $k;
			}
		 }

?>

<!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><?=_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_?>/myaccount.css" rel="stylesheet" type="text/css" />
<link href="<?=_BASEURLCSSNEW_?>/buybid.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]-->


<script type="text/javascript">
function choosePayment(){

   if(document.getElementById('pay_method_paypal').checked==true){
        document.payfrm.action="product_payment.php";
   }else if(document.getElementById('pay_method_google').checked==true){
        document.payfrm.action="google_product_payment.php";
   }else if(document.getElementById('pay_method_creditcard').checked==true){
        document.payfrm.action="creditcard_product_payment.php";
   } else {
     alert("Please choose a payment method.");
   }
}

</script>

</head>
<body>
<center>
<div id="container">
  <? include("header.php");?>




  <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td width="220" align="left" valign="top"><? include("view.php");?></td>
      <td valign="top" align="left">

	  <form name="payfrm" method="post" action="" onsubmit="return choosePayment();">
      <input type="hidden" name="pay_value" value="<?=$_POST['pay_value'];?>">
      <? foreach($productIdArr as $key=>$value){?>
      	 <input type="hidden" name="productIdArr[]" value="<?=$value;?>">
      <? } ?>

	   <table width="98%" border="0" cellpadding="0" cellspacing="0">

		 <tr><td colspan="4" bgcolor="#333333"><strong style="color:#FFFFFF; padding-left:10px"><?=_PLS_CHOS_?> <!--one of--> <?=_OR_PAMET_?></strong></td></tr>

		  <tr height="40px">
			  <td><input type="radio" id="pay_method_paypal" name="pay_method" value="paypal" checked="checked"/></td>
			  <td ><?=_PAPAL_?></td>
			  <td ><img src="images/paylogo_ppl.gif" border="0"></td>
			  <td >&nbsp;</td>
		  </tr>
		  <tr height="40px">
			  <td><input type="radio" id="pay_method_google" name="pay_method" value="googlecheckout" /></td>
			  <td><?=_GOGLE_CHEK_?></td>
			  <td><img src="images/checkout.gif" border="0"></td>
			  <td >&nbsp;</td>
		  </tr>
		  <tr height="40px">
             <td><input type="radio" id="pay_method_creditcard" name="pay_method" value="credit_card"/></td>
             <td>Credit Card</td>
             <td><img src="images/credit.jpg" border="0"></td>
             <td>&nbsp;</td>
         </tr>
		 <tr><td colspan="4">&nbsp;</td></tr>
			<tr>
			   <td>&nbsp;</td>
			   <td>&nbsp;</td>
			   <td>&nbsp;</td>
			   <td><?=_PLS_CONF_SELE_?>&nbsp;<input type="submit"  class="regular" name="buybids" value="<?=_BUYBDS12_?>" /></td>
		   </tr>
	    </table>
        </form>
        </td></tr>
        <tr>
        <td>&nbsp;</td>
        <td><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>
</td>
        </tr>
		</table>
     </div>

</center>
</body>
</html>