1 <div class="contentboxh">
2 <p class="contentboxh"><img src="{$launchimage}" align="right" alt="[F]">
3 {t}Options{/t}
4 </p>
5 </div>
6 <div class="contentboxb" style="margin-bottom:10px">
8 <table summary="" width="100%" class="contentboxb" style="border-top:1px solid #B0B0B0; padding:0px;">
9 <tr>
10 <td>
11 {t}Export{/t}
12 {if $is_readable}
13 <input type='submit' name='export_gotomass_csv' value='{t}Export{/t}'>
14 {else}
15 <input type='button' name='empty_1' value='{t}Export{/t}' disabled>
16 {/if}
17 </td>
18 <td style='width:20px;'>
19 </td>
20 <td>
21 {t}Import{/t}
23 {if $is_writeable}
24 <input type='file' name='mass_file'>
25 <input type='submit' name='import_gotomass_csv' value='{t}Import{/t}'>
26 {else}
27 <input type='file' name='epmpty_file' disabled>
28 <input type='button' name='empty_2' value='{t}Import{/t}' disabled>
29 {/if}
30 </td>
31 </tr>
32 </table>
33 </div>
34 <table summary="" width="100%" class="contentboxb" cellspacing=0>
35 <tr>
36 <td style='width:40px'>
37 <b>{t}No.{/t}</b>
38 </td>
39 <td style='width:200px'>
40 <b>{t}Mac address{/t}</b>
41 </td>
42 <td>
43 </td>
44 <td style='width:40%;'>
45 <b>{t}Assigned object group{/t}</b>
46 </td>
47 <td style='text-align:right ; width:20%;'>
48 <b>{t}Action{/t}</b>
49 </td>
50 </tr>
51 {foreach from=$contents item=val key=key}
53 {if ($key+2)%2 ==0 }
54 <tr class='rowxp1'>
55 {else}
56 <tr class='rowxp0'>
57 {/if}
58 <td>
59 {$key+1}
60 </td>
62 {if !$contents.$key.VALID_MAC}
63 <td style='background-color: #FF0000;' >
64 {else}
65 <td>
66 {/if}
67 <input name='mac_{$key}' type='text' value='{$contents.$key.MAC}' style='width:200px'>
68 </td>
69 <td>
70 </td>
71 <td>
72 <select name='og_{$key}' title='{t}Select object group{/t}'>
73 {html_options options=$ogs selected=$contents.$key.OG}
74 </select>
75 </td>
76 <td style='text-align:right'>
77 {if $is_writeable}
78 <input type='image' name='remove_{$key}' src='images/edittrash.png'
79 title='{t}Remove this entry{/t}'>
80 {else}
81
82 {/if}
83 </td>
84 </tr>
86 {/foreach}
87 {if $is_writeable}
88 <tr>
89 <td>
90 -
91 </td>
92 <td>
93 -
94 </td>
95 <td>
96 -
97 </td>
98 <td>
99 -
100 </td>
101 <td style='text-align:right'>
102 <input type='submit' name='add_new_entry' value='{t}New entry{/t}'>
103 </td>
104 </tr>
105 {/if}
106 </table>
107 <div class="contentboxb" style="border-top: 1px solid #B0B0B0; padding:0px; margin-top:10px;">
108 <p class="contentboxb" style='text-align:right'>
109 {if $contents_modified}
110 {if $is_writeable}
111 <input type='submit' name='save_gotomass_changes' value='{t}Apply{/t}'>
112 {else}
113 <input type='submit' name='save_gotomass_changes' value='{t}Apply{/t}' disabled>
114 {/if}
115 <input type='submit' name='reload_gotomass_data' value='{t}Cancel{/t}'>
116 {else}
117 <input type='button' name='empty_3' value='{t}Apply{/t}' disabled>
118 <input type='button' name='empty_4' value='{t}Cancel{/t}' disabled>
119 {/if}
120 </p>
121 </div>
122 <input type='hidden' name='gotomasses' value='1'>
124 <!-- Display a warning if the content was modified, but not saved yet -->
125 {if !$contents_modified}
126 <input type='hidden' name='ignore' value='1'>
127 {/if}