* * -------------------------------------------- * * This program is free software; you can redistribute it and/or modify it * * under the terms of the GNU General Public License as published by the * * Free Software Foundation; either version 2 of the License, or (at your * * option) any later version. * \**************************************************************************/ /* $Id$ */ function form($format,$action,$title,$fields) { global $phpgw; $email = $fields["email"]; $firstname = $fields["firstname"]; $lastname = $fields["lastname"]; $hphone = $fields["hphone"]; $wphone = $fields["wphone"]; $fax = $fields["fax"]; $pager = $fields["pager"]; $mphone = $fields["mphone"]; $ophone = $fields["ophone"]; $street = $fields["street"]; $city = $fields["city"]; $state = $fields["state"]; $zip = $fields["zip"]; $bday = $fields["bday"]; $notes = $fields["notes"]; $access = $fields["access"]; $company = $fields["company"]; if ($format != "view") { $email = ""; $firstname = ""; $lastname = ""; $hphone = ""; $wphone = ""; $fax = ""; $pager = ""; $mphone = ""; $ophone = ""; $street = ""; $city = ""; $state = ""; $zip = ""; $company = ""; if (strlen($bday) > 2) { list( $month, $day, $year ) = split( '/', $bday ); $temp_month[$month] = "SELECTED"; $bday ="" . "" . "" . "(e.g. 1969)"; } else { $bday ="" . "" . "" . "(e.g. 1969)"; } $notes = ""; } else { $notes = "
"; if ($bday == "//") $bday = ""; } if ($action) { echo "
link($action)."\" method=\"post\">\n"; } ?> " . lang_common("Group access") . ":" . "" . ""; } if ($format == "view") echo "" . "
: :
: :
: :
: :
: :
: :
:
:
:
" . $phpgw->accounts->convert_string_to_names($access); } else { echo "" . lang_common("access") . ":" . $access; } } else { ?> : "; } ?>
" . lang_common("Which groups") . ":
" . lang_common("Created by") . ":" . grab_owner_name($fields[owner]); ?>
: