Changes for page X1000 - Contact Registration Form
Last modified by SuperUwe Trueggelmann on 2025-04-18
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
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,8 +116,16 @@ 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" 142 + strEmailBody = strEmailBody + "Registered name:\r\n" 119 119 strEmailBody = strEmailBody + "Name: " + strTitle + " " + strFirstname + " " + strLastname + "\r\n" 120 - strEmailBody = strEmailBody + "Company: " + strCompanyName + "\r\n" 144 + strEmailBody = strEmailBody + "Registered Business Address:\r\n" 145 + strEmailBody = strEmailBody + "Registered Business Name: " + strCompanyName + "\r\n" 146 + strEmailBody = strEmailBody + "Registered Business Address: " + strCompanyAddress + "\r\n" 147 + strEmailBody = strEmailBody + "Registered Business City: " + strCompanyAddress + "\r\n" 148 + strEmailBody = strEmailBody + "Registered Business Postal Code: " + strCompanyAddress + "\r\n" 149 + strEmailBody = strEmailBody + "Registered Business Province/State: " + strCompanyAddress + "\r\n" 150 + strEmailBody = strEmailBody + "Registered Business Country: " + strCompanyAddress + "\r\n" 151 + strEmailBody = strEmailBody + "Contact info:" 121 121 strEmailBody = strEmailBody + "Role: " + strRole + "\r\n" 122 122 strEmailBody = strEmailBody + "Landline phone: " + strLphone + "\r\n" 123 123 strEmailBody = strEmailBody + "Mobile phone:" + strMphone + "\r\n" + "\r\n" ... ... @@ -131,6 +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) 165 + xcontext.put("strCompanyAddress",strCompanyAddress) 166 + xcontext.put("strCompanyCity",strCompanyCity) 167 + xcontext.put("strCompanyPostcode",strCompanyPostcode) 168 + xcontext.put("strCompanyProvince",strCompanyProvince) 169 + xcontext.put("strCompanyCountry",strCompanyCountry) 134 134 xcontext.put("strTitle",strTitle) 135 135 xcontext.put("strFirstname",strFirstname) 136 136 xcontext.put("strLastname",strLastname) ... ... @@ -145,6 +145,11 @@ 145 145 } 146 146 if (strEditCommand == "Proceed"){ 147 147 xcontext.put("strCompanyName",strCompanyName) 184 + xcontext.put("strCompanyAddress",strCompanyAddress) 185 + xcontext.put("strCompanyCity",strCompanyCity) 186 + xcontext.put("strCompanyPostcode",strCompanyPostcode) 187 + xcontext.put("strCompanyProvince",strCompanyProvince) 188 + xcontext.put("strCompanyCountry",strCompanyCountry) 148 148 xcontext.put("strTitle",strTitle) 149 149 xcontext.put("strFirstname",strFirstname) 150 150 xcontext.put("strLastname",strLastname) ... ... @@ -159,6 +159,11 @@ 159 159 } 160 160 if (strEditCommand == "Correct"){ 161 161 xcontext.put("strCompanyName",strCompanyName) 203 + xcontext.put("strCompanyAddress",strCompanyAddress) 204 + xcontext.put("strCompanyCity",strCompanyCity) 205 + xcontext.put("strCompanyPostcode",strCompanyPostcode) 206 + xcontext.put("strCompanyProvince",strCompanyProvince) 207 + xcontext.put("strCompanyCountry",strCompanyCountry) 162 162 xcontext.put("strTitle",strTitle) 163 163 xcontext.put("strFirstname",strFirstname) 164 164 xcontext.put("strLastname",strLastname) ... ... @@ -327,9 +327,12 @@ 327 327 #if( $xcontext.strFormStatus == "DataCorrection" ) 328 328 {{html wiki=false clean=false}} 329 329 <form action="" class="xformInline" method="post" name="User Registration Form"> 330 - <table id=" table1"; cellspacing="5px" cellpadding="5%" border="1" width="100%"; align="left">376 + <table id="cecTable"; cellspacing="5px" cellpadding="5%" border="1" width="100%"; align="left"> 331 331 <col style="width:30%"> 332 332 <col style="width:70%"> 379 + <th colspan = "2"> 380 + <b>Company Information</b> 381 + </th> 333 333 <tr> 334 334 <td align="left" class="style1">Company name:</td> 335 335 <td class="style1"> ... ... @@ -338,6 +338,44 @@ 338 338 </td> 339 339 </tr> 340 340 <tr> 390 + <td align="left" class="style1">Registered Business Address - House Number, Street:</td> 391 + <td class="style1"> 392 + <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"> 393 + </select> 394 + </td> 395 + </tr> 396 + <tr> 397 + <td align="left" class="style1">Registered Business Address - City:</td> 398 + <td class="style1"> 399 + <input type="text" id="companycity" name="companycity" placeholder="Enter the City part of your company's registered business address" size="100"> 400 + </select> 401 + </td> 402 + </tr> 403 + <tr> 404 + <td align="left" class="style1">Registered Business Address - Postal Code:</td> 405 + <td class="style1"> 406 + <input type="text" id="companypostcode" name="companypostcode" placeholder="Enter the Postal Code part of your company's registered business address" size="100"> 407 + </select> 408 + </td> 409 + </tr> 410 + <tr> 411 + <td align="left" class="style1">Registered Business Address - Province or State:</td> 412 + <td class="style1"> 413 + <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"> 414 + </select> 415 + </td> 416 + </tr> 417 + <tr> 418 + <td align="left" class="style1">Registered Business Address - Country:</td> 419 + <td class="style1"> 420 + <input type="text" id="companycountry" name="companycountry" placeholder="Enter the Country part of your company's registered business address" size="50"> 421 + </select> 422 + </td> 423 + </tr> 424 + <th colspan = "2"> 425 + <b>Your Contact Information</b> 426 + </th> 427 + <tr> 341 341 <td align="left" class="style1">Title:</td> 342 342 <td class="style1"> 343 343 <input type="text" id="title" name="title" placeholder="Enter your title" value="${xcontext.strTitle}" size="20"> ... ... @@ -400,9 +400,12 @@ 400 400 You have entered the following information to register to the CEC Scheme: 401 401 {{html wiki=false clean=false}} 402 402 <form action="" class="xformInline" method="post" name="User Registration Form"> 403 - <table id=" table1"; cellspacing="5px" cellpadding="5%" border="1" width="100%"; align="left">490 + <table id="cecTable"; cellspacing="5px" cellpadding="5%" border="1" width="100%"; align="left"> 404 404 <col style="width:30%"> 405 405 <col style="width:70%"> 493 + <th colspan = "2"> 494 + <b>Company Information</b> 495 + </th> 406 406 <tr> 407 407 <td align="left" class="style1">Company name:</td> 408 408 <td class="style1"> ... ... @@ -411,6 +411,45 @@ 411 411 </td> 412 412 </tr> 413 413 <tr> 504 + <td align="left" class="style1">Registered Business Address - House Number, Street:</td> 505 + <td class="style1"> 506 + <input type="hidden" id="companyaddress" name="companyaddress" readonly value="${xcontext.strCompanyAddress}" size="100"> 507 + ${xcontext.strCompanyAddress} 508 + </td> 509 + </tr> 510 + <tr> 511 + <td align="left" class="style1">Registered Business Address - City:</td> 512 + <td class="style1"> 513 + <input type="hidden" id="companycity" name="companycity" readonly value="${xcontext.strCompanyCity}" size="100"> 514 + ${xcontext.strCompanyCity} 515 + </td> 516 + </tr> 517 + <tr> 518 + <td align="left" class="style1">Registered Business Address - Postal Code:</td> 519 + <td class="style1"> 520 + <input type="hidden" id="companypostcode" name="companypostcode" readonly value="${xcontext.strCompanyPostcode}" size="100"> 521 + ${xcontext.strCompanyPostcode} 522 + </td> 523 + </tr> 524 + <tr> 525 + <td align="left" class="style1">Registered Business Address - Province or State:</td> 526 + <td class="style1"> 527 + <input type="hidden" id="companyprovince" name="companyprovince" readonly value="${xcontext.strCompanyProvince}" size="100"> 528 + ${xcontext.strCompanyProvince} 529 + </td> 530 + </tr> 531 + <tr> 532 + <td align="left" class="style1">Registered Business Address - Country:</td> 533 + <td class="style1"> 534 + <input type="hidden" id="companycountry" name="companycountry" readonly value="${xcontext.strCompanyCountry}" size="50"> 535 + ${xcontext.strCompanyCountry} 536 + </td> 537 + </tr> 538 + <th colspan = "2"> 539 + <b>Your Contact Information</b> 540 + </th> 541 + 542 + <tr> 414 414 <td align="hidden" class="style1">Title:</td> 415 415 <td class="style1"> 416 416 <input type="hidden" id="title" name="title" readonly value="${xcontext.strTitle}" size="10"> ... ... @@ -491,6 +491,13 @@ 491 491 <p>After you click the below <b>Register</b> button, you should receive an automatically generated e-mail to the primary e-mail address you provide in the form above, containing a verification link. You must verify your e-mail address by clicking this verification link contained in the e-mail within 24 hours, otherwise your data may be deleted and you will have to restart the registration process.</p> 492 492 493 493 <input type="hidden" id="companyname" name="companyname" readonly value="${xcontext.strCompanyName}" size="50"> 623 + 624 +<input type="hidden" id="companycity" name="companycity" readonly value="${xcontext.strCompanyAddress}" size="100"> 625 +<input type="hidden" id="companyaddress" name="companyaddress" readonly value="${xcontext.strCompanyCity}" size="100"> 626 +<input type="hidden" id="companypostcode" name="companypostcode" readonly value="${xcontext.strCompanyPostcode}" size="100"> 627 +<input type="hidden" id="companyprovince" name="companyprovince" readonly value="${xcontext.strCompanyProvince}" size="100"> 628 +<input type="hidden" id="companycountry" name="companycountry" readonly value="${xcontext.strCompanyCountry}" size="50"> 629 + 494 494 <input type="hidden" id="title" name="title" readonly value="${xcontext.strTitle}" size="10"> 495 495 <input type="hidden" id="firstname" name="firstname" readonly value="${xcontext.strFirstname}" size="50"> 496 496 <input type="hidden" id="lastname" name="lastname" readonly value="${xcontext.strLastname}" size="50">