<!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';
	$limit=10; // Limit of result per page 
	
	if ( $_GET['page'] != '' ) 
	{
		$pages = $_GET[ 'page' ];
	}
	else 
	{ 
		$pages = 1;
	} //$_GET['page']; //Get the current page 
	
	//echo '<br>start';
	$prodlist = getList( "prod.custom_id, prod.product_name, prod.product_desc, prod.brief_desc, prod.product_logo" , "tb_custom_solution prod" , "" );
	
	/*********
	*
	* PLATFORM
	*
	**********/

	//echo 'platid'.$_POST['platform'];
	//echo 'set kah? ' . $_SESSION['platid_temp'];
	if ($_POST[ 'platform' ] == "" && $_GET[ 'platform' ] == "" )
	{
		
		$platid = "";
		$sql = 'SELECT * FROM (SELECT platform_id FROM tb_platform ORDER BY platform) temp LIMIT 0,1';
		$query = mysql_query($sql);
		if ($query) 
		{
			$result = mysql_fetch_array($query);
			$platid = $result['platform_id'];
			//echo '1. platid: ' . $platid;
		}
		
	}
	elseif( $_POST['platform'] != "" )
	{
		$platid=$_POST['platform'];
		//echo '2. platid: ' . $platid;
	}
	elseif( $_GET['platform']!="" )
	{
		$platid=$_GET['platform'];
		//echo '3. platid: ' . $platid;
	}
	else
	{	
		$platid="";
		$sql = 'SELECT * FROM (SELECT platform_id FROM tb_platform ORDER BY platform) temp LIMIT 0,1';
		$query = mysql_query($sql);
		if ($query) 
		{
			$result = mysql_fetch_array($query);
			$platid = $result['platform_id'];
			//echo 'platid: ' . $platid;
		}
		//echo '4. platid: ' . $platid;
		//$platid=$_SESSION['platid_temp'];
	}
	$_SESSION['platid_cust']=$platid;
	/************* 
	*
	* END PLATFORM 
	*
	*************/
	
	if ( (isset($_POST[ 'button' ])) || ($_GET[ 'platid' ]!= '') || $_SESSION['platid_cust'] != '')
	{
		if ( $_GET[ 'platid' ] != '' ) 
		{
			$platid = $_GET[ 'platid' ];
		}
		elseif ( $_POST[ 'platform' ] != '' ) 
		{
			$platid = $_POST[ 'platform' ];
		}
		
		/*		
		unset ($_SESSION[ 'platid_cust' ]);
		$_SESSION[ 'platid_cust' ] = $platid;
		*/	
		//echo '6 platformid: ' . $platid . ' pages:' . $pages . ' limit: ' . $limit;
		$getprodlist = getList( "prod.custom_id,prod.product_name,prod.product_desc, prod.brief_desc, prod.product_logo" , "tb_customsolution prod,tb_supported_customplat plat" , "where prod.custom_id=plat.product_id AND plat.platform_id=" .$platid. " LIMIT " . (($pages-1)*$limit).",". $limit);
	}
	else
	{
		//echo '7';
		$getprodlist=getList( "prod.custom_id,prod.product_name,prod.product_desc, prod.brief_desc, prod.product_logo" , "tb_customsolution prod" , " LIMIT " . (($pages-1)*$limit).",". $limit);
	}
?>
<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>
      -->
	<form name="frmplatid" enctype="multipart/form-data" method="post">
      <table width="850" border="0" align="center" cellpadding="1" cellspacing="4" class="upper_three_columns">	  
      <tr>
        <td ><p class="page_title">Custom Solutions<br />
        </p>
          <p>&nbsp;&nbsp;<br />
              In Mobivation, we spent most of our time in developing in-house products as listed on our website. However, we also develop mobile applications for other company.  Since Mobivation was formed in 2007, we have developed no less than 20 projects for all our clients. </p>
<p>The projects that we have completed include location-based, mobile security, social networking, mobile coupons, voice-over-ip, content delivery and publishing, NFC etc. </p>
          <p>As all of our projects are protected by nondisclosure agreements, thus they cannot be shown on our website.</p>
          <p>Feel free to contact us to request for a free quote.</p>
          <p><a href="contact.php"><img src="images/free_quotation.png" width="158" height="36" border="0" srcover="images/free_quotation_over.png" /></a></p>
          </td>
      </tr>
    </table>
	</form>
    <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("custom_id,product_name,product_desc,brief_desc,product_logo","tb_customsolution","");
$strTemp="";				
if (count($prodlist2) > 0)
{	
	while($row=mysql_fetch_array($prodlist2) ){
		$strTemp = $strTemp . "{'id':'prod" . $row['custom_id'] . "','client':'" . $row['product_name'] . "','desc':'" . $row['brief_desc'] . "'},";
	}
	if (substr($strTemp, -1) == ","){
		$strTemp = substr_replace($strTemp,'',-1,1);
	}
	echo $strTemp;
}?>];
</script>

</body>
</html>
