Example #1
0
        }
        afficher_form_commentaire($id, 'public', $erreurs_form);
        if (empty($erreurs_form) and isset($_POST['enregistrer'])) {
            traiter_form_commentaire($comment, 'public');
        }
        afficher_index($billets[0], 'post');
    } else {
        afficher_index(NULL, 'list');
    }
} elseif (isset($_GET['id']) and preg_match('#\\d{14}#', $_GET['id'])) {
    $tableau = liste_elements("SELECT * FROM links WHERE bt_id=? AND bt_statut=1", array($_GET['id']), 'links');
    afficher_index($tableau, 'list');
} elseif (isset($_GET['liste'])) {
    $query = "SELECT bt_date,bt_id,bt_title,bt_nb_comments,bt_link FROM articles WHERE bt_date <= " . date('YmdHis') . " AND bt_statut=1 ORDER BY bt_date DESC";
    $tableau = liste_elements($query, array(), 'articles');
    afficher_liste($tableau);
} else {
    $annee = date('Y');
    $mois = date('m');
    $jour = '';
    $array = array();
    $query = "SELECT * FROM ";
    // paramètre mode : quelle table "mode" ?
    if (isset($_GET['mode'])) {
        switch ($_GET['mode']) {
            case 'blog':
                $where = 'articles';
                break;
            case 'comments':
                $where = 'commentaires';
                break;
Example #2
0
            <span id="title-podcast"></span>
          </div>
        </div>



        <div class="col-xs-12 col-sm-8">
          <?php 
list($podcasts, $p_styles) = afficher_podcasts($selected_style, $selected_podcast);
?>
  
        </div><!--/row-->


        <?php 
afficher_liste($selected_style, "large-screen");
?>
      
        <div class="col-xs-12 col-sm-4 logo"><a href="http://campus-clermont.net"><img src="images/logo.png" style="width: 100%; margin-top: 1em;" alt="Radio Campus Clermont-Ferrand"/></a></div>
        
      </div>
        <footer>
        <p>&copy; Radio Campus Clermont-Ferrand 2015</p>
      </footer>
      </div>

      <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="jquery/jquery.min.js"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="bootstrap/js/bootstrap.min.js"></script>
    <script src="jplayer/jquery.jplayer.js"></script>