| 1 | <html> |
| 2 | <head> |
| 3 | <link rel="profile" href="http://microformats.org/profile/hcard" /> |
| 4 | <style> |
| 5 | body, table { |
| 6 | font-family:arial; |
| 7 | font-size: 10pt; |
| 8 | line-height: 1.5em; |
| 9 | } |
| 10 | img { |
| 11 | border: 0; |
| 12 | } |
| 13 | .l { |
| 14 | font-variant: small-caps; |
| 15 | } |
| 16 | .indent { |
| 17 | margin-left: 5px; |
| 18 | padding-left: 5px; |
| 19 | border-left: 1px solid #000; |
| 20 | } |
| 21 | #imagePopup { |
| 22 | position: fixed; |
| 23 | z-index: 999; /* prevent audio control from appearing over the div */ |
| 24 | left: 0px; |
| 25 | top: 0px; |
| 26 | height: 100%; |
| 27 | width: 100%; |
| 28 | cursor: pointer; |
| 29 | background-image: url('${utils.base64(translucentBg.contentType.mediaType, translucentBg.data)}'); |
| 30 | } |
| 31 | </style> |
| 32 | |
| 33 | <script> |
| 34 | function showImage(a){ |
| 35 | var imgs = a.getElementsByTagName('img'); |
| 36 | if (imgs.length == 0){ |
| 37 | return; |
| 38 | } |
| 39 | var img = imgs[0]; |
| 40 | |
| 41 | var imagePopup_img = document.getElementById("imagePopup_img"); |
| 42 | imagePopup_img.src = img.src; |
| 43 | var imagePopup = document.getElementById('imagePopup'); |
| 44 | imagePopup.style.display = 'block'; |
| 45 | } |
| 46 | |
| 47 | function resizeRelative(img, maxHeight, maxWidth) { |
| 48 | var ratio = 0; |
| 49 | var width = img.width; |
| 50 | var height = img.height; |
| 51 | |
| 52 | if (width > maxWidth) { |
| 53 | ratio = maxWidth / width; |
| 54 | img.width = maxWidth; |
| 55 | img.height = height * ratio; |
| 56 | height = height * ratio; |
| 57 | width = width * ratio; |
| 58 | } |
| 59 | |
| 60 | if (height > maxHeight) { |
| 61 | ratio = maxHeight / height; |
| 62 | img.height = maxHeight; |
| 63 | img.width = width * ratio; |
| 64 | } |
| 65 | } |
| 66 | </script> |
| 67 | </head> |
| 68 | <body> |
| 69 | |
| 70 | <div id="imagePopup" onclick="this.style.display='none'" style="display:none"> |
| 71 | <table style="width:100%; height:100%"> |
| 72 | <tr> |
| 73 | <td valign="middle" align="center"> |
| 74 | <img id="imagePopup_img" src="" /> |
| 75 | </td> |
| 76 | </tr> |
| 77 | </table> |
| 78 | </div> |
| 79 | |
| 80 | <#list vcards as v> |
| 81 | <div class="vcard"> |
| 82 | <#if v.sortString?? && v.sortString.value??> |
| 83 | <#assign sortString=v.sortString.value> |
| 84 | <#elseif v.structuredName?? && v.structuredName.sortAs?has_content> |
| 85 | <#assign sortString=""> |
| 86 | <#list v.structuredName.sortAs as name> |
| 87 | <#assign sortString = sortString + name> |
| 88 | <#if name_has_next> |
| 89 | <#assign sortString = sortString + ","> |
| 90 | </#if> |
| 91 | </#list> |
| 92 | <#elseif v.organization?? && v.organization.sortAs?has_content> |
| 93 | <#assign sortString=""> |
| 94 | <#list v.organization.sortAs as name> |
| 95 | <#assign sortString = sortString + name> |
| 96 | <#if name_has_next> |
| 97 | <#assign sortString = sortString + ","> |
| 98 | </#if> |
| 99 | </#list> |
| 100 | </#if> |
| 101 | <#if sortString??> |
| 102 | <abbr class="sort-string" title="${sortString}"></abbr> |
| 103 | </#if> |
| 104 | |
| 105 | <table> |
| 106 | <tr> |
| 107 | <td valign="top"> |
| 108 | <#assign makeLink=true> |
| 109 | <#if v.photos?has_content> |
| 110 | <#assign photo=v.photos[0]> |
| 111 | <#if photo.url??> |
| 112 | <#assign imgSrc=photo.url> |
| 113 | <#elseif photo.data??> |
| 114 | <#assign imgSrc=utils.base64(photo.contentType.mediaType, photo.data)> |
| 115 | </#if> |
| 116 | <#assign imgClass="photo"> |
| 117 | <#elseif v.logos?has_content> |
| 118 | <#assign logo=v.logos[0]> |
| 119 | <#if logo.url??> |
| 120 | <#assign imgSrc=logo.url> |
| 121 | <#elseif logo.data??> |
| 122 | <#assign imgSrc=utils.base64(logo.contentType.mediaType, logo.data)> |
| 123 | </#if> |
| 124 | <#assign imgClass="logo"> |
| 125 | <#else> |
| 126 | <#assign imgSrc=utils.base64(noProfile.contentType.mediaType, noProfile.data)> |
| 127 | <#assign makeLink=false> |
| 128 | </#if> |
| 129 | <#if makeLink><a href="#" onclick="showImage(this); return false;"></#if> |
| 130 | <img <#if imgClass??>class="${imgClass}"</#if> onload="resizeRelative(this, 100, 100)" src="${imgSrc}" /> |
| 131 | <#if makeLink></a></#if> |
| 132 | </td> |
| 133 | <td valign="top"> |
| 134 | <#if v.formattedName?? && v.formattedName.value??> |
| 135 | <h1 class="fn">${v.formattedName.value}</h1> |
| 136 | <#elseif v.structuredName?? && v.structuredName.family?? && v.structuredName.given??> |
| 137 | <h1>${v.structuredName.given} ${v.structuredName.family}</h1> |
| 138 | <#else> |
| 139 | <h1>VCard #${v_index + 1}</h1> |
| 140 | </#if> |
| 141 | |
| 142 | <#if v.nickname?? && v.nickname.values?has_content> |
| 143 | <span class="l">Nicknames: </span> |
| 144 | <#list v.nickname.values as nickname> |
| 145 | <span class="nickname">${nickname}</span><#if nickname_has_next>, </#if> |
| 146 | </#list> |
| 147 | <br /> |
| 148 | </#if> |
| 149 | |
| 150 | <#if v.birthday?? && v.birthday.date??> |
| 151 | <span class="l">Birthday: </span> |
| 152 | <time class="bday" datetime="${utils.format(v.birthday.date, "yyyy-MM-dd")}">${utils.format(v.birthday.date, "MMMM d, yyyy")}</time> |
| 153 | <br /> |
| 154 | </#if> |
| 155 | |
| 156 | <#if v.categories?? && v.categories.values?has_content> |
| 157 | <span class="l">Tags: </span> |
| 158 | <#list v.categories.values as category> |
| 159 | <span class="category">${category}</span><#if category_has_next>, </#if> |
| 160 | </#list> |
| 161 | <br /> |
| 162 | </#if> |
| 163 | </td> |
| 164 | </tr> |
| 165 | </table> |
| 166 | |
| 167 | <#if v.sounds?has_content> |
| 168 | <#assign sound=v.sounds[0]> |
| 169 | <#if sound.url?? || sound.data??> |
| 170 | <#if sound.url??> |
| 171 | <#assign sourceSrc=sound.url> |
| 172 | <#else> |
| 173 | <#assign sourceSrc=utils.base64(sound.contentType.mediaType, sound.data)> |
| 174 | </#if> |
| 175 | <audio controls="controls"> |
| 176 | <source id="audioClip" class="sound" src="${sourceSrc}" type="${sound.contentType.mediaType}" /> |
| 177 | <span class="l">Audio clip: </span><a href="#" onclick="window.location=document.getElementById('audioClip').src">[download]</a> |
| 178 | </audio> |
| 179 | <br /> |
| 180 | </#if> |
| 181 | </#if> |
| 182 | |
| 183 | <br /> |
| 184 | |
| 185 | <#if v.classification?? && v.classification.value??> |
| 186 | <span class="l">Data classification: </span> |
| 187 | <span class="class">${v.classification.value}</span> |
| 188 | <br /> |
| 189 | </#if> |
| 190 | |
| 191 | <#if v.uid?? && v.uid.value??> |
| 192 | <span class="l">Unique identifier: </span> |
| 193 | <span class="uid">${v.uid.value}</span> |
| 194 | <br /> |
| 195 | </#if> |
| 196 | |
| 197 | <#if v.revision?? && v.revision.value??> |
| 198 | <span class="l">vCard last updated: </span> |
| 199 | <time class="rev" datetime="${utils.format(v.revision.value, "yyyy-MM-dd'T'HH:mm:ssX")}">${utils.formatLocal(v.revision.value, "MMMM d, yyyy h:m a Z")}</time> |
| 200 | <br /> |
| 201 | </#if> |
| 202 | |
| 203 | <table> |
| 204 | <tr> |
| 205 | <td valign="top"> |
| 206 | <#if v.addresses?has_content> |
| 207 | <span class="l">Addresses:</span> |
| 208 | <div class="indent"> |
| 209 | <#list v.addresses as adr> |
| 210 | <div class="adr"> |
| 211 | <#if adr.label??> |
| 212 | <span class="label"><span class="value" style="display:none">${utils.lineBreaks(adr.label?html)}</span> |
| 213 | </#if> |
| 214 | |
| 215 | <#if adr.types?has_content> |
| 216 | <i> |
| 217 | <#list adr.types as t> |
| 218 | <span class="type">${t.value?capitalize}</span><#if t_has_next>, </#if> |
| 219 | </#list> |
| 220 | </i><br /> |
| 221 | </#if> |
| 222 | |
| 223 | <#if adr.label??> |
| 224 | </span> |
| 225 | </#if> |
| 226 | |
| 227 | <#if adr.poBox??> |
| 228 | P.O. Box <span class="post-office-box">${adr.poBox}</span><br /> |
| 229 | </#if> |
| 230 | <#if adr.streetAddress??> |
| 231 | <span class="street-address">${utils.lineBreaks(adr.streetAddress?html)}</span><br /> |
| 232 | </#if> |
| 233 | <#if adr.extendedAddress??> |
| 234 | <span class="extended-address">${utils.lineBreaks(adr.extendedAddress?html)}</span><br /> |
| 235 | </#if> |
| 236 | <#if adr.locality??> |
| 237 | <span class="locality">${adr.locality}</span><#if adr.region??>, </#if> |
| 238 | </#if> |
| 239 | <#if adr.region??> |
| 240 | <span class="region">${adr.region}</span> |
| 241 | </#if> |
| 242 | <#if adr.postalCode??> |
| 243 | <span class="postal-code">${adr.postalCode}</span> |
| 244 | </#if> |
| 245 | <#if adr.country??> |
| 246 | <br /><span class="country-name">${adr.country}</span> |
| 247 | </#if> |
| 248 | </div> |
| 249 | <br /> |
| 250 | </#list> |
| 251 | </div> |
| 252 | </#if> |
| 253 | </td> |
| 254 | <td valign="top" style="padding-left:20px"> |
| 255 | <#if v.telephoneNumbers?has_content> |
| 256 | <span class="l">Phone numbers:</span> |
| 257 | <div class="indent"> |
| 258 | <#list v.telephoneNumbers as tel> |
| 259 | <div class="tel"> |
| 260 | <#if tel.types?has_content> |
| 261 | <i> |
| 262 | <#list tel.types as t> |
| 263 | <span class="type">${t.value?capitalize}</span><#if t_has_next>, </#if> |
| 264 | </#list> |
| 265 | </i>: |
| 266 | </#if> |
| 267 | <span class="value"> |
| 268 | <#if tel.uri??> |
| 269 | ${tel.uri.number}<#if tel.uri.extension??> x${tel.uri.extension}</#if> |
| 270 | <#elseif tel.text??> |
| 271 | ${tel.text} |
| 272 | </#if> |
| 273 | </span> |
| 274 | </div> |
| 275 | </#list> |
| 276 | </div> |
| 277 | <br /> |
| 278 | </#if> |
| 279 | |
| 280 | <#if v.emails?has_content> |
| 281 | <span class="l">Emails:</span> |
| 282 | <div class="indent"> |
| 283 | <#list v.emails as email> |
| 284 | <div class="email"> |
| 285 | <#if email.types?has_content> |
| 286 | <i> |
| 287 | <#list email.types as t> |
| 288 | <span class="type">${t.value?capitalize}</span><#if t_has_next>, </#if> |
| 289 | </#list> |
| 290 | </i>: |
| 291 | </#if> |
| 292 | <a class="value" href="mailto:${email.value}">${email.value}</a> |
| 293 | </div> |
| 294 | </#list> |
| 295 | </div> |
| 296 | <br /> |
| 297 | </#if> |
| 298 | |
| 299 | <#if v.impps?has_content> |
| 300 | <span class="l">Instant messenger handles:</span> |
| 301 | <div class="indent"> |
| 302 | <#list v.impps as impp> |
| 303 | <#if impp.protocol == "aim"> |
| 304 | <#assign protocol="AOL"> |
| 305 | <#elseif impp.protocol== "icq"> |
| 306 | <#assign protocol="ICQ"> |
| 307 | <#elseif impp.protocol== "irc"> |
| 308 | <#assign protocol="IRC"> |
| 309 | <#elseif impp.protocol== "msnim"> |
| 310 | <#assign protocol="MSN"> |
| 311 | <#elseif impp.protocol== "sip"> |
| 312 | <#assign protocol="SIP"> |
| 313 | <#elseif impp.protocol== "skype"> |
| 314 | <#assign protocol="Skype"> |
| 315 | <#elseif impp.protocol== "xmpp"> |
| 316 | <#assign protocol="XMPP"> |
| 317 | <#elseif impp.protocol== "ymsgr"> |
| 318 | <#assign protocol="Yahoo!"> |
| 319 | <#else> |
| 320 | <#assign protocol=impp.protocol> |
| 321 | </#if> |
| 322 | <i>${protocol}</i>: <a class="url" href="${scribeIndex.getPropertyScribe(impp).writeHtmlLink(impp)}">${impp.handle}</a><br /> |
| 323 | </#list> |
| 324 | </div> |
| 325 | <br /> |
| 326 | </#if> |
| 327 | |
| 328 | <#if v.urls?has_content> |
| 329 | <span class="l">URLs:</span> |
| 330 | <div class="indent"> |
| 331 | <#list v.urls as url> |
| 332 | <a class="url" href="${url.value}">${url.value}</a><br /> |
| 333 | </#list> |
| 334 | </div> |
| 335 | </#if> |
| 336 | </td> |
| 337 | |
| 338 | <td valign="top" style="padding-left:20px"> |
| 339 | <#if v.structuredName??> |
| 340 | <span class="l">Name: </span> |
| 341 | <div class="n indent"> |
| 342 | <#if v.structuredName.family??> |
| 343 | <i>Family</i>: <span class="family-name">${v.structuredName.family}</span> |
| 344 | <br /> |
| 345 | </#if> |
| 346 | |
| 347 | <#if v.structuredName.given??> |
| 348 | <i>Given</i>: <span class="given-name">${v.structuredName.given}</span> |
| 349 | <br /> |
| 350 | </#if> |
| 351 | |
| 352 | <#if v.structuredName.additionalNames?has_content> |
| 353 | <i>Additional</i>: |
| 354 | <#list v.structuredName.additionalNames as n> |
| 355 | <span class="additional-name">${n}</span><#if n_has_next>, </#if> |
| 356 | </#list> |
| 357 | <br /> |
| 358 | </#if> |
| 359 | |
| 360 | <#if v.structuredName.prefixes?has_content> |
| 361 | <i>Honorific prefixes</i>: |
| 362 | <#list v.structuredName.prefixes as n> |
| 363 | <span class="honorific-prefix">${n}</span><#if n_has_next>, </#if> |
| 364 | </#list> |
| 365 | <br /> |
| 366 | </#if> |
| 367 | |
| 368 | <#if v.structuredName.suffixes?has_content> |
| 369 | <i>Honorific suffixes</i>: |
| 370 | <#list v.structuredName.suffixes as n> |
| 371 | <span class="honorific-suffix">${n}</span><#if n_has_next>, </#if> |
| 372 | </#list> |
| 373 | <br /> |
| 374 | </#if> |
| 375 | </div> |
| 376 | <br /> |
| 377 | </#if> |
| 378 | |
| 379 | <#if v.geo?? && v.geo.latitude?? && v.geo.longitude??> |
| 380 | <span class="l">Geo: </span> |
| 381 | <span class="geo"> |
| 382 | <span class="latitude">${v.geo.latitude?string("0.######")}</span>, |
| 383 | <span class="longitude">${v.geo.longitude?string("0.######")}</span> |
| 384 | </span> |
| 385 | <br /> |
| 386 | </#if> |
| 387 | |
| 388 | <#if v.mailer?? && v.mailer.value??> |
| 389 | <span class="l">Mailer: </span> |
| 390 | <span class="mailer">${v.mailer.value}</span> |
| 391 | <br /> |
| 392 | </#if> |
| 393 | |
| 394 | <#if v.timezone?? && v.timezone.offset??> |
| 395 | <span class="l">Timezone: </span> |
| 396 | <span class="tz"> |
| 397 | ${utils.format(v.timezone.offset)} |
| 398 | </span> |
| 399 | <br /> |
| 400 | </#if> |
| 401 | |
| 402 | <#if v.organization?? && v.organization.values?has_content> |
| 403 | <span class="l">Organization: </span> |
| 404 | <span class="org"> |
| 405 | <#list v.organization.values as org> |
| 406 | <#if org_index == 0> |
| 407 | <span class="organization-name">${org}</span><#if org_has_next>, </#if> |
| 408 | <#elseif org_index == 1> |
| 409 | <span class="organization-unit">${org}</span><#if org_has_next>, </#if> |
| 410 | <#else> |
| 411 | ${org}<#if org_has_next>, </#if> |
| 412 | </#if> |
| 413 | </#list> |
| 414 | </span> |
| 415 | <br /> |
| 416 | </#if> |
| 417 | |
| 418 | <#if v.titles?has_content> |
| 419 | <span class="l">Titles: </span> |
| 420 | <#list v.titles as title> |
| 421 | <span class="title">${title.value}</span><#if title_has_next>, </#if> |
| 422 | </#list> |
| 423 | <br /> |
| 424 | </#if> |
| 425 | |
| 426 | <#if v.roles?has_content> |
| 427 | <span class="l">Roles: </span> |
| 428 | <#list v.roles as role> |
| 429 | <span class="role">${role.value}</span><#if role_has_next>, </#if> |
| 430 | </#list> |
| 431 | <br /> |
| 432 | </#if> |
| 433 | </td> |
| 434 | </tr> |
| 435 | </table> |
| 436 | |
| 437 | <#if v.notes?has_content> |
| 438 | <span class="l">Notes:</span> |
| 439 | <#list v.notes as note> |
| 440 | <div class="note" style="font-family:monospace"> |
| 441 | ${utils.lineBreaks(note.value?html)} |
| 442 | </div> |
| 443 | <br /> |
| 444 | </#list> |
| 445 | </#if> |
| 446 | |
| 447 | <abbr class="prodid" title="ez-vcard ${ezVCardVersion}"></abbr> |
| 448 | </div> |
| 449 | </#list> |
| 450 | |
| 451 | <i>hCard specs: <a href="http://microformats.org/wiki/hcard">http://microformats.org/wiki/hcard</a></i><br /> |
| 452 | <i>Generated by <a href="${ezVCardUrl}">ez-vcard</a> ${ezVCardVersion}</i> |
| 453 | |
| 454 | </body> |
| 455 | </html> |