From 03685416017163d38f4ef1239ca50df1e38a242a Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Sun, 29 Apr 2018 12:08:02 +0200 Subject: Add some links with ?p= --- tpl/notes/edit.php | 2 +- tpl/notes/inc_relativestree.php | 8 ++++---- tpl/notes/move.php | 4 ++-- tpl/notes/new.php | 2 +- tpl/notes/user.php | 6 +++--- tpl/notes/view.php | 10 +++++----- 6 files changed, 16 insertions(+), 16 deletions(-) (limited to 'tpl/notes') 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 '
revenir à la note
'; +echo '
revenir à la note
'; 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 '
'; echo '

' . $note['ownername'] . '


'; -echo ''; +echo ''; 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 '

' . $branch['title'] . '

'; else - echo '

' . $branch['title'] . '

'; + echo '

' . $branch['title'] . '

'; if (isset($notest[$branch['id']])) { echo '
'; n_tree_branch($branch['id']); echo '
'; } else if ($can_new && $branch['id'] == $note['id']) { echo '
'; - if ($can_new) echo '

+ nouvelle note

'; + if ($can_new) echo '

+ nouvelle note

'; echo '
'; } } - if ($can_new) echo '

+ nouvelle note

'; + if ($can_new) echo '

+ nouvelle note

'; } echo '
'; 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'] . ' - déplacer ici'; + return $n['title'] . ' - déplacer ici'; } require("tpl/general/inc_tree.php"); tree($notes_tree, @f); -echo 'déplacer à la racine'; +echo 'déplacer à la racine'; $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 '
back to ' . + echo ''; } 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 '' . $n['title'] . ''; + return '' . $n['title'] . ''; } require("tpl/general/inc_tree.php"); tree($notes_tree, @f); if ($note_owner['id'] == $user['id']) { - echo 'nouvelle note'; + echo 'nouvelle note'; } echo '
'; @@ -19,7 +19,7 @@ foreach($users as $u) { if ($u['id'] == $userid) { echo '
  • ' . $u['name'] . ' (' . $u['nbNotes'] . ' notes)
  • '; } else { - echo '
  • ' . $u['name'] . ' (' . $u['nbNotes'] . ' notes)
  • '; + echo '
  • ' . $u['name'] . ' (' . $u['nbNotes'] . ' notes)
  • '; } } echo ""; 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 : ' . $note['parent_title'] . ''; + $t[] = 'parent : ' . $note['parent_title'] . ''; } -if ($can_edit) $t[] = 'modifier'; -$t[] = 'code source'; -if ($can_move) $t[] = 'déplacer'; -if ($can_delete) $t[] = 'supprimer'; +if ($can_edit) $t[] = 'modifier'; +$t[] = 'code source'; +if ($can_move) $t[] = 'déplacer'; +if ($can_delete) $t[] = 'supprimer'; echo '
    ' . implode(' | ', $t) . '
    '; echo $note['html']; -- cgit v1.2.3