Exemplo n.º 1
0
include 'libs/messages.php';
include 'includes/top.php';
?>
<table border="1">
	<thead>
		<tr>
			<th>id</th>
			<th>creator</th>
			<th>date</th>
			<th>message</th>
		</tr>
	</thead>
	<tbody>
		<?php 
$messages = (include 'data/messages.php');
echo build_html_messages($messages['list']);
?>
	</tbody>
</table>

<?php 
if ($page > 1) {
    ?>
<a href="messages.php?id=<?php 
    echo $_GET['id'];
    ?>
&page=<?php 
    echo $page - 1;
    ?>
">Page précédente</a>
<?php 
Exemplo n.º 2
0
include 'libs/messages.php';
include 'includes/top.php';
?>
<table border="1">
	<thead>
		<tr>
			<th>id</th>
			<th>creator</th>
			<th>date</th>
			<th>message</th>
		</tr>
	</thead>
	<h1>Création d'une nouvelle branche GIT</h1>
	<tbody>
		<?php 
echo build_html_messages(include 'data/messages.php');
?>
	</tbody>
</table>

<?php 
$id = $_GET['id'];
$pageSize = 1;
$page = 1;
?>

<?php 
if ($page > 0) {
    ?>
	<a href="messages.php?id=<?php 
    echo $_GET['id'];