made a copy
[atutor.git] / include / html / editor_tabs / preview.inc.php
1 <?php
2 /****************************************************************/
3 /* ATutor                                                                                                               */
4 /****************************************************************/
5 /* Copyright (c) 2002-2008 by Greg Gay & Joel Kronenberg        */
6 /* Adaptive Technology Resource Centre / University of Toronto  */
7 /* http://atutor.ca                                                                                             */
8 /*                                                              */
9 /* This program is free software. You can redistribute it and/or*/
10 /* modify it under the terms of the GNU General Public License  */
11 /* as published by the Free Software Foundation.                                */
12 /****************************************************************/
13 // $Id$
14
15 if (!defined('AT_INCLUDE_PATH')) { exit; }
16
17 ?>
18         <div class="row"><?php 
19         
20                 echo '<h2>'.AT_print($stripslashes($_POST['title']), 'content.title').'</h2>';
21
22                 if ($_POST['body_text']) {
23                         echo format_content($stripslashes($_POST['body_text']), $_POST['formatting'], $_POST['glossary_defs']);
24                 } else { 
25                         global $msg;
26                 
27                         $msg->printInfos('NO_PAGE_CONTENT');
28         
29                 } ?>            
30         </div>