/**
  * create the personal options options form, using the {@link TableEditor}
  * 
  * {@link TableEditor} is able to handle saving of the data himself
  * @uses TableEditor
  * @return string html-content
  * @global array country acronyms and names
  * @global DB used for database access
  */
 function createOptionsForm()
 {
     global $country, $db;
     $cont = '<fieldset class="options-options">';
     $cont .= '<legend>Change your options</legend>';
     $tEdit = new TableEditor($db, TABLE_USERS, 'userid', array('id' => 'hidden', 'usertype' => 'hidden', 'password' => 'hidden', 'reg_email' => 'hidden', 'confirm_hash' => 'hidden', 'lastLogin' => 'hidden', 'limitEntries' => 'text-5', 'bdayDisplay' => array('NULL' => 'default', '0' => 'no', '1' => 'yes'), 'bdayInterval' => 'text-3', 'telURI' => 'text-30', 'faxURI' => 'text-30', 'language' => array_merge(array('NULL' => 'autodetect'), Localizer::getSingleton()->availableLanguages()), 'useMailScript' => 'hidden', 'failedLogins' => 'hidden', 'lastRemoteIP' => 'hidden'), array('limitEntries' => 'Main list: limit entries per page', 'bdayInterval' => 'Main list: display dates and recently changed contacts n days back', 'bdayDisplay' => 'Main list: display dates', 'telURI' => 'URI: Replace tel: (e.g. skype:$?call)', 'faxURI' => 'URI: Replace fax: (e.g. sip:$@sip.com:5060)', 'language' => 'User interface language', 'useMailScript' => 'Users can send email with a web interface from the server (not supported in 3.0)'), 'SELECT * FROM ' . TABLE_USERS . ' WHERE userid = ' . ($this->user !== null ? $db->escape($this->user->id) : $_SESSION['user']->id), 'text', true, $this->user !== null ? 'userid=' . $this->user->id : '');
     $cont .= $tEdit->create('', '');
     $cont .= '</fieldset>';
     return $cont;
 }
 /**
  * create the groups editor to change group names {@link TableEditor}
  * 
  * {@link TableEditor} is able to handle saving of the data himself
  * @uses TableEditor
  * @return string html-content
  * @global array country acronyms and names
  * @global DB used for database access
  */
 function createGroupTableEditor()
 {
     global $country, $db;
     $cont = '<fieldset class="options-options">';
     $cont .= '<legend>Change Group Names</legend>';
     $cont .= $this->contextHelp('admin-groups');
     $cont .= '<div class="options-clear">';
     $tEdit = new TableEditor($db, TABLE_GROUPLIST, 'groupid', array('groupname' => 'text-40', 'acronym' => 'text-5', 'logoURL' => 'text-20', 'groupid' => 'hidden'), array('groupname' => 'Group Name', 'acronym' => 'Acronym', 'logoURL' => 'Logo URL (future use)'));
     $cont .= $tEdit->create('', '');
     $cont .= '</div></fieldset>';
     return $cont;
 }