removed mods directory from the ATutor codebase
[atutor.git] / mods / photo_album / index_admin.php
diff --git a/mods/photo_album/index_admin.php b/mods/photo_album/index_admin.php
deleted file mode 100644 (file)
index 8535919..0000000
+++ /dev/null
@@ -1,66 +0,0 @@
-<?php\r
-/*==============================================================\r
-  Photo Album\r
- ==============================================================\r
-  Copyright (c) 2006 by Dylan Cheon & Kelvin Wong\r
-  Institute for Assistive Technology / University of Victoria\r
-  http://www.canassist.ca/                                    \r
-                                                               \r
-  This program is free software. You can redistribute it and/or\r
-  modify it under the terms of the GNU General Public License  \r
-  as published by the Free Software Foundation.                \r
- ==============================================================\r
- */\r
-// $Id:\r
-\r
-/**\r
- * @desc       This file generates the index page in the administrator panel\r
- * @author     Dylan Cheon & Kelvin Wong\r
- * @copyright  2006, Institute for Assistive Technology / University of Victoria \r
- * @link       http://www.canassist.ca/                                    \r
- * @license GNU\r
- */\r
\r
-define('AT_INCLUDE_PATH', '../../include/');\r
-require (AT_INCLUDE_PATH.'vitals.inc.php');\r
-admin_authenticate(AT_ADMIN_PRIV_PHOTO_ALBUM);\r
-require (AT_INCLUDE_PATH.'header.inc.php');\r
-?>\r
-\r
-<?php\r
-require_once('define.php');\r
-require_once('HTML/Template/ITX.php');\r
-require_once('include/data_func.php');\r
-require_once('include/general_func.php');\r
-\r
-$courses=get_course_list();\r
-if (empty($courses)){\r
-       $msg->addError('pa_var_course_empty');\r
-       redirect('../../admin/index.php');\r
-} else {\r
-       $link=$base_path.'mods/photo_album/admin_image_list.php';\r
-       $template=new HTML_Template_ITX("./Template");\r
-       $template->loadTemplatefile("index_admin.tpl.php", true, true);\r
-\r
-       $template->setVariable("TITLE", _AT('pa_title_admin_index'));   \r
-       $template->setVariable("MESSAGE", _AT('pa_note_admin'));\r
-       $template->setVariable("FORM_NAME", "photo_form");\r
-       $template->setVariable("FORM_ACTION", $link);\r
-       $template->setVariable("SELECT_NAME", "course_id");\r
-       \r
-       for ($i=0; $i<count($courses); $i++){\r
-               $template->setCurrentBlock("OPTION_VALUE");\r
-               $template->setVariable("TABINDEX", $i);\r
-               $template->setVariable("VALUE", $courses[$i]['id']);\r
-               $template->setVariable("TEXT", $courses[$i]['title']);\r
-               $template->parseCurrentBlock("OPTION_VALUE");\r
-       }\r
-\r
-       $template->setVariable("SUBMIT_NAME", "submit");\r
-       $template->setVariable("SUBMIT_VALUE", _AT('pa_tag_go'));\r
-       \r
-       $template->parseCurrentBlock();\r
-       $template->show();      \r
-}\r
-?>\r
-<?php require (AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file