<
From version < 1.24 >
edited by SuperUwe Trueggelmann
on 2022-10-13
To version < 1.47 >
edited by SuperUwe Trueggelmann
on 2022-10-13
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -10,6 +10,11 @@
10 10  
11 11   String strContactID = ""
12 12   String strCompanyName = ""
13 + String strCompanyAddress = ""
14 + String strCompanyCity = ""
15 + String strCompanyPostcode = ""
16 + String strCompanyProvince = ""
17 + String strCompanyCountry = ""
13 13   String strTitle = ""
14 14   String strFirstname = ""
15 15   String strLastname = ""
... ... @@ -38,7 +38,11 @@
38 38   if ((strEditCommand == "Correct") || (strEditCommand == "Register") || (strEditCommand == "Proceed")){
39 39  
40 40   strCompanyName = services.cleanStr.alphanum(request.companyname)
41 -// println "Received Company name: " + strCompanyName
46 + strCompanyAddress = services.cleanStr.alphanum(request.companyaddress)
47 + strCompanyCity = services.cleanStr.alphanum(request.companycity)
48 + strCompanyPostcode = services.cleanStr.alphanum(request.companypostcode)
49 + strCompanyProvince = services.cleanStr.alphanum(request.companyprovince)
50 + strCompanyCountry = services.cleanStr.alphanum(request.companycountry)
42 42   strTitle = services.cleanStr.alphanum(request.title)
43 43   strFirstname = services.cleanStr.alphanum(request.firstname)
44 44   strLastname = services.cleanStr.alphanum(request.lastname)
... ... @@ -47,7 +47,6 @@
47 47   strLphone = services.cleanStr.numphone(request.lphone)
48 48   strMphone = services.cleanStr.numphone(request.mphone)
49 49   strEmail = services.cleanStr.alphanum(request.email)
50 -// println "Received E-mail: " + strEmail
51 51   strEmail2 = services.cleanStr.alphanum(request.email2)
52 52   strCreateTime = java.time.ZonedDateTime.now()
53 53   strCreateIP = request.remoteAddr
... ... @@ -59,6 +59,11 @@
59 59   sqlQueryInsertRec = "INSERT INTO " + strDBTable +
60 60   """(
61 61   companyname,
70 + companyaddress,
71 + companycity,
72 + companypostcode,
73 + companyprovince,
74 + companycountry,
62 62   title,
63 63   firstname,
64 64   lastname,
... ... @@ -74,6 +74,11 @@
74 74   confemailsentcode)
75 75   VALUES(
76 76   '$strCompanyName',
90 + '$strCompanyAddress',
91 + '$strCompanyCity',
92 + '$strCompanyPostcode',
93 + '$strCompanyProvince',
94 + '$strCompanyCountry',
77 77   '$strTitle',
78 78   '$strFirstname',
79 79   '$strLastname',
... ... @@ -95,6 +95,11 @@
95 95   """
96 96   SET
97 97   companyname = '$strCompanyName',
116 + companyaddress = '$strCompanyAddress',
117 + companycity = '$strCompanyCity',
118 + companypostcode = '$strCompanyPostcode',
119 + companyprovince = '$strCompanyProvince',
120 + companycountry = '$strCompanyCountry',
98 98   title = '$strTitle',
99 99   firstname = '$strFirstname',
100 100   lastname = '$strLastname',
... ... @@ -116,11 +116,11 @@
116 116   }
117 117   strEmailBody = "Dear " + strPrefname + ","
118 118   strEmailBody = strEmailBody + "\r\n" + "\r\n" + "A request was made to register you to the CEC website (https://cecocert.com) with the following information:" + "\r\n" + "\r\n"
119 - strEmailBody = strEmailBody + "Name: " + strTitle + " " + strFirstname + " " + strLastname + "\r\n"
120 - strEmailBody = strEmailBody + "Company: " + strCompanyName + "\r\n"
121 - strEmailBody = strEmailBody + "Role: " + strRole + "\r\n"
142 + strEmailBody = strEmailBody + "Registered Business: " + strCompanyName + ", " + strCompanyAddress + ", " + strCompanyCity + ", " + strCompanyPostcode + ", " + strCompanyProvince + ", " + strCompanyCountry + "\r\n" + "\r\n"
143 + strEmailBody = strEmailBody + "Contact info: " + strTitle + " " + strFirstname + " " + strLastname + "\r\n"
144 + if (strRole){strEmailBody = strEmailBody + "Contact role: " + strRole + "\r\n"}
122 122   strEmailBody = strEmailBody + "Landline phone: " + strLphone + "\r\n"
123 - strEmailBody = strEmailBody + "Mobile phone:" + strMphone + "\r\n" + "\r\n"
146 + strEmailBody = strEmailBody + "Mobile phone: " + strMphone + "\r\n" + "\r\n"
124 124   strEmailBody = strEmailBody + "The request was made from IP address: " + strCreateIP
125 125   strEmailBody = strEmailBody + "\r\n" + "\r\n" + "Please click the below link to confirm your e-mail address:" + "\r\n"
126 126   strEmailBody = strEmailBody + "https://cecocert.com/bin/view/StartPage/X1100%20-%20Process%20e-mail%20confirmation/WebHome"
... ... @@ -131,11 +131,11 @@
131 131   xcontext.put("strEmailBody",strEmailBody)
132 132  // services.writeLog.writeLogEntry(xcontext.getUser(), request.remoteAddr, doc.space, "INSERT AS NEW", intCurUID)
133 133   xcontext.put("strCompanyName",strCompanyName)
134 - xcontext.put("strCompanyName",strCompanyAddress)
135 - xcontext.put("strCompanyName",strCompanyCity)
136 - xcontext.put("strCompanyName",strCompanyPostcode)
137 - xcontext.put("strCompanyName",strCompanyProvince)
138 - xcontext.put("strCompanyName",strCompanyCountry)
157 + xcontext.put("strCompanyAddress",strCompanyAddress)
158 + xcontext.put("strCompanyCity",strCompanyCity)
159 + xcontext.put("strCompanyPostcode",strCompanyPostcode)
160 + xcontext.put("strCompanyProvince",strCompanyProvince)
161 + xcontext.put("strCompanyCountry",strCompanyCountry)
139 139   xcontext.put("strTitle",strTitle)
140 140   xcontext.put("strFirstname",strFirstname)
141 141   xcontext.put("strLastname",strLastname)
... ... @@ -150,6 +150,11 @@
150 150   }
151 151   if (strEditCommand == "Proceed"){
152 152   xcontext.put("strCompanyName",strCompanyName)
176 + xcontext.put("strCompanyAddress",strCompanyAddress)
177 + xcontext.put("strCompanyCity",strCompanyCity)
178 + xcontext.put("strCompanyPostcode",strCompanyPostcode)
179 + xcontext.put("strCompanyProvince",strCompanyProvince)
180 + xcontext.put("strCompanyCountry",strCompanyCountry)
153 153   xcontext.put("strTitle",strTitle)
154 154   xcontext.put("strFirstname",strFirstname)
155 155   xcontext.put("strLastname",strLastname)
... ... @@ -164,6 +164,11 @@
164 164   }
165 165   if (strEditCommand == "Correct"){
166 166   xcontext.put("strCompanyName",strCompanyName)
195 + xcontext.put("strCompanyAddress",strCompanyAddress)
196 + xcontext.put("strCompanyCity",strCompanyCity)
197 + xcontext.put("strCompanyPostcode",strCompanyPostcode)
198 + xcontext.put("strCompanyProvince",strCompanyProvince)
199 + xcontext.put("strCompanyCountry",strCompanyCountry)
167 167   xcontext.put("strTitle",strTitle)
168 168   xcontext.put("strFirstname",strFirstname)
169 169   xcontext.put("strLastname",strLastname)
... ... @@ -332,6 +332,33 @@
332 332   #if( $xcontext.strFormStatus == "DataCorrection" )
333 333   {{html wiki=false clean=false}}
334 334   <form action="" class="xformInline" method="post" name="User Registration Form">
368 +<head>
369 +<style>
370 +#cecTable {
371 + font-family: Arial, Helvetica, sans-serif;
372 + border-collapse: collapse;
373 + border-color: #007d84
374 + width: 100%;
375 +}
376 +
377 +#cecTable td, #cecTable th {
378 + border: 1px solid #007d84;
379 + padding: 8px;
380 +}
381 +
382 +#cecTable tr:nth-child(even){background-color: #d0d3d4;}
383 +
384 +#cecTable tr:hover {background-color: #ddd;}
385 +
386 +#cecTable th {
387 + padding-top: 12px;
388 + padding-bottom: 12px;
389 + text-align: left;
390 + background-color: #007d84;
391 + color: white;
392 +}
393 +</style>
394 +</head>
335 335   <table id="cecTable"; cellspacing="5px" cellpadding="5%" border="1" width="100%"; align="left">
336 336   <col style="width:30%">
337 337   <col style="width:70%">
... ... @@ -348,7 +348,7 @@
348 348   <tr>
349 349   <td align="left" class="style1">Registered Business Address - House Number, Street:</td>
350 350   <td class="style1">
351 - <input type="text" id="companyaddress" name="companyaddress" placeholder="Enter the House Number, Street, Floor, etc part of your company's registered business address" size="100">
411 + <input type="text" id="companyaddress" name="companyaddress" placeholder="Enter the House Number, Street, Floor, etc part of your company's registered business address" value="${xcontext.strCompanyAddress}" size="100">
352 352   </select>
353 353   </td>
354 354   </tr>
... ... @@ -355,7 +355,7 @@
355 355   <tr>
356 356   <td align="left" class="style1">Registered Business Address - City:</td>
357 357   <td class="style1">
358 - <input type="text" id="companycity" name="companycity" placeholder="Enter the City part of your company's registered business address" size="100">
418 + <input type="text" id="companycity" name="companycity" placeholder="Enter the City part of your company's registered business address" value="${xcontext.strCompanyCity}" size="100">
359 359   </select>
360 360   </td>
361 361   </tr>
... ... @@ -362,7 +362,7 @@
362 362   <tr>
363 363   <td align="left" class="style1">Registered Business Address - Postal Code:</td>
364 364   <td class="style1">
365 - <input type="text" id="companypostcode" name="companypostcode" placeholder="Enter the Postal Code part of your company's registered business address" size="100">
425 + <input type="text" id="companypostcode" name="companypostcode" placeholder="Enter the Postal Code part of your company's registered business address" value="${xcontext.strCompanyPostcode}" size="100">
366 366   </select>
367 367   </td>
368 368   </tr>
... ... @@ -369,7 +369,7 @@
369 369   <tr>
370 370   <td align="left" class="style1">Registered Business Address - Province or State:</td>
371 371   <td class="style1">
372 - <input type="text" id="companyprovince" name="companyprovince" placeholder="Enter the Province or State part of your company's registered business address, leave empty if n/a" size="100">
432 + <input type="text" id="companyprovince" name="companyprovince" placeholder="Enter the Province or State part of your company's registered business address, leave empty if n/a" value="${xcontext.strCompanyProvince}" size="100">
373 373   </select>
374 374   </td>
375 375   </tr>
... ... @@ -376,7 +376,7 @@
376 376   <tr>
377 377   <td align="left" class="style1">Registered Business Address - Country:</td>
378 378   <td class="style1">
379 - <input type="text" id="companycountry" name="companycountry" placeholder="Enter the Country part of your company's registered business address" size="50">
439 + <input type="text" id="companycountry" name="companycountry" placeholder="Enter the Country part of your company's registered business address" value="${xcontext.strCompanyCountry}" size="50">
380 380   </select>
381 381   </td>
382 382   </tr>
... ... @@ -446,9 +446,39 @@
446 446  You have entered the following information to register to the CEC Scheme:
447 447   {{html wiki=false clean=false}}
448 448   <form action="" class="xformInline" method="post" name="User Registration Form">
449 - <table id="table1"; cellspacing="5px" cellpadding="5%" border="1" width="100%"; align="left">
509 +<head>
510 +<style>
511 +#cecTable {
512 + font-family: Arial, Helvetica, sans-serif;
513 + border-collapse: collapse;
514 + border-color: #007d84
515 + width: 100%;
516 +}
517 +
518 +#cecTable td, #cecTable th {
519 + border: 1px solid #007d84;
520 + padding: 8px;
521 +}
522 +
523 +#cecTable tr:nth-child(even){background-color: #d0d3d4;}
524 +
525 +#cecTable tr:hover {background-color: #ddd;}
526 +
527 +#cecTable th {
528 + padding-top: 12px;
529 + padding-bottom: 12px;
530 + text-align: left;
531 + background-color: #007d84;
532 + color: white;
533 +}
534 +</style>
535 +</head>
536 + <table id="cecTable"; cellspacing="5px" cellpadding="5%" border="1" width="100%"; align="left">
450 450   <col style="width:30%">
451 451   <col style="width:70%">
539 + <th colspan = "2">
540 + <b>Company Information</b>
541 + </th>
452 452   <tr>
453 453   <td align="left" class="style1">Company name:</td>
454 454   <td class="style1">
... ... @@ -457,6 +457,45 @@
457 457   </td>
458 458   </tr>
459 459   <tr>
550 + <td align="left" class="style1">Registered Business Address - House Number, Street:</td>
551 + <td class="style1">
552 + <input type="hidden" id="companyaddress" name="companyaddress" readonly value="${xcontext.strCompanyAddress}" size="100">
553 + ${xcontext.strCompanyAddress}
554 + </td>
555 + </tr>
556 + <tr>
557 + <td align="left" class="style1">Registered Business Address - City:</td>
558 + <td class="style1">
559 + <input type="hidden" id="companycity" name="companycity" readonly value="${xcontext.strCompanyCity}" size="100">
560 + ${xcontext.strCompanyCity}
561 + </td>
562 + </tr>
563 + <tr>
564 + <td align="left" class="style1">Registered Business Address - Postal Code:</td>
565 + <td class="style1">
566 + <input type="hidden" id="companypostcode" name="companypostcode" readonly value="${xcontext.strCompanyPostcode}" size="100">
567 + ${xcontext.strCompanyPostcode}
568 + </td>
569 + </tr>
570 + <tr>
571 + <td align="left" class="style1">Registered Business Address - Province or State:</td>
572 + <td class="style1">
573 + <input type="hidden" id="companyprovince" name="companyprovince" readonly value="${xcontext.strCompanyProvince}" size="100">
574 + ${xcontext.strCompanyProvince}
575 + </td>
576 + </tr>
577 + <tr>
578 + <td align="left" class="style1">Registered Business Address - Country:</td>
579 + <td class="style1">
580 + <input type="hidden" id="companycountry" name="companycountry" readonly value="${xcontext.strCompanyCountry}" size="50">
581 + ${xcontext.strCompanyCountry}
582 + </td>
583 + </tr>
584 + <th colspan = "2">
585 + <b>Your Contact Information</b>
586 + </th>
587 +
588 + <tr>
460 460   <td align="hidden" class="style1">Title:</td>
461 461   <td class="style1">
462 462   <input type="hidden" id="title" name="title" readonly value="${xcontext.strTitle}" size="10">
© 2022 TruCert Assessment Services Inc.
V01-00