/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: elof.bigestans at gmail
  • Date: 2013-05-24 09:37:27 UTC
  • mto: This revision was merged to the branch mainline in revision 94.
  • Revision ID: elof.bigestans@gmail.com-20130524093727-i8t7zm9u4g3got57
* Updated ManageCourses, including JS+Jquery, popups, controller.
* Updated ajax.php, mainly function popup(). Also added some helpers related to ManageCourses

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
                                <div id="manageCoursesMenu">
4
4
                                        <h1 class="viewTitle">Manage Courses</h1>
5
5
                                         <!-- Only displayed when teacher -->
6
 
                                        <a class="btn" id="addCourseButton" href="#">Add course</a>
 
6
                                        <a class="btn" id="addCourseButton" href="#">Add Course</a>
7
7
                                </div>
8
8
 
9
9
                                <div id="bodyContainer">
12
12
                                                        <th>Course Name</th>
13
13
                                                        <th>Course Code</th>
14
14
                                                        <th>Description</th>
 
15
                                                        <th>Published</th>
15
16
                                                        <th>Edit Course Details</th>
16
17
                                                </tr>
17
18
                                                <? foreach($courses as $item): ?>
19
20
                                                        <td class="courseName"><?= $item->name; ?></td>
20
21
                                                        <td class="courseID"><?= $item->courseID; ?></td>
21
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>
22
30
                                                        <td><a href="#" class="manageCourseButton">Manage Course</a></td>
23
 
                                                        <td><pre><?=var_dump($item);?></pre></td>
24
31
                                                </tr>
25
32
                                                <? endforeach; ?>
26
33
                                        </table>
27
34
                                </div>
 
35
                                <div id="popup"></div>
 
36
                                <? /*
28
37
                                <div id="addCourse" class="manageCoursePopup">
29
38
                                        <h2 class="popupHeader">Add Course</h2>
30
39
                                        <?= form_open(base_url().'ManageCourses/addCourse'); ?>
71
80
                                                        <button class="popupButtons btn" type="submit">Confirm</button>
72
81
                                                        <button class="cancelButton popupButtons btn">Cancel</button>
73
82
                                                </div>
74
 
                                        <?= form_close(); ?>
 
83
                                        <?= form_close(); ?> */?>
75
84
                                </div>  
76
85
                        </div><!-- end #manageCourses -->
77
86
                </div> <!-- end #wrapper -->