made a copy
[atutor.git] / tools / edit_styles.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
14 define('AT_INCLUDE_PATH', '../include/');
15 require(AT_INCLUDE_PATH.'vitals.inc.php');
16 $_section[0][0] =  _AT('tools');
17 $_section[0][1] = 'tools/';
18 $_section[1][0] =  _AT('style_editor');
19
20 $filename = AT_CONTENT_DIR . $_SESSION['course_id'].'/stylesheet.css';
21
22 require(AT_INCLUDE_PATH.'header.inc.php');
23
24 echo '<h2>';
25         if ($_SESSION['prefs'][PREF_CONTENT_ICONS] != 2) {
26                 echo '<a href="tools/" class="hide"><img src="images/icons/default/square-large-tools.gif"  class="menuimageh2" border="0" vspace="2" width="42" height="40" alt="" /></a>';
27         }
28         if ($_SESSION['prefs'][PREF_CONTENT_ICONS] != 1) {
29                 echo ' <a href="tools/" class="hide">'._AT('tools').'</a>';
30         }
31 echo '</h2>';
32
33 echo '<h3>';
34         if ($_SESSION['prefs'][PREF_CONTENT_ICONS] != 2) {
35                 echo '&nbsp;<img src="images/icons/default/css-editor-large.gif"  class="menuimageh3" width="42" height="38" alt="" /> ';
36         }
37         if ($_SESSION['prefs'][PREF_CONTENT_ICONS] != 1) {
38                 echo _AT('style_editor');
39         }
40 echo '</h3>';
41
42 $msg->addInfo('CSS_DEPRECATED');
43 if (file_exists('../' . $filename)) {
44         $info = array('CSS_DEPRECATED_DL', AT_BASE_HREF . $filename);
45         $msg->addInfo($info);
46 }
47
48 $msg->printInfos();
49
50 require(AT_INCLUDE_PATH.'footer.inc.php');
51 ?>