Current File : /home/inlingua/public_html/noida/icentex_noida/home.php
<?php
include("header_home.php");
require('dbConnection.php');

// Include common functions
require('commonFunc.php');

// Include common functions
require('globalVars.php');

// Include the table handler class
require('dbHandler.class.php');

// Init and connect to database
$dbObject = new dbHandler();
$dbObject->connect();
?>
<?php include_once("analyticstracking.php") ?>	

<style>

#adfrom h2,h4,h5,h6
{
	/*font-family: Georgia, "Times New Roman", Times, serif;*/
	color: #069; /* CHANGE TO CORPORATE COLOUR */
	margin-bottom: 1em;
	border-bottom:none;
	padding-bottom: 0.3em;
}
#adfrom img
{
	padding: 3px;
	border: 1px solid #ccc;	
	
}

#adfrom a img
{
	padding: 3px;
	border: 1px solid #ccc;	
}

#adfrom a img:hover
{
	padding: 3px;
	border:none;	
}
</style>

				<h2><i>i</i>-Centex</h2>
				<table border="0" width="100%"><tr><td align="center">
			 <p style="border:dashed solid 0px;">
			 <img src="images/i-logo_0.png"  style="border:none ; width:400px;"/><br />
			 <img src="images/inlingua.jpg"  style="border:none ;"/><br /><font size="+1"><i>inlingua</i> <b>Online Information Exchange</b></font>
			 <!--<img src="images/i-logo.png"  style="border:none ; width:500px;"/>--></p>
			 </td></tr></table>
		<!--<?php
       
		/*print_r($_SESSION['allowed_modules']);exit;*/
		$allow_m=$_SESSION['allowed_modules'];
		 
		if(in_array("workshops_trainee",$allow_m) && in_array("workshops_trainer",$allow_m))
		{
		$key1=array_search("workshops_trainee",$allow_m);
		$allow_m[$key1]="";
		}
		
		?>	
		
		<table align="center" border="0" cellpadding="3" cellspacing="3" width="99%" id="adform">
		
		<tbody>
		<?php
		$k=0;
		foreach ($allow_m as $val)
		{
		if($val!="")
		{
		$k1=$k%3;
		
		$query_mod_details="select * from ingl_modules where module_name_table='".$val."'";
		$result_mod_details=mysqli_query($conn,$query_mod_details);
		$num_mod_details=mysqli_fetch_array($result_mod_details);
		
		if($val=="home")
		{
		$num_mod_details['modulesName']="Home"; 
		$num_mod_details['link']="home.php";
		$num_mod_details['image']="images/icon-48-frontpage.png";
		}
		
		if($val=="workshops_trainer")
		{
		$num_mod_details['modulesName']="Workshops"; 
		
		}
		
		$flag="";
		
		if($val=="pau")
		{
		   $dbObject_tot = new dbHandler();
           $dbObject_tot->connect();
           $querytotupdates="select recNo  from messages where 1=1 && to_send='".$_SESSION['id']."' &&  to_viewed = '0' &&     to_deleted = '0'";
           $selectedRecords_msg = $dbObject_tot->Select($querytotupdates);
           if($selectedRecords_msg>0)
              {
               $flag="<img src='procedures/images/new-blinking.gif' style='border:none;'>";
              }
           else
             {
              $flag="";
             }
           $num_mod_details['modulesName']="".$num_mod_details['modulesName']."(".$selectedRecords_msg.")";
		}
		
		if($k1==0)
		{
	       echo"<tr>";
		}
		?>
		
		<td width="33%" align="center"> 
		
		<a href="<?php echo $num_mod_details['link'] ?>" title="<?php echo $num_mod_details['modulesName'] ?>">
 <h5><?php echo "".$num_mod_details['modulesName']."".$flag."" ?></h5></a>
 
		<a href="<?php echo $num_mod_details['link'] ?>"  title="<?php echo $num_mod_details['modulesName'] ?>"><img  class="divimglink" src="<?php echo $num_mod_details['image'] ?>" height="50" width="50"></a>
		

 
 
 </td>
 
		
		<?php
		if($k1=="2")
		{
		echo"</tr>";
		}
		
		$k++;
		}
		} 
		
		if($k1<2)
		{
		echo"</tr>";
		}
		
		?>
		
		
<tr><td colspan="3" style="color:#FF6666;"><marquee><b>#Minimum Browser Requirement: IE-8 & above, Mozilla Firefox 3.6 & above, Google chrome 2.0 & above,Opera 11.10 & above, Safari 5 & above .</b></marquee></td></tr>


</tbody></table>-->	

			 
				

				           
		  
<?php
include("footer-home.php");
?>