Allow editing of LABEL

This commit is contained in:
Miles Lott 2001-03-21 00:31:27 +00:00
parent 196a33b9e9
commit e7829e8ab8
4 changed files with 14 additions and 0 deletions

View File

@ -139,6 +139,7 @@
$fields["url"] = $url; $fields["url"] = $url;
$fields["pubkey"] = $pubkey; $fields["pubkey"] = $pubkey;
$fields["note"] = $notes; $fields["note"] = $notes;
$fields["label"] = $label;
addressbook_add_entry($phpgw_info["user"]["account_id"],$fields); addressbook_add_entry($phpgw_info["user"]["account_id"],$fields);
$ab_id = addressbook_get_lastid(); $ab_id = addressbook_get_lastid();

View File

@ -138,6 +138,7 @@
$fields["url"] = $url; $fields["url"] = $url;
$fields["pubkey"] = $pubkey; $fields["pubkey"] = $pubkey;
$fields["note"] = $notes; $fields["note"] = $notes;
$fields["label"] = $label;
$userid = $phpgw_info["user"]["account_id"]; $userid = $phpgw_info["user"]["account_id"];

View File

@ -197,6 +197,7 @@
$timezone = $fields["tz"]; $timezone = $fields["tz"];
$bday = $fields["bday"]; $bday = $fields["bday"];
$notes = stripslashes($fields["note"]); $notes = stripslashes($fields["note"]);
$label = stripslashes($fields["label"]);
$company = $fields["org_name"]; $company = $fields["org_name"];
$department = $fields["org_unit"]; $department = $fields["org_unit"];
$url = $fields["url"]; $url = $fields["url"];
@ -328,6 +329,7 @@
} }
$notes = '<TEXTAREA cols="60" name="notes" rows="4">' . $notes . '</TEXTAREA>'; $notes = '<TEXTAREA cols="60" name="notes" rows="4">' . $notes . '</TEXTAREA>';
$label = '<TEXTAREA cols="60" name="notes" rows="6">' . $label . '</TEXTAREA>';
$pubkey = '<TEXTAREA cols="60" name="notes" rows="6">' . $pubkey . '</TEXTAREA>'; $pubkey = '<TEXTAREA cols="60" name="notes" rows="6">' . $pubkey . '</TEXTAREA>';
} else { } else {
$notes = "<form><TEXTAREA cols=\"60\" name=\"notes\" rows=\"4\">" $notes = "<form><TEXTAREA cols=\"60\" name=\"notes\" rows=\"4\">"
@ -443,6 +445,8 @@
$t->set_var("create",$create); $t->set_var("create",$create);
$t->set_var("lang_notes",lang("notes")); $t->set_var("lang_notes",lang("notes"));
$t->set_var("notes",$notes); $t->set_var("notes",$notes);
$t->set_var("lang_label",lang("label"));
$t->set_var("label",$label);
$t->set_var("lang_pubkey",lang("Public Key")); $t->set_var("lang_pubkey",lang("Public Key"));
$t->set_var("pubkey",$pubkey); $t->set_var("pubkey",$pubkey);

View File

@ -206,6 +206,14 @@
<font size="-1"><input name="vidphone" value="{vidphone}"></font>{pref_video} <font size="-1"><input name="vidphone" value="{vidphone}"></font>{pref_video}
</td> </td>
</tr> </tr>
<tr>
<td></td>
<td><font size="-1">{lang_label}:</font></td>
<td colspan="3">
<font size="-1">
{label}
</font></td>
</tr>
<tr> <tr>
<td></td> <td></td>
<td><font size="-1">{lang_pubkey}:</font></td> <td><font size="-1">{lang_pubkey}:</font></td>