summaryrefslogtreecommitdiff
path: root/rt/webrt/Admin/Elements/SelectSingleOrMultiple
blob: 307b0211ce9fc5e34c18c558b51ff2da650e9064 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
  <select name="<%$Name%>">
    <option value="1" <%$SingleDefault%>>Single</option>
    <option value="0" <%$MultipleDefault%>>Multiple</option>
  </select>	


<%INIT>
my ($SingleDefault, $MultipleDefault);
if ($Default == 1) {
    $SingleDefault = "SELECTED";
}
elsif ($Default == 0 ) {
    $MultipleDefault = "SELECTED";
}

</%INIT>
<%ARGS>
$Name => 'Single'
$Default => 1
</%ARGS>