File: AdminSelectBoxForm.dtl

package info (click to toggle)
otrs2 2.0.4p01-18
  • links: PTS
  • area: main
  • in suites: etch
  • size: 7,900 kB
  • ctags: 4,437
  • sloc: perl: 81,607; xml: 8,135; sql: 8,013; sh: 1,113; makefile: 22; php: 16
file content (76 lines) | stat: -rw-r--r-- 2,157 bytes parent folder | download | duplicates (2)
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# --
# AdminSelectBoxForm.dtl - provides HTML form for SelectBox
# Copyright (C) 2001-2005 Martin Edenhofer <martin+code@otrs.org>
# --
# $Id: AdminSelectBoxForm.dtl,v 1.16 2005/10/13 07:17:30 martin Exp $
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (GPL). If you
# did not receive this file, see http://www.gnu.org/licenses/gpl.txt.
# --
<!-- start form -->
<table border="0" width="100%" cellspacing="0" cellpadding="3" cols="1">
<tr>
  <td class="mainhead">
    $Env{"Box0"}$Text{"Select Box"}$Env{"Box1"}
  </td>
</tr>
<tr>
  <td align="center" class="mainbody">

  <br>

<form action="$Env{"CGIHandle"}" method="post">
<input type="hidden" name="Action" value="$Env{"Action"}">
<input type="hidden" name="Subaction" value="Select">
<table cellspacing="0" cellpadding="4" border="0" width="700">
<tr class="contenthead">
  <td colspan="2">$Text{"Options"}</td>
</tr>
<tr class="contentbody">
  <td width="15%" class="contentkey">$Text{"SQL"}:</td>
  <td width="85%" class="contentvalue"><textarea name="SQL" rows="3" cols="75">$QData{"SQL"}</textarea></td>
</tr>
<tr class="contentbody">
  <td class="contentkey">$Text{"Limit"}:</td>
  <td class="contentvalue"><input type="text" name="Max" value="$QData{"Max"}" size="2"></td>
</tr>
<tr class="contentfooter">
  <td colspan="2" class="contentkey"><input class="button" type="submit" value="$Text{"go"}"></td>
</tr>
</table>
</form>

  <br>

  </td>
</tr>
</table>
<!-- end form -->

<!-- dtl::block::Result -->

<table border="0" width="100%" cellspacing="0" cellpadding="3">
<tr>
  <td class="mainhead">
    $Env{"Box0"}$Text{"Select Box Result"}$Env{"Box1"}
  </td>
</tr>

<tr>
  <td class="mainbody">

<table width="100%" cellspacing="0" cellpadding="3" border="0">
<!-- dtl:block:Row -->
<dtl if ($Env{"Color"} eq "") { $Env{"Color"} = "active"; }>
<tr class="search$Env{"Color"}">$Data{"Result"}</tr>
<dtl if ($Env{"Color"} eq "passive") { $Env{"Color"} = ""; }>
<dtl if ($Env{"Color"} eq "active") { $Env{"Color"} = "passive"; }>
<!-- dtl:block:Row -->
</table>

  </td>
</tr>
</table>
<!-- dtl::block::Result -->