http://www.atutor.ca/atutor/mantis/view.php?id=2616
authorjoel kronenberg <joel.kronenberg@utoronto.ca>
Tue, 11 Jul 2006 15:33:17 +0000 (15:33 -0000)
committerjoel kronenberg <joel.kronenberg@utoronto.ca>
Tue, 11 Jul 2006 15:33:17 +0000 (15:33 -0000)
docs/documentation/add_note.php
docs/documentation/common/body_header.inc.php
docs/documentation/common/text.php

index 0e8fdc9..cc9a3df 100644 (file)
@@ -58,7 +58,7 @@ if (isset($_POST['submit'])) {
                // insert into DB\r
                $sql = "INSERT INTO ".AT_HANDBOOK_DB_TABLE_PREFIX."handbook_notes VALUES (0, NOW(), '$_POST[section]', '$_POST[page]', 0, '$_POST[email]', '$_POST[note]')";\r
                mysql_query($sql, $db);\r
-               header('Location: '.$_POST['section']. '/' . $_POST['page']);\r
+               header('Location: '.$_POST['section']. '/' . $_POST['page'].'?noted');\r
                exit;\r
        }\r
 }\r
index ea43e00..6b40506 100644 (file)
@@ -82,3 +82,9 @@ while (current($_pages) !== FALSE) {
                <?php get_text('page_not_translated'); ?>
        </div>
 <?php endif; ?>
+
+<?php if (isset($_GET['noted'])): ?>
+       <div style="margin: 20px auto; border: 1px solid #aaf; padding: 4px; text-align: center; background-color: #eef;">
+               <?php get_text('note_added'); ?>
+       </div>
+<?php endif; ?>
\ No newline at end of file
index 3e857ce..50e9c71 100644 (file)
@@ -1,5 +1,5 @@
 <?php\r
-\r
+$text = array();\r
 $text['next_chapter'] = 'Next Chapter';\r
 $text['previous_chapter'] = 'Previous Chapter';\r
 $text['page_not_translated'] = 'This page has not yet been translated to that language.';\r
@@ -38,4 +38,5 @@ $text['add_note'] = 'Add Note';
 $text['add_note_blurb'] = 'If you ask a question, report a bug, or request a feature, your note will not be posted. Notes must be approved by an administrator before they are posted.';\r
 $text['email_name'] = 'Your email address (or name)';\r
 $text['your_note'] = 'Your note';\r
+$text['note_added'] = 'Your note has been saved. It will appear only after it has been approved by an administrator.';\r
 ?>
\ No newline at end of file