예제 #1
0
<?php

session_start();
echo VueHtmlUtils::enTeteHTML5('Bienvenue sur notre site', 'UTF-8', Config::getStyleSheetsURL()['default']);
?>
<div id="images-box">
<section>
    <?php 
echo ArticleView::getHtmlDevelopped($modele->getData());
?>
    <a href="?action=get-all-news">[ Revenir à la liste des news ]</a>
</section>
</div>

<?php 
echo VueHtmlUtils::finFichierHtml5();
예제 #2
0
<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
headGoTA("Games of Throne Abridged");
menuGoTA();
reseauxGoTA();
echo ArticleView::getHtmlDevelopped($Article);
echo '<a href="?action=supprimerArticle&id=' . $Article->getId() . '"" > Supprimer l\'Article </a>';
require Config::getErrorViews()['default'];
finGoTA();
예제 #3
0
<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
headGoTA("Games of Throne Abridged");
menuGoTA();
reseauxGoTA();
asideGoTA();
echo ArticleView::getHtmlAbridgedCollection($CollecArticle);
echo "<br/>\n\t<a href=\"?action=getAllArticle\" >Voir tous les articles</a></br></br></br>";
require Config::getErrorViews()['default'];
finGoTA();
예제 #4
0
<?php

session_start();
echo VueHtmlUtils::enTeteHTML5('Les News', 'UTF-8', Config::getStyleSheetsURL()['default']);
?>

<title>Toutes les news</title>
<?php 
if (isset($_SESSION['login'])) {
    echo "<section>";
    echo "<a href=\"?action=saisie-news\">ajouter une news</a>";
    echo "</section>";
}
foreach ($modele->getData() as $article) {
    echo "<section>";
    echo "<h2>" . ArticleView::getHtmlCompact($article) . "</h2>";
    echo "<p><a href=\"?action=get-news&id=" . $article->getId() . "\">Lire l'article ...</a></p>";
    if (isset($_SESSION['login'])) {
        echo "<p><a href=\"?action=edit-news&id=" . $article->getId() . "\"> [ modifier ] </a></p>";
        echo "<p><a href=\"?action=delete-news&id=" . $article->getId() . "\"> [ supprimer ] </a></p>";
    }
    echo "</section>";
}
?>

<?php 
echo VueHtmlUtils::finFichierHtml5();
<?php

/**
 * Created by PhpStorm.
 * User: Bastien
 * Date: 12/01/2016
 * Time: 13:36
 */
headGoTA("GoTA - Tous les articles");
menuGoTA();
reseauxGoTA();
asideGoTA();
echo ArticleView::getHtmlDevelopedCollection($CollecArticle);
echo "<a href=\"?action=ajouterArticle\" > Ajouter un Article </a>";
require Config::getErrorViews()['default'];
finGoTA();