コード例 #1
0
<?php

/**************************************************************************\
	* eGroupWare - Preferences                                                 *
	* http://www.eGroupWare.org                                                *
	* --------------------------------------------                             *
	*  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: hook_settings.inc.php,v 1.1.2.1 2004/09/28 10:17:33 bgigon Exp $ */
create_section('Preferences for the idots template set');
$start_and_logout_icons = array('yes' => lang('yes'), 'no' => lang('no'));
create_select_box('Show home and logout button in main application bar?', 'start_and_logout_icons', $start_and_logout_icons, 'When you say yes the home and logout buttons are presented as applications in the main top applcation bar.');
create_input_box('Max number of icons in navbar', 'max_icons', 'How many icons should be shown in the navbar (top of the page). Additional icons go into a kind of pulldown menu, callable by the icon on the far right side of the navbar.', '', 3);
create_check_box('Autohide Sidebox menu\'s', 'auto_hide_sidebox', 'Automatically hide the Sidebox menu\'s?');
$click_or_onmouseover = array('click' => lang('Click'), 'onmouseover' => lang('On Mouse Over'));
create_select_box('Click or Mouse Over to show menus', 'click_or_onmouseover', $click_or_onmouseover, 'Click or Mouse Over to show menus?');
create_check_box('Disable slider effects', 'disable_slider_effects', 'Disable the animated slider effects when showing or hiding menus in the page? Opera and Konqueror users will probably must want this.');
create_check_box('Disable Internet Explorer png-image-bugfix', 'disable_pngfix', 'Disable the execution a bugfixscript for Internet Explorer 5.5 and higher to show transparency in PNG-images?');
create_check_box('Show page generation time', 'show_generation_time', 'Show page generation time on the bottom of the page?');
コード例 #2
0
create_select_box('weekday starts on', 'weekdaystarts', $weekdaystarts, 'This day is shown as first day in the week or month view.');
for ($i = 0; $i < 24; ++$i) {
    $options[$i] = $GLOBALS['phpgw']->common->formattime($i, '00');
}
create_select_box('work day starts on', 'workdaystarts', $options, 'This defines the start of your dayview. Events before this time, are shown above the dayview.<br>This time is also used as a default starttime for new events.');
create_select_box('work day ends on', 'workdayends', $options, 'This defines the end of your dayview. Events after this time, are shown below the dayview.');
$intervals = array(5 => '5', 10 => '10', 15 => '15', 20 => '20', 30 => '30', 45 => '45', 60 => '60');
create_select_box('Intervals in day view', 'interval', $intervals, 'Defines the size in minutes of the lines in the day view.');
create_input_box('default appointment length (in minutes)', 'defaultlength', 'Default length of newly created events. The length is in minutes, eg. 60 for 1 hour.', '', 3);
$groups = $GLOBALS['phpgw']->accounts->membership($GLOBALS['phpgw_info']['user']['account_id']);
$options = array(-1 => lang('none'));
if (is_array($groups)) {
    foreach ($groups as $group) {
        $options[$group['account_id']] = $GLOBALS['phpgw']->common->grab_owner_name($group['account_id']);
    }
}
create_select_box('Preselected group for entering the planner', 'planner_start_with_group', $options, 'This group that is preselected when you enter the planner. You can change it in the planner anytime you want.');
$planner_intervals = array(1 => '1', 2 => '2', 3 => '3', 4 => '4');
create_select_box('Intervals per day in planner view', 'planner_intervals_per_day', $planner_intervals, 'Specifies the the number of intervals shown in the planner view.');
$defaultfilter = array('all' => lang('all'), 'private' => lang('private only'));
create_select_box('Default calendar filter', 'defaultfilter', $defaultfilter, 'Which events do you want to see when you enter the calendar.');
create_check_box('Set new events to private', 'default_private', 'Should new events created as private by default ?');
create_check_box('Print the mini calendars', 'display_minicals', 'Should the mini calendars by printed / displayed in the printer friendly views ?');
create_check_box('Print calendars in black & white', 'print_black_white', 'Should the printer friendly view be in black & white or in color (as in normal view)?');
$freebusy_url = $GLOBALS['phpgw_info']['server']['webserver_url'] . '/calendar/freebusy.php?user='******'phpgw_info']['user']['account_lid'] . '&password='******'phpgw_info']['user']['preferences']['calendar']['freebusy_pw'];
if ($freebusy_url[0] == '/') {
    $freebusy_url = ($_SERVER['HTTPS'] ? 'https://' : 'http://') . $_SERVER['HTTP_HOST'] . $freebusy_url;
}
$freebusy_help = lang('Should not loged in persons be able to see your freebusy information? You can set an extra password, different from your normal password, to protect this informations. The freebusy information is in iCal format and only include the times when you are busy. It does not include the event-name, description or locations. The URL to your freebusy information is %1.', '<a href="' . $freebusy_url . '" target="_blank">' . $freebusy_url . '</a>');
create_check_box('Make freebusy information availible to not loged in persons?', 'freebusy', $freebusy_help, '', False);
create_input_box('Password for not loged in users to your freebusy information?', 'freebusy_pw', 'If you dont set a password here, the information is availible to everyone, who knows the URL!!!');
コード例 #3
0
    create_select_box('Show sender\'s email address with name', 'show_addresses', $options, 'This confusing and often misunderstood option is left over from this email apps origins as Aeromail by Mark Cushman. When viewing a list of emails in a folder, the FROM column may show you<br />a) the senders name only, if a name was provided,<br />b) the senders From email address, in addition to the senders name, or<br />c) the senders reply to address if it is different from the senders<br />from address, in addition to the senders name if it was provided. Typically users set this to none, which will show only the senders name. If no name was supplied by the sender, then the senders FROM email address will be shown, whether a seperate reply to address is provided has no effect on this, the FROM address is always used if the senders name is not provided.');
    create_check_box('show new messages on main screen', 'mainscreen_showmail', 'Each user has a summary page which can display a variety of information. This option will show a small list of email messages in the INBOX of the users default email account onthe users summary home page.');
}
create_check_box('Deleted messages go to Trash', 'use_trash_folder', 'If checked, Deleted message will be sent to the &quot;Trash&quot; folder name which you specify in the box for &quot;Deleted messages (Trash) folder&quot; Only works with IMAP servers, POP servers do not have folders.');
create_input_box('Deleted messages (Trash) folder', 'trash_folder_name', 'If &quot;Deleted messages go to Trash&quot; is checked, Deleted message will be sent to the folder name you type in this box. If this folder does not exist, it will be created for you automatically. Default name is &quot;Trash&quot; This will be your &quot;Trash&quot; folder, but it does not have to actually be called &quot;Trash&quot;, you can name it anything. Only works with IMAP servers, POP servers do not have folders.');
create_check_box('Sent messages saved in &quot;Sent&quot; folder', 'use_sent_folder', 'If checked, a copy of your sent mail will be stored in the &quot;Sent&quot; folder name which you specify in the box for &quot;Sent messages folder&quot; Only works with IMAP servers, POP servers do not have folders.');
create_input_box('Sent messages folder', 'sent_folder_name', 'If &quot;Sent messages folder&quot; is checked, a copy of your sent mail will be stored in the folder name you type in this box. If this folder does not exist, it will be created for you automatically. Default name is &quot;Sent&quot; This will be your &quot;Sent&quot; folder, but it does not have to actually be called &quot;Sent&quot;, you can name it anything. Only works with IMAP servers, POP servers do not have folders.');
create_check_box('enable UTF-7 encoded folder names', 'enable_utf7', 'Most US and European users do not need to enable this. If this option is checked then your email server can handle folder names with non US-ASCII charactors in them / default is disabled, not checked. Only use if you are really sure you need it. Only works with IMAP servers, POP servers do not have folders.');
create_check_box('Send forwarded mail as quoted attachment', 'fwd_inline_text', 'Select this box if you want the text body of the message you are forwarding to appear inline in the body of your sent message.');
$options = array('orig' => lang('Simple'), 'lex' => lang('Javascript'));
create_select_box('Select your style for the addressbook. The traditional, simple style. Or the new javascript enabled complex addressbook', 'addressbook_choice', $options, 'We have recently added this new addressbook so that users can choose to have a more complex addressbook that features<br />a) Easy, point and click searching,<br />b) Best suited for organizations with large central addressbooks with many categories.<br />You can choose here which addressbook do you prefer.');
$options = array('900' => '1200x1600', '800' => '1024x768', '700' => '800x600');
create_select_box('Select your screensize for propper showing of the Javascript addressbook', 'js_addressbook_screensize', $options, 'We have three sizes that tell us how to better render the addressbook for you: 800x600 (addressbook will popout in a 700 pixel wide box), 1024x768 (it will be a 800 box), 1200x1600 (will be a 900 box). The fonts for all html stuff will be, respectively set to xx-small, x-small and normal (no font setting).');
create_check_box('Show New Messages in ComboBox', 'newmsg_combobox', 'This specifies whether or not to show the number of new message in the folders combo box on the index screen.');
create_check_box('Show total folder size by default', 'show_foldersize', 'This specifies whether or not to show the total size of folders by default. If this is not checked, you will be presented with a button allowing you to display folder size.');
if ($acctnum) {
    show_list(lang('Extra E-Mail preferences Number %1', $acctnum));
} else {
    show_list(lang('Standard E-Mail preferences'));
    create_check_box('Use custom settings', 'use_custom_settings', 'Your server administrator will set the default values for the following options. You may never need to change any of them. If you do need to use settings that are different from the defaults for the options below here, then check this box. Default is disabled, not checked. If you fill in some of the options, but later decide to go back to the default values, unchecking this box will erase your custom values and put back the default values. All of the following options start out with the default value, so you may see some settings below even if you have never filled them in. This checkbox only shows up for the default email account. If you are setting up additional email accounts, you will be required to fill in the following options and this checkbox will not be displayed, it will be checked for all extra email accounts.');
}
create_input_box('Email Account Name', 'userid', 'The login name to use when checking mail for this email account. This may be the same as your phpGroupWare login name, or the server administrator may have set it for you. If your have multiple email accounts set up, you will need to fill this in. If you have only one email account set up, then you can probably leave this alone. If you clear this box, then it goes back to the default value. If you only need some custom settings but want this one to be the default value, then leave this box blank, the default value will be used, and you will see that default value in this box the next time you come to this preferences page.');
create_password_box('Email Password', 'passwd', 'The login name to use when checking mail for this email account. This may be the same as your phpGroupWare login name, or the server administrator may have set it for you. If your have multiple email accounts set up, you will need to fill this in. If you have only one email account set up, then you can probably leave this alone. If you do set a custom password, this box will be blank the next time you come to this settings page. This is a security feature because your custom email password is not sent to your browser after you set it. To change your custom password, simply enter a new password in the box. Exra email accounts require you to set this. For your default email account, you can clear your custom password by unchecking the &quot;Use Custom Settings&quot; option.');
create_input_box('Email address', 'address', 'Mail you send will use this address as the &quot;From&quot; address. This may be the same as your phpGroupWare login name or the server administrator may have set it for you. When the recipient clicks reply, this address will be used. You can leave this box blank and the default value will be used.');
create_input_box('Mail Server', 'mail_server', 'Name of the mail server you want to access. Should be a name like &quot;mail.example.com&quot;. If you leave this box blank then the default value will be used.', $GLOBALS["phpgw_info"]["server"]["mail_server"]);
$options = array('imap' => 'IMAP', 'pop3' => 'POP-3', 'imaps' => 'IMAPS', 'pop3s' => 'POP-3S');
create_select_box('Mail Server type', 'mail_server_type', $options, 'The type of mail server you want to access. IMAP mail servers have folders, such as the Sent and Trash folders. POP servers do not have folders. POP, POP-3, and POP3 are the same thing. You can have the server connection encrypted by using IMAPS or POPS, only if the mailserver supports it and if your phpGroupWare installation has a &quot;SSL&quot; capabable version of PHP.', $GLOBALS["phpgw_info"]["server"]["mail_server_type"]);
$options = array('Cyrus' => 'Cyrus ' . lang('or') . ' Courier', 'UWash' => 'UWash', 'UW-Maildir' => 'UW-Maildir');
create_select_box('IMAP Server Type - If Applicable', 'imap_server_type', $options, 'If using an IMAP server, what kind is it, most often this option can safely be set to &quot;Cyrus or Courier&quot;. Technically, this means the server uses a dot between the different parts of the folder names, such as &quot;INBOX.Sent&quot;. The other major kind of IMAP server is the University of Washington &quot;UWash&quot; IMAP server. It uses slashes instead of the dots the other servers use, and although it has a folder called &quot;INBOX&quot;, it is not considered the &quot;Namespace&quot; for the other folder names. The &quot;UW-Maildir&quot; is a rare combination of the two above types. This is the least used kind of IMAP server. If you are unsure, ask your IT administrator. Only applies to IMAP servers.', $GLOBALS["phpgw_info"]["server"]["imap_server_type"]);
create_input_box('U-Wash Mail Folder - If Applicable', 'mail_folder', 'Only needed with the University of Washington &quot;UWash&quot; IMAP server. The default value is &quot;mail&quot; which means your mail folders, other then INBOX, are located in a directory called &quot;mail&quot; directly under your &quot;HOME&quot; directory. This box may be left empty, which means your mail folders are located in your &quot;HOME&quot; directory, not a subdirectory. If your mail folders are located in a subdirectory of &quot;HOME&quot; then put the name of that subdirectory here. Generally, it is not necessary to use any special slashes or tildes, &quot;HOME&quot; is always considered the base directory, and the slash bewteen &quot;HOME&quot; and the subdirectory will be added for you automatically, do not put the slash in this box.', $GLOBALS["phpgw_info"]["server"]["mail_folder"]);
show_list(lang('Custom E-Mail preferences') . ($acctnum ? ' -- ' . lang('(required)') : ''));
コード例 #4
0
<?php

/**************************************************************************\
	* eGroupWare - Filemanager Preferences                                     *
	* http://egroupware.org                                                    *
	* Modified by Pim Snel <*****@*****.**>                                *
	* --------------------------------------------                             *
	*  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)                                                                 *
	\**************************************************************************/
//ExecMethod('filemanager.bofilemanager.check_set_default_prefs');
/*create_section('TESTING');

	create_check_box('Use new experimental Filemanager?','experimental_new_code','The future filemanager, now for TESTING PURPOSES ONLY, please send bugreports');

	*/
create_section('Display attributes');
$file_attributes = array('name' => 'File Name', 'mime_type' => 'MIME Type', 'size' => 'Size', 'created' => 'Created', 'modified' => 'Modified', 'owner' => 'Owner', 'createdby_id' => 'Created by', 'modifiedby_id' => 'Created by', 'modifiedby_id' => 'Modified by', 'app' => 'Application', 'comment' => 'Comment', 'version' => 'Version');
while (list($key, $value) = each($file_attributes)) {
    create_check_box($value, $key);
}
create_section('Other settings');
$other_checkboxes = array("viewinnewwin" => "View documents in new window", "viewonserver" => "View documents on server (if available)", "viewtextplain" => "Unknown MIME-type defaults to text/plain when viewing", "dotdot" => "Show ..", "dotfiles" => "Show .files");
while (list($key, $value) = each($other_checkboxes)) {
    create_check_box($value, $key);
}
$upload_boxes = array("1" => "1", "5" => "5", "10" => "10", "20" => "20", "30" => "30");
create_select_box('Default number of upload fields to show', 'show_upload_boxes', $upload_boxes);
コード例 #5
0
$default = array('global' => lang("Global catalog"), 'personal' => lang("Personal catalog"), 'all' => lang("All catalogs"));
create_select_box('The dynamic search will use the catalog', 'catalog_search', $default, 'Seleciona o catálogo que será usado para fazer a busca');
$default = false;
create_check_box('Display default fields on the quick search screen?', 'default_fields_quick_search', $default, 'Mostrar o nome, email e telefone do contato por padrão');
if ($GLOBALS['phpgw_info']['server']['use_assinar_criptografar']) {
    create_check_box('Enable digitally sign/cipher the message?', 'use_signature_digital_cripto', '', '', True, 'onchange="javascript:exibir_ocultar();"');
    if ($GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['use_signature_digital_cripto']) {
        create_check_box('Always sign message digitally?', 'use_signature_digital', '');
        create_check_box('Always cipher message digitally?', 'use_signature_cripto', '');
    } else {
        create_check_box('Always sign message digitally?', 'use_signature_digital', '', '', True, '', False);
        create_check_box('Always cipher message digitally?', 'use_signature_cripto', '', '', True, '', False);
    }
}
create_check_box('Would you like to have a read receipt option to read messages?', 'confirm_read_message', '');
create_check_box('Would you like to activate the alert for message attachment?', 'alert_message_attachment', '');
$default = array('text' => lang('simple text'), 'html' => lang('rich text'));
create_check_box('Auto close the first tab on reaching the maximum number of tabs?', 'auto_close_first_tab', '');
create_check_box('Insert signature automatically in new messages?', 'use_signature', '');
$default = array('0' => lang('nested in the same tab of the main message'), '1' => lang('in your own tab, one for each attached message'));
create_select_box('Nested messages are shown', 'nested_messages_are_shown', $default, 'How to show nested messages');
$default = array('Arial' => 'Arial', 'Verdana' => 'Verdana', 'Times new roman' => 'Times New Roman', 'Tahoma' => 'Tahoma');
create_select_box('Default font editor', 'font_family_editor', $default);
$default = array('0' => 'IEC_80000-13 (Binary)', '1' => 'SI Metric (Decimal)');
create_select_box("System of units used to calculate user's quota", 'system_of_units', $default);
$default = array('8pt' => '8', '9pt' => '9', '10pt' => '10', '11pt' => '11', '12pt' => '12', '14pt' => '14', '16pt' => '16', '18pt' => '18', '20pt' => '20', '22pt' => '22', '24pt' => '24', '26pt' => '26', '28pt' => '28', '36pt' => '36', '48pt' => '48', '72pt' => '72');
create_select_box('Default font size editor', 'font_size_editor', $default);
if ($type == 'user' || $type == '') {
    $vars = $GLOBALS['phpgw']->preferences->user['expressoMail'];
    create_html_code("signature", "<script src='../prototype/plugins/jquery/jquery.min.js' language='javascript'></script>\n \t\t            <script src='../prototype/library/ckeditor/ckeditor.js' language='javascript'></script> \n \t\t            <script src='../prototype/library/ckeditor/adapters/jquery.js' language='javascript'></script>\n            \n\t<input type='hidden' id='counter' value='0'>\n\t<input type='hidden' id='signatures' name='user[signatures]' value='" . $vars['signatures'] . "'>\n\t<input type='hidden' id='signature_default' name='user[signature_default]' value='" . $vars['signature_default'] . "'>\n\t<input type='hidden' id='signature' name='user[signature]' value='", "' >\n\t<input type='hidden' id='signature_types' name='user[signature_types]' value='" . $vars['signature_types'] . "'>\n\n\t<div id='_signature' name='signature' style='display: none;'>\n\t<div id='options_signature'>\n\t<input id='edit_signature' type='checkbox' name='isEditor' onclick='changeType( this, this.id.replace( /[^0-9]*/gi, \"\" ) );' checked='checked'><label for='isEditor'>" . lang("Text editor") . "</label>&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp; " . lang("Title subscription") . "&nbsp;<input type='text' id='title_signature'>&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;<input type='radio' id='default_signature' name='signature_default'><label>" . lang("Use by default") . "</label> &nbsp;|&nbsp; <a href='#' onclick='javascript: return removeSignature( this );' id='remove_signature'> " . lang("Remove") . "</a> \n\t</div><br/>\n\t<div id='text_signature'>\n\t<textarea rows='10' cols='65' id='user_signature' class='editor'></textarea></div>\n\t</div>\n\n\t\t<script language='javascript'>\n \n\t\$(document).ready(function(){\n \n\t    loadSignature();\n \n\t});\n  \n\tfunction changeType(obj, target){         \n \t\t            if(obj.checked === true) \n \t\t               \$('#user_signature' + target).ckeditor(  { toolbar:'signature'  }); \n \t\t            else \n \t\t                CKEDITOR.instances['user_signature' + target ].destroy(); \n    }\n\n// var counter = 0;\n\nfunction addSignature( simple )\n{\n\tvar sig = document.getElementById('_signature').cloneNode( true );\n\tvar counter = document.getElementById( 'counter' ).value;\n   \n\tsig.innerHTML = sig.innerHTML.replace( /_signature/g, '_signature' + counter );\n\n\tsig.id = '_signature' + counter;\n\tsig.style.display = '';\n\n\t\$( '#add_signature' ).before( sig );\n\n\tif( !simple )\n\t\t\$('#user_signature' + counter).ckeditor(  { toolbar:'signature'  });\n\telse\n\t    document.getElementById('edit_signature' + counter ).checked = '';\n\n\tdocument.getElementById( 'counter' ).value = ++counter;\n}\n\nfunction removeSignature( el )\n{\n    counter = el.id.replace( /[^0-9]*/gi, \"\" );\n\n    el = document.getElementById( '_signature' + counter );\n    el.parentNode.removeChild( el );\n\n    return( false );\n}\n</script>\n<input id='add_signature' type='button' onclick='addSignature();' value='" . lang("Add Subscription") . "'>\n");
}
コード例 #6
0
$weekdaystarts = array('Monday' => lang('Monday'), 'Sunday' => lang('Sunday'), 'Saturday' => lang('Saturday'));
create_select_box('weekday starts on', 'weekdaystarts', $weekdaystarts, 'This day is shown as first day in the week or month view.');
for ($i = 0; $i < 24; ++$i) {
    $options[$i] = phpgwapi_datetime::formattime($i, '00');
}
create_select_box('work day starts on', 'workdaystarts', $options, 'This defines the start of your dayview. Events before this time, are shown above the dayview.<br />This time is also used as a default starttime for new events.');
create_select_box('work day ends on', 'workdayends', $options, 'This defines the end of your dayview. Events after this time, are shown below the dayview.');
$intervals = array(5 => '5', 10 => '10', 15 => '15', 20 => '20', 30 => '30', 45 => '45', 60 => '60');
create_select_box('Intervals in day view', 'interval', $intervals, 'Defines the size in minutes of the lines in the day view.');
create_input_box('default appointment length (in minutes)', 'defaultlength', 'Default length of newly created events. The length is in minutes, eg. 60 for 1 hour.', '', 3);
$groups = $GLOBALS['phpgw']->accounts->membership($GLOBALS['phpgw_info']['user']['account_id']);
$options = array(-1 => lang('none'));
if (is_array($groups)) {
    foreach ($groups as $group) {
        $options[$group->id] = $GLOBALS['phpgw']->common->grab_owner_name($group->id);
    }
}
create_select_box('Preselected group for entering the planner', 'planner_start_with_group', $options, 'This group that is preselected when you enter the planner. You can change it in the planner anytime you want.');
$planner_intervals = array(1 => '1', 2 => '2', 3 => '3', 4 => '4');
create_select_box('Intervals per day in planner view', 'planner_intervals_per_day', $planner_intervals, 'Specifies the the number of intervals shown in the planner view.');
$defaultfilter = array('all' => lang('all'), 'private' => lang('private only'));
create_select_box('Default calendar filter', 'defaultfilter', $defaultfilter, 'Which events do you want to see when you enter the calendar.');
create_check_box('Set new events to private', 'default_private', 'Should new events created as private by default ?');
create_check_box('Print the mini calendars', 'display_minicals', 'Should the mini calendars by printed / displayed in the printer friendly views ?');
create_check_box('Print calendars in black & white', 'print_black_white', 'Should the printer friendly view be in black & white or in color (as in normal view)?');
## by tb
create_check_box('Show complete description in overview', 'show_descrpt_ovr', 'Select wether the event description is shown in the overview (e.g. week-view) or not.');
$show_descrpt_title = array('0' => lang('no'), '1' => lang('yes'), '23' => lang('js-ToolTip'));
create_select_box('Show complete description in title-tag', 'show_descrpt_title', $show_descrpt_title, 'Select how to show the event description as tooltip: never, ever or as js-tooltip (more infos).');
create_check_box('Show time-line in detailed weekly view', 'show_time_line', 'Select wether to show the time-line in the detailed weekly view or not.');
## END - by tb
コード例 #7
0
foreach ($langs as $key => $name) {
    $trans = lang($name);
    if ($trans != $name . '*') {
        $langs[$key] = $trans;
    }
}
create_select_box('Language', 'lang', $langs, 'Select the language of texts and messages within phpGroupWare.<br>Some languages may not contain all messages, in that case you will see an english message.');
// preference.php handles this function
if (is_admin()) {
    create_check_box('Show number of current users', 'show_currentusers', 'Should the number of active sessions be displayed for you all the time.');
}
reset($GLOBALS['phpgw_info']['user']['apps']);
while (list($app) = each($GLOBALS['phpgw_info']['user']['apps'])) {
    if ($GLOBALS['phpgw_info']['apps'][$app]['status'] != 2 && $app) {
        $user_apps[$app] = $GLOBALS['phpgw_info']['apps'][$app]['title'] ? $GLOBALS['phpgw_info']['apps'][$app]['title'] : lang($app);
    }
}
create_select_box('Default application', 'default_app', $user_apps, "The default application will be started when you enter phpGroupWare or click on the homepage icon.<br>You can also have more than one application showing up on the homepage, if you don't choose a specific application here (has to be configured in the preferences of each application).");
create_input_box('Currency', 'currency', 'Which currency symbol or name should be used in phpGroupWare.');
$account_sels = array('selectbox' => lang('Selectbox'), 'popup' => lang('Popup with search'));
create_select_box('How do you like to select accounts', 'account_selection', $account_sels, 'The selectbox shows all available users (can be very slow on big installs with many users). The popup can search users by name or group.');
$account_display = array('firstname' => lang('Firstname') . ' ' . lang('Lastname'), 'lastname' => lang('Lastname') . ', ' . lang('Firstname'));
create_select_box('How do you like to display accounts', 'account_display', $account_display, 'Set this to your convenience. For security reasons, you might not want to show your Loginname in public.');
$rteditors = array('none' => lang('none'), 'fckeditor' => 'FCKeditor', 'tinymce' => 'tinyMCE');
create_select_box('Rich text (WYSIWYG) editor', 'rteditor', $rteditors, 'Which editor would you like to use for editing html and other rich content?');
create_check_box('Show helpmessages by default', 'show_help', 'Should this help messages shown up always, when you enter the preferences or only on request.');
$menu_formats = array('sidebox' => lang('Sidebox'), 'jsmenu' => lang('JS-menu'), 'ajax_menu' => lang('ajax menu'), 'no_sidecontent' => lang('No SideContent'));
create_select_box('SideContent', 'sidecontent', $menu_formats, 'Do you want your menues as sidecontent');
create_check_box('Show breadcrumbs', 'show_breadcrumbs', 'Should history navigation urls as breadcrumbs');
create_check_box('activate nowrap in YUI-tables', 'yui_table_nowrap', 'activate nowrap in YUI-tables');
コード例 #8
0
/**************************************************************************\
	* eGroupWare - InfoLog Preferences                                         *
	* http://www.eGroupWare.org                                                *
	* Written by Ralf Becker <*****@*****.**>                  *
	* --------------------------------------------                             *
	*  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: hook_settings.inc.php,v 1.7 2003/12/10 01:21:31 ralfbecker Exp $ */
$show_entries = array(0 => lang('No'), 1 => lang('Yes'), 2 => lang('Yes') . ' - ' . lang('show list of upcoming entries'));
create_select_box('Show open entries: Tasks/Calls/Notes on main screen', 'homeShowEvents', $show_entries, 'Should InfoLog display your open entries - not finised tasks, phonecalls or notes - on the main screen. Works only if you dont selected an application for the main screen (in your preferences).');
unset($show_entries);
create_input_box('Max number of entries to display on the main screen', 'mainscreen_maxshow', 'Only up to this number of entries are displayed on the main screen.', '10', 3);
$ui = CreateObject('infolog.uiinfolog');
// need some labels from
foreach ($ui->filters as $key => $label) {
    $filters[$key] = lang($label);
}
unset($ui);
create_select_box('Default Filter for InfoLog', 'defaultFilter', $filters, 'This is the filter InfoLog uses when you enter the application. Filters limit the entries to show in the actual view. There are filters to show only finished, still open or futures entries of yourself or all users.');
unset($filters);
create_check_box('List no Subs/Childs', 'listNoSubs', 'Should InfoLog show Subtasks, -calls or -notes in the normal view or not. You can always view the Subs via there parent.');
/*
	create_check_box('Show full usernames','longNames',
		'Should InfoLog use full names (surname and familyname) or just the loginnames.');
*/
$show_links = array('all' => lang('all links and attachments'), 'links' => lang('only the links'), 'attach' => lang('only the attachments'), 'none' => lang('no links or attachments'));
create_select_box('Show in the InfoLog list', 'show_links', $show_links, 'Should InfoLog show the links to other applications and/or the file-attachments in the InfoLog list (normal view when u enter InfoLog).');
unset($show_links);