blob: ea1ce3ce3110aadea4c5fb53d9401ce6603e7d22 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
<table id=bot-nav width=100%>
<colgroup>
<col width=70% />
<col width=10% />
<col width=20% />
</colgroup>
<tr>
<td>
%= include '_pagination1';
</td>
<td>
<label for=allbox><%= l 'check_all' %></label>:
<input name=allbox type=checkbox onclick="check_all(this)">
</td>
<td>
%= form_for move => (id => 'move-mail') => begin
%= label_for 'select-folder' => l('move') . ' ' . l('to')
%= select_field folder => [grep {$_ ne $folder} @$mail_folders] => (id => 'select-folder')
%= csrf_field
%= submit_button l 'move'
% end
</td>
</tr>
</table>
<script type="text/javascript">
function check_all(box) {
const setTo = box.checked;
const mails = document.getElementById('mail-headers').tBodies[0].rows;
for (const m of mails) {
m.lastElementChild.children[0].checked = setTo;
}
}
</script>
|