1<?php
2	/**************************************************************************\
3	* phpGroupWare - Preferences                                               *
4	* http://www.phpgroupware.org                                              *
5	* --------------------------------------------                             *
6	*  This program is free software; you can redistribute it and/or modify it *
7	*  under the terms of the GNU General Public License as published by the   *
8	*  Free Software Foundation; either version 2 of the License, or (at your  *
9	*  option) any later version.                                              *
10	\**************************************************************************/
11
12	/* $Id: hook_settings.inc.php 8092 2001-10-06 05:04:33Z jengo $ */
13
14	$yes_and_no = array(
15		'True' => 'Yes',
16		''     => 'No'
17	);
18	create_select_box('show new/updated tickets on main screen','mainscreen_show_new_updated',$yes_and_no);
19
20	$acc = CreateObject('phpgwapi.accounts');
21	$group_list = $acc->get_list('groups');
22	while (list($key,$entry) = each($group_list))
23	{
24		$_groups[$entry['account_id']] = $entry['account_lid'];
25	}
26	create_select_box('Default group','groupdefault',$_groups);
27
28	$account_list = $acc->get_list('accounts');
29	while (list($key,$entry) = each($account_list))
30	{
31		$_accounts[$entry['account_id']] = $entry['account_lid'];
32	}
33	create_select_box('Default assign to','assigntodefault',$_accounts);
34
35	// Choose the correct priority to display
36	$priority_comment[1]  = ' - ' . lang('Lowest');
37	$priority_comment[5]  = ' - ' . lang('Medium');
38	$priority_comment[10] = ' - ' . lang('Highest');
39	for ($i=1; $i<=10; $i++)
40	{
41		$priority[$i] = $i . $priority_comment[$i];
42	}
43	create_select_box('Default Priority','prioritydefault',$priority);
44
45	create_input_box('Refresh every (seconds)','refreshinterval');
46