blob: 107ac6787640f9cb73b979a666fb1623574ee88f (
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
42
43
44
45
|
<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 id=move-mail action="<%= url_for('move') %>" method=post>
<label for=select-folder> <%= l('move') . ' ' . l('to') %> </label>
<select name=folder id=select-folder>
%== "<option value='$_'>$_</option>" for grep {$_ ne $folder} @$mail_folders;
</select>
%= csrf_field
<input type="submit" value="<%= l 'move' %>">
</form>
</td>
</tr>
</table>
<script>
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>
|