removed mods directory from the ATutor codebase
[atutor.git] / mods / certificate / index_instructor.php
diff --git a/mods/certificate/index_instructor.php b/mods/certificate/index_instructor.php
deleted file mode 100644 (file)
index 9bbe408..0000000
+++ /dev/null
@@ -1,115 +0,0 @@
-<?php\r
-/****************************************************************************/\r
-/* ATutor                                                                                                                                      */\r
-/****************************************************************************/\r
-/* Copyright (c) 2002-2008 by Greg Gay, Joel Kronenberg & Heidi Hazelton       */\r
-/* Adaptive Technology Resource Centre / University of Toronto                         */\r
-/* http://atutor.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
-// $Id: index_instructor.php 7208 2008-02-20 16:07:24Z cindy $\r
-\r
-define('AT_INCLUDE_PATH', '../../include/');\r
-require (AT_INCLUDE_PATH.'vitals.inc.php');\r
-authenticate(AT_PRIV_CERTIFICATE);\r
-require(AT_INCLUDE_PATH.'lib/themes.inc.php');\r
-\r
-if (isset($_POST['remove'], $_POST['certificate_id'])) \r
-{\r
-       header('Location: certificate_delete.php?certificate_id='.$_POST['certificate_id']);\r
-       exit;\r
-} \r
-else if (isset($_POST['edit'], $_POST['certificate_id'])) \r
-{\r
-       header('Location: certificate_edit.php?certificate_id='.$_POST['certificate_id']);\r
-       exit;\r
-} \r
-else if (!empty($_POST) && !isset($_POST['certificate_id'])) {\r
-       $msg->addError('NO_ITEM_SELECTED');\r
-}\r
-\r
-require(AT_INCLUDE_PATH.'header.inc.php'); \r
-\r
-?>\r
-&middot; <?php echo _AT("require_acrobat", "preview"); ?><br><br>\r
-<form name="form" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">\r
-<table summary="" class="data" rules="cols" align="center" style="width: 70%;">\r
-\r
-<thead>\r
-<tr>\r
-       <th scope="col">&nbsp;</th>\r
-       <!--<th scope="col"><?php echo _AT('certificate_id'); ?></th>-->\r
-       <th scope="col"><?php echo _AT('test_title'); ?></th>\r
-       <th scope="col"><?php echo _AT('pass_score'); ?></th>\r
-       <th scope="col"><?php echo _AT('created_date'); ?></th>\r
-</tr>\r
-</thead>\r
-<tfoot>\r
-<tr>\r
-       <td colspan="5">\r
-               <div class="row buttons">\r
-               <input type="button" name="preview" value="<?php echo _AT('preview'); ?>" onClick="open_certificate_win('<?php echo dirname($_SERVER["PHP_SELF"])?>/open_certificate.php?test_id={hidden_value}&certificate_id={radio_value}', 'certificate_id', 'test_id')" />\r
-               <input type="submit" name="edit" value="<?php echo _AT('edit'); ?>" /> \r
-               <input type="submit" name="remove" value="<?php echo _AT('remove'); ?>" /> \r
-               </div>\r
-       </td>\r
-</tr>\r
-<tr>\r
-       <td colspan="5"></td>\r
-</tr>\r
-</tfoot>\r
-<tbody>\r
-<?php\r
-$include_javascript = true;\r
-\r
-require("common.inc.php");\r
-\r
-if (is_pass_score_defined_in_base_table())\r
-       $sql = "SELECT c.*, t.title, t.passscore, t.passpercent from ".TABLE_PREFIX."tests t, ".TABLE_PREFIX."certificate c WHERE t.test_id = c.test_id";\r
-else\r
-       $sql = "SELECT c.*, t.title from ".TABLE_PREFIX."tests t, ".TABLE_PREFIX."certificate c WHERE t.test_id = c.test_id";\r
-\r
-$result = mysql_query($sql, $db) or die(mysql_error());\r
-\r
-if (mysql_num_rows($result) == 0)\r
-{\r
-?>\r
-       <tr>\r
-               <td colspan="5"><?php echo _AT('none_found'); ?></td>\r
-       </tr>\r
-<?php \r
-}\r
-else\r
-{\r
-       while ($row = mysql_fetch_assoc($result))\r
-       {\r
-       ?>\r
-               <tr onmousedown="document.form['m<?php echo $row['certificate_id']; ?>'].checked = true; rowselect(this);" id="r_<?php echo $row['certificate_id']; ?>">\r
-                       <td width="10"><input type="radio" name="certificate_id" value="<?php echo $row['certificate_id']; ?>" id="m<?php echo $row['certificate_id']; ?>" <?php if ($row['certificate_id']==$_POST['certificate_id']) echo 'checked'; ?> /></td>\r
-                       <!--<td><label for="m<?php echo $row['certificate_id']; ?>"><?php echo $row['certificate_id']; ?></label></td>-->\r
-                       <td><label for="m<?php echo $row['certificate_id']; ?>"><?php echo $row['title']; ?></label></td>\r
-                       <td>\r
-<?php \r
-if ($row['passscore'] <> 0) \r
-       echo $row['passscore']; \r
-elseif ($row['passpercent'] <> 0) \r
-       echo $row['passpercent'] . "%"; \r
-else echo _AT("na"); \r
-?></td>\r
-                       <td><?php echo $row['created_date']; ?></td>\r
-                       <input type="hidden" name="test_id" value="<?php echo $row['test_id']; ?>">\r
-               </tr>\r
-<?php \r
-       }\r
-}\r
-?>\r
-\r
-</tbody>\r
-</table>\r
-\r
-</form>\r
-\r
-<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>\r