~fabiocbalbuquerque/sahana-agasti/web-services

« back to all changes in this revision

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

  • Committer: Chad Heuschober
  • Date: 2011-06-06 13:37:45 UTC
  • mfrom: (1.1.1244 trunk)
  • mto: This revision was merged to the branch mainline in revision 17.
  • Revision ID: chad.heuschober@mail.cuny.edu-20110606133745-850mdvnjtv392zta
Pulled in most recent batch of changes from the cuny sps trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
  $sf_response->setCookie('wizardOp', $encodedWizard);
6
6
 
7
7
  ?>
8
 
<h2>Scenario Shifts for <?php echo $scenarioName ?></h2>
 
8
<h2>Scenario Shifts for <span class="highlightedText"><?php echo $scenarioName ?></span></h2>
9
9
  <?php include_partial('wizard', array('wizardDiv' => $wizardDiv)); ?>
10
10
 
11
11
<?php #include_partial('scenarioshiftform', array('scenarioshiftform' => $scenarioshiftform, 'myRandomParam' => $myRandomParam, 'outputResults' => $outputResults)) ?>
13
13
  //Defines the columns of the scenario shift display list page.
14
14
  $columns = array(
15
15
    'id' => array('title' => 'ID', 'sortable' => false),
16
 
    'ScenarioFacilityResource' => array('title' => 'Facility Resource /<br/>Staff Resource Type', 'sortable' => false),
 
16
    'ScenarioFacilityResource' => array('title' => 'Staff Resource Type /<br/>Facility Resource ', 'sortable' => false),
17
17
    'taskId' =>  array('title' => 'Status / Task', 'sortable' => false),
18
18
    'minimumStaff' =>  array('title' => 'Min / Max<br/>Staff', 'sortable' => false),
19
19
    'taskLengthMinutes' =>  array('title' => 'Task / Break<br/>Length', 'sortable' => false),
30
30
  $descArrow = '&#x25BC;';
31
31
 
32
32
?>
33
 
<p>Needed Shifts to be filled for this scenario are listed below.</p>
 
33
 
 
34
<p>A total of <span class="highlightedText">
 
35
          <?php echo $shifts ?></span> shifts have been generated covering
 
36
          <span class="highlightedText"><?php echo $operationTime ?></span> of operation.  Click the id below to customize individual shifts.</p>
 
37
 
34
38
<table class="staffTable">
35
39
  <thead>
36
40
    <tr class="head">
47
51
    <?php $recordRowNumber = $pager->getFirstIndice(); ?>
48
52
    <?php foreach ($pager->getResults() as $ag_scenario_shift): ?>
49
53
    <tr>
50
 
      <td><a class=linkButton href="<?php echo url_for('scenario/shifts?id=' . $scenario_id) . '/' . $ag_scenario_shift->getId() ?>" title="View Scenario Shift <?php echo $ag_scenario_shift->getId() ?>"><?php echo $recordRowNumber++; ?></a></td>
51
 
      <td><?php
 
54
      <td><a class=continueButton href="<?php echo url_for('scenario/shifts?id=' . $scenario_id) . '/' . $ag_scenario_shift->getId() ?>" title="View Scenario Shift <?php echo $ag_scenario_shift->getId() ?>"><?php echo $recordRowNumber++; ?></a></td>
 
55
      <td class="left"><?php
52
56
//            $facilityResourceId = $scenarioShifts[$ag_scenario_shift->getId()]['facility_resource_id'];
53
57
//#            $facilityResourceDisplay = $facilityResourceInfo[$facilityResourceId]['facility_name'] . ' (' . $facilityResourceInfo[$facilityResourceId]['facility_code'] . ') : ' . $facilityResourceInfo[$facilityResourceId]['facility_resource_type'];
54
58
//            $facilityResourceDisplay = $facilityResourceInfo[$facilityResourceId]['facility_name'] .  ' : ' . $facilityResourceInfo[$facilityResourceId]['facility_resource_type'];
55
59
//            echo $facilityResourceDisplay;
56
 
        echo $ag_scenario_shift->getAgScenarioFacilityResource(); ?><br/><?php
57
 
        echo $ag_scenario_shift->agStaffResourceType['staff_resource_type']; ?></td>
58
 
      <td><?php echo $ag_scenario_shift->agShiftStatus['shift_status']; ?><br/><?php
59
 
        echo $ag_scenario_shift->agTask['task']; ?></td>
 
60
        echo $ag_scenario_shift->agStaffResourceType['staff_resource_type'] . ' / '. '<br/>'
 
61
        . $ag_scenario_shift->getAgScenarioFacilityResource(); ?></td>
 
62
      <td><?php echo $ag_scenario_shift->agShiftStatus['shift_status'] . ' / '. '<br/>'
 
63
        . $ag_scenario_shift->agTask['task']; ?></td>
60
64
      <td><?php echo $ag_scenario_shift['minimum_staff']; ?> / <?php
61
65
        echo $ag_scenario_shift['maximum_staff']; ?></td>
62
66
      <td><?php
71
75
 
72
76
<br>
73
77
<div>
74
 
  <a href="<?php echo url_for('scenario/shifts?id=' .$scenario_id) .'/new'?>" class="linkButton" title="Create New Scenario Shift">Create New Scenario Shift</a>
75
 
  <a href="<?php echo url_for('scenario/review?id=' .$scenario_id ) ?>" class="linkButton" title="Finish Wizard">Finish Wizard and Review Scenario</a>
 
78
  <a href="<?php echo url_for('scenario/shifts?id=' .$scenario_id) .'/new'?>" class="continueButton" title="Create New Scenario Shift">Create New Scenario Shift</a>
 
79
  <a href="<?php echo url_for('scenario/review?id=' .$scenario_id ) ?>" class="continueButton" title="Finish Wizard">Finish Wizard and Review Scenario</a>
76
80
 
77
81
</div>
78
82