From 14f9a885decc00029b480ee804e6f7d75c4f346c Mon Sep 17 00:00:00 2001 From: alison benjamin Date: Wed, 31 Aug 2011 15:51:03 +0000 Subject: [PATCH] Assigns a template for add.php. An add.tmpl.php template has also been added to the themes/default/instructor/glossary --- docs/mods/_core/glossary/tools/add.php | 72 +++----------------------- 1 file changed, 7 insertions(+), 65 deletions(-) diff --git a/docs/mods/_core/glossary/tools/add.php b/docs/mods/_core/glossary/tools/add.php index 44fb2f50d..210ab82aa 100644 --- a/docs/mods/_core/glossary/tools/add.php +++ b/docs/mods/_core/glossary/tools/add.php @@ -87,72 +87,14 @@ $onload = 'document.form.title0.focus();'; unset($word); $num_terms = 1; +$sql = "SELECT * FROM ".TABLE_PREFIX."glossary WHERE course_id=$_SESSION[course_id] ORDER BY word"; +$result_glossary = mysql_query($sql, $db); require(AT_INCLUDE_PATH.'header.inc.php'); +$savant->assign('result_glossary', $result_glossary); +$savant->assign('num_terms', $num_terms); +$savant->display('instructor/glossary/add.tmpl.php'); +require(AT_INCLUDE_PATH.'footer.inc.php'); -?> -
- -'; - continue; - } - - for ($j=0;$j<$i;$j++) { - if ($word[$j] == $word[$i]) { - echo ''; - continue 2; - } - } - - if ($word[$i] == '') { - $word[$i] = ContentManager::cleanOutput($_POST['word'][$i]); - } -?> -
-
-
- *
- .'; - } - ?> -
- -
- *
- -
- -
-
- '; - echo ''; - do { - echo ''; - } while ($row_g = mysql_fetch_assoc($result)); - echo ''; - } else { - echo _AT('none_available'); - } - } // endfor - ?> -
- -
- - -
-
-
-
- - \ No newline at end of file +?> \ No newline at end of file -- 2.17.1