<?php
 if(basename(__FILE__) == basename($_SERVER['PHP_SELF'])){exit();}
 global $config;

 $leters = array('A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z');
 if (!empty($_GET['i']) && in_array($_GET['i'], $leters)) $__i=$_GET['i']; else $__i='A';
?>

<?php $_shouldextend[1]=1; ?>


<?php $this->startSection('wisra_basic_content'); ?>
 @parentXYZABC

<!-- ======= Breadcrumbs ======= -->
<section class="breadcrumbs">
 <div class="container">

 <div class="d-flex justify-content-between align-items-center">
 <h2>Glossaire</h2>
 </div>

 </div>
</section><!-- End Breadcrumbs -->

<section class="inner-page">
 <div class="container">
 <div class="row">
 <div class="col-md-3 col-sm-12">
 <?php
 foreach ($leters as $leter) echo '<div class="card-leter'.(($leter==$__i)?' active':'').'"><a href="?i='.$leter.'">'.$leter.'</a></div>';
 ?>
 <hr/>
 <ul class="list-group black-a">
 <?php 
 $text = file_get_contents('www/glossaire.json');
 $text = str_replace('var tout = ', '', $text);
 $array = json_decode($text, true);
 $i=0;
 foreach ($array as $r => $cnt) {
 if ($r==$__i) foreach ($cnt as $n => $tbl) {
 $i++;
 echo '
 <li class="list-group-item">
 <a href="javascript:;" id="eglink-'.$i.'" name="'.$i.'">'.$n.'</a>
 </li>
 ';
 }
 }
 ?>
 </ul>
 </div>
 <div class="col-md-9 col-sm-12">
 <div class="row" id="msimanso">
 <?php 
 // Liste of products, solutions, services
 $products = array(
 //'Commutateur' => 'product'
 );
 $text = file_get_contents('www/glossaire.json');
 $text = str_replace('var tout = ', '', $text);
 $array = json_decode($text, true);
 $i=0;
 foreach ($array as $r => $cnt) {
 if ($r==$__i) foreach ($cnt as $n => $tbl) {
 $i++;
 echo '
 <div class="col-md-4 col-sm-12">
 <div class="card glossary-card" id="glossary-'.$i.'">
 <div class="card-body d-grid">
 <h5 class="card-title">'.$n.'</h5>
 <p class="card-text">'.$tbl.'</p>
 '.((in_array($n,array_keys($products)))?'<a href="'.$products[$n].'" class="btn btn-primary" target="_blank">Voir le produit</a>':'').'
 </div>
 </div>
 </div>
 ';
 }
 }
 ?>
 </div>
 </div>
 </div>
 </div>
</section>
 
<?php $this->stopSection(); ?>

<?php /*-------------------------- Slider --------------------------*/ ?>
<?php $this->startSection('wisra_slider_content'); ?>
<?php $this->stopSection(); ?>

<?php /*-------------------------- Put here your additional CSS files for this page --------------------------*/ ?>
<?php $this->startSection('wisra_css_content'); ?>
<?php $this->stopSection(); ?>


<?php /*-------------------------- Put here your additional JS files  for this page --------------------------*/ ?>
<?php $this->startSection('wisra_js_content'); ?>
<script>
 // do not hide header
 var headwhite=1;
 $(document).ready(function(){
 $('.list-group-item a').click(function(){
 var i=$(this).attr('name');
 $('.list-group-item a, .glossary-card').removeClass('selected');
 $('#eglink-'+i).addClass('selected');
 $('#glossary-'+i).addClass('selected');
 $('html, body').animate({scrollTop: $("#glossary-"+i).offset().top-80}, 300);
 })
 });
</script>
<?php $this->stopSection(); ?>

<?php if (@$_shouldextend[1]) { echo $this->runChild('layout', ['page_data' => array(
 'plugins' => array(), 
 'title' => "Glossaire IT, termes techniques et définitions | Egitel", 
 'description' => "Glossaire Egitel: Trouver une liste des termes techniques et leurs définitions, IT, informatique, téléphonie, collaboration, télécommunication, collaboration, videosurveillance, sécurité...", 
 'keywords' => array("Egitel", "Egitel Entreprise", "installation réseaux", "réseaux informatiques", "réseaux télécommunication", "services et equipements", "certifié Alcatel-Lucent", "Alcatel-Lucent", "Alcatel Algerie"), 
 'headwhite' => 1
)]); } ?>