// 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
<?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
<?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
$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