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

		include("include/bit_functions.inc.php");
		include("include/mail.php");
 		$db1=new db;
   $db1->open();
  mysql_query("SET NAMES 'utf8'"); 
   $currency_symbol_new=symbol_currency();
			
		 $uid=$_SESSION['uid'];
		 	if($_POST['submit']){
		     feedback_email($uid,$_POST['feedback_prefix'],$_POST['information'],$_POST['tel_number']);
			
			header("Location:"._BASEURL_."/feedback.php?auction=$uid");
			
	}

		if(isset($_POST['auction'])){
 
            $to=_ADMIN_MAIL_;
	$rec=mysql_fetch_array(mysql_query("select feedback_mail from admin_mail")); 
		    $from=get_fieldval(id,email,user,$uid);
		    $subject=$feedpre;
		    $headers="MIME-Version: 1.0\r\n";
            $headers.="Content-type: text/html;charset=ISO-8859-9\n";
	        $headers.=""._FROM1_." ".$from."\r\n";
	        $headers.="To: ".$to."\r\n";
	        $headers.="Date: ".date("r")."\r\n";
	        $headers.="Subject: ".$subject."\r\n";
		 $message="<html>
					<body>
					<center>
					<div style='width:500px'>
					<div style='height:20px; padding:10px; color:#FFFFFF; background-color:#910000; font-size:20px;font-family: 'lucida grande', tahoma, verdana, arial, sans-serif' align='left'>"._WLCM_TLOOP_."</div>
					<div style='height:5px; background-color:#e88989'></div>
					<div style='padding:10px; border:1px solid #CCCCCC; font-size:12px; color:#333333;font-family: 'lucida grande', tahoma, verdana, arial, sans-serif' align='left'>
					
					  <p>".$subject. " <br/>
					 ".$feed_dec."<br/>".
					"<a href='"._BASEURL_.">Go Back To HomePage</a><br>
					
					".nl2br($rec[0])."
					<br>"._THNK_U_."!<br>"._MOMS_TEAM_."</div>
					</div>
					</center>
					</body>
					</html>";  
			
			@mail($to,$subject,$message,$headers);
			header("Location:"._BASEURL_."/feedback.php?auction=$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 http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta content="Money Auctions brings you the posibility to win Good amounts of money in a easy way,to a much smaller price than the real one.Up to 99% Cheaper.Make money at home,Real money." />
<meta name="Description" content="Penny Auction, Auction, Bid, Mega Cheap prices, Sale,  for Penny Auction, Cheap Deals, Great Bargains, Win Money, Cameras, TV, LCD, Plasma TV, Scooters, and even Cars for mega cheap prices,Money,Live auctions, Brand new , disocunt of" />
<meta name="rating" content="General"/>
<meta name="copyright" content="Copyright (c) 2008 by money-auctions.com" />
<meta name="classification" content="auction, bidding, unique bid, ecommerce platform, real time shopping"/>
<meta name="coverage" content="Worldwide"/>
<meta name="title" content="Money Auctions | An online real time Ecommerce Auction Platform"/>
<meta name="page-topic" content="products, services, technology, business, Internet, Web, friends, photos, networks, connections, events, groups, relations"/>
<meta name="audience" content="all, experts, advanced, professionals, business, youth, children, ladies, females, males"/>
<meta name="reply-to" content="support@money-auctions.com"/>
<meta name="author" content="Info-Tech Ltd. | We simplify web 2.0"/>
<title><?=_TITLE_?>Get Support on Everything in less then 24 hours</title>
<link href="<?=_BASEURLCSSNEW_?>/index.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 src="include/validation.js"></script>
<script language="javascript" type="text/javascript">
function number(){
var number=trim(document.form.tel_number.value);
	if(!is_number(number) && document.form.tel_number.value !='')
	{
		alert("Please enter telephone number in numeric value");
		document.form.tel_number.focus();
		return false;
	}
	var feedback_prefix=trim(document.form.feedback_prefix.value);
	if(is_empty(feedback_prefix))
	{
		alert("Please enter subject");
		document.form.feedback_prefix.focus();
		return false;
	}
	
	
	
	}

	</script>
</head>
<body>
<div id="container">
  <? include("header.php");?>
<div  align="left" class="cl" style="padding-left:10px">
      <br />
		
		<? if($_GET['auction']=='')
		{		
		$sel=mysql_query("select id,first_name,last_name,email from user where id='".$_SESSION['uid']."'");
		$myrow=mysql_fetch_array($sel);
		?>
		<form method="post" action="" name="form" onsubmit="return number();">
       
		 <table border="0" cellpadding="2" cellspacing="0" width="850" align="center">
         <tr>
           <td width="269" rowspan="8" align="left" class="normaltextblackbold13" valign="top"><span class="normaltextredbold11_profile">Powered by Money Auctions</span>
             <p class="normaltextblack">9322 - 3rd Avenue<br />
              Ste. 433<br />
              Brooklyn, New York 11209</p>
             <p class="normaltextblack">US<br />
              (Toll Free)1-800-620-4041</p>
             <p class="normaltextblack">(Tel) 718-559-6905<br />
              (Fax) 718-559-6902</p>
             <p>Technical:</p>
             <p><a href="mailto:webmaster@money-auctions.com">webmaster@money-auctions.com</a></p>
             <p>Billing:</p>
             <p><a href="mailto:accounting@money-auctions.com">accounting@money-auctions.com</a></p>
             <p>Security: </p>
             <p><a href="mailto:compliance@money-auctions.com">compliance@money-auctions.com</a></p>
             <p>Customer Service:</p>
             <p><a href="mailto:clientservices@money-auctions.com">clientservices@money-auctions.com</a></p>
             <p>Media relations:</p>
             <p><a href="mailto:media@money-auctions.com">media@money-auctions.com</a></p>
             <p>All other inquiries:</p>
           <p><a href="mailto:info@money-auctions.com">info@money-auctions.com</a></p></td>
           <td width="188" height="25" align="left" class="normaltextblackbold13"><strong><?=_TO_?></strong></td>
            <td width="381" class="normaltextgreenbold13">
            <select>
            <option>webmaster@money-auctions.com</option>
            <option>accounting@money-auctions.com</option>
            <option>compliance@money-auctions.com</option>
            <option>clientservices@money-auctions.com</option>
            <option>media@money-auctions.com</option>
            <option>info@money-auctions.com</option>
            </select>
           </td>
          </tr>
		 <tr>
		   <td height="25" align="left" class="normaltextblackbold13"><strong><?=_EMAILADD_?></strong></td>
            <td class="normaltextbluebold13"><input type="text" name="email" class="inputtextsupport" style="height:17px; width:172px; border:1px solid #ccc; padding:3px"  value="<?=$myrow['email'];?>" /></td>
          </tr>
          <tr>
            <td height="25" align="left" class="normaltextblackbold13"><strong><?=_USR_NM_?></strong></td>
            
            <td class="normaltextbluebold13"><input type="text" name="uname" style="height:17px; width:172px; border:1px solid #ccc; padding:3px"  value="<?=$myrow['first_name'];?>&nbsp;<?=$myrow['last_name'];?>" /></td>
          </tr>
		   <tr>
		     <td height="25" align="left"  colspan="2" valign="top"><span class="normaltextbluebold11 tal">If you would like a Customer Support Agent to call you please enter your telephone number including area code.<br />
<br />
</span></td>
	       </tr>
		   <tr>
<td height="25" align="left" valign="top">
           <span  class="normaltextblackbold13">Telephone:</span>					</td>
          <td height="25" align="left" valign="top"><input type="text" name="tel_number" class="inputtextsupport" style="height:17px; width:300px; border:1px solid #ccc; padding:3px" /><br />
(example: 123-456-7890  or 07956123456)	</td>
		   </tr>
         
          <tr><td height="25" align="left" valign="top" class="normaltextblackbold13"><strong><?=_SUB_?></strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;            </td>
            <td height="25" align="left" valign="top" class="normaltextblackbold13"><input type="text" name="feedback_prefix" class="inputtextsupport" style="height:17px; width:300px; border:1px solid #ccc; padding:3px" /></td>
          </tr>
          
          <tr>
           <td valign="top"> <strong class="normaltextblackbold13">Information:</strong></td><td valign="top"><textarea name="information" class="inputtextsupport" style="height:100px; width:300px"></textarea>
           <div style="width:300px; margin:0px auto; z-index:1">
          

          <span style="color: rgb(255, 0, 0);"></span><br><br>
           <?  if($uid==''){?>
                         <a href="<?=_BASEURL_?>/login/index.html">
                         <input type="button" name="submit" class="inputsubmit"  value="<?=_SEND_;?>">
                          </a>
                          <? } else {?>
                          
          <input type="submit" name="submit" class="inputsubmit"  value="<?=_SEND_;?>">
          <? }?>
          <input type="button" name="cancel" class="inputsubmitc" onClick="javascript:window.location='index.php'" value="<?=_CANCEL_;?>"> 
 	
        </div>
           </td></tr>
   
          </table>
		

     </form>
		<br><br>&nbsp;
	<? }?>
	<? if(isset($_GET['auction'])){?>
<div style="height:250px"><?=_DEAR11_?> <?=get_fieldval(id,uname,user,$_GET['auction']);?>, <br /><br />
 <?=_MANTHANKX_TOUCHH_SON_?><br /><br />
<?=_URDOOBID_TEM_?><br /><br />
 <a href="<?=_BASEURL_?>/index.php"><?=_BAK_HPAGE_?></a><br /><br />&nbsp;</div>
 <? }
 ?>
</div>




<? include("footer.php");?>
</div>
</body>
</html>
