<?php
session_start();
$admin = $_SESSION["admin"];
$client = $_SESSION["cliente"];
?>
<html>
<head>
   <title>Trafico Chat24</title>
   <link rel="shortcut icon" href="logo.ico">
   <link type="text/css" rel="stylesheet" href="styles/materialize.css" media="screen,projection"> 
<!--	<link type="text/css" rel="stylesheet" href="styles/font-awesome.min.css"  media="screen,projection"/> -->
   <link type="text/css" rel="stylesheet" href="styles/animate.css"  media="screen,projection"/>
   <link type="text/css" rel="stylesheet" href="styles/styles.css"  media="screen,projection"/> 
</head>
<body>
<style>
nav ul a:hover,
nav ul a {
  color: black;
}
nav ul a:hover {
  background-color: #cfd8dc;
 /* color: white; */
}
table.highlight > tbody > tr:hover  {
   background-color: #cfd8dc;
}
td {
   border-radius: 0;
}
</style>	
   <ul id="source-dropdown" class="dropdown-content nav-dropdown" >
      <li><a href="diario.php">Llamados por Dia</a></li>
<!--  <li><a href="operadora.php">Llamados por Operadora</a></li> -->
      <li><a href="mensual.php">Liquidacion Mensual</a></li>
      <li><a href="graficos.php">Graficos</a></li>
   </ul>
   <ul id="moviclips-dropdown" class="dropdown-content nav-dropdown">
<?php
      if( $client != 4 ) {
          echo "<li><a href='diariom.php'>Llamados por Dia</a></li>";
      }          
      if( $admin == true ) {
?>
<!--         <li><a href="operadora.php">Llamados por Operadora</a></li> -->
         <li><a href="mensual.php">Liquidacion Mensual</a></li>
         <li><a href="graficos.php">Graficos</a></li>
<?php
      }
?>
      <li><a href="moviclips.php">Showmatch</a></li>
      <li><a href="showmatch.php">Showmatch Mensual</a></li>
   </ul>
<?php   
   if( $client == 3 || $admin == true ) {
?>
   <ul id="movifun-dropdown" class="dropdown-content nav-dropdown" >
      <li><a href="showmatch.php">LLamados Mensual</a></li>
<!--   
      <li><a href="diariomf.php">Llamados por Dia</a></li>
      <li><a href="mensual.php">Liquidacion Mensual</a></li>
      <li><a href="graficos.php">Graficos</a></li> -->
      
   </ul>
<?php   
   }
?>
   <nav id="nav" style="background-color: #f4f4f4; margin-top: 20px; box-shadow: none;">
      <div class="container" >
         <div class="nav-wrapper darken-3-5"><span style="color: gray; font-size: 1.6em;">Servicios Interactivos<span>
            <ul id="nav-mobile" class="right" >
<?php
               if( $admin == true ) {
                  echo "<li><a href='panel.php'>Panel</a></li>";
                  echo "<li><a href='llamados.php'>Llamados</a></li>";
               }
               if( $client != 4 && $client != 3 ) {
            	    echo "<li><a class='dropdown-button' href='#!' data-activates='source-dropdown' data-beloworigin='true' data-hover='true'>Asteriscos<i class='mdi-navigation-arrow-drop-down right'></i></a></li>";
        	}                
               if( $admin == true || $client == "2" || $client == 4) {
                 echo "<li><a class='dropdown-button' href='#!' data-activates='moviclips-dropdown' data-beloworigin='true' data-hover='true'>Moviclips<i class='mdi-navigation-arrow-drop-down right'></i></a></li>";
               }
               if( $admin == true || $client == "3" ) {
                 echo "<li><a class='dropdown-button' href='#!' data-activates='movifun-dropdown' data-beloworigin='true' data-hover='true'>Movifun<i class='mdi-navigation-arrow-drop-down right'></i></a></li>";
               }
?>
               <li><a href='logout.php'>Salir</a></li> 
<!--               <li><a href="#!" id="toggle-search"><i class="large mdi-action-search"></i></a></li> -->
            </ul>
            <a class="button-collapse" href="#" data-activates="nav-mobile"><i class="mdi-navigation-menu"></i></a>
         </div>
      </div>
   </nav>
   <div class="row white-text grey darken-3" id="search">
      <div class="container">
         <form action="https://www.google.com/search" method="get">
            <input class="form-control" type="text" name="q" placeholder="Search ...">
            <input type="hidden" name="as_sitesearch" value="makoframework.com">
         </form>
      </div>
   </div>
