/lenasys/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/lenasys/trunk

« back to all changes in this revision

Viewing changes to codeigniter/application/views/manageCoursesBody.php

  • Committer: a11emmjo
  • Date: 2013-05-27 13:44:24 UTC
  • mfrom: (107 lenasys_b)
  • mto: This revision was merged to the branch mainline in revision 109.
  • Revision ID: a11emmjo@student.his.se-20130527134424-27818lm7fmk5x3wx
Updated branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
                        <div id="manageCourses">
2
 
                        <!-- examplesBody.php -->
3
 
                                <div id="manageCoursesMenu">
4
 
                                        <h1 class="viewTitle">Manage Courses</h1>
5
 
                                         <!-- Only displayed when teacher -->
6
 
                                        <a class="btn" id="addCourseButton" href="#">Add Course</a>
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>
15
 
                                                        <th>Published</th>
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>
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>
30
 
                                                        <td><a href="#" class="manageCourseButton">Manage Course</a></td>
31
 
                                                </tr>
32
 
                                                <? endforeach; ?>
33
 
                                        </table>
34
 
                                </div>
35
 
                                <div id="popup"></div>
36
 
                                </div>  
37
 
                        </div><!-- end #manageCourses -->
38
 
                </div> <!-- end #wrapper -->
39
 
        </body>
40
 
</html>
41
 
        
 
 
b'\\ No newline at end of file'
 
1
<div id="manageCourses">
 
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 -->
 
 
b'\\ No newline at end of file'