Lines Matching refs:note

22 // User note display functions
47 // Link target to add a note to the current manual page,
49 $addnotelink = '/manual/add-note.php?sect=' . $filename .
53 "+<small>add a note</small>",
59 …$noteCountHtml = "<span class=\"count\">$num_notes note" . ($num_notes == 1 ? '' : 's') . "</span>…
72 echo "\n <div class=\"note\">There are no user contributed notes for this page.</div>";
76 foreach ($notes as $note) {
77 manual_note_display($note);
96 // Open the note file for reading and get the data (12KB)
106 @list($id, $sect, $rate, $ts, $user, $note, $up, $down) = explode("|", $line);
107 …$notes[$id] = new UserNote($id, $sect, $rate, $ts, $user, base64_decode($note, true), (int) $up, (…
114 // Print out one user note entry
115 function manual_note_display(UserNote $note, $voteOption = true): void
117 if ($note->user) {
118 … $name = "\n <strong class=\"user\"><em>" . htmlspecialchars($note->user) . "</em></strong>";
122 …$name = ($note->id ? "\n <a href=\"#{$note->id}\" class=\"name\">$name</a><a class=\"genanchor\" …
125 $date = new DateTime("@{$note->ts}");
128 $text = clean_note($note->text);
130 // Calculate note rating by up/down votes
131 $vote = $note->upvotes - $note->downvotes;
132 $p = floor(($note->upvotes / (($note->upvotes + $note->downvotes) ?: 1)) * 100);
133 $rate = !$p && !($note->upvotes + $note->downvotes) ? "no votes..." : "$p% like this...";
144 <div id="Vu{$note->id}">
145 …<a href="/manual/vote-note.php?id={$note->id}&amp;page={$rredir_filename}&amp;vote=up" title="Vote…
147 <div id="Vd{$note->id}">
148 …<a href="/manual/vote-note.php?id={$note->id}&amp;page={$rredir_filename}&amp;vote=down" title="Vo…
150 <div class="tally" id="V{$note->id}" title="{$rate}">
160 if (isset($_COOKIE['IS_DEV']) && $note->id) {
165 'https://main.php.net/manage/user-notes.php?action=edit+' . $note->id,
166 '<img src="/images/notes-edit@2x.png" height="12" width="12" alt="edit note">',
172 'https://main.php.net/manage/user-notes.php?action=reject+' . $note->id,
173 '<img src="/images/notes-reject@2x.png" height="12" width="12" alt="reject note">',
179 'https://main.php.net/manage/user-notes.php?action=delete+' . $note->id,
180 '<img src="/images/notes-delete@2x.png" height="12" width="12" alt="delete note">',
191 …<div class="note" id="{$note->id}">{$votediv}{$name}{$admin}<div class="date" title="$fdatestr"><s…
192 <div class="text" id="Hcom{$note->id}">
289 // Load user note for this page
298 $note = current($USERNOTES);
299 $timestamps[] = $note->ts;