phpgroupware-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-developers] TTS priorities


From: Peter Moulding
Subject: [Phpgroupware-developers] TTS priorities
Date: Tue, 19 Mar 2002 16:00:30 +1100

Hello TTS developers,
I am about to replace

$priority_selected = array();

$priority_selected[$GLOBALS['phpgw_info']['user']['preferences']['tts'][
'prioritydefault']]=' selected';

// Choose the correct priority to display
$prority_selected[$ticket['priority']] = ' selected';
$priority_comment[1]=' - '.lang('Lowest');
$priority_comment[5]=' - '.lang('Medium');
$priority_comment[10]=' - '.lang('Highest');
for ($i=1; $i<=10; $i++)


with


/* priority_selected will receive a default priority from a global
profile
   then any value selected from an existing ticket then supply the
priority
   to be selected when the ticket is displayed for update. This field is
in
   newticket.php and viewticket_details.php. */
$priority_selected = 0;

$priority_selected =
$GLOBALS['phpgw_info']['user']['preferences']['tts']['prioritydefault'];

// Choose the correct priority to display
$priority_comment[1]=' - '.lang('Highest');
$priority_comment[3]=' - '.lang('Medium');
$priority_comment[4]=' - '.lang('Lowest');
for ($i=1; $i<=4; $i++)
   {
   $priority_select .= '<option value="' . $i . '"';
   if($i == $priority_selected)
      {
      $priority_select .= ' selected';
      }
   $priority_select .= '>' . $i . $priority_comment[$i] . '</option>';
   }


I offer this as a starting point for a future improvement, one where
sites can configure the priority list. Ideally it would be configured in
the tts administration panel.  If no one else wants to do it, I am happy
to learn how to make the change some time after exams in June. I
understand there is at least one other place to change the priority list
and that the reversal of order may have to be implemented in sort
orders.

Peter




reply via email to

[Prev in Thread] Current Thread [Next in Thread]