source: trunk/templates/bulkdomain.tmpl@ 597

Last change on this file since 597 was 590, checked in by Kris Deugau, 11 years ago

/trunk

Add a touch of Javascript to the bulk domain changes page, for a
"Select them all!" checkbox.

File size: 2.1 KB
Line 
1<body onload="document.getElementById('selall').style.display='block';">
2<div id="main">
3
4<table class="wholepage"><tr>
5<TMPL_INCLUDE NAME="menu.tmpl">
6
7<td align="center" valign="top">
8
9<form action="<TMPL_VAR NAME=script_self>" method="post">
10<fieldset>
11
12<input type="hidden" name="page" value="bulkchange" />
13<input type="hidden" name="offset" value="<TMPL_VAR NAME=offset>" />
14<input type="hidden" name="perpage" value="<TMPL_VAR NAME=perpage>" />
15
16<table class="container">
17<tr><td>
18 <table border="0" cellspacing="2" cellpadding="2" width="100%">
19 <tr class="darkrowheader"><td colspan="2" align="center">Bulk Domain Changes</td></tr>
20
21 <tr class="datalinelight">
22 <td>Action:</td>
23 <td align="left">
24<TMPL_IF maymove> <input type="radio" name="bulkaction" value="move" checked="checked" /> Move to group: <select name="destgroup">
25<TMPL_LOOP name=grouplist> <option value="<TMPL_VAR NAME=groupval>"<TMPL_IF groupactive> selected="selected"</TMPL_IF>><TMPL_VAR name=groupname></option>
26</TMPL_LOOP>
27 </select><br /></TMPL_IF>
28<TMPL_IF maystatus> <input type="radio" name="bulkaction" value="deactivate" /> Deactivate<br />
29 <input type="radio" name="bulkaction" value="activate" /> Activate<br /></TMPL_IF>
30<TMPL_IF maydelete> <input type="radio" name="bulkaction" value="delete" /> Delete<br /></TMPL_IF>
31 </td>
32 </tr>
33 <tr class="darkrowheader">
34 <td colspan="2" align="center">Domains to change:</td>
35 </tr>
36 <tr class="datalinelight">
37 <td colspan="2">
38<div class="center"><TMPL_INCLUDE NAME="pgcount.tmpl"></div>
39<div class="center"><TMPL_INCLUDE NAME="fpnla.tmpl"></div>
40<div class="center hidden" id="selall"><input type="checkbox" name="selall" id="master" onclick="bulk_selall();" /> Select all domains on this page</div>
41
42<table>
43<tr>
44<TMPL_LOOP NAME=domtable><td><input type="checkbox" name="dom_<TMPL_VAR NAME=zoneid>" value="<TMPL_VAR NAME=zoneid>" /> <TMPL_VAR NAME=zone></td>
45<TMPL_IF newrow></tr>
46<tr>
47</TMPL_IF></TMPL_LOOP>
48</tr>
49</table>
50 </td>
51 </tr>
52 <tr class="darkrowheader"><td colspan="2" align="center"><input type="submit" value="Make changes" /></td></tr>
53 </table>
54</td>
55</tr>
56</table>
57
58</fieldset>
59</form>
60
61</td></tr>
62</table>
Note: See TracBrowser for help on using the repository browser.