/lenasys/trunk

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