/lenasys/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/lenasys/trunk
83.2.1 by elof.bigestans at gmail
Fixed various bugs in the ManageCourses function
1
			<div id="manageCourses">
2
			<!-- examplesBody.php -->
3
				<div id="manageCoursesMenu">
4
					<h1 class="viewTitle">Manage Courses</h1>
5
					 <!-- Only displayed when teacher -->
83.2.5 by elof.bigestans at gmail
* Updated ManageCourses, including JS+Jquery, popups, controller.
6
					<a class="btn" id="addCourseButton" href="#">Add Course</a>
83.2.1 by elof.bigestans at gmail
Fixed various bugs in the ManageCourses function
7
				</div>
8
9
				<div id="bodyContainer">
10
					<table>
11
						<tr>
12
							<th>Course Name</th>
13
							<th>Course Code</th>
14
							<th>Description</th>
83.2.5 by elof.bigestans at gmail
* Updated ManageCourses, including JS+Jquery, popups, controller.
15
							<th>Published</th>
83.2.1 by elof.bigestans at gmail
Fixed various bugs in the ManageCourses function
16
							<th>Edit Course Details</th>
17
						</tr>
18
						<? foreach($courses as $item): ?>
19
						<tr data-course="<?= $item->courseID; ?>">
20
							<td class="courseName"><?= $item->name; ?></td>
21
							<td class="courseID"><?= $item->courseID; ?></td>
22
							<td class="courseData"><?= $item->courseData; ?></td>
83.2.5 by elof.bigestans at gmail
* Updated ManageCourses, including JS+Jquery, popups, controller.
23
							<td class="coursePublishButton">
24
								<? if(ord($item->isHidden)): ?>
25
									<a href="<?=base_url();?>ajax/publishCourse/<?=$item->courseID;?>" class="publishButton unpublished">Unpublished</a>
26
								<? else: ?>
27
									<a href="<?=base_url();?>ajax/unpublishCourse/<?=$item->courseID;?>" class="publishButton published">Published</a>
28
								<? endif; ?> 
29
							</td>
83.2.1 by elof.bigestans at gmail
Fixed various bugs in the ManageCourses function
30
							<td><a href="#" class="manageCourseButton">Manage Course</a></td>
31
						</tr>
32
						<? endforeach; ?>
33
					</table>
34
				</div>
83.2.5 by elof.bigestans at gmail
* Updated ManageCourses, including JS+Jquery, popups, controller.
35
				<div id="popup"></div>
36
				<? /*
83.2.1 by elof.bigestans at gmail
Fixed various bugs in the ManageCourses function
37
				<div id="addCourse" class="manageCoursePopup">
38
					<h2 class="popupHeader">Add Course</h2>
39
					<?= form_open(base_url().'ManageCourses/addCourse'); ?>
40
						<ul>
41
							<li>
42
								<label for="addCourseID">Course Code:</label>
43
								<input type="text" class="text" name="addCourseID" id="addCourseID" placeHolder="Course Code">
44
							</li>
45
							<li>
46
								<label for="addCourseName">Course Name:</label>
47
								<input type="text" class="text" name="addCourseName" id="addCourseName" placeHolder="Course Name">
48
							</li>
49
							<li>
50
								<label for="addCourseData">Course Description:</label>
51
								<input type="text" class="text" name="addCourseData" id="addCourseData" placeHolder="Course Description">
52
							</li>
53
						</ul>
54
						<div class="manageCoursePopupMenu">
55
							<button class="popupButtons btn" type="submit">Confirm</button>
56
							<button class="cancelButton popupButtons btn">Cancel</button>
57
						</div>
58
					<?= form_close(); ?>
59
				</div>	
60
				
61
				<div id="editCourse" class="manageCoursePopup">
62
					<h2 class="popupHeader">Edit Course</h2>
63
					<?= form_open(base_url().'ManageCourses/editCourse'); ?>
64
						<ul>
65
							<li>
66
								<label for="editCourseID">Course Code:</label>
67
								<span>Course Code</span>
68
								<input type="hidden" id="editCourseID" name="editCourseID">
69
							</li>
70
							<li>
71
								<label for="editCourseName">Course Name:</label>
72
								<input type="text" class="text" name="editCourseName" id="editCourseName">
73
							</li>
74
							<li>
75
								<label for="editCourseData">Course Description:</label>
76
								<input type="text" class="text" name="editCourseData" id="editCourseData">
77
							</li>
78
						</ul>
79
						<div class="manageCoursePopupMenu">
80
							<button class="popupButtons btn" type="submit">Confirm</button>
81
							<button class="cancelButton popupButtons btn">Cancel</button>
82
						</div>
83.2.5 by elof.bigestans at gmail
* Updated ManageCourses, including JS+Jquery, popups, controller.
83
					<?= form_close(); ?> */?>
83.2.1 by elof.bigestans at gmail
Fixed various bugs in the ManageCourses function
84
				</div>	
85
			</div><!-- end #manageCourses -->
86
		</div> <!-- end #wrapper -->
87
	</body>
79.1.1 by a10rolch
- Updated admin_model function addCourse to also include courseData.
88
</html>
83.2.1 by elof.bigestans at gmail
Fixed various bugs in the ManageCourses function
89