[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-tracker] [patch #3149] Better default participant selectio
From: |
DG |
Subject: |
[Phpgroupware-tracker] [patch #3149] Better default participant selection process for calendar |
Date: |
Mon, 21 Jun 2004 07:29:39 -0400 |
User-agent: |
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0) |
This mail is an automated notification from the patch tracker
of the project: phpGroupWare.
/**************************************************************************/
[patch #3149] Full Item Snapshot:
URL: <http://savannah.gnu.org/patch/?func=detailitem&item_id=3149>
Project: phpGroupWare
Submitted by: DG
On: Mon 06/21/2004 at 11:29
Category: calendar
Priority: 5 - Normal
Resolution: None
Assigned to: None
Originator Email:
Status: Open
Summary: Better default participant selection process for calendar
Original Submission: diff -ru
../phpgroupware-safe/calendar/inc/class.uicalendar.inc.php
calendar/inc/class.uicalendar.inc.php
--- ../phpgroupware-safe/calendar/inc/class.uicalendar.inc.php 2004-06-21
10:58:49.000000000 +0200
+++ calendar/inc/class.uicalendar.inc.php 2004-06-21 13:14:26.000000000
+0200
@@ -3566,6 +3566,10 @@
$vars = Array(
'font' => $this->theme['font'],
'bg_color' =>
$this->theme['bg_text'],
+ //Added by DG
+ //Highlights all the participants in the
"included" select box prior to submitting
+ 'on_submit' =>
'selectAllParticipants()',
+ //end edit by DG
'action_url' =>
$GLOBALS['phpgw']->link('/index.php',Array('menuaction'=>'calendar.bocalendar.update')),
'accounts_link' =>
$GLOBALS['phpgw']->link('/index.php','menuaction=calendar.uicalendar.accounts_popup'),
'common_hidden' => '<input type="hidden"
name="cal[id]" value="'.$event['id'].'">'."n"
@@ -3719,14 +3723,65 @@
{
if($id !=
intval($event['owner']))
{
- $str .= '
<option value="' . $id.$event['participants'][$id] .
'"'.($event['participants'][$id]?' selected':'').'>('.$user_array['type'].')
'.$user_array['name'].'</option>'."n";
+
+ //Added by DG
+ //Used for better
participant selection, separates included from excluded participants
+
+ if
($event['participants'][$id]){
+
$include_participants .= ' <option value="' .
$id.$event['participants'][$id] . '" SELECTED>('.$user_array['type'].')
'.$user_array['name'].'</option>'."n";
+ }else{
+
$exclude_participants .= ' <option value="' .
$id.$event['participants'][$id] . '">('.$user_array['type'].')
'.$user_array['name'].'</option>'."n";
+ }
+
+ //End edit by DG
+
}
}
$var['participants'] = array
(
'field' =>
lang('Participants'),
- 'data' => "n".'
<select name="participants[]" multiple size="7">'."n".$str.' </select>'
);
+
+ //Added by DG
+ //Used for better participant
selection, overrides variable set above
+ $javascript_file=
$GLOBALS['phpgw_info']['server']['webserver_url']."/calendar/inc/selectbox2.js";
+
+
$var['participants']['data']='<SCRIPT LANGUAGE="JavaScript"
src="'.$javascript_file.'"></SCRIPT>'."nn";
+
$var['participants']['data'].=<<<EOF
+(In some browsers, you can double-click the options.)
+<p>
+<TABLE BORDER=0>
+<TR>
+ <TD>
+ <b>Exclude</b><br>
+ <SELECT NAME="excluded_participants" MULTIPLE SIZE=10 >
+ $exclude_participants
+ </SELECT>
+ </TD>
+ <TD VALIGN=MIDDLE ALIGN=CENTER>
+ <INPUT TYPE="button" NAME="right" VALUE=">>"
ONCLICK="moveSelectedOptions(this.form['excluded_participants'],this.form.elements[findIncludeParticipantsIndex()],true,this.form['movepattern1'].value)"><BR><BR>
+ <INPUT TYPE="button" NAME="right" VALUE="All >>"
ONCLICK="moveAllOptions(this.form['excluded_participants'],this.form.elements[findIncludeParticipantsIndex()],true,this.form['movepattern1'].value)"><BR><BR>
+ <INPUT TYPE="button" NAME="left" VALUE="<<"
ONCLICK="moveSelectedOptions(this.form.elements[findIncludeParticipantsIndex()],this.form['excluded_participants'],true,this['form'].movepattern1.value)"><BR><BR>
+ <INPUT TYPE="button" NAME="left" VALUE="All <<"
ONCLICK="moveAllOptions(this.form.elements[findIncludeParticipantsIndex()],this.form['excluded_participants'],true,this.form['movepattern1'].value)">
+ </TD>
+ <TD>
+ <b>Include</b><br>
+
+ <SELECT NAME="participants[]" SIZE=10 multiple >
+ $include_participants
+ </SELECT>
+ </TD>
+</TR>
+<TR>
+ <TD COLSPAN="3">
+ Do not allow moving of options matching pattern:<BR><INPUT TYPE="text"
NAME="movepattern1" VALUE="">
+ </TD>
+</TR>
+</TABLE>
+EOF;
+ //End edit by DG
+
+
break;
}
/*
Only in calendar/inc: selectbox2.js
diff -ru ../phpgroupware-safe/calendar/templates/default/edit.tpl
calendar/templates/default/edit.tpl
--- ../phpgroupware-safe/calendar/templates/default/edit.tpl 2004-06-21
10:58:50.000000000 +0200
+++ calendar/templates/default/edit.tpl 2004-06-21 11:10:12.000000000 +0200
@@ -10,7 +10,7 @@
<center>
<font color="#000000" face="{font}">
-<form action="{action_url}" method="post" name="app_form">
+<form action="{action_url}" method="post" name="app_form"
onSubmit="{on_submit}">
{common_hidden}
<table border="0" width="90%">
<tr>
CC List
-------
CC Address | Comment
------------------------------------+-----------------------------
phpgw --AT-- skwashd --DOT-- homelinux --DOT-- org |
For detailed info, follow this link:
<http://savannah.gnu.org/patch/?func=detailitem&item_id=3149>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-tracker] [patch #3149] Better default participant selection process for calendar,
DG <=