3 BEGIN|VERSION|END|FN);;
5 echo "<img class=\"PHOTO\" src=\"data:image/$tag[TYPE];base64,$value\"/>"
8 echo -n "<span class=\"item\"><span class=\"KEY\">$(l10n "$key")"
9 [ -n "$tag[TYPE]" ] && echo -n "($tag[TYPE])"
13 n_last="$(echo "$value" |sed -r 's:^([^;]*;){0} *([^;]*);.*$:\2:')"
14 n_first="$(echo "$value" |sed -r 's:^([^;]*;){1} *([^;]*);.*$:\2:')"
15 n_middle="$(echo "$value" |sed -r 's:^([^;]*;){2} *([^;]*);.*$:\2:')"
16 n_pre="$(echo "$value" |sed -r 's:^([^;]*;){3} *([^;]*);.*$:\2:')"
17 n_post="$(echo "$value" |sed -r 's:^([^;]*;){4} *([^;]*);*$:\2:')"
18 echo "<input class=\"VALUE\" name=\"3$key\" value=\"$n_pre\" placeholder=\"$(l10n n_pre)\" />"
19 echo "<input class=\"VALUE\" name=\"1$key\" value=\"$n_first\" placeholder=\"$(l10n n_first)\" />"
20 echo "<input class=\"VALUE\" name=\"2$key\" value=\"$n_middle\" placeholder=\"$(l10n n_middle)\" />"
21 echo "<input class=\"VALUE\" name=\"0$key\" value=\"$n_last\" placeholder=\"$(l10n n_last)\" />"
22 echo "<input class=\"VALUE\" name=\"4$key\" value=\"$n_post\" placeholder=\"$(l10n n_post)\" /></span>"
23 echo "<button name=\"deletefield\" value=\"$key $value\">$(l10n edit_deletefield)</button>"
26 echo "<input class=\"VALUE\" name=\"$key\" value=\"$value\" /></span>"
27 echo "<button name=\"deletefield\" value=\"$key $value\">$(l10n edit_deletefield)</button>"
35 [ -f "$tempfile" ] && cardfile="$tempfile"
37 vcf_parse "$cardfile" |while read -r line; do
40 value*) eval "$line";;
43 if [ -z "$key" ]; then