Historisation Exemple
Exemple test historisé
This commit is contained in:
33
blog_mvc/vue/blog/index.php
Normal file
33
blog_mvc/vue/blog/index.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" >
|
||||
<head>
|
||||
<title>Mon blog</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
||||
<link href="vue/blog/style.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>Mon super blog !</h1>
|
||||
<p>Derniers billets du blog :</p>
|
||||
|
||||
<?php
|
||||
foreach($billets as $billet)
|
||||
{
|
||||
?>
|
||||
<div class="news">
|
||||
<h3>
|
||||
<?php echo $billet['titre']; ?>
|
||||
<em>le <?php echo $billet['date_creation_fr']; ?></em>
|
||||
</h3>
|
||||
|
||||
<p>
|
||||
<?php echo $billet['contenu']; ?>
|
||||
<br />
|
||||
<em><a href="commentaires.php?billet=<?php echo $billet['id']; ?>">Commentaires</a></em>
|
||||
</p>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
27
blog_mvc/vue/blog/style.css
Normal file
27
blog_mvc/vue/blog/style.css
Normal file
@@ -0,0 +1,27 @@
|
||||
h1, h3
|
||||
{
|
||||
text-align:center;
|
||||
}
|
||||
h3
|
||||
{
|
||||
background-color:black;
|
||||
color:white;
|
||||
font-size:0.9em;
|
||||
margin-bottom:0px;
|
||||
}
|
||||
.news p
|
||||
{
|
||||
background-color:#CCCCCC;
|
||||
margin-top:0px;
|
||||
}
|
||||
.news
|
||||
{
|
||||
width:70%;
|
||||
margin:auto;
|
||||
}
|
||||
|
||||
a
|
||||
{
|
||||
text-decoration: none;
|
||||
color: blue;
|
||||
}
|
||||
Reference in New Issue
Block a user