File: browser.vspx

package info (click to toggle)
virtuoso-opensource 6.1.6+dfsg2-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 260,992 kB
  • ctags: 125,220
  • sloc: ansic: 652,748; sql: 458,419; xml: 282,834; java: 61,031; sh: 40,031; cpp: 36,890; cs: 25,240; php: 12,692; yacc: 9,523; lex: 7,018; makefile: 6,157; jsp: 4,484; awk: 1,643; perl: 1,013; ruby: 1,003; python: 326
file content (269 lines) | stat: -rw-r--r-- 13,998 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
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
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
<?xml version="1.0"?>
<!--
 -
 -  $Id$
 -  
 -  This file is part of the OpenLink Software Virtuoso Open-Source (VOS)
 -  project.
 -  
 -  Copyright (C) 1998-2012 OpenLink Software
 -  
 -  This project is free software; you can redistribute it and/or modify it
 -  under the terms of the GNU General Public License as published by the
 -  Free Software Foundation; only version 2 of the License, dated June 1991.
 -  
 -  This program is distributed in the hope that it will be useful, but
 -  WITHOUT ANY WARRANTY; without even the implied warranty of
 -  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 -  General Public License for more details.
 -  
 -  You should have received a copy of the GNU General Public License along
 -  with this program; if not, write to the Free Software Foundation, Inc.,
 -  51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
 -  
 -  
-->
<title>OpenLink BPEL Process Manager
  <?vsp
  declare name varchar;
  name := {?'op'};
  if (name = 'bpel')
    http_value(' Upload BPEL file');
  else if (name ='plink')
    http_value(concat(' Upload wsdl file for partner link ',{?'role'}));
  else if (name ='wsdl')
    http_value(' Upload WSDL file');
  else
   http_value(' Error');
?>
</title>
<v:page name="bpel_browser" decor="bpel_decor.vspx" style="bpel_style_new.xsl" xmlns:v="http://www.openlinksw.com/vspx/"  xmlns:vm="http://www.openlinksw.com/vspx/macro" xmlns:xhtml="http://www.w3.org/1999/xhtml">
  <v:on-init>
    set isolation='committed';
  </v:on-init>
  <vm:pagewrapper>
    <v:variable name="cop" type="varchar" default="null" param-name="op"/>
    <v:variable name="crole" type="varchar" default="null" param-name="role"/>
    <v:variable name="cid" type="int" default="null" param-name="id"/>
    <vm:pagetitle>s</vm:pagetitle>
    <vm:pagebody>
      <v:template name="actionE" type="simple" enabled="--case when self.cop = 'bpel' then 1 when self.cop = 'wsdl' then 1 else 0 end">
        <v:form name="upl" type="simple" method="POST" action="browser.vspx" xhtml_enctype="multipart/form-data" >
          <table width="100%"  id="content" cellpadding="0" cellspacing="0">
            <v:template name="th1" type="simple" enabled="--case when self.cop = 'bpel' then 1 else 0 end">
              <tr><th class="info" colspan="3">Upload BPEL file</th></tr>
            </v:template>
            <v:template name="th2" type="simple" enabled="--case when self.cop = 'wsdl' then 1 else 0 end">
              <tr><th class="info" colspan="3">Upload WSDL file</th></tr>
            </v:template>
            <tr>
              <td colspan="3">
                <?vsp http(sprintf('<a target="_blank" href="help.vspx?id=browser&sid=%s&realm=%s\r\n"><img alt="Help" title="Help" src="i/help_24.gif" border="0" /></a>', self.sid ,self.realm));?>
                <?vsp http(sprintf('<a target="_blank" href="help.vspx?id=browser&sid=%s&realm=%s\r\n"> Help</a>', self.sid ,self.realm));?>
              </td>
            </tr>
            <tr>
               <td valign="top" align="right"><BR/>
                 <v:url name="u1URL" value="URL" url="--sprintf('help.vspx?id=browser&name=pu_url')" xhtml_target="_blank"/>
               </td>
               <td valign="top">
                 <BR/><v:radio-button initial-checked="1" value="1" name="btn_first" group-name="choice"/>
               </td>
               <td><font style="color: red"><v:error-summary match="pl_first" /></font><BR/>
                 <table width="45%"  border="1" id="subcontent" cellpadding="0" cellspacing="0">
                   <tr><td colspan="2"><v:text name="pl_first" value="''" xhtml_size="55%"/></td></tr>
                   <tr>
                     <td align="right">Authentication</td>
                     <td>
                       <table width="45%"  border="1" id="subcontent" cellpadding="0" cellspacing="0">
                         <tr>
                           <td nowrap="1" align="right"><label for="login_user">User</label></td>
                           <td>
                             <v:text name="usern" value="--connection_get('HTTP_CLI_UID')" null-value="''" xhtml_maxlength="30" xhtml_size="20" xhtml_id="login_user"/>
                           </td>
                         </tr>
                         <tr>
                           <td align="right"><label for="login_pwd">Password</label></td>
                           <td>
                             <v:text name="pass" value="--connection_get('HTTP_CLI_PWD')" null-value="''" xhtml_size="20" xhtml_maxlength="30" type="password" xhtml_id="login_pwd"/>
                           </td>
                         </tr>
                       </table>
                     </td>
                   </tr>
                 </table>
               </td>
             </tr>
            <tr>
               <td valign="top" align="right"><BR/>
                 <v:url name="u1FILE" value="File" url="--sprintf('help.vspx?id=browser&name=pu_file')" xhtml_target="_blank"/>
               </td>
               <td valign="top">
                 <BR/><v:radio-button initial-checked="0" value="0" name="btn_second" group-name="choice"/>
               </td>
               <td><font style="color: red"><v:error-summary match="pl_second" /></font><BR/>
                  <v:text name="pl_second" type="file" xhtml_class="m_e" xhtml_size="60%"/><br/>
                 <table id="subcontent"><tr><td/><td/><td/><td><font color="Red">Note: </font>No relative references inside file will be accepted.</td></tr></table>
               </td>
            </tr>
            <tr>
               <td>&nbsp;</td>
               <td colspan="2">
                 <v:button action="return" value="i/back_16.png" xhtml_title="Back" style="image" xhtml_alt="Back" text="&#160;Back">
                   <v:field name="vbpel" ref="label7"/>
                   <v:field name="vbpelcontent" ref="label8"/>
                   <v:field name="vwsdl" ref="label5"/>
                   <v:field name="vwsdlcontent" ref="label6"/>
                 </v:button>
                 <v:button action="simple" value="i/import_data_16.png" xhtml_title="Upload" style="image" xhtml_alt="Upload" text="&#160;Upload">
                   <v:on-post>
                       if (not self.vc_is_valid)
                           return;

                       if (self.btn_first.ufl_selected = 1)
                       {
                         if (not length (self.pl_first.ufl_value))
                         {
                           self.pl_first.vc_error_message := 'Please, enter valid URL.';
                           self.vc_is_valid := 0;
                           return 0;
                         };

                         BPEL.BPEL.set_uri_connection(self.usern.ufl_value, self.pass.ufl_value);

                         if (self.cop = 'bpel')
                         {
                            BPEL..script_source_update(self.cid,trim(self.pl_first.ufl_value,' '),null);
                         }
                         else
                         {
                            BPEL..wsdl_upload(self.cid,trim(self.pl_first.ufl_value,' '),null);
                         };
                         self.uploadU.ufl_value := 'File uploaded successfully.';
                       }
                       else if (self.btn_second.ufl_selected = 1)
                       {
                         if (not length (self.pl_second.ufl_value))
                         {
                           self.pl_second.vc_error_message := 'Please, choose file.';
                           self.vc_is_valid := 0;
                           return 0;
                         };
                         if (self.cop = 'bpel')
                         {
                            BPEL..script_source_update(self.cid,'',self.pl_second.ufl_value);
                         }
                         else
                         {
                           BPEL..wsdl_upload(self.cid,'',self.pl_second.ufl_value);
                         };
                         self.uploadU.ufl_value := 'File uploaded successfully.';
                       };
                      self.upl.vc_data_bind(e);
                   </v:on-post>
                 </v:button>
                 <v:label name="uploadU" value="''"/>
               </td>
            </tr>
          </table>
        </v:form>
      </v:template>
      <v:template name="PartnerLinks" type="simple" enabled="--case when self.cop = 'plink' then 1 else 0 end">
        <v:form name="ufl" type="simple" method="POST" action="browser.vspx" xhtml_enctype="multipart/form-data">
          <table width="100%" id="content" cellpadding="0" cellspacing="0">
            <tr><th class="info" colspan="3">Upload Partner Link file</th></tr>
            <tr>
              <td colspan="3">
                <?vsp http(sprintf('<a target="_blank"  href="help.vspx?id=browser&sid=%s&realm=%s\r\n"><img alt="Help" title="Help" src="i/help_24.gif" border="0" /></a>', self.sid ,self.realm));?>
                <?vsp http(sprintf('<a target="_blank"  href="help.vspx?id=browser&sid=%s&realm=%s\r\n"> Help</a>', self.sid ,self.realm));?>
              </td>
            </tr>
            <tr>
               <td valign="top" align="right"><BR/>
                 <v:url name="u2URL" value="URL" url="--sprintf('help.vspx?id=browser&name=pu_url')" xhtml_target="_blank"/>
               </td>
               <td valign="top">
                 <BR/><v:radio-button initial-checked="1" value="1" name="btn_first1" group-name="choice"/>
               </td>
               <td><font style="color: red"><v:error-summary match="pl_first1" /></font><BR/>
                 <table width="45%"  border="1" id="subcontent" cellpadding="0" cellspacing="0">
                   <tr><td colspan="2"><v:text name="pl_first1" value="''" xhtml_size="55%"/></td></tr>
                   <tr>
                     <td align="right">Authentication</td>
                     <td>
                       <table width="45%"  border="1" id="subcontent" cellpadding="0" cellspacing="0">
                         <tr>
                           <td nowrap="1" align="right"><label for="login_user2">User</label></td>
                           <td>
                             <v:text name="usern2" value="--connection_get('HTTP_CLI_UID')" null-value="''" xhtml_maxlength="30" xhtml_size="20" xhtml_id="login_user2"/>
                           </td>
                         </tr>
                         <tr>
                           <td align="right"><label for="login_pwd2">Password</label></td>
                           <td>
                             <v:text name="pass2" value="--connection_get('HTTP_CLI_PWD')" null-value="''" xhtml_size="20" xhtml_maxlength="30" type="password" xhtml_id="login_pwd2"/>
                           </td>
                         </tr>
                       </table>
                     </td>
                   </tr>
                 </table>
               </td>
             </tr>
            <tr>
               <td valign="top" align="right"><BR/>
                 <v:url name="u2FILE" value="File" url="--sprintf('help.vspx?id=browser&name=pu_file')" xhtml_target="_blank"/>
               </td>
               <td valign="top">
                 <BR/><v:radio-button initial-checked="0" value="0" name="btn_second1" group-name="choice"/>
               </td>
               <td><font style="color: red"><v:error-summary match="pl_second" /></font><BR/>
                 <v:text name="pl_second1" type="file" xhtml_class="m_e" xhtml_size="60%"/><BR/>
                 <table id="subcontent"><tr><td/><td/><td/><td><font color="Red">Note: </font>No relative references inside file will be accepted.</td></tr></table>
               </td>
           </tr>
            <tr>
               <td>&nbsp;</td>
               <td colspan="2">
                 <v:button action="return" value="i/back_16.png" xhtml_title="Back" style="image" xhtml_alt="Back" text="&#160;Back">
                   <v:field name="vbpel" ref="hbpel"/>
                 </v:button>
                 <v:button action="simple" value="i/import_data_16.png" xhtml_title="Upload" style="image" xhtml_alt="Upload" text="&#160;Upload">
                   <v:on-post>
                       if (not self.vc_is_valid)
                           return;
                       if (self.btn_first1.ufl_selected = 1)
                       {
                         if (not length (self.pl_first1.ufl_value))
                         {
                           self.pl_first1.vc_error_message := 'Please, enter valid URL.';
                           self.vc_is_valid := 0;
                           return 0;
                         };
                         BPEL.BPEL.set_uri_connection(self.usern2.ufl_value, self.pass2.ufl_value);
                         BPEL..wsdl_upload(self.cid,trim(self.pl_first1.ufl_value,' '),null,self.crole);
                         self.uploadP.ufl_value := 'File uploaded successfully.';
                       }
                      else if (self.btn_second1.ufl_selected = 1)
                       {
                         if (not length (self.pl_second1.ufl_value))
                         {
                           self.pl_second1.vc_error_message := 'Please, choose file.';
                           self.vc_is_valid := 0;
                           return 0;
                         };
                         BPEL..wsdl_upload(self.cid,'',self.pl_second1.ufl_value,self.crole);
                         self.uploadP.ufl_value := 'File uploaded successfully.';
                       };
                      self.ufl.vc_data_bind(e);
                   </v:on-post>
                 </v:button>
                 <v:label name="uploadP" value="''"/>
               </td>
            </tr>
          </table>
        </v:form>
      </v:template>
    </vm:pagebody>
  </vm:pagewrapper>
</v:page>