diff options
Diffstat (limited to 'tpl/notes')
-rw-r--r-- | tpl/notes/edit.php | 2 | ||||
-rw-r--r-- | tpl/notes/inc_relativestree.php | 8 | ||||
-rw-r--r-- | tpl/notes/move.php | 4 | ||||
-rw-r--r-- | tpl/notes/new.php | 2 | ||||
-rw-r--r-- | tpl/notes/user.php | 6 | ||||
-rw-r--r-- | tpl/notes/view.php | 10 |
6 files changed, 16 insertions, 16 deletions
diff --git a/tpl/notes/edit.php b/tpl/notes/edit.php index 54f5157..2cf7fbf 100644 --- a/tpl/notes/edit.php +++ b/tpl/notes/edit.php @@ -2,7 +2,7 @@ require("tpl/general/top.php"); -echo '<div class="small_right"><a href="view-notes-' . $note['id'] . '">revenir à la note</a></div>'; +echo '<div class="small_right"><a href="?p=view-notes-' . $note['id'] . '">revenir à la note</a></div>'; require("tpl/general/inc_form.php"); diff --git a/tpl/notes/inc_relativestree.php b/tpl/notes/inc_relativestree.php index 295e552..01cb956 100644 --- a/tpl/notes/inc_relativestree.php +++ b/tpl/notes/inc_relativestree.php @@ -23,7 +23,7 @@ for($id = $note['id']; $id != 0; $id = $notes_parents[$id]) { echo '</div><div class="contents-left">'; echo '<h1>' . $note['ownername'] . '</h1><br />'; -echo '<div class="small_right"><a href="user-notes-' . $note['owner'] . '">voir tout</a></div>'; +echo '<div class="small_right"><a href="?p=user-notes-' . $note['owner'] . '">voir tout</a></div>'; function n_tree_branch($id) { global $notest, $note, $can_new; @@ -32,18 +32,18 @@ function n_tree_branch($id) { if ($branch['id'] == $note['id']) echo '<p>' . $branch['title'] . '</p>'; else - echo '<p><a href="view-notes-' . $branch['id'] . '">' . $branch['title'] . '</a></p>'; + echo '<p><a href="?p=view-notes-' . $branch['id'] . '">' . $branch['title'] . '</a></p>'; if (isset($notest[$branch['id']])) { echo '<div class="tree_branch">'; n_tree_branch($branch['id']); echo '</div>'; } else if ($can_new && $branch['id'] == $note['id']) { echo '<div class="tree_branch">'; - if ($can_new) echo '<p><a class="tool_link" href="new-notes-' . $branch['id'] . '">+ nouvelle note</a></p>'; + if ($can_new) echo '<p><a class="tool_link" href="?p=new-notes-' . $branch['id'] . '">+ nouvelle note</a></p>'; echo '</div>'; } } - if ($can_new) echo '<p><a class="tool_link" href="new-notes-' . $id . '">+ nouvelle note</a></p>'; + if ($can_new) echo '<p><a class="tool_link" href="?p=new-notes-' . $id . '">+ nouvelle note</a></p>'; } echo '<div class="tree_root">'; diff --git a/tpl/notes/move.php b/tpl/notes/move.php index 985b89a..69882a1 100644 --- a/tpl/notes/move.php +++ b/tpl/notes/move.php @@ -4,12 +4,12 @@ require("tpl/general/top.php"); function f($n) { global $note; - return $n['title'] . ' - <a class="tool_link" href="move-notes-' . $note['id'] . '-' . $n['id'] . '">déplacer ici</a>'; + return $n['title'] . ' - <a class="tool_link" href="?p=move-notes-' . $note['id'] . '-' . $n['id'] . '">déplacer ici</a>'; } require("tpl/general/inc_tree.php"); tree($notes_tree, @f); -echo '<a class="tool_link" href="move-notes-'.$note['id'].'-0">déplacer à la racine</a>'; +echo '<a class="tool_link" href="?p=move-notes-'.$note['id'].'-0">déplacer à la racine</a>'; $can_new = false; require("tpl/notes/inc_relativestree.php"); diff --git a/tpl/notes/new.php b/tpl/notes/new.php index ca17f21..7ef6a59 100644 --- a/tpl/notes/new.php +++ b/tpl/notes/new.php @@ -3,7 +3,7 @@ require("tpl/general/top.php"); if (isset($parent)) { - echo '<div class="small_right"><a href="view-notes-' . $parent['id'] . '">back to ' . + echo '<div class="small_right"><a href="?p=view-notes-' . $parent['id'] . '">back to ' . $parent['title'] . '</a></div>'; } diff --git a/tpl/notes/user.php b/tpl/notes/user.php index 06099ac..9a1ef0b 100644 --- a/tpl/notes/user.php +++ b/tpl/notes/user.php @@ -3,13 +3,13 @@ $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>'; + 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="new-notes-0">nouvelle note</a>'; + echo '<a class="tool_link" href="?p=new-notes-0">nouvelle note</a>'; } echo '</div><div class="contents-left">'; @@ -19,7 +19,7 @@ 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 '<li><a href="?p=user-notes-' . $u['id'] . '">' . $u['name'] . '</a> (' . $u['nbNotes'] . ' notes)</li>'; } } echo "</ul>"; diff --git a/tpl/notes/view.php b/tpl/notes/view.php index 559c39e..e5838b6 100644 --- a/tpl/notes/view.php +++ b/tpl/notes/view.php @@ -4,12 +4,12 @@ require("tpl/general/top.php"); $t = array(); if ($note['parent_id'] != 0) { - $t[] = 'parent : <a href="view-notes-'. $note['parent_id'] . '">' . $note['parent_title'] . '</a>'; + $t[] = 'parent : <a href="?p=view-notes-'. $note['parent_id'] . '">' . $note['parent_title'] . '</a>'; } -if ($can_edit) $t[] = '<a href="edit-notes-' . $note['id'] . '">modifier</a>'; -$t[] = '<a href="source-notes-' . $note['id'] . '">code source</a>'; -if ($can_move) $t[] = '<a href="move-notes-' . $note['id'] . '">déplacer</a>'; -if ($can_delete) $t[] = '<a href="delete-notes-' . $note['id'] . '">supprimer</a>'; +if ($can_edit) $t[] = '<a href="?p=edit-notes-' . $note['id'] . '">modifier</a>'; +$t[] = '<a href="?p=source-notes-' . $note['id'] . '">code source</a>'; +if ($can_move) $t[] = '<a href="?p=move-notes-' . $note['id'] . '">déplacer</a>'; +if ($can_delete) $t[] = '<a href="?p=delete-notes-' . $note['id'] . '">supprimer</a>'; echo '<div class="small_align_right">' . implode(' | ', $t) . '</div>'; echo $note['html']; |