} //get read linked items $readlinkeditems = array(); if ($coursetheme == 'otbsreader.css' && isset($studentid)) { $query = "SELECT DISTINCT typeid FROM imas_content_track WHERE userid='{$userid}' AND type='linkedlink' AND courseid='{$cid}'"; $result = mysql_query($query) or die("Query failed : " . mysql_error()); while ($row = mysql_fetch_row($result)) { $readlinkeditems[$row[0]] = true; } } if (isset($teacherid)) { //echo generateadditem($_GET['folder'],'t'); } if (count($items) > 0) { //update block start/end dates to show blocks containing items with exceptions showitems($items, $_GET['folder']); if (isset($teacherid)) { //echo generateadditem($_GET['folder'],'b'); } } else { if (isset($teacherid)) { echo generateadditem($_GET['folder'], 'b'); } } if ($firstload) { echo "<script>document.cookie = 'openblocks-{$cid}=' + oblist;</script>\n"; } if (isset($tutorid) && isset($sessiondata['ltiitemtype']) && $sessiondata['ltiitemtype'] == 3) { echo '<script type="text/javascript">$(".instrdates").hide();</script>'; } ?>
var plblist = '<?php echo $plblist; ?> '; var cid = '<?php echo $cid; ?> '; </script> <div class=breadcrumb> <?php echo $curBreadcrumb; ?> <div class=clear></div> </div> <?php echo "<h2>{$curname}</h2>\n"; if (count($items) > 0) { showitems($items, $_GET['folder'], $blockispublic); } echo "<hr/>This is the publicly accessible content from a course on {$installname}. There may be additional content available by <a href=\"course.php?cid={$cid}\">logging in</a>"; require "../footer.php"; function tzdate($string, $time) { global $tzoffset; //$dstoffset = date('I',time()) - date('I',$time); //return gmdate($string, $time-60*($tzoffset+60*$dstoffset)); $serveroffset = date('Z') + $tzoffset * 60; return date($string, $time - $serveroffset); //return gmdate($string, $time-60*$tzoffset); }