*: 
">
*: 
 /   / 
: add_option('M', 'M', $strSexes['M']); echo ' '; $radiolist->add_option('F', 'F', $strSexes['F']); ?>
: print_date_picker('birthday', $_SESSION['GO_SESSION']['date_format'], $birthday); ?>
 
 
:
error["email"])) { ?> '; //get all writable user addressbooks and add them to a dropdownbox $ab->get_subscribed_addressbooks($GO_SECURITY->user_id); $subscribed_addressbooks = new dropbox(); while ($ab->next_record()) { if ($GO_SECURITY->has_permission($GO_SECURITY->user_id, $ab->f('acl_write'))) { //remember the first ab that is writable if(!isset($first_writable_ab)) { $first_writable_ab = $ab->f('id'); } $subscribed_addressbooks->add_value($ab->f('id'), $ab->f('name')); } } //get the given addressbook_id if ($addressbook_id > 0) { $addressbook = $ab->get_addressbook($addressbook_id); } //if there was no or a read only addressbook given then change to the first writable if (!$addressbook || !$GO_SECURITY->has_permission($GO_SECURITY->user_id, $addressbook['acl_write'])) { //there is no writable addressbook so add one if (!isset($first_writable_ab)) { $ab_name = $_SESSION['GO_SESSION']['name']; $new_ab_name = $ab_name; $x = 1; while($ab->get_addressbook_by_name($new_ab_name)) { $new_ab_name = $ab_name.' ('.$x.')'; $x++; } $addressbook_id = $ab->add_addressbook($GO_SECURITY->user_id, $new_ab_name); $subscribed_addressbooks->add_value($addressbook_id, $new_ab_name); }else { $contact['addressbook_id'] = $first_writable_ab; } } //print the writable addressbooks echo ''; if ($ab->get_groups($addressbook_id) > 0) { echo ''; } ?>
error["email"]; ?>
*: 
 
add_value(0, $ab_no_company); if($ab->search_company(trim($_POST['company_name']), $contact['addressbook_id'])) { while($ab->next_record()) { if ($GO_SECURITY->has_permission($GO_SECURITY->user_id, $ab->f('acl_write')) || $GO_SECURITY->has_permission($GO_SECURITY->user_id, $ab->f('acl_read'))) { if ($contact['company_id'] == 0) { $contact['company_id'] = $ab->f('id'); } $company_results->add_value($ab->f('id'), $ab->f('name')); } } } if ($company_results->count_options()) { $company_results->print_dropbox('company_id', 0); }else { echo ''; echo ''; } }else { $contact['company_name'] = isset($contact['company_name']) ? $contact['company_name'] : ''; echo ''; echo ' 0) { echo 'disabled '; } echo '/>'; if ($contact['company_id'] > 0) { echo ''; echo ''; } } echo ''; echo ''; ?>
 
'.$contacts_color.': '; $contact['color'] = isset($contact['color']) ? $contact['color'] : '000000'; $color_selector = new color_selector(); $color_selector->add_color('000000'); $color_selector->add_color('FF0000'); $color_selector->add_color('089600'); $color_selector->add_color('3300FF'); $color_selector->add_color('FF00FF'); $color_selector->add_color('FF9900'); $color_selector->add_color('996600'); $color_selector->print_color_selector('color', $contact['color']); echo '
'.$ab_addressbook.':'; $subscribed_addressbooks->print_dropbox('addressbook_id', $addressbook_id, 'onchange="javascript:document.forms[0].submit()"'); echo '
'.$contacts_group.': '; $dropbox = new dropbox(); $dropbox->add_value('0',$contacts_other); $dropbox->add_sql_data('ab','id','name'); $dropbox->print_dropbox('group_id',$contact['group_id']); echo '

0 && $contact_id > 0) { $button = new button($cmdUpdate, 'javascript:update()'); echo '  '; } if (isset($return_to)) { $button = new button($cmdClose, "javascript:document.location='".$return_to."'"); } ?>