summaryrefslogblamecommitdiff
path: root/tpl/notes/user.php
blob: 06099ac95dbb72ca2880ad63f3962e9d03a7ba7a (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
     
                                                 








                                                                               
                                                                         


                                         
                                  










                                                                                                                           
<?php
$title = "Bloc-notes de " . $note_owner['name'] ;
require("tpl/general/top.php");

function f($n) {
	return '<a href="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="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="user-notes-' . $u['id'] . '">' . $u['name'] . '</a> (' . $u['nbNotes'] . ' notes)</li>';
	}
}
echo "</ul>";

require("tpl/general/bottom.php");