Add a list of answers for each answered message

This commit is contained in:
Némunaire 2012-01-20 20:04:04 +01:00
commit aad5915892
4 changed files with 59 additions and 5 deletions

View file

@ -11,6 +11,7 @@
<?php
require_once("../common.php");
$view = 0;
foreach ($_GET as $k => $t)
{
if (preg_match("#^([a-zA-Z0-9]{".RGXP_NB."})(:([a-zA-Z0-9]{".RGXP_NB."}))?$#", $k, $kout)
@ -36,13 +37,14 @@ foreach ($_GET as $k => $t)
echo $paste->get_diff($diff);
else
echo $paste->get_code();
echo $paste->show_answers();
?>
</div>
</div>
</body>
</html>
<?php
$view = true;
$view++;
}
}

View file

@ -1,4 +1,3 @@
<h1>Dernières publications</h1>
<?php
require_once("../common.php");
@ -12,6 +11,7 @@ if ($dh = opendir(DESTINATION))
array_multisort($list, SORT_DESC);
?>
<h1>Dernières publications</h1>
<ul id="list">
<?php
if (empty($_GET["s"]))

View file

@ -34,6 +34,15 @@ p,ul
text-align: left;
}
#res {
font-size: 80%;
text-align: right;
}
#res ul, #res ul li {
display: inline;
padding-right: 10px;
}
label {
color: #e9802c;
font-weight: bold;