433 |
ddelon |
1 |
<div class="page">
|
|
|
2 |
<?php
|
|
|
3 |
// load revisions for this pageif
|
|
|
4 |
if ($this->HasAccess("read")) {
|
|
|
5 |
|
|
|
6 |
if ($pages = $this->LoadRevisions($this->tag))
|
|
|
7 |
{
|
|
|
8 |
$output .= $this->FormOpen("diff", "", "get");
|
|
|
9 |
$output .= "<table border=\"0\" cellspacing=\"0\" cellpadding=\"1\">\n";
|
|
|
10 |
$output .= "<tr>\n";
|
|
|
11 |
$output .= "<td><input type=\"submit\" value=\"Voir Différences\" /></td>";
|
|
|
12 |
$output .= "<td><input type=\"checkbox\" name=\"fastdiff\"/>\n".$this->Format("Affichage simplifié")."</td>";
|
|
|
13 |
$output .= "</tr>\n";
|
|
|
14 |
$output .= "</table>\n";
|
|
|
15 |
$output .= "<table border=\"0\" cellspacing=\"0\" cellpadding=\"1\">\n";
|
|
|
16 |
if ($user = $this->GetUser())
|
|
|
17 |
{
|
|
|
18 |
$max = $user["revisioncount"];
|
|
|
19 |
}
|
|
|
20 |
else
|
|
|
21 |
{
|
|
|
22 |
$max = 20;
|
|
|
23 |
}
|
|
|
24 |
|
|
|
25 |
$c = 0;
|
|
|
26 |
foreach ($pages as $page)
|
|
|
27 |
{
|
|
|
28 |
$c++;
|
|
|
29 |
if (($c <= $max) || !$max)
|
|
|
30 |
{
|
|
|
31 |
$output .= "<tr>";
|
|
|
32 |
$output .= "<td><input type=\"radio\" name=\"a\" value=\"".$page["id"]."\" ".($c == 1 ? "checked=\"checked\"" : "")." /></td>";
|
|
|
33 |
$output .= "<td><input type=\"radio\" name=\"b\" value=\"".$page["id"]."\" ".($c == 2 ? "checked=\"checked\"" : "")." /></td>";
|
|
|
34 |
$output .= "<td> <a href=\"".$this->href("show")."&time=".urlencode($page["time"])."\">".$page["time"]."</a></td>";
|
|
|
35 |
$output .= "<td> by ".$this->Format($page["user"])."</td>";
|
|
|
36 |
$output .= "</tr>\n";
|
|
|
37 |
}
|
|
|
38 |
}
|
|
|
39 |
$output .= "</table>\n".$this->FormClose()."\n";
|
|
|
40 |
}
|
|
|
41 |
print($output);
|
|
|
42 |
}
|
|
|
43 |
else
|
|
|
44 |
{
|
|
|
45 |
print("<i>Vous n'avez pas accès à cette page.</i>");
|
|
|
46 |
}
|
|
|
47 |
?>
|
|
|
48 |
</div>
|
|
|
49 |
|