now works with new accounts class

This commit is contained in:
skeeter 2000-08-28 00:09:45 +00:00
parent b32d3748a5
commit af7f61ecdc
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@
else else
$bday = "$bday_month/$bday_day/$bday_year"; $bday = "$bday_month/$bday_day/$bday_year";
$access = $phpgw->groups->array_to_string($access,$n_groups); $access = $phpgw->accounts->array_to_string($access,$n_groups);
$sql = "insert into addressbook (owner,access,firstname,lastname,email," $sql = "insert into addressbook (owner,access,firstname,lastname,email,"
. "hphone,wphone,fax,pager,mphone,ophone,street,city,state,zip,bday," . "hphone,wphone,fax,pager,mphone,ophone,street,city,state,zip,bday,"

View File

@ -253,7 +253,7 @@
. ":</font></td><td colspan=\"3\"><select name=\"n_groups[]\" " . ":</font></td><td colspan=\"3\"><select name=\"n_groups[]\" "
. "multiple size=\"5\">"; . "multiple size=\"5\">";
$user_groups = $phpgw->groups->read_names($fields["owner"]); $user_groups = $phpgw->accounts->read_group_names($fields["owner"]);
for ($i=0;$i<count($user_groups);$i++) { for ($i=0;$i<count($user_groups);$i++) {
echo "<option value=\"" . $user_groups[$i][0] . "\""; echo "<option value=\"" . $user_groups[$i][0] . "\"";
if (ereg(",".$user_groups[$i][0].",",$access)) if (ereg(",".$user_groups[$i][0].",",$access))