~fabiocbalbuquerque/sahana-agasti/web-services

« back to all changes in this revision

Viewing changes to apps/frontend/modules/organization/templates/showSuccess.php

  • Committer: Chad Heuschober
  • Date: 2011-05-04 18:50:43 UTC
  • mfrom: (1.1.971 trunk)
  • Revision ID: chad.heuschober@mail.cuny.edu-20110504185043-k91xu7u2hbzxlblx
Merged in most recent changes from cuny-sps-trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<h2>Organization Details</h2>
2
2
 
3
 
<script type="text/javascript">
4
 
  //On scrolling of DIV tag.
5
 
 
6
 
  function OnDivScroll()
7
 
  {
8
 
    var staffList = document.getElementById("staffList");
9
 
 
10
 
    if (staffList.options.length > 10)
11
 
    {
12
 
      staffList.size=staffList.options.length;
13
 
    }
14
 
    else
15
 
    {
16
 
      staffList.size=10;
17
 
    }
18
 
  }
19
 
 
20
 
  //On focus of Selectbox
21
 
 
22
 
  function OnSelectFocus()
23
 
  {
24
 
 
25
 
    if (document.getElementById("divAssocStaff").scrollLeft != 0)
26
 
    {
27
 
      document.getElementById("divAssocStaff").scrollLeft = 0;
28
 
    }
29
 
 
30
 
    var staffList = document.getElementById('staffList');
31
 
 
32
 
    if( staffList.options.length > 10)
33
 
    {
34
 
      staffList.focus();
35
 
      staffList.size=10;
36
 
    }
37
 
  }
38
 
</script>
39
 
 
40
 
<noscript><?php echo "Please enable javascript to view list of staffs associating to the organization."; ?></noscript>
41
3
<br
42
4
  <table class="singleTable">
43
5
  <thead>
45
7
</thead>
46
8
<tbody>
47
9
  <tr>
 
10
    <th class="headLeft">Id:</th>
 
11
    <td><?php echo $ag_organization->getId() ?></td>
 
12
  </tr>
 
13
  <tr>
48
14
    <th class="headLeft">Organization:</th>
49
15
    <td><?php echo $ag_organization->getOrganization() ?></td>
50
16
  </tr>
91
57
    </table>
92
58
 
93
59
    <br>
94
 
    <!--
95
 
    <div class="infoHolder">
96
 
      <h3>Associated Staff Information</h3>
97
 
      <ul class="neatlist">
98
 
        <li>
99
 
    -->
100
 
    <h3>Associated Staff Information</h3>
101
 
 
102
 
    <div id="divAssocStaff" onscroll="OnDivScroll();">
103
 
      <SELECT id='staffList' size="10" multiple onfocus="OnSelectFocus();">
104
 
 
105
 
        <!--
106
 
               <select id="staffList" name="staffList" size="10" multiple="multiple">
107
 
        -->
108
 
 
109
 
<?php $staffResourceList = $sf_data->getRaw('staffResourceList'); ?>
110
 
<?php if (empty($staffResourceList)): ?>
111
 
  <option value="none">none</option>
112
 
<?php else: ?>
113
 
  <?php foreach ($staffResourceList as $staffResourceOrgId => $staffString): ?>
114
 
     <option value="<?php echo $staffResourceOrgId ?>"><?php echo $staffString; ?></option>
115
 
  <?php endforeach ?>
116
 
<?php endif ?>
117
 
 
118
 
    </SELECT>
119
 
  </div>
120
 
  <!--
121
 
      </li>
122
 
    </ul>
123
 
  </div>
124
 
  -->
125
60
 
126
61
  <a href="<?php echo url_for('organization/edit?id=' . $ag_organization->getId()) ?>" class="linkButton" >Edit</a>
127
62
  &nbsp;