| 245 | | var commentVals = comment.split('\t'); |
|---|
| 246 | | this.locationAddress = commentVals[0]; |
|---|
| 247 | | this.locationSubaddress = commentVals[1]; |
|---|
| 248 | | this.locationUrl = commentVals[2]; |
|---|
| 249 | | this.contactName = commentVals[3]; |
|---|
| 250 | | this.contactPhone = commentVals[4]; |
|---|
| 251 | | this.contactUrl = commentVals[5]; |
|---|
| 252 | | this.contactEmail = commentVals[6]; |
|---|
| 253 | | this.category = commentVals[7]; |
|---|
| 254 | | this.notes = commentVals[8]; |
|---|
| | 245 | var commentVals = comment.split("\t"); |
|---|
| | 246 | this.locationAddress = (commentVals[0] == undefined) ? "" : commentVals[0]; |
|---|
| | 247 | this.locationSubaddress = (commentVals[1] == undefined) ? "" : commentVals[1]; |
|---|
| | 248 | this.locationUrl = (commentVals[2] == undefined) ? "" : commentVals[2]; |
|---|
| | 249 | this.contactName = (commentVals[3] == undefined) ? "" : commentVals[3]; |
|---|
| | 250 | this.contactPhone = (commentVals[4] == undefined) ? "" : commentVals[4]; |
|---|
| | 251 | this.contactUrl = (commentVals[5] == undefined) ? "" : commentVals[5]; |
|---|
| | 252 | this.contactEmail = (commentVals[6] == undefined) ? "" : commentVals[6]; |
|---|
| | 253 | this.category = (commentVals[7] == undefined) ? "" : commentVals[7]; |
|---|
| | 254 | this.notes = (commentVals[8] == undefined) ? "" : commentVals[8]; |
|---|
| 259 | | output += '<tr><th colspan="2">Suggested Location:</th><th colspan="2">Suggested Contact:</th></tr>'; |
|---|
| 260 | | output += '<tr><td>Address:</td><td>' + this.locationAddress + '</td><td>Name:</td><td>' + this.contactName + '</td></tr>'; |
|---|
| 261 | | output += '<tr><td>Subaddress:</td><td>' + this.locationSubddress + '</td><td>Phone:</td><td>' + this.contactPhone + '</td></tr>'; |
|---|
| 262 | | output += '<tr><td>URL:</td><td>' + this.locationUrl + '</td><td>URL:</td><td>' + this.contactUrl + '</td></tr>'; |
|---|
| 263 | | output += '<tr><td colspan="2"></td><td>Email:</td><td>' + this.contactEmail + '</td></tr>'; |
|---|
| 264 | | output += '<tr><th colspan="4">Notes:</th></tr>'; |
|---|
| 265 | | output += '<tr><td colspan="4">' + this.notes + '</td></tr>'; |
|---|
| | 259 | output += '<tr><th colspan="2">Suggested Location:</th></tr>'; |
|---|
| | 260 | output += '<tr><td>Address:</td><td>' + this.locationAddress + '</td>'; |
|---|
| | 261 | output += '<tr><td>Subaddress:</td><td>' + this.locationSubaddress + '</td>'; |
|---|
| | 262 | output += '<tr><td>URL:</td><td>' + this.locationUrl + '</td>'; |
|---|
| 281 | | commentWindow.document.writeln('<style type="text/css">body{background-color: #ffe; color: black; padding: 1em; font-size: 0.9em; font-family: Arial,sans-serif;}th{text-align: left;}td{padding-left: 2em;}</style></head>'); |
|---|
| 282 | | commentWindow.document.writeln("<body><h2>Comments from Submitter</h2>"); |
|---|
| | 287 | commentWindow.document.writeln('<style type="text/css">'); |
|---|
| | 288 | commentWindow.document.writeln('body{background-color: #ffe; color: black; padding: 1em; font-size: 0.9em; font-family: Arial,sans-serif;}'); |
|---|
| | 289 | commentWindow.document.writeln('table{float: left; margin: 1em 1em 0 0; padding: 0.5em; border: 1px solid #ccc; font-size: 0.9em;}'); |
|---|
| | 290 | commentWindow.document.writeln('th{text-align: left;}'); |
|---|
| | 291 | commentWindow.document.writeln('td{padding-left: 2em;}'); |
|---|
| | 292 | commentWindow.document.writeln('p{clear:both; padding-top: 1em;}'); |
|---|
| | 293 | commentWindow.document.writeln('</style></head>'); |
|---|
| | 294 | commentWindow.document.writeln("<body><h3>Comments from Submitter</h3>"); |
|---|