<?php
////////////////////// CORE FUNCTION | MODULE FUNCTION (c) i2d Technologies //////////////////////////////////
if (!function_exists('find_links')) {
function find_links($testkey) { 

$testkey1=substr($testkey, 0, strpos($testkey, '+'));
$testkey2=strstr($testkey, '+');
$testkey2=str_replace("+","",$testkey2);

$params=array(
'heading'=>$testkey1,
'link'=>$testkey2
);

    return $params;
} 
}
/////////////////////////// function ends /////////////////////////////////
////////////////////// FUNCTION | MODULE FUNCTION (c) i2d Technologies //////////////////////////////////

if (!function_exists('top_nav_old')) {
	function top_nav_old($test){



		
   ?>
   <!-- PAGE FUNCTION STARTS (c) i2d Technologies Website Engine -->
                               <div class="navbar-custom navbar-left">
                                <div id="navigation">
                                    <!-- Navigation Menu-->
                                    <ul class="navigation-menu">
                                        <li>
                                            <a href="index.html">
                                                <span><i class="ti-home"></i></span><span> Dashboard </span> </a>
                                        </li>

<?php
if(isset($test) && $test!=0){
?>
<?php
foreach($test as $item){
?>
                                        <li class="has-submenu">
<?php
foreach($test as $testkey['heading1'] => $testval)
{

	?>
                                            <a href="#" onclick="return false;"> <span><i class="<?php 
echo  $testkey['heading1']; ?>"></i></span><span> <?php echo  $testkey['heading1']; ?></span> </a>

                                            <ul class="submenu">
<?php 
    foreach( $testval as $valkeyItem => $valKey)
    {

?>

                                                <li><a href="<?php echo $valKey ; ?>"><?php echo $valkeyItem; ?></a></li>
<?php } } ?>      
	  </ul>
                                        </li>
										
<?php } ?>
<?php } ?>

                                       
                                                <li>
                                                    <a href="charts.html"> Charts </a>
                                                </li>

                                                <li>
                                                    <a href="maps.html"> Maps </a>
                                                </li>

                                            </ul>
                                        </li>

                                   
                                    </ul>
                                    <!-- End navigation menu  -->
                                </div>
                            </div>

 <!-- PAGE FUNCTION ENDS (c) i2d Technologies Website Engine -->   
<?php   
}
}
//////////////////////////// HTML FUNCTION ENDS (c) i2d Technologies ///////////////////////////////////////

















?>