removed mods directory from the ATutor codebase
[atutor.git] / mods / certify / index.php
diff --git a/mods/certify/index.php b/mods/certify/index.php
deleted file mode 100644 (file)
index bb97ed8..0000000
+++ /dev/null
@@ -1,92 +0,0 @@
-<?php\r
-\r
-require 'certify_functions.php';\r
-\r
-$GLOBALS['dout'] = '';\r
-\r
-function dbug($out) {\r
-       $GLOBALS['dout'] .= $out . "\n";\r
-}\r
-\r
-define('AT_INCLUDE_PATH', '../../include/');\r
-require (AT_INCLUDE_PATH.'vitals.inc.php');\r
-$_custom_css = $_base_path . 'mods/certify/certify.css'; // use a custom stylesheet\r
-\r
-$certify_certificates = array();\r
-       \r
-// Fetch certificates for course\r
-\r
-$sql = 'SELECT * from '.TABLE_PREFIX.'certify where course_id='.$_SESSION['course_id'];\r
-$result = mysql_query($sql, $db) or die(mysql_error());\r
-\r
-while( $row = mysql_fetch_assoc($result) ) {\r
-       $this_cert = array();\r
-       $this_cert['title'] = $row['title'];\r
-       $this_cert['description'] = $row['description'];\r
-       $this_cert['progress'] = getCertificateProgress($_SESSION[member_id], $row['certify_id']);\r
-       $certify_certificates[$row['certify_id']] = $this_cert;\r
-}\r
-\r
-\r
-require (AT_INCLUDE_PATH.'header.inc.php');\r
-dbug(var_export($certify_certificates, true));\r
-echo '<!-- <code><pre>'.$dout.'</pre></code> -->';\r
-\r
-\r
-?>\r
-\r
-\r
-<table class="data static" summary="" rules="cols">\r
-<thead>\r
-<tr>\r
-       <th scope="col"><?php echo _AT('certify_title'); ?></th>\r
-       <th scope="col"><?php echo _AT('certify_status'); ?></th>\r
-</tr>\r
-</thead>\r
-<tbody>\r
-<?php foreach ($certify_certificates as $certify_id => &$certificate) { ?>\r
-\r
-       <?php if ($certificate['progress'] < 100) { ?>\r
-\r
-               <tr>\r
-                       <td>\r
-                               <strong><?php echo $certificate['title']; ?></strong><br />\r
-                               <em><?php echo $certificate['description']; ?></em>\r
-                       </td>\r
-                       \r
-                       <td>                            \r
-                               <div class="certify_bar-border">\r
-                                       <div class="certify_bar-fill">\r
-                                               <div class="certify_bar-bar" style="width: <?php echo floor($certificate['progress']); ?>%;"><?php echo floor($certificate['progress']); ?>%\r
-                                               </div>\r
-                                       </div>\r
-                               </div>\r
-                               \r
-                       </td>\r
-               </tr>\r
-       <?php } else { ?>\r
-\r
-               <tr>\r
-                       <td>\r
-                               <strong><?php echo $certificate['title']; ?></strong><br />\r
-                               <em><?php echo $certificate['description']; ?></em>\r
-                       </td>\r
-                       \r
-                       <td>\r
-                               <span class="certify_percent">100%</span> \r
-                               <a href="<?php echo url_rewrite('mods/certify/download_certificate.php?certify_id='.$certify_id); ?>">\r
-                               <img src="<?php echo AT_BASE_HREF. "images/file_types/pdf.gif"; ?>" border="0" /> \r
-                               <?php echo _AT('certify_download_certificate'); ?>\r
-                               </a>\r
-                       </td>\r
-               </tr>\r
-               \r
-       <?php } ?>\r
-\r
-<?php } ?>\r
-\r
-\r
-</tbody>\r
-</table>\r
-       \r
-<?php require (AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file