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
-
... ... @@ -38,11 +38,7 @@ 38 38 if ((strEditCommand == "Correct") || (strEditCommand == "Register") || (strEditCommand == "Proceed")){ 39 39 40 40 strCompanyName = services.cleanStr.alphanum(request.companyname) 41 - strCompanyAddress = services.cleanStr.alphanum(request.companyaddress) 42 - strCompanyCity = services.cleanStr.alphanum(request.companycity) 43 - strCompanyPostcode = services.cleanStr.alphanum(request.companypostcode) 44 - strCompanyProvince = services.cleanStr.alphanum(request.companyprovince) 45 - strCompanyCountry = services.cleanStr.alphanum(request.companycountry) 41 +// println "Received Company name: " + strCompanyName 46 46 strTitle = services.cleanStr.alphanum(request.title) 47 47 strFirstname = services.cleanStr.alphanum(request.firstname) 48 48 strLastname = services.cleanStr.alphanum(request.lastname) ... ... @@ -51,6 +51,7 @@ 51 51 strLphone = services.cleanStr.numphone(request.lphone) 52 52 strMphone = services.cleanStr.numphone(request.mphone) 53 53 strEmail = services.cleanStr.alphanum(request.email) 50 +// println "Received E-mail: " + strEmail 54 54 strEmail2 = services.cleanStr.alphanum(request.email2) 55 55 strCreateTime = java.time.ZonedDateTime.now() 56 56 strCreateIP = request.remoteAddr ... ... @@ -62,11 +62,6 @@ 62 62 sqlQueryInsertRec = "INSERT INTO " + strDBTable + 63 63 """( 64 64 companyname, 65 - companyaddress, 66 - companycity, 67 - companypostcode, 68 - companyprovince, 69 - companycountry, 70 70 title, 71 71 firstname, 72 72 lastname, ... ... @@ -82,11 +82,6 @@ 82 82 confemailsentcode) 83 83 VALUES( 84 84 '$strCompanyName', 85 - '$strCompanyAddress', 86 - '$strCompanyCity', 87 - '$strCompanyPostcode', 88 - '$strCompanyProvince', 89 - '$strCompanyCountry', 90 90 '$strTitle', 91 91 '$strFirstname', 92 92 '$strLastname', ... ... @@ -130,12 +130,7 @@ 130 130 strEmailBody = "Dear " + strPrefname + "," 131 131 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" 132 132 strEmailBody = strEmailBody + "Name: " + strTitle + " " + strFirstname + " " + strLastname + "\r\n" 133 - strEmailBody = strEmailBody + "Registered Business Name: " + strCompanyName + "\r\n" 134 - strEmailBody = strEmailBody + "Registered Business Address: " + strCompanyAddress + "\r\n" 135 - strEmailBody = strEmailBody + "Registered Business City: " + strCompanyAddress + "\r\n" 136 - strEmailBody = strEmailBody + "Registered Business Postal Code: " + strCompanyAddress + "\r\n" 137 - strEmailBody = strEmailBody + "Registered Business Province/State: " + strCompanyAddress + "\r\n" 138 - strEmailBody = strEmailBody + "Registered Business Country: " + strCompanyAddress + "\r\n" 120 + strEmailBody = strEmailBody + "Company: " + strCompanyName + "\r\n" 139 139 strEmailBody = strEmailBody + "Role: " + strRole + "\r\n" 140 140 strEmailBody = strEmailBody + "Landline phone: " + strLphone + "\r\n" 141 141 strEmailBody = strEmailBody + "Mobile phone:" + strMphone + "\r\n" + "\r\n" ... ... @@ -149,11 +149,6 @@ 149 149 xcontext.put("strEmailBody",strEmailBody) 150 150 // services.writeLog.writeLogEntry(xcontext.getUser(), request.remoteAddr, doc.space, "INSERT AS NEW", intCurUID) 151 151 xcontext.put("strCompanyName",strCompanyName) 152 - xcontext.put("strCompanyName",strCompanyAddress) 153 - xcontext.put("strCompanyName",strCompanyCity) 154 - xcontext.put("strCompanyName",strCompanyPostcode) 155 - xcontext.put("strCompanyName",strCompanyProvince) 156 - xcontext.put("strCompanyName",strCompanyCountry) 157 157 xcontext.put("strTitle",strTitle) 158 158 xcontext.put("strFirstname",strFirstname) 159 159 xcontext.put("strLastname",strLastname) ... ... @@ -168,11 +168,6 @@ 168 168 } 169 169 if (strEditCommand == "Proceed"){ 170 170 xcontext.put("strCompanyName",strCompanyName) 171 - xcontext.put("strCompanyName",strCompanyAddress) 172 - xcontext.put("strCompanyName",strCompanyCity) 173 - xcontext.put("strCompanyName",strCompanyPostcode) 174 - xcontext.put("strCompanyName",strCompanyProvince) 175 - xcontext.put("strCompanyName",strCompanyCountry) 176 176 xcontext.put("strTitle",strTitle) 177 177 xcontext.put("strFirstname",strFirstname) 178 178 xcontext.put("strLastname",strLastname) ... ... @@ -187,11 +187,6 @@ 187 187 } 188 188 if (strEditCommand == "Correct"){ 189 189 xcontext.put("strCompanyName",strCompanyName) 190 - xcontext.put("strCompanyName",strCompanyAddress) 191 - xcontext.put("strCompanyName",strCompanyCity) 192 - xcontext.put("strCompanyName",strCompanyPostcode) 193 - xcontext.put("strCompanyName",strCompanyProvince) 194 - xcontext.put("strCompanyName",strCompanyCountry) 195 195 xcontext.put("strTitle",strTitle) 196 196 xcontext.put("strFirstname",strFirstname) 197 197 xcontext.put("strLastname",strLastname) ... ... @@ -214,40 +214,10 @@ 214 214 ##$xcontext.strFormStatus 215 215 #if( $xcontext.strFormStatus == "DataEntry" ) 216 216 {{html wiki=false clean=false}} 217 -<head> 218 -<style> 219 -#cecTable { 220 - font-family: Arial, Helvetica, sans-serif; 221 - border-collapse: collapse; 222 - border-color: #007d84 223 - width: 100%; 224 -} 225 - 226 -#cecTable td, #cecTable th { 227 - border: 1px solid #007d84; 228 - padding: 8px; 229 -} 230 - 231 -#cecTable tr:nth-child(even){background-color: #d0d3d4;} 232 - 233 -#cecTable tr:hover {background-color: #ddd;} 234 - 235 -#cecTable th { 236 - padding-top: 12px; 237 - padding-bottom: 12px; 238 - text-align: left; 239 - background-color: #007d84; 240 - color: white; 241 -} 242 -</style> 243 -</head> 244 - <form action="" class="xformInline" method="post" name="Contact Edit Form"> 245 - <table id="cecTable"; cellspacing="5px" cellpadding="5%" border="1" width="100%"; align="left"> 184 + <form action="" class="xformInline" method="post" name="User Registration Form"> 185 + <table id="table1"; cellspacing="5px" cellpadding="5%" border="1" width="100%"; align="left"> 246 246 <col style="width:30%"> 247 - <col style="width:70%"> 248 - <th colspan = "2"> 249 - <b>Company Information</b> 250 - </th> 187 + <col style="width:70%"> 251 251 <tr> 252 252 <td align="left" class="style1">Company name:</td> 253 253 <td class="style1"> ... ... @@ -265,7 +265,7 @@ 265 265 <tr> 266 266 <td align="left" class="style1">Registered Business Address - City:</td> 267 267 <td class="style1"> 268 - <input type="text" id="companycity" name="companycity" placeholder="Enter the City part of your company's registered business address" size=" 100">205 + <input type="text" id="companycity" name="companycity" placeholder="Enter the City part of your company's registered business address" size="50"> 269 269 </select> 270 270 </td> 271 271 </tr> ... ... @@ -272,7 +272,7 @@ 272 272 <tr> 273 273 <td align="left" class="style1">Registered Business Address - Postal Code:</td> 274 274 <td class="style1"> 275 - <input type="text" id="companypostcode" name="companypostcode" placeholder="Enter the Postal Code part of your company's registered business address" size="10 0">212 + <input type="text" id="companypostcode" name="companypostcode" placeholder="Enter the Postal Code part of your company's registered business address" size="10"> 276 276 </select> 277 277 </td> 278 278 </tr> ... ... @@ -279,21 +279,11 @@ 279 279 <tr> 280 280 <td align="left" class="style1">Registered Business Address - Province or State:</td> 281 281 <td class="style1"> 282 - <input type="text" id="company province" name="companyprovince" placeholder="Enter the Province or State part of your company's registered business address, leave empty if n/a" size="100">219 + <input type="text" id="companycity" name="companycity" placeholder="Enter the Province or State part of your company's registered business address, leave empty if n/a" size="100"> 283 283 </select> 284 284 </td> 285 285 </tr> 286 286 <tr> 287 - <td align="left" class="style1">Registered Business Address - Country:</td> 288 - <td class="style1"> 289 - <input type="text" id="companycountry" name="companycountry" placeholder="Enter the Country part of your company's registered business address" size="50"> 290 - </select> 291 - </td> 292 - </tr> 293 - <th colspan = "2"> 294 - <b>Your Contact Information</b> 295 - </th> 296 - <tr> 297 297 <td align="left" class="style1">Title:</td> 298 298 <td class="style1"> 299 299 <input type="text" id="title" name="title" placeholder="Enter your title (Ms, Mr, Dr, etc)" size="30"> ... ... @@ -360,12 +360,9 @@ 360 360 #if( $xcontext.strFormStatus == "DataCorrection" ) 361 361 {{html wiki=false clean=false}} 362 362 <form action="" class="xformInline" method="post" name="User Registration Form"> 363 - <table id=" cecTable"; cellspacing="5px" cellpadding="5%" border="1" width="100%"; align="left">290 + <table id="table1"; cellspacing="5px" cellpadding="5%" border="1" width="100%"; align="left"> 364 364 <col style="width:30%"> 365 365 <col style="width:70%"> 366 - <th colspan = "2"> 367 - <b>Company Information</b> 368 - </th> 369 369 <tr> 370 370 <td align="left" class="style1">Company name:</td> 371 371 <td class="style1"> ... ... @@ -374,44 +374,6 @@ 374 374 </td> 375 375 </tr> 376 376 <tr> 377 - <td align="left" class="style1">Registered Business Address - House Number, Street:</td> 378 - <td class="style1"> 379 - <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"> 380 - </select> 381 - </td> 382 - </tr> 383 - <tr> 384 - <td align="left" class="style1">Registered Business Address - City:</td> 385 - <td class="style1"> 386 - <input type="text" id="companycity" name="companycity" placeholder="Enter the City part of your company's registered business address" size="100"> 387 - </select> 388 - </td> 389 - </tr> 390 - <tr> 391 - <td align="left" class="style1">Registered Business Address - Postal Code:</td> 392 - <td class="style1"> 393 - <input type="text" id="companypostcode" name="companypostcode" placeholder="Enter the Postal Code part of your company's registered business address" size="100"> 394 - </select> 395 - </td> 396 - </tr> 397 - <tr> 398 - <td align="left" class="style1">Registered Business Address - Province or State:</td> 399 - <td class="style1"> 400 - <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"> 401 - </select> 402 - </td> 403 - </tr> 404 - <tr> 405 - <td align="left" class="style1">Registered Business Address - Country:</td> 406 - <td class="style1"> 407 - <input type="text" id="companycountry" name="companycountry" placeholder="Enter the Country part of your company's registered business address" size="50"> 408 - </select> 409 - </td> 410 - </tr> 411 - <th colspan = "2"> 412 - <b>Your Contact Information</b> 413 - </th> 414 - <tr> 415 415 <td align="left" class="style1">Title:</td> 416 416 <td class="style1"> 417 417 <input type="text" id="title" name="title" placeholder="Enter your title" value="${xcontext.strTitle}" size="20"> ... ... @@ -565,13 +565,6 @@ 565 565 <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> 566 566 567 567 <input type="hidden" id="companyname" name="companyname" readonly value="${xcontext.strCompanyName}" size="50"> 568 - 569 -<input type="hidden" id="companycity" name="companycity" readonly value="${xcontext.strCompanyAddress}" size="100"> 570 -<input type="hidden" id="companyaddress" name="companyaddress" readonly value="${xcontext.strCompanyCity}" size="100"> 571 -<input type="hidden" id="companypostcode" name="companypostcode" readonly value="${xcontext.strCompanyPostcode}" size="100"> 572 -<input type="hidden" id="companyprovince" name="companyprovince" readonly value="${xcontext.strCompanyProvince}" size="100"> 573 -<input type="hidden" id="companycountry" name="companycountry" readonly value="${xcontext.strCompanyCountry}" size="50"> 574 - 575 575 <input type="hidden" id="title" name="title" readonly value="${xcontext.strTitle}" size="10"> 576 576 <input type="hidden" id="firstname" name="firstname" readonly value="${xcontext.strFirstname}" size="50"> 577 577 <input type="hidden" id="lastname" name="lastname" readonly value="${xcontext.strLastname}" size="50">