summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
7440271)
svn path=/trunk/; revision=25
echo "BEGIN:VCARD\r" >"$tempfile"
echo "VERSION:4.0\r" >>"$tempfile"
echo "N:$_POST[\"0N\"];$_POST[\"1N\"];$_POST[\"2N\"];$_POST[\"3N\"];$_POST[\"4N\"]\r" >>"$tempfile"
echo "BEGIN:VCARD\r" >"$tempfile"
echo "VERSION:4.0\r" >>"$tempfile"
echo "N:$_POST[\"0N\"];$_POST[\"1N\"];$_POST[\"2N\"];$_POST[\"3N\"];$_POST[\"4N\"]\r" >>"$tempfile"
+echo "UID:$_POST[\"UID\"]\r" >>"$tempfile"
for field in $VCF_FIELDS; do
value="$_POST[\"$field\"]"
n=0
for field in $VCF_FIELDS; do
value="$_POST[\"$field\"]"
n=0
s:^X-MS-CARDPICTURE:001 PHOTO:p;
s:^LOGO:002 LOGO:p;
s:^FN:003 FN:p;
s:^X-MS-CARDPICTURE:001 PHOTO:p;
s:^LOGO:002 LOGO:p;
s:^FN:003 FN:p;
s:^NICKNAME:005 NICKNAME:p;
s:^NICKNAME:005 NICKNAME:p;
s:^SOUND:006 SOUND:p;
s:^GENDER:007 GENDER:p;
s:^X-GENDER:007 GENDER:p;
s:^SOUND:006 SOUND:p;
s:^GENDER:007 GENDER:p;
s:^X-GENDER:007 GENDER:p;
s:^([A-Z].*)$:024 \1:p;
' \
s:^([A-Z].*)$:024 \1:p;
' \
- | sort |while read -r line; do
+ |sort |while read -r line; do
case "$line" in
00[012]*)
echo -E "$line"
case "$line" in
00[012]*)
echo -E "$line"
n_pre="$(echo "$values[N]" |sed -rn 's:^([^;]*;){3} *([^;]*).*$:\2:p')"
n_post="$(echo "$values[N]" |sed -rn 's:^([^;]*;){4} *([^;]*)*$:\2:p')"
n_pre="$(echo "$values[N]" |sed -rn 's:^([^;]*;){3} *([^;]*).*$:\2:p')"
n_post="$(echo "$values[N]" |sed -rn 's:^([^;]*;){4} *([^;]*)*$:\2:p')"
+ [ -z "$values[UID]" ] && values[UID]="$(dbus-uuidgen)"
+
echo ' <div class="section basic">'
echo ' <span class="sectitle">'$(l10n N)'</span>'
echo ' <input class="item N" name="3N" placeholder="'$(l10n n_pre)'" value="'$n_pre'" />'
echo ' <div class="section basic">'
echo ' <span class="sectitle">'$(l10n N)'</span>'
echo ' <input class="item N" name="3N" placeholder="'$(l10n n_pre)'" value="'$n_pre'" />'
echo ' <button class="item control" type="submit" name="action" value="update">'$(l10n edit_update)'</button>'
echo ' <button class="item control" type="submit" name="action" value="cancel">'$(l10n edit_cancel)'</button>'
echo ' </div>'
echo ' <button class="item control" type="submit" name="action" value="update">'$(l10n edit_update)'</button>'
echo ' <button class="item control" type="submit" name="action" value="cancel">'$(l10n edit_cancel)'</button>'
echo ' </div>'
+ echo '<input type="hidden" name="UID" value="'$values[UID]'"/>'
}
edit_attendee() { #Parameter: Cardfile
}
edit_attendee() { #Parameter: Cardfile
if [ -z "$key" ]; then
eval "$line"
else
if [ -z "$key" ]; then
eval "$line"
else
+ [ -n "$value" ] && values[$key]="$value" || values[$key]='\r'
for t in ${(k)tag}; do
tags[${key}_$t]="$tag[$t]"
done
for t in ${(k)tag}; do
tags[${key}_$t]="$tag[$t]"
done