Location: PHPKode > projects > OrangeDeals > orangedeals_v1.2/http/coupon_view.php
<?php include "config.php"; include "functions.php";
global $db_id,$admin_u_name,$reff_chest_gold,$player_pop_to_give_ref_gold;
if (isset($_GET["id"]) && isset($_SESSION["user"][0]))
{
 $_GET["id"]=clean($_GET["id"]);
 $sw=clean($_GET["sw"]);
 $coupon=coupon($_GET["id"]);
 $offer=offer($coupon[2]);
 $usr=user($coupon[1]);
 } else header('Location: index.php');
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<?php 
echo'<body class="q_body"  startres();">';
echo "<link rel='stylesheet' type='text/css' href='core_templates/".$template."/default.css'>"; ?>
<script src="func.js" type="text/javascript"></script>

<title><?php echo $offer[3]; ?></title>
<?php if ((isset($_SESSION["user"][1]))&&($_SESSION["user"][1]==$usr[1])) 
{


}
?>
		<p><b>[</b> <A class="q_link" HREF="javascript:window.print()"><?php echo $lang['Print']; ?></A> <b>]</b><br />
		</p>
		<table width="700" border="0" cellpadding="0" cellspacing="0" bgcolor="#666666">
          <tr>
            <td bgcolor="#666666">&nbsp;</td>
            <td bgcolor="#666666">&nbsp;</td>
            <td bgcolor="#666666">&nbsp;</td>
          </tr>
          <tr>
            <td bgcolor="#666666">&nbsp;</td>
            <td bgcolor="#666666">
			
			<table width="700" border="0" cellspacing="2" cellpadding="0" class="r_table">
              <tr>
                <td colspan="3">
				<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><a href="index.php"><img src="core_templates/<?php echo $template; ?>/logo.gif" alt="riverteams - consumer and business power" width="300" height="79" border="0" lowsrc="riverteams - consumer and business power" title="riverteams - consumer and business power" /></a><br /></td>
    <td><?php echo "<a class='q_link' href='index.php'>http://".$server_name."</a>" ?></td>
  </tr>
</table>

				
				
				<?php echo "<font class='offer_page_title'>".$offer[3]."</font><br><br>".$lang['for']." <font class='offer_page_title'>".$offer[11]."</font> ".$offer[18]." ".$lang['from']." ".$offer[10]." ".$offer[18]; ?></td>
              </tr>
              <tr>
                <td colspan="3">&nbsp;</td>
              </tr>
              <tr>
                <td width="377"><?php if ($coupon[6]!=''){ echo $lang['coupon_owner']." (f): <b>".$coupon[6]."</b>"; } 
	else { echo $lang['coupon_owner'].": <b>".$coupon[8]."</b>"; }
	?></td>
                <td colspan="2"><?php echo $lang['coupon_number'].": <b>".$coupon[1]."-".$coupon[2]."-".$coupon[0]."-".$coupon[13]."</b>"; ?></td>
              </tr>
              <tr>
                <td><?php
		echo $lang['username'].": <a class='q_link' href='profile_view.php?id=".$usr[0]."'>".$usr[1]."</a>"; ?></td>
                <td colspan="2"><?php echo $lang['coupon_date'].": ".date('d/m/Y H:m:s',$coupon[3]) ?></td>
              </tr>
              <tr>
                <td colspan="2" valign="top">&nbsp;</td>
                <td width="316" valign="top">&nbsp;</td>
              </tr>
              <tr>
                <td colspan="2" valign="top"><?php echo $lang['coupon_terms'].": ".$lang['global_terms']."<br><br>".$offer[4]."<br><br>".$offer[5]; ?><br />
                    <br /></td>
                <td valign="top"><?php echo $lang['offer']." ".$lang['Approved'].": ".date('d/m/Y',$offer[8])."<br><br><b>".$coupon[9]."</b><br>".$coupon[10]."<br><br>".$coupon[11]."<br>".$coupon[12]; ?></td>
              </tr>
            </table></td>
            <td bgcolor="#666666">&nbsp;</td>
          </tr>
          <tr>
            <td bgcolor="#666666">&nbsp;</td>
            <td bgcolor="#666666">&nbsp;</td>
            <td bgcolor="#666666">&nbsp;</td>
          </tr>
        </table>
		<br /><br />
		</body>
</html>
Return current item: OrangeDeals