From 1ed8a37bea8882cd3a1aa0f421dbc15493a781a0 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 31 Jan 2014 17:30:35 +0100 Subject: Traduction into french of some parts of the site. --- tpl/notes/inc_relativestree.php | 93 ++--------------------------------------- 1 file changed, 3 insertions(+), 90 deletions(-) (limited to 'tpl/notes/inc_relativestree.php') diff --git a/tpl/notes/inc_relativestree.php b/tpl/notes/inc_relativestree.php index be0e224..fd47ab4 100644 --- a/tpl/notes/inc_relativestree.php +++ b/tpl/notes/inc_relativestree.php @@ -1,92 +1,5 @@
'; -echo '

' . $note['ownername'] . '


'; -echo ''; - -function list_brothers_and_children() { - global $brothers, $children, $note, $user, $can_new; - echo '
'; - foreach($brothers as $b) { - if ($b['id'] == $note['id']) { - echo '

' . $b['title'] . '

'; - foreach($children as $nn) { - echo '

' . $nn['title'] . '

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

+ new note

'; - } - echo '
'; - } else { - echo '

' . $b['title'] . '

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

+ new note

'; - } - echo '
'; -} - -echo '
'; -$did_show_up = false; -foreach($user_root_notes as $n) { - if ($n['id'] == $note['id']) { - $did_show_up = true; - echo '

' . $n['title'] . '

'; - foreach($children as $nn) { - echo '

' . $nn['title'] . '

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

+ new note

'; - } - echo '
'; - } else { - echo '

' . $n['title'] . '

'; - if ($n['id'] == $note['parent_id']) { - $did_show_up = true; - list_brothers_and_children(); - } - } -} -if ($can_new) { - echo '

+ new note

'; -} -echo '
'; - -if (!$did_show_up) { - echo '

'; - echo '' . $note['parent_title'] . ''; - list_brothers_and_children(); -} - -*/ - -// *** NEW WAY $notes_tree = array(); $notes_parents = array(); @@ -110,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; @@ -126,11 +39,11 @@ function n_tree_branch($id) { echo '
'; } else if ($can_new && $branch['id'] == $note['id']) { echo '
'; - if ($can_new) echo '

+ new note

'; + if ($can_new) echo '

+ nouvelle note

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

+ new note

'; + if ($can_new) echo '

+ nouvelle note

'; } echo '
'; -- cgit v1.2.3