blob: 9a1ef0b6ac9a0129ffc58ec54e2498cb22f25f38 (
plain) (
tree)
|
|
<?php
$title = "Bloc-notes de " . $note_owner['name'] ;
require("tpl/general/top.php");
function f($n) {
return '<a href="?p=view-notes-' . $n['id'] . '">' . $n['title'] . '</a>';
}
require("tpl/general/inc_tree.php");
tree($notes_tree, @f);
if ($note_owner['id'] == $user['id']) {
echo '<a class="tool_link" href="?p=new-notes-0">nouvelle note</a>';
}
echo '</div><div class="contents-left">';
echo '<h1>Autres bloc-notes</h1>';
echo "<ul>";
foreach($users as $u) {
if ($u['id'] == $userid) {
echo '<li>' . $u['name'] . ' (' . $u['nbNotes'] . ' notes)</li>';
} else {
echo '<li><a href="?p=user-notes-' . $u['id'] . '">' . $u['name'] . '</a> (' . $u['nbNotes'] . ' notes)</li>';
}
}
echo "</ul>";
require("tpl/general/bottom.php");
|