Commit cf13ef6ca95306762d37a0ef8c0803f73cdd462e

Authored by henyxia
1 parent ac2c0ae5

New menu

Showing 2 changed files with 25 additions and 38 deletions   Show diff stats
index.php
... ... @@ -22,11 +22,9 @@ require_once("creds.php");
22 22 </head>
23 23 <body>
24 24 <?php require_once("topnavbar.php");?>
25   - <div class="col-md-12 center-block">
26   - <div class="col-md-3">
27 25 <?php require_once("menu.php");?>
28   - </div>
29   - <div class="col-md-9" id="mainContainer">
  26 + <div class="col-md-12 center-block">
  27 + <div class="col-md-12" id="mainContainer">
30 28 <?php require_once("news.php");?>
31 29 </div>
32 30 </div>
... ...
menu.php
1   -<div class="well well-sm" role="complementary">
2   - <ul class="nav">
3   - <li>
4   - <a href="#news" onClick="loadNewDoc('news.php');">News</a>
5   - </li>
6   - <li>
7   - <a href="#agenda" onClick="loadNewDoc('agenda.php');">Agenda</a>
8   - </li>
9   - <li>
10   - <a href="#orga" onClick="loadNewDoc('orga.php');">Organisation</a>
11   - </li>
12   - <?php
13   - if (!(isset($_SESSION["connected"]) && $_SESSION["connected"]))
14   - {
15   - ?>
16   - <li>
17   - <a href="#connect" onClick="loadNewDoc('connect.php');">Connexion</a>
18   - </li>
19   - <?php
20   - }
21   - else
22   - {
23   - ?>
24   - <li>
25   - <a href="#profil" onClick="loadNewDoc('???????.php);">Profil</a>
26   - </li>
27   - <li>
28   - <a href="#school" onClick="loadNewDoc('school.php');">Ecoles</a>
29   - </li>
30   -<?php
31   - }
32   - ?>
33   - </ul>
34   -</div>
  1 +<nav class="navbar navbar-defaut">
  2 + <div class="container-fluid">
  3 + <div class="collapse navbar-collapse">
  4 + <ul class="nav navbar-nav">
  5 + <li>
  6 + <a href="#news" onClick="loadNewDoc('home.php');">Accueil</a>
  7 + </li>
  8 + <li>
  9 + <a href="#agenda" onClick="loadNewDoc('description.php');">Descritption</a>
  10 + </li>
  11 + <li>
  12 + <a href="#orga" onClick="loadNewDoc('sponsors.php');">Sponsors</a>
  13 + </li>
  14 + <li>
  15 + <a href="#profil" onClick="loadNewDoc('schools.php);">Ecoles participantes</a>
  16 + </li>
  17 + <li>
  18 + <a href="#school" onClick="loadNewDoc('contact.php');">Contact</a>
  19 + </li>
  20 + </ul>
  21 + </div>
  22 + </div>
  23 +</nav>
... ...