File: AdminCustomerUserService.dtl

package info (click to toggle)
otrs2 2.2.7-2lenny3
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 13,444 kB
  • ctags: 5,808
  • sloc: perl: 129,825; xml: 16,139; sql: 11,400; sh: 1,198; makefile: 31; php: 16
file content (225 lines) | stat: -rw-r--r-- 9,519 bytes parent folder | download
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
# --
# AdminCustomerUserService.dtl - provides HTML form for AdminInterface
# Copyright (C) 2001-2008 OTRS AG, http://otrs.org/
# --
# $Id: AdminCustomerUserService.dtl,v 1.3.2.1 2008/02/15 12:41:38 mh 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-2.0.txt.
# --

<table border="0" width="100%" cellspacing="0" cellpadding="3">
  <tr>
    <td colspan="2" class="mainhead">
      $Env{"Box0"}$Text{"Customer Users <-> Services Management"}$Env{"Box1"}
    </td>
  </tr>
  <tr>
    <td width="30%" class="mainbody">
<!-- dtl:block:Search -->
      <form action="$Env{"CGIHandle"}" method="post">
        <input type="hidden" name="Action" value="$Env{"Action"}">
        <table width="100%" cellspacing="0" cellpadding="4">
          <tr>
            <td class="contenthead">$Text{"Search"}:</td>
          </tr>
          <tr>
            <td class="contentbody">
              <table>
                <tr>
                  <td class="contentkey">$Text{"Search for"} $Text{"CustomerUser"}:</td>
                  <td class="contentvalue"><input type="text" name="CustomerUserSearch" value="$QData{"CustomerUserSearch"}" size="20"></td>
                </tr>
                <tr>
                  <td class="contentkey">$Text{"Search for"} $Text{"Service"}:</td>
                  <td class="contentvalue"><input type="text" name="ServiceSearch" value="$QData{"ServiceSearch"}" size="20"></td>
                </tr>
              </table>
            </td>
          </tr>
          <tr>
            <td class="contentfooter">
              <input class="button" type="submit" value="$Text{"Search"}">
            </td>
          </tr>
        </table>
      </form>
<!-- dtl:block:Search -->
<!-- dtl:block:Default -->
      <br>
      <form action="$Env{"CGIHandle"}" method="post">
        <input type="hidden" name="Action" value="$Env{"Action"}">
        <input type="hidden" name="Subaction" value="AllocateCustomerUser">
        <table width="100%" cellspacing="0" cellpadding="4">
          <tr>
            <td class="contenthead">$Text{"Edit"}:</td>
          </tr>
          <tr>
            <td class="contentbody">
              $Text{"Edit default services."}
            </td>
          </tr>
          <tr>
            <td class="contentfooter">
              <input class="button" type="submit" value="$Text{"Edit"}">
            </td>
          </tr>
        </table>
      </form>
<!-- dtl:block:Default -->
    </td>
    <td width="70%" class="mainbody">
<!-- dtl:block:Result -->
      <table width="100%" cellspacing="0" cellpadding="4">
        <tr>
          <td class="contenthead">$Text{"Search Result"}:</td>
        </tr>
        <tr>
          <td class="contentbody">
            <table width="100%" border="0" cellspacing="0" cellpadding="3">
              <tr>
                <td class="contentkey" width="49%">$Text{"CustomerUser"}
<!-- dtl:block:ResultCustomerUserCount -->
                  ($QData{"CustomerUserCount"})
<!-- dtl:block:ResultCustomerUserCount -->
<!-- dtl:block:ResultCustomerUserCountLimit -->
                  (<font color="red">$QData{"CustomerUserCount"}</font>)
<!-- dtl:block:ResultCustomerUserCountLimit -->
                </td>
                <td class="contentkey" width="1%"></td>
                <td class="contentkey" width="50%">$Text{"Service"}
<!-- dtl:block:ResultServiceCount -->
                  ($QData{"ServiceCount"})
<!-- dtl:block:ResultServiceCount -->
<!-- dtl:block:ResultServiceCountLimit -->
                  (<font color="red">$QData{"ServiceCount"}</font>)
<!-- dtl:block:ResultServiceCountLimit -->
                </td>
              </tr>
<!-- dtl:block:ResultRow -->
              <tr>
                <td class="$QData{"CustomerUserCssClass"}">
                  <a href="$Env{"Baselink"}Action=$Env{"Action"}&Subaction=AllocateCustomerUser&CustomerUserLogin=$QData{"CustomerUserLogin"}&CustomerUserSearch=$QData{"CustomerUserSearch"}&ServiceSearch=$QData{"ServiceSearch"}">
                  $QData{"CustomerUser"}
                  </a>
                </td>
                <td></td>
                <td class="$QData{"ServiceCssClass"}">
                  <a href="$Env{"Baselink"}Action=$Env{"Action"}&Subaction=AllocateService&ServiceID=$QData{"ServiceID"}&CustomerUserSearch=$QData{"CustomerUserSearch"}&ServiceSearch=$QData{"ServiceSearch"}">
                  $QData{"Service"}
                  </a>
                </td>
              </tr>
<!-- dtl:block:ResultRow -->
            </table>
          </td>
        </tr>
        <tr>
          <td class="contentfooter">
            &nbsp;
          </td>
        </tr>
      </table>
<!-- dtl:block:Result -->
<!-- dtl:block:AllocateCustomerUser -->
      <form action="$Env{"CGIHandle"}" method="post">
        <input type="hidden" name="Action" value="$Env{"Action"}">
        <input type="hidden" name="Subaction" value="AllocateCustomerUserSave">
        <input type="hidden" name="CustomerUserSearch" value="$QData{"CustomerUserSearch"}">
        <input type="hidden" name="ServiceSearch" value="$QData{"ServiceSearch"}">
        <input type="hidden" name="CustomerUserLogin" value="$QData{"CustomerUserLogin"}">
        <table width="100%" cellspacing="0" cellpadding="4">
          <tr>
            <td class="contenthead">$Text{"Allocate services to CustomerUser"} "$QData{"CustomerUser"}":</td>
          </tr>
          <tr>
            <td class="contentbody">
              <table width="100%" border="0" cellspacing="0" cellpadding="3">
                <tr>
                  <td class="contentkey">$Text{"Service"}
<!-- dtl:block:AllocateCustomerUserServiceCount -->
                    ($QData{"ServiceCount"})
<!-- dtl:block:AllocateCustomerUserServiceCount -->
<!-- dtl:block:AllocateCustomerUserServiceCountLimit -->
                    (<font color="red">$QData{"ServiceCount"}</font>)
<!-- dtl:block:AllocateCustomerUserServiceCountLimit -->
                  </td>
                  <td class="contentkey" width="100">$Text{"Active"}</td>
                </tr>
<!-- dtl:block:AllocateCustomerUserRow -->
                <tr>
                  <td class="$QData{"CssClass"}">
                    <a href="$Env{"Baselink"}Action=AdminService&Subaction=ServiceEdit&ServiceID=$QData{"ServiceID"}">
                    $QData{"Service"}
                    </a>
                  </td>
                  <td class="$QData{"CssClass"}">
                    <input type="checkbox" name="ServiceIDsSelected" value="$QData{"ServiceID"}" $QData{"Checked"}>
                    <input type="hidden" name="ServiceIDsAll" value="$QData{"ServiceID"}">
                  </td>
                </tr>
<!-- dtl:block:AllocateCustomerUserRow -->
              </table>
            </td>
          </tr>
          <tr>
            <td class="contentfooter">
              <input class="button" type="submit" value="$Text{"Submit"}">
            </td>
          </tr>
        </table>
      </form>
<!-- dtl:block:AllocateCustomerUser -->
<!-- dtl:block:AllocateService -->
      <form action="$Env{"CGIHandle"}" method="post">
        <input type="hidden" name="Action" value="$Env{"Action"}">
        <input type="hidden" name="Subaction" value="AllocateServiceSave">
        <input type="hidden" name="CustomerUserSearch" value="$QData{"CustomerUserSearch"}">
        <input type="hidden" name="ServiceSearch" value="$QData{"ServiceSearch"}">
        <input type="hidden" name="ServiceID" value="$QData{"ServiceID"}">
        <table width="100%" cellspacing="0" cellpadding="4">
          <tr>
            <td class="contenthead">$Text{"Allocate CustomerUser to service"} "$QData{"Service"}":</td>
          </tr>
          <tr>
            <td class="contentbody">
              <table width="100%" border="0" cellspacing="0" cellpadding="3">
                <tr>
                  <td class="contentkey">$Text{"CustomerUser"}
<!-- dtl:block:AllocateServiceCustomerUserCount -->
                    ($QData{"CustomerUserCount"})
<!-- dtl:block:AllocateServiceCustomerUserCount -->
<!-- dtl:block:AllocateServiceCustomerUserCountLimit -->
                    (<font color="red">$QData{"CustomerUserCount"}</font>)
<!-- dtl:block:AllocateServiceCustomerUserCountLimit -->
                  </td>
                  <td class="contentkey" width="100">$Text{"Active"}</td>
                </tr>
<!-- dtl:block:AllocateServiceRow -->
                <tr>
                  <td class="$QData{"CssClass"}">
                    <a href="$Env{"Baselink"}Action=AdminCustomerUser&Subaction=Change&ID=$QData{"CustomerUserLogin"}">
                    $QData{"CustomerUser"}
                    </a>
                  </td>
                  <td class="$QData{"CssClass"}">
                    <input type="checkbox" name="CustomerUserLoginsSelected" value="$QData{"CustomerUserLogin"}" $QData{"Checked"}>
                    <input type="hidden" name="CustomerUserLoginsAll" value="$QData{"CustomerUserLogin"}">
                  </td>
                </tr>
<!-- dtl:block:AllocateServiceRow -->
              </table>
            </td>
          </tr>
          <tr>
            <td class="contentfooter">
              <input class="button" type="submit" value="$Text{"Submit"}">
            </td>
          </tr>
        </table>
      </form>
<!-- dtl:block:AllocateService -->
    </td>
  </tr>
</table>