bzr branch
http://gegoxaren.bato24.eu/bzr/lenasys/trunk
|
57.3.2
by Simon Bergöö
added some files for the popups |
1 |
<?php
|
2 |
Class Popups extends CI_Model { |
|
3 |
function __construct() { |
|
4 |
parent::__construct(); |
|
5 |
||
6 |
//Load required libraries and drivers
|
|
7 |
$this->load->database(); |
|
8 |
$this->load->library('session'); |
|
9 |
}
|
|
10 |
||
11 |
public function changeActiveCourse($courseName, $courseCode){ |
|
12 |
$output = |
|
13 |
'div id="changeActiveCourse">
|
|
14 |
<h2 class="loginTitle">Change Active Course</h2>
|
|
15 |
<div id="middleLayerPopups">
|
|
16 |
<p>Do you wish to set' . $courseName . ' - ' . $courseCode . ' as your current directory?</p> |
|
17 |
</div>
|
|
|
57.3.3
by Simon Bergöö
Finished the popupmodel. |
18 |
<input type="button" class="popupButtons btn" value="Confirm">
|
19 |
<input type="button" onClick="changeActiveCourseButtonHide()" class="popupButtons btn" value="Cancel">
|
|
|
57.3.2
by Simon Bergöö
added some files for the popups |
20 |
</div>'; |
21 |
return $output; |
|
22 |
}
|
|
23 |
public function confirmRemoval(){ |
|
|
57.3.3
by Simon Bergöö
Finished the popupmodel. |
24 |
$output = ' |
25 |
<div id="subjectConfirmRemove">
|
|
26 |
<h2 class="loginTitle">Confirm Removal</h2>
|
|
27 |
<div id="middleLayerPopups">
|
|
28 |
<p>By pressing remove the object and all of its contents will be permanently removed</p>
|
|
29 |
</div>
|
|
30 |
<input type="button" class="popupButtons btn" value="Remove">
|
|
31 |
<input type="button" onClick="subjectConfirmButtonHide()" class="popupButtons btn" value="Cancel">
|
|
32 |
</div>'; |
|
33 |
return $output; |
|
|
57.3.2
by Simon Bergöö
added some files for the popups |
34 |
}
|
35 |
||
36 |
public function addCategory(){ |
|
|
57.3.3
by Simon Bergöö
Finished the popupmodel. |
37 |
$output = ' |
38 |
<div id="addCategory">
|
|
39 |
<h2 class="loginTitle">Add Category</h2>
|
|
40 |
<div id="middleLayerPopups">
|
|
41 |
<p>Enter Category Name</p>
|
|
42 |
<input class="text" type="text" size="20" id="categoryName" name="categoryName" placeholder="Category Name"/><br>
|
|
43 |
<input type="button" class="popupButtons btn" value="Remove">
|
|
44 |
<input type="button" onClick="addCategoryButtonHide()" class="popupButtons btn" value="Cancel">
|
|
45 |
</div>
|
|
46 |
</div>'; |
|
47 |
return $output; |
|
|
57.3.2
by Simon Bergöö
added some files for the popups |
48 |
}
|
49 |
||
50 |
public function addStudents(){ |
|
|
57.3.3
by Simon Bergöö
Finished the popupmodel. |
51 |
$output = ' |
52 |
<div id="addStudents" hidden="hidden">
|
|
53 |
<h2 class="loginTitle">Add Course</h2>
|
|
54 |
<div id="middleLayerPopupsSizeThree">
|
|
55 |
<div class="tableRow">
|
|
56 |
<p>Format for ladok text file</p>
|
|
57 |
<form method="post" action=""><textarea name="comments" cols="52" rows="8"></textarea><br>
|
|
58 |
</div>
|
|
59 |
</div>
|
|
60 |
<div>
|
|
61 |
<input type="button" class="popupButtons btn" value="Confirm">
|
|
62 |
<input type="button" onClick="addStudentsButtonHide()" class="popupButtons btn" value="Cancel">
|
|
63 |
</form>
|
|
64 |
</div>
|
|
65 |
</div>'; |
|
66 |
return $output; |
|
|
57.3.2
by Simon Bergöö
added some files for the popups |
67 |
|
68 |
}
|
|
69 |
public function editCourseDetails(){ |
|
|
57.3.3
by Simon Bergöö
Finished the popupmodel. |
70 |
$output = ' |
71 |
<div id="editCourseDetails" hidden="hidden">
|
|
72 |
<h2 class="loginTitle">Edit Course Details</h2>
|
|
73 |
<div id="middleLayerPopupsSizeTwo">
|
|
74 |
<div class="tableRow">
|
|
75 |
<p class="tableCell">Course Name:</p> <input class="text" type="text" size="10" id="categoryName" name="categoryName" placeholder="Webbprogrammering"/>
|
|
76 |
</div>
|
|
77 |
<div class="tableRow">
|
|
78 |
<p class="tableCell">Course Code:</p> <input class="text" type="text" size="10" id="categoryName" name="categoryName" placeholder="DA330G"/>
|
|
79 |
</div>
|
|
80 |
<div class="tableRow">
|
|
81 |
<p class="tableCell">Course Description:</p> <input class="text" type="text" size="10" id="categoryName" name="categoryName" placeholder="Css/html"/>
|
|
82 |
</div>
|
|
83 |
||
84 |
</div>
|
|
85 |
<div>
|
|
86 |
<input type="button" class="popupButtons btn" value="Confirm">
|
|
87 |
<input type="button" onClick="editCourseDetailsButtonHide()" class="popupButtons btn" value="Cancel">
|
|
88 |
</div>
|
|
89 |
</div>'; |
|
90 |
return $output; |
|
|
57.3.2
by Simon Bergöö
added some files for the popups |
91 |
}
|
92 |
||
93 |
public function addCourse(){ |
|
|
57.3.3
by Simon Bergöö
Finished the popupmodel. |
94 |
$output = ' |
95 |
<div id="addCourse" hidden="hidden">
|
|
96 |
<h2 class="loginTitle">Add Course</h2>
|
|
97 |
<div id="middleLayerPopupsSizeTwo">
|
|
98 |
<div class="tableRow">
|
|
99 |
<p class="tableCell">Course Name:</p> <input class="text" type="text" size="10" id="categoryName" name="categoryName" placeholder="Webbprogrammering"/>
|
|
100 |
</div>
|
|
101 |
<div class="tableRow">
|
|
102 |
<p class="tableCell">Course Code:</p> <input class="text" type="text" size="10" id="categoryName" name="categoryName" placeholder="DA330G"/>
|
|
103 |
</div>
|
|
104 |
||
105 |
<div class="tableRow">
|
|
106 |
<p class="tableCell">Course Description:</p> <input class="text" type="text" size="10" id="categoryName" name="categoryName" placeholder="Css/html"/>
|
|
107 |
</div>
|
|
108 |
||
109 |
</div>
|
|
110 |
<div>
|
|
111 |
<input type="button" class="popupButtons btn" value="Confirm">
|
|
112 |
<input type="button" onClick="addCourseButtonHide()" class="popupButtons btn" value="Cancel">
|
|
113 |
</div>
|
|
114 |
</div>'; |
|
115 |
return $output; |
|
|
57.3.2
by Simon Bergöö
added some files for the popups |
116 |
}
|
117 |
||
118 |
public function addNewInstructor(){ |
|
|
57.3.3
by Simon Bergöö
Finished the popupmodel. |
119 |
$output = ' |
120 |
<div id="addNewInstructor" hidden="hidden">
|
|
121 |
<h2 class="loginTitle">Add New Instructor</h2>
|
|
122 |
<div id="middleLayerPopups">
|
|
123 |
<div class="tableRow">
|
|
124 |
<p class="tableCell">Email</p> <input class="text" type="text" size="10" id="categoryName" name="categoryName" placeholder="grilldalf95@his.se"/>
|
|
125 |
</div>
|
|
126 |
</div>
|
|
127 |
<div>
|
|
128 |
<input type="button" class="popupButtons btn" value="Confirm">
|
|
129 |
<input type="button" onClick="addNewInstructorButtonHide()" class="popupButtons btn" value="Cancel">
|
|
130 |
</div>
|
|
131 |
</div>'; |
|
132 |
return $output; |
|
|
57.3.2
by Simon Bergöö
added some files for the popups |
133 |
}
|
134 |
||
135 |
||
136 |
}
|