Ejemplo n.º 1
0
    // les icones
    $_icns = loadIcons($login, $_apps);
    // compatibilite version anterieure.
    // on regarde si les icônes sont enregistres dans PREFS_...json
    if (!is_file('/home/' . $login . '/Profile/ICONS_' . $login . '.json') && is_file('/home/' . $login . '/Profile/PREFS_' . $login . '.json')) {
        $oldurl = '/home/' . $login . '/Profile/PREFS_' . $login . '.json';
        $oldjsn = json_decode(file_get_contents($oldurl));
        foreach ($oldjsn as $k => $val) {
            if ($k == "icons") {
                $_icns = $val;
            }
        }
    }
    // admin
    if (ldap_get_right("lcs_is_admin", $login) == "Y") {
        //hummm ??? verifier à quoi ça sert
        $_user['statut'] = 'admin';
        // on renomme le lien "Ajouter une icone"
        $_apps['addicon']['txt'] = "Ajouter un lien partagé";
        // le menu admin
        getmenuarray();
        $_admn = menuAdmin($login, $liens);
        // qu'on merge avec le menu applis
        $_apps = array_merge($_apps, $_admn);
    }
    // tableau renvoye
    $resp = array("user" => $_user, "srvr" => $_srvr, "etab" => $_etab, "opts" => $_opts, "prms" => $_prms, "apps" => $_apps, "icns" => $_icns, "ress" => $_ress, 'test' => count($_icns[0]), 'test2' => !is_array($_icns), 'mess' => $_mess);
}
// et hop!
echo json_encode($resp);
exit;
                        <li><a href="contacts.html">联系我们</a>
                        </li>
                        <li><a href="mailbox.html">信箱</a>
                        </li>
                        <li class="divider"></li>
                        <li><a href="login.html">安全退出</a>
                        </li>
                    </ul>
                </div>
                <div class="logo-element">
                    I+I
                </div>

            </li>
            <?php 
$menuMain = menuAdmin();
?>
            <?php 
if (is_array($menuMain)) {
    foreach ($menuMain as $key => $menuMainList) {
        ?>
<li class="<?php 
        echo $menuMainList["curr"];
        ?>
">
                <a href="<?php 
        echo U(GROUP_NAME . '/' . $menuMainList['module'] . '/' . $menuMainList['action']);
        ?>
">
                    <span class="nav-label"><?php 
        echo $menuMainList["title"];
Ejemplo n.º 3
0
        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">      
          <ul class="nav navbar-nav navbar-right">
            <li><a href="../connexion-inscritpion/deconnexion.php">Se déconnecter</a></li>
          </ul>
        </div><!-- /.navbar-collapse -->
      </div><!-- /.container-fluid -->
    </nav>    
    <div class="container-fluid main-container">
      <div class="col-md-2 sidebar">
        <div class="row">
          <!-- uncomment code for absolute positioning tweek see top comment in css -->
          <div class="absolute-wrapper"> </div>
           <?php 
menuAdmin(3);
?>



        </div>      
      </div>
      
      <div class="col-md-10 content">
      <?php 
$req = $bdd->prepare('SELECT * FROM tournaments');
$req->execute();
while ($donnees = $req->fetch()) {
    echo '
        <div class="panel panel-default">
          <div class="panel-heading">
Ejemplo n.º 4
0
<?php

require_once '_librerias/disenoVisual/menus.php';
require_once '_librerias/disenoVisual/cuerposite.php';
require_once '_librerias/php/funciones.php';
error_reporting(E_ERROR);
$menu_cabecera = menuAdmin("menu");
$menu_pie = menuPie("pie");
function site()
{
    $tituloBtn = tituloBtnPn("<span>Admistración</span><p>DEL SISTEMA</p><div class='bicel'></div>", "", "200px", "TituloA");
    $menu = "Desarrollo]" . $enlace . "?accionDA=CreacionTipoDato]panelB-R}";
    $menu .= "Inventarios]" . $enlace . "?TipoCampoHtml=Lista]panelB-R}";
    $menu .= "Ventas]" . $enlace . "?TipoCampoHtml=Lista]panelB-R}";
    $menu .= "Campus]" . $enlace . "?TipoCampoHtml=Lista]panelB-R}";
    // $menu .= "Site Map]mapa-sitio.php]divB}";
    $mv = menuVertical($menu, 'menu3');
    $s = layoutLH("", $tituloBtn . $mv);
    return $s;
}
$sUrlPanelesA = "PanelA[PanelA[./vistas/carrusel.html?vista=PanelA[1000[true|";
$sUrlPanelesA = $sUrlPanelesA . "PanelB[PanelB[./vistas/site.php?vista=PanelB[2000[true|";
$s = $menu_cabecera;
$s .= '<div style="float:left;width:94%;height:100%;padding:10px 3%;">';
$s .= site();
$s .= '</div>';
$s .= $menu_pie;
W($s);
// $sUrlPanelesA = $sUrlPanelesA."PanelC[PanelC[./vistas/site.php?vista=PanelC[4000[true|";
?>
<script type="text/javascript" src="_librerias/js/slider.js"></script>
Ejemplo n.º 5
0
          <ul class="nav navbar-nav navbar-right">
            <li><a href="../connexion-inscritpion/deconnexion.php">Se déconnecter</a></li>
          </ul>
        </div><!-- /.navbar-collapse -->
      </div><!-- /.container-fluid -->
    </nav>    
    <div class="container-fluid main-container">
      <div class="col-md-2 sidebar">
        <div class="row">
          <!-- uncomment code for absolute positioning tweek see top comment in css -->
          <div class="absolute-wrapper"> </div>
          <!-- Menu -->
          <div class="side-menu">
            <nav class="navbar navbar-default" role="navigation">
               <?php 
menuAdmin(1);
?>
            </nav>

          </div>
        </div>      
      </div>
      
<?php 
$req = $bdd->prepare('SELECT *, (DATE_FORMAT(FROM_DAYS(TO_DAYS(NOW())-TO_DAYS(dateDeNaissance)), \'%Y\')+0) as age FROM utilisateurs WHERE pseudo = ?');
$req->execute(array($_GET['pseudo']));
$donnees = $req->fetch();
$dateDeNaissance = trim($donnees['dateDeNaissance']);
$dateDeNaissance = date("d/m/Y", strtotime($dateDeNaissance));
?>
<div class="col-md-10 content">
Ejemplo n.º 6
0
        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">      
          <ul class="nav navbar-nav navbar-right">
            <li><a href="../connexion-inscritpion/deconnexion.php">Se déconnecter</a></li>
          </ul>
        </div><!-- /.navbar-collapse -->
      </div><!-- /.container-fluid -->
    </nav>    
    <div class="container-fluid main-container">
      <div class="col-md-2 sidebar">
        <div class="row">
          <!-- uncomment code for absolute positioning tweek see top comment in css -->
          <div class="absolute-wrapper"> </div>
           <?php 
menuAdmin(2);
?>



        </div>      
      </div>
	  <?php 
if (isset($_POST['valide'])) {
    echo 'Modification effectuée avec succès';
}
?>
      
      <div class="col-md-10 content">
      <?php 
$req = $bdd->prepare('SELECT * FROM signalements');