bzr branch
http://gegoxaren.bato24.eu/bzr/lenasys/trunk
85.1.16
by a11andoh
managed the manage courses view to better fit in controller view |
1 |
<div id="manageCourses" class="cmsContent"> |
83.2.12
by elof.bigestans at gmail
* Merged trunk |
2 |
<div id="manageCoursesMenu"> |
3 |
<h1 class="viewTitle">Manage Courses</h1> |
|
4 |
<a class="btn" id="addCourseButton" href="#">Add Course</a> |
|
5 |
</div> |
|
6 |
<div id="bodyContainer"> |
|
7 |
<table> |
|
8 |
<tr> |
|
9 |
<th>Course Name</th> |
|
10 |
<th>Course Code</th> |
|
11 |
<th>Description</th> |
|
12 |
<th>Published</th> |
|
13 |
<th>Edit Course Details</th> |
|
14 |
</tr> |
|
15 |
<? foreach($courses as $item): ?> |
|
16 |
<tr data-course="<?= $item->courseID; ?>"> |
|
17 |
<td class="courseName"><?= $item->name; ?></td> |
|
18 |
<td class="courseID"><?= $item->courseID; ?></td> |
|
19 |
<td class="courseData"><?= $item->courseData; ?></td> |
|
20 |
<td class="coursePublishButton"> |
|
21 |
<? if(ord($item->isHidden)): ?> |
|
22 |
<a href="<?=base_url();?>ajax/publishCourse/<?=$item->courseID;?>" class="publishButton unpublished">Unpublished</a> |
|
23 |
<? else: ?> |
|
24 |
<a href="<?=base_url();?>ajax/unpublishCourse/<?=$item->courseID;?>" class="publishButton published">Published</a> |
|
25 |
<? endif; ?> |
|
26 |
</td> |
|
27 |
<td><a href="#" class="manageCourseButton">Manage Course</a></td> |
|
28 |
</tr> |
|
29 |
<? endforeach; ?> |
|
30 |
</table> |
|
31 |
</div> |
|
32 |
</div><!-- end #manageCourses --> |