/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/viewStudentsBody.php

  • Committer: a11andoh
  • Date: 2013-05-28 09:50:28 UTC
  • mfrom: (109 lenasys_b)
  • mto: This revision was merged to the branch mainline in revision 115.
  • Revision ID: a11andoh@student.his.se-20130528095028-f2pybnwvms6yygsv
blurp

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 

2
 
<!-- examplesBody.php -->
3
 
        <div id="exampleBodyMenu">
4
 
                <h1 class="temph1">Students</h1>
5
 
                 <!-- Only displayed when teacher -->
6
 
                <a class="btn cp">Add student</a>
7
 
                
8
 
        </div>
9
 
 
10
 
        <div id="bodyContainer">
11
 
 
12
 
                <!-- Loops down below makes it possible to load values from a source -->
13
 
                <?php
14
 
                foreach ($students as $key => $value){
15
 
                        echo '<div id="'.$value.'" class="banner row">
16
 
                                        <h1 class="categoryName" name="'.$value.'">'.$value.'</h1>';            
17
 
                        echo '</div>';
18
 
                }
19
 
                ?>
20
 
        </div>
21
 
 
22
 
        </div>
23
 
</body>
24
 
</html>
 
1
<div id="viewStudents">
 
2
        <div id="viewStudentsHeader">
 
3
                <h1>Student View</h1>
 
4
                <a href="#" id="addStudentButton">Add Student</a>
 
5
        </div>
 
6
        <div id="viewStudentsContent">
 
7
                <table>
 
8
                        <tr>
 
9
                                <th>Username</th>
 
10
                                <th>Name</th>
 
11
                                <th>E-mail</th>
 
12
                                <th>Edit details</th>
 
13
                        </tr>
 
14
                        <? foreach($students as $s): ?>
 
15
                        <tr>
 
16
                                <td><?= $s->userName; ?></td>
 
17
                                <td><?= $s->name; ?></td>
 
18
                                <td><?= $s->email; ?></td>
 
19
                                <td><a href="#" class="editStudentDetailsButton">Edit</a></td>
 
20
                        </tr>
 
21
                        <? endforeach; ?>
 
22
                </table>
 
23
        </div>
 
24
</div>
 
25
<div id="popup"></div>
 
 
b'\\ No newline at end of file'