source: indico/indico/MaKaC/webinterface/tpls/RoomBookingRoomStats.tpl @ 8ba8a2

burotelhello-world-walkthroughipv6v0.98-seriesv0.98.2v0.98.3v0.98b1v0.98b2v0.99v1.0v1.1
Last change on this file since 8ba8a2 was a92d2a, checked in by Jose Benito <jose.benito.gonzalez@…>, 2 years ago

[FIX] Converted remaining %% symbols in templates

fixes 686

  • Property mode set to 100644
File size: 7.4 KB
Line 
1    <table cellpadding="0" cellspacing="0" border="0" width="80%">
2                <% if standalone: %>
3                    <tr>
4                    <td class="intermediateleftvtab" style="border-left: 2px solid #777777; border-right: 2px solid #777777; font-size: xx-small;" width="100%">&nbsp;</td> <!-- lastvtabtitle -->
5                    </tr>
6                <% end %>
7        <tr>
8            <td class="bottomvtab" width="100%">
9                <table width="100%" cellpadding="0" cellspacing="0" class="htab" border="0">
10                    <tr>
11                        <td class="maincell">
12                            <span class="formTitle" style="border-bottom-width: 0px">Room</span><br />
13                            <br />
14                            <table width="96%" align="left" border="0">
15                              <!-- LOCATION -->
16                              <tr>
17                                <td width="24%" class="titleUpCellTD"><span class="titleCellFormat">Location</span></td>
18                                <td width="76%">
19                                    <table width="100%">
20                                        <tr>
21                                            <td class="subFieldWidth" align="right" valign="top"><small>Location&nbsp;&nbsp;</small></td>
22                                            <td align="left" class="blacktext"><%= room.locationName %></td>
23                                        </tr>
24                                        <tr>
25                                            <td class="subFieldWidth" align="right" valign="top"><small>Name&nbsp;&nbsp;</small></td>
26                                            <td align="left" class="blacktext"><%= room.name %></td>
27                                        </tr>
28                                        <tr>
29                                            <td align="right" valign="top"><small>Site&nbsp;&nbsp;</small></td>
30                                            <td align="left" class="blacktext"><%= room.site %></td>
31                                        </tr>
32                                        <tr>
33                                            <td align="right" valign="top"><small>Building&nbsp;&nbsp;</small></td>
34                                            <td align="left" class="blacktext"><a href="http://building.web.cern.ch/map/building?bno=<%= room.building %>" title="Show on map"><%= room.building %></a></td>
35                                        </tr>
36                                        <tr>
37                                            <td align="right" valign="top"><small>Floor&nbsp;&nbsp;</small></td>
38                                            <td align="left" class="blacktext"><%= room.floor %></td>
39                                        </tr>
40                                        <tr>
41                                            <td align="right" valign="top"><small>Room&nbsp;&nbsp;</small></td>
42                                            <td align="left" class="blacktext"><%= room.roomNr %></td>
43                                        </tr>
44                                 </table>
45                                </td>
46                                <td width="20%" align="right" class="thumbnail">
47                                <% if room.photoId != None: %>
48                                    <a href="<%= room.getPhotoURL() %>" rel="lightbox" title="<%= room.photoId %>">
49                                        <img border="1px" height="100" src="<%= room.getPhotoURL() %>" alt="<%= str( room.photoId ) %>"/>
50                                    </a>
51                                <% end %>
52                                </td>
53                              </tr>
54                              <tr><td>&nbsp;</td></tr>
55                              <tr>
56                                <td width="24%" class="titleUpCellTD"><span class="titleCellFormat">Stats</span></td>
57                                <td width="76%">
58<!-- ============== Key Performance Indicators ================= -->
59<!-- =========================================================== -->
60    <a name="kpi"></a>
61    <table width="80%" align="center" border="0" style="border-left: 1px solid #777777">
62    <tr>
63      <td colspan="5" class="groupTitle">Key Performance Indicators</td>
64    </tr>
65        <tr>
66          <td class="titleUpCellTD" style="width: 100px;"><span class="titleCellFormat">Average occupation</span></td>
67          <td bgcolor="white" valign="top" class="blacktext" style="padding-left: 12px;">
68            <table>
69            <tr>
70          <form action=<%= statsURL %>>
71          <input type="hidden" name="roomLocation" value=<%= room.locationName %>>
72          <input type="hidden" name="roomID" value=<%= room.id %>>
73          <td bgcolor="white" valign="top" style="padding-left: 12px;">
74            <select name="period" onChange="this.form.submit();">
75            <% if period=="pastmonth": %>
76              <option value="pastmonth" selected> past 30 days
77              <option value="thisyear"> from beginning of this year
78            <% end %>
79            <% if period=="thisyear": %>
80              <option value="pastmonth"> past 30 days
81              <option value="thisyear" selected> from beginning of this year
82            <% end %>
83            </select>
84          </td>
85          </form>
86            </tr>
87            <tr>
88                <td><span style="background-color: #C9FFC9; font-weight: bold;"><%= kpiAverageOccupation %></span> <% inlineContextHelp( 'Average room occupation over the selected period during working hours (8H30-17H30, Monday-Friday including holidays).' ) %></td>
89            </tr>
90            </table>
91          </td>
92        </tr>
93        <tr><td>&nbsp;</td></tr>
94        <tr>
95          <td class="titleUpCellTD" style="width: 100px;"><span class="titleCellFormat">Bookings</span></td>
96          <td bgcolor="white" valign="top" class="blacktext" style="padding-left: 12px;">
97            <table>
98            <tr>
99                <td>Total:</td>
100                <td><%=kbiTotalBookings%> <% inlineContextHelp( 'Total number of bookings including archival, cancelled and rejected.' ) %></td>
101            </tr>
102            </table>
103            <br />
104            <table>
105                <tr>
106                    <td style="width: 70px;"></td>
107                    <td style="width: 70px;">Valid</td>
108                    <td style="width: 70px;">Cancelled</td>
109                    <td style="width: 70px;">Rejected</td>
110                </tr>
111                <tr>
112                    <td>Live</td>
113                    <td><span style="background-color: #C9FFC9; font-weight: bold;"><%= stats['liveValid'] %></span></td>
114                    <td><%= stats['liveCancelled'] %></td>
115                    <td><%= stats['liveRejected'] %></td>
116                </tr>
117                <tr>
118                    <td>Archival</td>
119                    <td><%= stats['archivalValid'] %></td>
120                    <td><%= stats['archivalCancelled'] %></td>
121                    <td><%= stats['archivalRejected'] %></td>
122                </tr>
123                <tr>
124                    <td>Total</td>
125                    <td><%= stats['liveValid'] + stats['archivalValid'] %></td>
126                    <td><%= stats['liveCancelled'] + stats['archivalCancelled'] %></td>
127                    <td><%= stats['liveRejected'] + stats['archivalRejected'] %></td>
128                </tr>
129            </table>
130          </td>
131        </tr>
132   </table>
133                  </td>
134                </tr>
135              </table>
136            </td>
137          </tr>
138        </table>
139      </td>
140    </tr>
141  </table>
Note: See TracBrowser for help on using the repository browser.