~fabiocbalbuquerque/sahana-agasti/web-services

« back to all changes in this revision

Viewing changes to apps/frontend/modules/scenario/templates/staffpoolSuccess.php

  • Committer: Shirley Chan
  • Date: 2011-08-02 15:03:42 UTC
  • mto: (1.26.1 push-trunk)
  • mto: This revision was merged to the branch mainline in revision 25.
  • Revision ID: shirley.chan@mail.cuny.edu-20110802150342-iid0ao3zcfr4z1yw
Removed summary count from saved searches table and added new summary count table

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
<p>The staff pool is built from a set of searches.  Creating from searches allows you to create custom
14
14
deployment of staff based on the scale of the plan and response.</p>
15
15
 
16
 
<?php if (count($saved_searches) > 0) {
17
 
?><div class="infoHolder" style="width:750px;">
 
16
<?php if (count($saved_searches) > 0): ?>
 
17
<div class="infoHolder" style="width:750px;">
18
18
  <h3>Saved Searches<a href="<?php echo url_for('@wiki') . '/doku.php?id=tooltip:staff_pool_searches&do=export_xhtmlbody' ?>" class="tooltipTrigger" title="Staff Pool Searches">?</a></h3>
19
19
      <p class="highlightedText">Searches displayed in deployment order.</p>
20
20
  <table class="blueTable">
23
23
        <th>Search Name</th>
24
24
        <th>Search Conditions</th>
25
25
      </tr>
26
 
      <tr>
27
 
        <th style="float:right;">
28
 
          <span class="highlightedText"><?php echo $total_staff ?></span> total staff in system, <span class="highlightedText"><?php echo $scenario_staff_count ?></span> Staff Members in pool
29
 
          <br />
30
 
          <?php
31
 
            echo implode(', ', $sf_data->getRaw('scenario_staff_by_resource_count'));
32
 
          ?>
33
 
        <th>
34
 
      </tr>
35
26
    </thead>
36
27
    <tbody>
37
28
    <?php foreach ($saved_searches as $saved_search): ?>
44
35
    </tbody>
45
36
  </table>
46
37
</div>
47
 
<?php } ?>
 
38
 
 
39
<div class="infoHolder" style="width:750px;">
 
40
  <h3>Saved Search Summary</h3>
 
41
  <br />
 
42
  <table class="blueTable">
 
43
    <thead>
 
44
      <tr class="head">
 
45
        <th>Staff Resource Type</th>
 
46
        <th>Count</th>
 
47
      </tr>
 
48
    </thead>
 
49
    <tbody>
 
50
      <?php foreach ($summaryCount AS $type => $count): ?>
 
51
      <tr>
 
52
        <td><?php echo ucwords(strtolower($type)); ?></td>
 
53
        <td><?php echo $count; ?></td>
 
54
      </tr>
 
55
      <?php endforeach; ?>
 
56
    </tbody>
 
57
  </table>
 
58
</div>
 
59
<?php endif; ?>
48
60
<?php
49
61
    if (!isset($search_id)) {
50
62
      $search_id = NULL;
60
72
<?php if (isset($previewStaffCountResults)): ?>
61
73
  <div id="searchresults" class="infoHolder">
62
74
  <h3>Search Preview:</h3>
 
75
  <br />
63
76
  <?php $previewStaffCountResults = $sf_data->getRaw('previewStaffCountResults'); ?>
64
77
  <?php if (empty($previewStaffCountResults)): ?>
65
 
    <br />
66
78
    <B>No match found.</B>
67
79
  <?php else: ?>
68
80
    <table class="blueTable">