<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Mobivation</title>


<script type="text/javascript">var _siteRoot='index.php',_root='index.php';</script>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/scripts.js"></script>
<link href="style/reset.css" rel="stylesheet" type="text/css" />
<link href="style/home.css" rel="stylesheet" type="text/css" />
<link href="style/style.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="js/dom_img_rollover.js"></script>
</head>
<?php 
include 'wcp/function/classes.php';
$prodlist=getList("product_id,product_name,product_brief_desc,product_logo","tb_products","");
$getnews=getList("*","tb_news prod","where news_id=".$_GET['id']);
?>
<body>
<div id="page">
  <div id="container">
    <?php include "menu.php"; ?>
    <div id="top_content">
    	<!--
      <div id="product">
        <div id="header">
          <div class="wrap">
            <div id="slide-holder">
              	<div id="slide-runner" class="product_img">
	              <?php 
	              	if (count($prodlist) > 0){
						while($row=mysql_fetch_array($prodlist) ){
						   echo "<img width=128 id='prod" . $row['product_id'] . "' src='wcp/logo/" . $row['product_logo'] . "'  class='slide' alt='' />";
						}
					}
	              ?>
              	</div>
                <div id="slide-controls">
                  <div id="slide-client" class="bubble_text_title"><span></span></div>
                  <div id="slide-desc" class="bubble_text"></div><br><br>                
                </div>
                <div id="slide-nav" class="prod_nav"></div>
            </div>
            
          </div>
        </div>
      </div>
      -->
      <table width="850" border="0" cellpadding="1" cellspacing="4" class="upper_three_columns class="normal"">		 
      <tr>
          <?php 
          	if (count($getnews) > 0){
				while($row=mysql_fetch_array($getnews) ){
			?>
        <td valign="bottom"><div class="">
          &nbsp;&nbsp;<span class="page_title"><?php echo $row['news_title'] ?> </span>
     
          <table width="100%" border="0" cellspacing="0" cellpadding="1" style="border-collapse:separate; border-spacing:10px;">
            <tr>
              <td >&nbsp; <span class="location_title">&nbsp; 
					<?php echo $row['news_content'];?></span></td>
			</td>
              </tr>				
			<?php	
				}
			}
          ?>
          </table>          
          </div><br />
          &nbsp;&nbsp;<a href="#" onclick="history.back()">< Back</a><Br><br>
          &nbsp;&nbsp;<img src="images/separator.png" width="820" height="8" />

          </td>
        </tr>
    </table>
    <div id="nothing" style="clear:both">
    </div>        
    <?php include "footer.php"; ?>
  </div>  
</div>
<script type="" text="" javascript="">
if(!window.slider) 
var slider={};
slider.data=[<?php
$prodlist2=getList("product_id,product_name,product_brief_desc,product_logo","tb_products","");
$strTemp="";				
if (count($prodlist2) > 0)
{	
	while($row=mysql_fetch_array($prodlist2) ){
		$strTemp = $strTemp . "{'id':'prod" . $row['product_id'] . "','client':'" . $row['product_name'] . "','desc':'" . $row['product_brief_desc'] . "'},";
	}
	if (substr($strTemp, -1) == ","){
		$strTemp = substr_replace($strTemp,'',-1,1);
	}
	echo $strTemp;
}?>];
</script>

</body>
</html>
