| 1 | <script type="text/javascript"> |
|---|
| 2 | <!-- |
|---|
| 3 | |
|---|
| 4 | var newAbstract = false; |
|---|
| 5 | |
|---|
| 6 | function selectAllTracks() |
|---|
| 7 | { |
|---|
| 8 | document.filterOptionForm.trackShowNoValue.checked=true |
|---|
| 9 | if (!document.filterOptionForm.track.length) |
|---|
| 10 | { |
|---|
| 11 | document.filterOptionForm.track.checked=true |
|---|
| 12 | }else{ |
|---|
| 13 | for (i = 0; i < document.filterOptionForm.track.length; i++) |
|---|
| 14 | { |
|---|
| 15 | document.filterOptionForm.track[i].checked=true |
|---|
| 16 | } |
|---|
| 17 | } |
|---|
| 18 | } |
|---|
| 19 | |
|---|
| 20 | function unselectAllTracks() |
|---|
| 21 | { |
|---|
| 22 | document.filterOptionForm.trackShowNoValue.checked=false |
|---|
| 23 | if (!document.filterOptionForm.track.length) |
|---|
| 24 | { |
|---|
| 25 | document.filterOptionForm.track.checked=false |
|---|
| 26 | }else{ |
|---|
| 27 | for (i = 0; i < document.filterOptionForm.track.length; i++) |
|---|
| 28 | { |
|---|
| 29 | document.filterOptionForm.track[i].checked=false |
|---|
| 30 | } |
|---|
| 31 | } |
|---|
| 32 | } |
|---|
| 33 | |
|---|
| 34 | function selectAllTypes() |
|---|
| 35 | { |
|---|
| 36 | document.filterOptionForm.typeShowNoValue.checked=true |
|---|
| 37 | if (!document.filterOptionForm.type.length) |
|---|
| 38 | { |
|---|
| 39 | document.filterOptionForm.type.checked=true |
|---|
| 40 | }else{ |
|---|
| 41 | for (i = 0; i < document.filterOptionForm.type.length; i++) |
|---|
| 42 | { |
|---|
| 43 | document.filterOptionForm.type[i].checked=true |
|---|
| 44 | } |
|---|
| 45 | } |
|---|
| 46 | } |
|---|
| 47 | |
|---|
| 48 | function unselectAllTypes() |
|---|
| 49 | { |
|---|
| 50 | document.filterOptionForm.typeShowNoValue.checked=false |
|---|
| 51 | if (!document.filterOptionForm.type.length) |
|---|
| 52 | { |
|---|
| 53 | document.filterOptionForm.type.checked=false |
|---|
| 54 | }else{ |
|---|
| 55 | for (i = 0; i < document.filterOptionForm.type.length; i++) |
|---|
| 56 | { |
|---|
| 57 | document.filterOptionForm.type[i].checked=false |
|---|
| 58 | } |
|---|
| 59 | } |
|---|
| 60 | } |
|---|
| 61 | |
|---|
| 62 | function selectAllStatus() |
|---|
| 63 | { |
|---|
| 64 | for (i = 0; i < document.filterOptionForm.status.length; i++) |
|---|
| 65 | { |
|---|
| 66 | document.filterOptionForm.status[i].checked=true |
|---|
| 67 | } |
|---|
| 68 | } |
|---|
| 69 | |
|---|
| 70 | function unselectAllStatus() |
|---|
| 71 | { |
|---|
| 72 | for (i = 0; i < document.filterOptionForm.status.length; i++) |
|---|
| 73 | { |
|---|
| 74 | document.filterOptionForm.status[i].checked=false |
|---|
| 75 | } |
|---|
| 76 | } |
|---|
| 77 | |
|---|
| 78 | function selectAllAccTracks() |
|---|
| 79 | { |
|---|
| 80 | document.filterOptionForm.accTrackShowNoValue.checked=true |
|---|
| 81 | if (!document.filterOptionForm.acc_track.length) |
|---|
| 82 | { |
|---|
| 83 | document.filterOptionForm.acc_track.checked=true |
|---|
| 84 | }else{ |
|---|
| 85 | for (i = 0; i < document.filterOptionForm.acc_track.length; i++) |
|---|
| 86 | { |
|---|
| 87 | document.filterOptionForm.acc_track[i].checked=true |
|---|
| 88 | } |
|---|
| 89 | } |
|---|
| 90 | } |
|---|
| 91 | |
|---|
| 92 | function unselectAllAccTracks() |
|---|
| 93 | { |
|---|
| 94 | document.filterOptionForm.accTrackShowNoValue.checked=false |
|---|
| 95 | if (!document.filterOptionForm.acc_track.length) |
|---|
| 96 | { |
|---|
| 97 | document.filterOptionForm.acc_track.checked=false |
|---|
| 98 | }else{ |
|---|
| 99 | for (i = 0; i < document.filterOptionForm.acc_track.length; i++) |
|---|
| 100 | { |
|---|
| 101 | document.filterOptionForm.acc_track[i].checked=false |
|---|
| 102 | } |
|---|
| 103 | } |
|---|
| 104 | } |
|---|
| 105 | |
|---|
| 106 | function selectAllAccTypes() |
|---|
| 107 | { |
|---|
| 108 | document.filterOptionForm.accTypeShowNoValue.checked=true |
|---|
| 109 | if (!document.filterOptionForm.acc_type.length) |
|---|
| 110 | { |
|---|
| 111 | document.filterOptionForm.acc_type.checked=true |
|---|
| 112 | }else{ |
|---|
| 113 | for (i = 0; i < document.filterOptionForm.acc_type.length; i++) |
|---|
| 114 | { |
|---|
| 115 | document.filterOptionForm.acc_type[i].checked=true |
|---|
| 116 | } |
|---|
| 117 | } |
|---|
| 118 | } |
|---|
| 119 | |
|---|
| 120 | function unselectAllAccTypes() |
|---|
| 121 | { |
|---|
| 122 | document.filterOptionForm.accTypeShowNoValue.checked=false |
|---|
| 123 | if (!document.filterOptionForm.acc_type.length) |
|---|
| 124 | { |
|---|
| 125 | document.filterOptionForm.acc_type.checked=false |
|---|
| 126 | }else{ |
|---|
| 127 | for (i = 0; i < document.filterOptionForm.acc_type.length; i++) |
|---|
| 128 | { |
|---|
| 129 | document.filterOptionForm.acc_type[i].checked=false |
|---|
| 130 | } |
|---|
| 131 | } |
|---|
| 132 | } |
|---|
| 133 | |
|---|
| 134 | function selectAllFields() |
|---|
| 135 | { |
|---|
| 136 | |
|---|
| 137 | document.filterOptionForm.showID.checked=true |
|---|
| 138 | document.filterOptionForm.showPrimaryAuthor.checked=true |
|---|
| 139 | document.filterOptionForm.showTracks.checked=true |
|---|
| 140 | document.filterOptionForm.showType.checked=true |
|---|
| 141 | document.filterOptionForm.showStatus.checked=true |
|---|
| 142 | document.filterOptionForm.showAccTrack.checked=true |
|---|
| 143 | document.filterOptionForm.showAccType.checked=true |
|---|
| 144 | document.filterOptionForm.showSubmissionDate.checked=true |
|---|
| 145 | } |
|---|
| 146 | |
|---|
| 147 | function unselectAllFields() |
|---|
| 148 | { |
|---|
| 149 | document.filterOptionForm.showID.checked=false |
|---|
| 150 | document.filterOptionForm.showPrimaryAuthor.checked=false |
|---|
| 151 | document.filterOptionForm.showTracks.checked=false |
|---|
| 152 | document.filterOptionForm.showType.checked=false |
|---|
| 153 | document.filterOptionForm.showStatus.checked=false |
|---|
| 154 | document.filterOptionForm.showAccTrack.checked=false |
|---|
| 155 | document.filterOptionForm.showAccType.checked=false |
|---|
| 156 | document.filterOptionForm.showSubmissionDate.checked=false |
|---|
| 157 | } |
|---|
| 158 | //--> |
|---|
| 159 | </script> |
|---|
| 160 | <a href="" name="results"></a> |
|---|
| 161 | <table width="100%%" valign="top" align="left" cellspacing="0"> |
|---|
| 162 | <tr> |
|---|
| 163 | <td class="titleCellFormat" nowrap colspan="10"> |
|---|
| 164 | <form action=%(accessAbstract)s method="post"> |
|---|
| 165 | <%= _("Quick search: Abstract ID")%> <input type="text" name="abstractId" size="4"><input type="submit" class="btn" value="<%= _("seek it")%>"><br> |
|---|
| 166 | </form> |
|---|
| 167 | </td> |
|---|
| 168 | </tr> |
|---|
| 169 | <tr> |
|---|
| 170 | <td nowrap colspan="10"> |
|---|
| 171 | <div class="CRLgroupTitleNoBorder"><%= _("Displaying")%><strong> %(filteredNumberAbstracts)s </strong> |
|---|
| 172 | <% if filteredNumberAbstracts == "1": %> |
|---|
| 173 | <%= _("abstract")%> |
|---|
| 174 | <% end %> |
|---|
| 175 | <% else: %> |
|---|
| 176 | <%= _("abstracts")%> |
|---|
| 177 | <% end %> |
|---|
| 178 | <% if filterUsed: %> |
|---|
| 179 | (<%= _("Total")%>: <strong>%(totalNumberAbstracts)s</strong>) |
|---|
| 180 | <% end %> |
|---|
| 181 | </div> |
|---|
| 182 | <form action=%(filterPostURL)s method="post" name="optionForm"> |
|---|
| 183 | <div class="CRLIndexList" > |
|---|
| 184 | <% if filterUsed: %> |
|---|
| 185 | <input type="submit" class="btnRemove" name="resetFilters" value="Reset filters"> |
|---|
| 186 | <span style="padding: 0px 6px 0px 6px">|</span> |
|---|
| 187 | <% end %> |
|---|
| 188 | <a id="index_filter" onclick="showFilters()" class="CAIndexUnselected" font-size="16" font-weight="bold" font-family="Verdana"> |
|---|
| 189 | <% if filterUsed: %> |
|---|
| 190 | <%= _("Show filters")%> |
|---|
| 191 | <% end %> |
|---|
| 192 | <% else: %> |
|---|
| 193 | <%= _("Apply filters")%> |
|---|
| 194 | <% end %> |
|---|
| 195 | </a> |
|---|
| 196 | </div> |
|---|
| 197 | </form> |
|---|
| 198 | </td> |
|---|
| 199 | </tr> |
|---|
| 200 | <tr> |
|---|
| 201 | <td colspan="10" align="left" width="100%%"> |
|---|
| 202 | <form action=%(filterPostURL)s method="post" name="filterOptionForm"> |
|---|
| 203 | <input type="hidden" name="operationType" value="filter" /> |
|---|
| 204 | %(filterMenu)s |
|---|
| 205 | %(sortingOptions)s |
|---|
| 206 | </form> |
|---|
| 207 | </td> |
|---|
| 208 | </tr> |
|---|
| 209 | <tr> |
|---|
| 210 | <td colspan="10" style="border-bottom:2px solid #777777;padding-top:5px" valign="bottom" align="left"> |
|---|
| 211 | <table> |
|---|
| 212 | <form action=%(abstractSelectionAction)s method="post" name="abstractsForm" onSubmit="return atLeastOneSelected()"> |
|---|
| 213 | <tr> |
|---|
| 214 | <td valign="bottom" align="left" class="eventModifButtonBar"><input type="submit" class="btn" name="newAbstract" onclick="newAbstract = true;" value="<%= _("Add New")%>"></td> |
|---|
| 215 | <td valign="bottom" align="left"><input type="submit" class="btn" name="acceptMultiple" value="<%= _("accept") %>"> |
|---|
| 216 | <td valign="bottom" align="left"><input type="submit" class="btn" name="rejectMultiple" value="<%= _("reject") %>"> |
|---|
| 217 | <td valign="bottom" align="left"><input type="submit" class="btn" name="merge" value="<%= _("merge")%>"></td> |
|---|
| 218 | <td valign="bottom" align="left"><input type="submit" class="btn" name="auth" value="<%= _("author list")%>"></td> |
|---|
| 219 | <td valign="bottom" align="left">Export to:</td> |
|---|
| 220 | <td valign="bottom" align="left"><input type="image" name="excel" src=<%= excelIconURL%> border="0"></td> |
|---|
| 221 | <td valign="bottom" align="left"><input type="image" name="pdf" src=<%= pdfIconURL%> border="0"></td> |
|---|
| 222 | <td valign="bottom" align="left"><input type="image" name="xml" src=<%= xmlIconURL%> border="0"></td> |
|---|
| 223 | </tr> |
|---|
| 224 | </table> |
|---|
| 225 | </td> |
|---|
| 226 | </tr> |
|---|
| 227 | <tr> |
|---|
| 228 | %(abstractTitleBar)s |
|---|
| 229 | </tr> |
|---|
| 230 | <tr><td> |
|---|
| 231 | <tbody id="abstractsItems"> |
|---|
| 232 | %(abstracts)s |
|---|
| 233 | </tbody> |
|---|
| 234 | </td></tr> |
|---|
| 235 | <tr> |
|---|
| 236 | <td colspan="10" style="border-top: 2px solid #777777; padding-top: 3px;" valign="bottom" align="left"> |
|---|
| 237 | <table> |
|---|
| 238 | <tr> |
|---|
| 239 | <td valign="bottom" align="left" class="eventModifButtonBar"><input type="submit" class="btn" value="<%= _("new")%>"></td> |
|---|
| 240 | <td valign="bottom" align="left"><input type="submit" class="btn" name="acceptMultiple" value="<%= _("accept") %>"> |
|---|
| 241 | <td valign="bottom" align="left"><input type="submit" class="btn" name="rejectMultiple" value="<%= _("reject") %>"> |
|---|
| 242 | <td valign="bottom" align="left"><input type="submit" class="btn" name="merge" value="<%= _("merge")%>"></td> |
|---|
| 243 | <td valign="bottom" align="left"><input type="submit" class="btn" value="<%= _("author list")%>"></td> |
|---|
| 244 | <td valign="bottom" align="left">Export to:</td> |
|---|
| 245 | <td valign="bottom" align="left"><input type="image" name="excel" src=<%= excelIconURL%> border="0"></td> |
|---|
| 246 | <td valign="bottom" align="left"><input type="image" name="pdf" src=<%= pdfIconURL%> border="0"></td> |
|---|
| 247 | <td valign="bottom" align="left"><input type="image" name="xml" src=<%= xmlIconURL%> border="0"></td> |
|---|
| 248 | </tr> |
|---|
| 249 | </form> |
|---|
| 250 | </table> |
|---|
| 251 | </td> |
|---|
| 252 | </tr> |
|---|
| 253 | </table> |
|---|
| 254 | |
|---|
| 255 | <script type="text/javascript"> |
|---|
| 256 | function onMouseOver(element) { |
|---|
| 257 | if ($E(element).dom.style.backgroundColor ==='transparent') { |
|---|
| 258 | $E(element).dom.style.backgroundColor='rgb(255, 246, 223)'; |
|---|
| 259 | } |
|---|
| 260 | } |
|---|
| 261 | |
|---|
| 262 | function onMouseOut(element) { |
|---|
| 263 | var inputNodes = IndicoUtil.findFormFields($E(element)) |
|---|
| 264 | for (i = 0; i < inputNodes.length; i++) { |
|---|
| 265 | var node = inputNodes[i]; |
|---|
| 266 | if (node.type == "checkbox") { |
|---|
| 267 | if(node.checked !== true) { |
|---|
| 268 | $E(node.name+node.value).dom.style.backgroundColor='transparent'; |
|---|
| 269 | } else { |
|---|
| 270 | $E(node.name+node.value).dom.style.backgroundColor = "#CDEB8B"; |
|---|
| 271 | } |
|---|
| 272 | } |
|---|
| 273 | } |
|---|
| 274 | } |
|---|
| 275 | |
|---|
| 276 | |
|---|
| 277 | function atLeastOneSelected() { |
|---|
| 278 | if(!newAbstract) { |
|---|
| 279 | var inputNodes = IndicoUtil.findFormFields($E("abstractsItems")) |
|---|
| 280 | for (i = 0; i < inputNodes.length; i++) |
|---|
| 281 | { |
|---|
| 282 | var node = inputNodes[i]; |
|---|
| 283 | if (node.type == "checkbox") { |
|---|
| 284 | if(node.checked == true) { |
|---|
| 285 | return true; |
|---|
| 286 | } |
|---|
| 287 | } |
|---|
| 288 | } |
|---|
| 289 | |
|---|
| 290 | var dialog = new WarningPopup($T("Warning"), $T("No abstract selected! Please select at least one.")); |
|---|
| 291 | dialog.open(); |
|---|
| 292 | |
|---|
| 293 | return false; |
|---|
| 294 | } else { |
|---|
| 295 | return true; |
|---|
| 296 | } |
|---|
| 297 | } |
|---|
| 298 | |
|---|
| 299 | function isSelected(element) { |
|---|
| 300 | var inputNodes = IndicoUtil.findFormFields($E(element)) |
|---|
| 301 | for (i = 0; i < inputNodes.length; i++) { |
|---|
| 302 | var node = inputNodes[i]; |
|---|
| 303 | if (node.type == "checkbox") { |
|---|
| 304 | if(node.checked == true) { |
|---|
| 305 | $E(node.name+node.value).dom.style.backgroundColor = "#CDEB8B"; |
|---|
| 306 | } else { |
|---|
| 307 | $E(node.name+node.value).dom.style.backgroundColor='transparent'; |
|---|
| 308 | } |
|---|
| 309 | } |
|---|
| 310 | } |
|---|
| 311 | } |
|---|
| 312 | |
|---|
| 313 | function selectAll() |
|---|
| 314 | { |
|---|
| 315 | if (!document.abstractsForm.abstracts.length) |
|---|
| 316 | { |
|---|
| 317 | document.abstractsForm.abstracts.checked=true |
|---|
| 318 | }else{ |
|---|
| 319 | for (i = 0; i < document.abstractsForm.abstracts.length; i++) |
|---|
| 320 | { |
|---|
| 321 | document.abstractsForm.abstracts[i].checked=true; |
|---|
| 322 | } |
|---|
| 323 | } |
|---|
| 324 | isSelected("abstractsItems") |
|---|
| 325 | } |
|---|
| 326 | |
|---|
| 327 | function deselectAll() |
|---|
| 328 | { |
|---|
| 329 | if (!document.abstractsForm.abstracts.length) |
|---|
| 330 | { |
|---|
| 331 | document.abstractsForm.abstracts.checked=false |
|---|
| 332 | }else{ |
|---|
| 333 | for (i = 0; i < document.abstractsForm.abstracts.length; i++) |
|---|
| 334 | { |
|---|
| 335 | document.abstractsForm.abstracts[i].checked=false; |
|---|
| 336 | } |
|---|
| 337 | } |
|---|
| 338 | isSelected("abstractsItems") |
|---|
| 339 | } |
|---|
| 340 | |
|---|
| 341 | function showFilters() { |
|---|
| 342 | if ($E("filterMenu").dom.style.display == "") { |
|---|
| 343 | <% if filterUsed: %> |
|---|
| 344 | $E("index_filter").set('<%= _("Show filters")%>'); |
|---|
| 345 | <% end %> |
|---|
| 346 | <% else: %> |
|---|
| 347 | $E("index_filter").set('<%= _("Apply filters")%>'); |
|---|
| 348 | <% end %> |
|---|
| 349 | $E('index_filter').dom.className = "CRLIndexUnselected"; |
|---|
| 350 | $E("filterMenu").dom.style.display = "none"; |
|---|
| 351 | }else { |
|---|
| 352 | $E("index_filter").set('<%= _("Hide filters")%>'); |
|---|
| 353 | $E('index_filter').dom.className = "CRLIndexSelected"; |
|---|
| 354 | $E("filterMenu").dom.style.display = ""; |
|---|
| 355 | } |
|---|
| 356 | } |
|---|
| 357 | </script> |
|---|