<link href="style/reset.css" rel="stylesheet" type="text/css" />
<!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/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("custom_id,product_name,product_brief_desc,product_logo","tb_customsolution","");
$getprodlist=getList("*","tb_customsolution prod","where custom_id=".$_GET['prodid']);
?>
<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['custom_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" align="center" cellpadding="1" cellspacing="4" class="upper_three_columns">     
        <?php 
          	if (count($getprodlist) > 0){
				while($prodrow=mysql_fetch_array($getprodlist) ){
			?>
            <tr>
        <td valign="bottom" height="50"><div class="">
          <br />
          <span class="page_title"><?php echo $prodrow['product_name'] ?></span><br /><br />
          <table border="0" cellspacing="0" cellpadding="1"  style="border-collapse:separate; border-spacing:10px;" class="normal">
            <tr>
              <td width="150"><img width=128 id="prod<?php echo $prodrow['custom_id'];?>" 
						src="wcp/logo/<?php echo $prodrow['product_logo'];?>" 
						class="slide" alt="" /></td>
              <td rowspan="2" valign="top">
              	<span class="location_title">Customer: <a href="
							<?php echo $prodrow['client_website'].'">'.$prodrow['client_name'] .'</a>'?><br /><br>
							Available platform: 
							<?php
								$platform=getList("plat.platform","tb_supported_customplat supplat,tb_platform plat","where supplat.platform_id=plat.platform_id and supplat.product_id=".$_GET['prodid']);
								$num_row=mysql_num_rows($platform);
								$i=1;
								while($row=mysql_fetch_array($platform) ){
									if ($i==$num_row) { echo $row['platform'];}
									else {echo $row['platform'].', ';}
									$i=$i+1;
								}
							?>
                 </span><br><br>
                 <?php echo $prodrow['product_desc'] ?>               
               </td>
              </tr>
            <?php	
				}
			}
          ?>
          </table></div>                             
          <br><br>
          &nbsp;&nbsp;<a href="#" onclick="javascript:history.go(-1)">< 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>
