1 <?php require(AT_INCLUDE_PATH.'header.inc.php'); ?>
3 <div id="my_courses_container">
4 <ul class="my-courses-list-ul" >
6 <?php foreach ($this->courses as $row):
11 <li class="my-courses-list">
12 <?php echo '<a href="'.url_rewrite('bounce.php?course=' . $row['course_id']) . '"> '.htmlentities($row['title']).'</a>' ?>
13 <?php if ($row['last_cid']): ?>
14 <a class="my-courses-resume" href="bounce.php?course=<?php echo $row['course_id'].SEP.'p='.urlencode('content.php?cid='.$row['last_cid']); ?>"><img src="<?php echo $_base_href; ?>themes/default/images/resume.png" border="" alt="<?php echo _AT('resume'); ?>" title="<?php echo _AT('resume'); ?>" /></a>
17 <div class="my-courses-links">
18 <?php if ($row['member_id'] != $_SESSION['member_id'] && $_config['allow_unenroll'] == 1): ?>
19 <a href="users/remove_course.php?course=<?php echo $row['course_id']; ?>"><?php echo _AT('unenroll_me'); ?></a>
21 <?php if ($row['tests']): ?>
22 <?php foreach ($row['tests'] as $test): ?>
23 <a href="bounce.php?course=<?php echo $row['course_id'].SEP.'p='.urlencode('mods/_standard/tests/test_intro.php?tid='.$test['test_id']); ?>"><span title="<?php echo _AT('tests'); ?>:<?php echo $test['title']; ?>"><?php echo $test['title']; ?></span></a>
35 <div class="current_box">
36 <div class="current_head"> <h3><?php echo _AT('things_current'); ?></h3></div>
39 //display current news
44 $p = intval($_GET['p']);
46 if($_GET['p'] == "all"){
47 $perpage = count($this->all_news);
52 $newscount = count($this->all_news);
53 $num_pages = (ceil($newscount/$perpage));;
54 $start = ($p-1)*$perpage;
57 print_paginator($page, $num_pages, '', 1);
58 for($i=$start;$i<=$end; $i++){
60 if (isset($this->all_news)) {
61 echo '<ul class="current_list">';
62 if(isset($this->all_news[$i]['thumb'])){
63 echo '<li><img src="'.$this->all_news[$i]['thumb'].'" alt="'.$this->all_news[$i]['alt'].'" title="'.$this->all_news[$i]['alt'].'"/> ' . $this->all_news[$i]['link'] .' <br />';
64 if($this->all_news[$i]['object']['course_id']){
65 echo '<span class="current_list_date_time">'.'Posted in '.'<a href="bounce.php?course='.$this->all_news[$i]['object']['course_id'].'">'.$this->all_news[$i]['course'].'</a>';
67 echo ' on '.AT_DATE('%F %j, %g:%i',$this->all_news[$i]['time']).'</span></li>';
72 if($perpage == count($this->all_news)){ ?>
73 <div id="show-pages"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?p=1"><?php echo _AT('show_pages'); ?></a></div>
75 <div id="show-all"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?p=all"><?php echo "Show All"; ?></a></div>
79 <?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>