<?php /* * Eqiat * Easy QTI Item Authoring Tool */ /*------------------------------------------------------------------------------ (c) 2010 JISC-funded EASiHE project, University of Southampton Licensed under the Creative Commons 'Attribution non-commercial share alike' licence -- see the LICENCE file for more details ------------------------------------------------------------------------------*/ // get sorted array of items // those which have titles in alphabetical order // then others in identifier order $items = array(); foreach (QTIAssessmentItem::allItems() as $id => $item) { $items[] = $item; } usort($items, array("QTIAssessmentItem", "compare_by_modification_date")); $items = array_reverse($items); ob_start(); ?> $(document).ready(function() { if (window.location.hash.substr(0, 6) == "#item_") $(window.location.hash).addClass("highlight"); }); <?php $GLOBALS["headerjs"] = ob_get_clean() . item_action_js(); include "htmlheader.php"; ?>