~fabiocbalbuquerque/sahana-agasti/web-services

« back to all changes in this revision

Viewing changes to apps/frontend/lib/packages/agWebservicesPackage/modules/agWebservices/templates/_listStaffs.php

  • Committer: Chad Heuschober
  • Date: 2011-08-04 00:05:46 UTC
  • mto: (1.26.1 push-trunk)
  • mto: This revision was merged to the branch mainline in revision 25.
  • Revision ID: chad.heuschober@mail.cuny.edu-20110804000546-4dqh6a7xrkrwccdh
Moved around some data fixtures to put the regular fixtures into more of a production-ready state.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<h2>Staff Listing</h2>
 
2
 
2
3
<div id="tableContainer">
3
4
        <table class="singleTable" style="width: 700px;">
4
5
                <thead>
5
6
                        <tr>
6
7
                                <th>Id</th>
7
 
                                <th>Resources Type
8
 
                                        <table class="singleTable" style="width: 296px;">
9
 
                                                <thead>
10
 
                                                        <tr>
11
 
                                                <th>Resource Type</th>
12
 
                                                <th>Abbr</th>
13
 
                                                <th>Description</th>
14
 
                                                        </tr>
15
 
                                                </thead>
16
 
                                        </table>
17
 
                                </th>
18
 
                                <th>Staff Resource Status
19
 
                                        <table class="singleTable" style="width: 269px;">
20
 
                                                <thead>
21
 
                                                        <tr>
22
 
                                                <th>Resource Status</th>
23
 
                                                <th>Description</th>
24
 
                                                <th>Available</th>
25
 
                                                        </tr>
26
 
                                                </thead>
27
 
                                        </table>
28
 
                                </th>
29
 
                                <th colspan="2">Organization</th>
 
8
                                <th>Person Names</th>
 
9
                                <th>Staff Resource Type</th>
 
10
                                <th>Date of Birth</th>
 
11
                                <th>Email</th>
 
12
                                <th>Phone</th>
 
13
                                <th>Address</th>
30
14
                                <th>Created at</th>
31
15
                                <th>Updated at</th>
32
16
                        </tr>
34
18
                <tbody>
35
19
                <?php if($results): foreach ($results as $key => $staff): ?>
36
20
                        <tr>
37
 
                                <td><a href="<?php echo url_for('staff/show?id='. $staff['id'])?>"><?php echo $staff['id'] ?></a></td>
38
 
                                <td>
39
 
                                        <table class="singleTable" style="width: 296px;">
40
 
                                          <?php foreach ($staff['resources']['resource_type'] as $k => $resource): ?>
41
 
                                                <tr>
42
 
                                                <td><?php echo $resource['staff_resource_type']; ?></td>
43
 
                                                <td><?php echo $resource['staff_resource_type_abbr']; ?></td>
44
 
                                                <td><?php echo $resource['description']; ?></td>
45
 
                                                </tr>
46
 
                                                <?php endforeach; ?>
47
 
                                        </table>
48
 
                                </td>
49
 
                                
50
 
                                <td>
51
 
                                        <table class="singleTable" style="width: 269px;">
52
 
                                          <?php foreach ($staff['resources']['resource_status'] as $k => $resource): ?>
53
 
                                                <tr>
54
 
                                                <td><?php echo $resource['staff_resource_status']; ?></td>
55
 
                                                <td><?php echo $resource['description']; ?></td>
56
 
                                                <td><?php echo $resource['is_available']; ?></td>
57
 
                                                </tr>
58
 
                                        <?php endforeach; ?>
59
 
                                        </table>
60
 
                                </td>
61
 
                                <td colspan="2">
62
 
        <?php foreach ($staff['organizations'] as $k => $org): ?>
63
 
                <?php echo $org['id']; ?> - 
64
 
                <?php echo $org['organization']; ?>
65
 
        <?php endforeach;?>
66
 
                                </td>
 
21
                                <td><a href="<?php echo url_for('staff/show?id='. $staff['id'])?>"><?php echo $staff['id'] ?>
 
22
                                </a></td>
 
23
                                <td>
 
24
                                        <table>
 
25
                                                <tr>
 
26
                                                <?php foreach ($staff['person_names'] as $name): ?>
 
27
                                                        <td><?php echo $name ?></td>
 
28
                                                        <?php endforeach; ?>
 
29
                                                </tr>
 
30
                                        </table>
 
31
                                </td>
 
32
                                <td>
 
33
                                        <table class="singleTable" style="width: 200px;">
 
34
                                                <tr>
 
35
                                                <?php foreach ($staff['staff_resource_type'] as $sr): ?>
 
36
                                                        <td><?php echo $sr ?></td>
 
37
                                                        <?php endforeach; ?>
 
38
                                                </tr>
 
39
                                                <tr>
 
40
                                                <?php foreach ($staff['staff_resource_type_abbr'] as $sr): ?>
 
41
                                                        <td><?php echo $sr ?></td>
 
42
                                                        <?php endforeach; ?>
 
43
                                                </tr>
 
44
                                                <tr>
 
45
                                                <?php foreach ($staff['staff_resource_type_description'] as $sr): ?>
 
46
                                                        <td><?php echo $sr ?></td>
 
47
                                                        <?php endforeach; ?>
 
48
                                                </tr>
 
49
                                        </table>
 
50
                                </td>
 
51
                                <td><?php echo $staff['date_of_birth'] ?>
 
52
                                
 
53
                                </th>
 
54
                                <td><?php echo null ?>
 
55
                                
 
56
                                </th>
 
57
                                <td><?php echo null ?>
 
58
                                
 
59
                                </th>
 
60
                                <td><?php echo null ?>
 
61
                                
 
62
                                </th>
67
63
                                <td><?php echo $staff['created_at'] ?></td>
68
64
                                <td><?php echo $staff['updated_at'] ?></td>
69
65
                        </tr>