aboutsummaryrefslogtreecommitdiffstats
path: root/template/yoga/admin/ws_checker.tpl
blob: 52eff04f165298e4507bbf2d613e88f3eb301e0f (plain)
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
226
227
228
229
<!-- $Id$ -->

<div class="titrePage">
  <ul class="categoryActions">
    <li><a href="{U_HELP}" onclick="popuphelp(this.href); return false;" title="{lang:Help}"><img src="{themeconf:icon_dir}/help.png" class="button" alt="(?)"></a></li>
  </ul>
  <h2>{lang:title_wscheck} - {lang:web_services}</h2>
</div>

<!-- BEGIN update_result -->
<ul>
  {update_result.UPD_ELEMENT}
</ul>
<!-- END update_result -->

<!-- Add Access -->
<form method="post" name="adding_access" action="{F_STATUS_ACTION}">
  <!-- Current Default -->
  <fieldset>
    <legend>{lang:ws_adding_legend}</legend>
    <table>
    <!-- Access key -->
      <tr>
        <td>
          <label for="KeyName">{lang:Confidential partner key} </label>
        </td>
        <td>
          <input type="text" maxlength="35" size="35" name="add_partner"
            id="add_partner" value="{F_ADD_PARTNER}"
            title="{lang:Basis of access key calculation}" />
        </td>
      </tr>

    <!-- Target (cat/ids, tag/ids, or list/ids ids=id,id-id,...) -->
      <tr>
        <td>
          <label for="Access">{lang:Target}</label>
        </td>
        <td>
          <input type="text" maxlength="128" size="35" name="add_target"
            id="add_target" value="{F_ADD_ACCESS}"
            title="{lang:Facultative and restrictive option}" />
          <i><small> ({lang:Access: see help text for more})
          </small></i>
        </td>
      </tr>

    <!-- Restricted access to specific request -->
      <tr>
        <td>
          <label for="add_request">{lang:Restrict access to}</label>
        </td>
        <td>
          <select name="add_request" id="add_request" style="width: 18em"  
            onfocus="this.className='focus';" 
            onblur="this.className='nofocus';">
            <!-- BEGIN add_request -->
            <option value="{add_request.VALUE}" 
              {add_request.SELECTED}>{add_request.CONTENT}
            </option> 
            <!-- END add_request -->
          </select> 
          <i><small> ({lang:ws_Methods})</small></i>
        </td>
      </tr>

     <!-- Limit number of images information to be return -->
     <tr>
        <td>
          <label for="add_limit">{lang:Returned images limit}</label>
        </td>
        <td>
          <select name="add_limit" id="add_limit" style="width: 10em"  
            onfocus="this.className='focus';" 
            onblur="this.className='nofocus';">
            <!-- BEGIN add_limit -->
            <option value="{add_limit.VALUE}"
              {add_limit.SELECTED}>{add_limit.CONTENT}
            </option>
            <!-- END add_limit -->
          </select>
        </td>
      </tr>

    <!-- Open service is postponed by n days -->
    <!-- In comment currently
      <tr>
        <td>
          <label for="add_start">{lang:Postponed availability in days}</label>
        </td>
        <td>
          <select name="add_start" id="add_start" style="width: 10em" 
            onfocus="this.className='focus';" 
            onblur="this.className='nofocus';">
            <!-- BEGIN add_start -->
            <option value="{add_start.VALUE}"
              {add_start.SELECTED}>{add_start.CONTENT}
            </option> 
            <!-- END add_start -->
          </select>
        </td>
      </tr> -->

    <!-- Opened service only for n days -->
      <tr>
        <td>
          <label for="add_end">{lang:Duration in days}</label>
        </td>
        <td>
          <select name="add_end" id="add_end" style="width: 10em"  
            onfocus="this.className='focus';" 
            onblur="this.className='nofocus';">
            <!-- BEGIN add_end -->
            <option value="{add_end.VALUE}" 
              {add_end.SELECTED}>{add_end.CONTENT}
            </option> 
            <!-- END add_end -->
          </select>
        </td>
      </tr>

    <!-- Idendify your partner (name / website / phone) as you want -->
      <tr>
        <td>
          <label for="add_Comment">{lang:ws_Comment}</label>
          <br />
        </td>
        <td>
          <textarea name="add_comment" id="add_comment" 
            rows="4" cols="80">{lang:Comment to identify your partner clearly}</textarea>  
        </td>
      </tr>

    <!-- Add submit button -->
      <tr>
        <td>
        </td>
        <td>
          <input class="submit" type="submit" name="wsa_submit" style="width: 10em; padding-top: 3px;"
            value="{lang:Submit}" {TAG_INPUT_ENABLED} 
            title="{lang:Add this access definition}" />
        </td>
      </tr>      
    </table>
  </fieldset>
</form>

<!-- BEGIN acc_list -->
<!-- Access list -->
<form method="post" name="preferences" action="{F_STATUS_ACTION}">
  <input type="hidden" name="partner_prev" value="{F_PREV_PARTNER}">
  <input type="hidden" name="request_prev" value="{F_PREV_REQUEST}">
  <input type="hidden" name="high_prev" value="{F_PREV_HIGH}">
  <input type="hidden" name="normal_prev" value="{F_PREV_NORMAL}">
  <input type="hidden" name="order_prev" value="{F_PREV_ORDER}">
  <input type="hidden" name="dir5n_prev" value="{F_PREV_DIR5N}">
  <!-- Delete / Update Selected -->
  <fieldset>
    <legend>{lang:ws_update_legend}</legend>
    <table class="table2">
      <tr class="throw">
        <th>&nbsp;</th>
        <th>{lang:ws_KeyName}</th>
        <th>{lang:ws_Access}</th>
        <th>{lang:ws_End}</th>
        <th>{lang:ws_Request}</th>
        <th>{lang:ws_Limit}</th>
        <th>{lang:ws_Comment}</th>
      </tr>
      <!-- BEGIN access -->
      <tr class="{acc_list.access.CLASS}">
        <td>
          <input type="radio" name="selection" 
            value="{acc_list.access.ID}" id="selection-{acc_list.access.ID}">
        </td>
        <td><label for="selection-{acc_list.access.ID}">{acc_list.access.NAME}</label></td>
        <td>{acc_list.access.TARGET}</td>
        <td>{acc_list.access.END}</td>
        <td>{acc_list.access.REQUEST}</td>
        <td>{acc_list.access.LIMIT}</td>
        <td>{acc_list.access.COMMENT}</td>
      </tr>
      <!-- END user -->
    </table>

    <table>   
    <tr>    
    <td>
    {lang:ws_delete_legend}
    </td>
    <td>
    <input type="radio" name="delete_confirmation" 
      value="true">
    <input class="submit" type="submit" name="wsX_submit" style="width: 10em; padding-top: 3px;"
      value="{lang:Delete}" {TAG_INPUT_ENABLED}>
    </td>
    </tr>
    </table>
    <hr>    
    <table>
    <tr>
    <td>
    <span class="property">
      <label for="upd_end">{lang:Modify End from Now +} </label>
    </span> 
    <select name="upd_end" id="upd_end"  style="width: 10em" 
      onfocus="this.className='focus';" 
      onblur="this.className='nofocus';">
    <!-- BEGIN upd_end -->
      <option value="{acc_list.upd_end.VALUE}" {acc_list.upd_end.SELECTED}>
        {acc_list.upd_end.CONTENT}
      </option> 
    <!-- END upd_end -->
    </select> 
    <input class="submit" type="submit" name="wsu_submit" style="width: 10em; padding-top: 3px;"
       value="{lang:Submit}" {TAG_INPUT_ENABLED}>
    </td>
    <td>
    <i><small> ({lang:Web Services availability duration in days})</small></i>
    </td>
    </tr>
    </table>

  </fieldset>
</form>
<!-- BEGIN ws_status -->
    <h3>{acc_list.ws_status.VALUE}</h3>
<!-- END ws_status -->
<!-- END acc_list -->