From 1837ef51a98586cdf404ba1afb9d7bf1f72217bd Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Tue, 5 Mar 2002 22:09:43 +0000 Subject: [PATCH] * a few more fields --- webcit/vcard_edit.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/webcit/vcard_edit.c b/webcit/vcard_edit.c index 12f15cbe7..c09ae262c 100644 --- a/webcit/vcard_edit.c +++ b/webcit/vcard_edit.c @@ -52,6 +52,8 @@ void edit_vcard(void) { char state[SIZ]; char zipcode[SIZ]; char country[SIZ]; + char hometel[SIZ]; + char worktel[SIZ]; char extrafields[SIZ]; lastname[0] = 0; @@ -66,6 +68,8 @@ void edit_vcard(void) { state[0] = 0; zipcode[0] = 0; country[0] = 0; + hometel[0] = 0; + worktel[0] = 0; extrafields[0] = 0; output_headers(1); @@ -125,6 +129,14 @@ void edit_vcard(void) { extract_token(country, value, 6, ';'); } + else if (!strcasecmp(key, "tel;home")) { + extract_token(hometel, value, 0, ';'); + } + + else if (!strcasecmp(key, "tel;work")) { + extract_token(hometel, value, 0, ';'); + } + else { strcat(extrafields, key); strcat(extrafields, ":"); @@ -187,6 +199,15 @@ void edit_vcard(void) { "VALUE=\"%s\" MAXLENGTH=\"29\">\n", country); + wprintf("" + "\n", + hometel); + wprintf("" + "
Home telephone:
Work telephone:
\n", + worktel); + wprintf("
\n"); -- 2.39.2