mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-21 10:27:52 +02:00
- added filemanager icon to index
- named tabs in edit 'tabs'
This commit is contained in:
parent
21a85af3d6
commit
0220e3a99a
@ -5,7 +5,7 @@
|
|||||||
* @link www.egroupware.org
|
* @link www.egroupware.org
|
||||||
* @author Cornelius Weiss <egw@von-und-zu-weiss.de>
|
* @author Cornelius Weiss <egw@von-und-zu-weiss.de>
|
||||||
* @author Ralf Becker <RalfBecker-AT-outdoor-training.de>
|
* @author Ralf Becker <RalfBecker-AT-outdoor-training.de>
|
||||||
* @copyright (c) 2005-8 by Ralf Becker <RalfBecker-AT-outdoor-training.de>
|
* @copyright (c) 2005-9 by Ralf Becker <RalfBecker-AT-outdoor-training.de>
|
||||||
* @copyright (c) 2005/6 by Cornelius Weiss <egw@von-und-zu-weiss.de>
|
* @copyright (c) 2005/6 by Cornelius Weiss <egw@von-und-zu-weiss.de>
|
||||||
* @package addressbook
|
* @package addressbook
|
||||||
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
||||||
@ -17,7 +17,7 @@
|
|||||||
*/
|
*/
|
||||||
class addressbook_ui extends addressbook_bo
|
class addressbook_ui extends addressbook_bo
|
||||||
{
|
{
|
||||||
var $public_functions = array(
|
public $public_functions = array(
|
||||||
'search' => True,
|
'search' => True,
|
||||||
'edit' => True,
|
'edit' => True,
|
||||||
'view' => True,
|
'view' => True,
|
||||||
@ -33,22 +33,21 @@ class addressbook_ui extends addressbook_bo
|
|||||||
*
|
*
|
||||||
* @var boolean
|
* @var boolean
|
||||||
*/
|
*/
|
||||||
var $private_addressbook = false;
|
protected $private_addressbook = false;
|
||||||
var $org_views;
|
protected $org_views;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Addressbook configuration (stored as phpgwapi = general server config)
|
* Addressbook configuration (stored as phpgwapi = general server config)
|
||||||
*
|
*
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
var $config;
|
protected $config;
|
||||||
/**
|
|
||||||
* Name(s) of the tabs in the edit dialog
|
|
||||||
*
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
var $tabs = 'general|cats|home|details|links|distribution_list|custom|custom_private';
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructor
|
||||||
|
*
|
||||||
|
* @param string $contact_app
|
||||||
|
*/
|
||||||
function __construct($contact_app='addressbook')
|
function __construct($contact_app='addressbook')
|
||||||
{
|
{
|
||||||
parent::__construct($contact_app);
|
parent::__construct($contact_app);
|
||||||
@ -312,6 +311,8 @@ class addressbook_ui extends addressbook_bo
|
|||||||
$sel_options['col_filter[tid]'][$tid] = $data['name'];
|
$sel_options['col_filter[tid]'][$tid] = $data['name'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// disable filemanger icon if user has no access to filemanager
|
||||||
|
$readonlys['filemanager/navbar'] = !isset($GLOBALS['egw_info']['user']['apps']['filemanager']);
|
||||||
|
|
||||||
// get the availible org-views plus the label of the contacts view of one org
|
// get the availible org-views plus the label of the contacts view of one org
|
||||||
$sel_options['org_view'] = $this->org_views;
|
$sel_options['org_view'] = $this->org_views;
|
||||||
@ -1397,10 +1398,10 @@ class addressbook_ui extends addressbook_bo
|
|||||||
$readonlys[$field] = true;
|
$readonlys[$field] = true;
|
||||||
}
|
}
|
||||||
// disable not needed tabs
|
// disable not needed tabs
|
||||||
$readonlys[$this->tabs]['cats'] = !($content['cat_tab'] = $this->config['cat_tab']);
|
$readonlys['tabs']['cats'] = !($content['cat_tab'] = $this->config['cat_tab']);
|
||||||
$readonlys[$this->tabs]['custom'] = !$this->customfields;
|
$readonlys['tabs']['custom'] = !$this->customfields;
|
||||||
$readonlys[$this->tabs]['custom_private'] = !$this->customfields || !$this->config['private_cf_tab'];
|
$readonlys['tabs']['custom_private'] = !$this->customfields || !$this->config['private_cf_tab'];
|
||||||
$readonlys[$this->tabs]['distribution_list'] = !$content['distrib_lists'];#false;
|
$readonlys['tabs']['distribution_list'] = !$content['distrib_lists'];#false;
|
||||||
$readonlys['button[delete]'] = !$content['id'];
|
$readonlys['button[delete]'] = !$content['id'];
|
||||||
if ($this->config['private_cf_tab']) $content['no_private_cfs'] = 0;
|
if ($this->config['private_cf_tab']) $content['no_private_cfs'] = 0;
|
||||||
|
|
||||||
@ -1633,10 +1634,10 @@ $readonlys['button[vcard]'] = true;
|
|||||||
$content['owner'] .= 'p';
|
$content['owner'] .= 'p';
|
||||||
}
|
}
|
||||||
// disable not needed tabs
|
// disable not needed tabs
|
||||||
$readonlys[$this->tabs]['cats'] = !($content['cat_tab'] = $this->config['cat_tab']);
|
$readonlys['tabs']['cats'] = !($content['cat_tab'] = $this->config['cat_tab']);
|
||||||
$readonlys[$this->tabs]['custom'] = !$this->customfields;
|
$readonlys['tabs']['custom'] = !$this->customfields;
|
||||||
$readonlys[$this->tabs]['custom_private'] = !$this->customfields || !$this->config['private_cf_tab'];
|
$readonlys['tabs']['custom_private'] = !$this->customfields || !$this->config['private_cf_tab'];
|
||||||
$readonlys[$this->tabs]['distribution_list'] = !$content['distrib_lists'];#false;
|
$readonlys['tabs']['distribution_list'] = !$content['distrib_lists'];#false;
|
||||||
if ($this->config['private_cf_tab']) $content['no_private_cfs'] = 0;
|
if ($this->config['private_cf_tab']) $content['no_private_cfs'] = 0;
|
||||||
|
|
||||||
// last and next calendar date
|
// last and next calendar date
|
||||||
@ -1759,11 +1760,11 @@ $readonlys['button[vcard]'] = true;
|
|||||||
// this setting will enable (and show) the search and cancel buttons, setting this to true will hide the before mentioned buttons completely
|
// this setting will enable (and show) the search and cancel buttons, setting this to true will hide the before mentioned buttons completely
|
||||||
$readonlys['button'] = false;
|
$readonlys['button'] = false;
|
||||||
// disable not needed tabs
|
// disable not needed tabs
|
||||||
$readonlys[$this->tabs]['cats'] = !($content['cat_tab'] = $this->config['cat_tab']);
|
$readonlys['tabs']['cats'] = !($content['cat_tab'] = $this->config['cat_tab']);
|
||||||
$readonlys[$this->tabs]['custom'] = !$this->customfields;
|
$readonlys['tabs']['custom'] = !$this->customfields;
|
||||||
$readonlys[$this->tabs]['custom_private'] = !$this->customfields || !$this->config['private_cf_tab'];
|
$readonlys['tabs']['custom_private'] = !$this->customfields || !$this->config['private_cf_tab'];
|
||||||
$readonlys[$this->tabs]['links'] = true;
|
$readonlys['tabs']['links'] = true;
|
||||||
$readonlys[$this->tabs]['distribution_list'] = true;
|
$readonlys['tabs']['distribution_list'] = true;
|
||||||
// setting hidebuttons for content will hide the 'normal' addressbook edit dialog buttons
|
// setting hidebuttons for content will hide the 'normal' addressbook edit dialog buttons
|
||||||
$content['hidebuttons'] = true;
|
$content['hidebuttons'] = true;
|
||||||
$content['no_tid'] = true;
|
$content['no_tid'] = true;
|
||||||
|
File diff suppressed because one or more lines are too long
@ -77,4 +77,7 @@ fieldset.emailGroup {
|
|||||||
.customfields td{
|
.customfields td{
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
line-height: 12px;
|
line-height: 12px;
|
||||||
|
}
|
||||||
|
.image16 img {
|
||||||
|
height: 16px;
|
||||||
}
|
}
|
@ -467,7 +467,7 @@
|
|||||||
</rows>
|
</rows>
|
||||||
</grid>
|
</grid>
|
||||||
</template>
|
</template>
|
||||||
<template id="addressbook.edit" template="" lang="" group="0" version="1.5.006">
|
<template id="addressbook.edit" template="" lang="" group="0" version="1.7.001">
|
||||||
<grid>
|
<grid>
|
||||||
<columns>
|
<columns>
|
||||||
<column width="450"/>
|
<column width="450"/>
|
||||||
@ -498,7 +498,7 @@
|
|||||||
</grid>
|
</grid>
|
||||||
</row>
|
</row>
|
||||||
<row valign="top">
|
<row valign="top">
|
||||||
<tabbox>
|
<tabbox id="tabs">
|
||||||
<tabs>
|
<tabs>
|
||||||
<tab label="General" statustext="Name, Address"/>
|
<tab label="General" statustext="Name, Address"/>
|
||||||
<tab label="Categories" statustext="Categories"/>
|
<tab label="Categories" statustext="Categories"/>
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
</hbox>
|
</hbox>
|
||||||
<styles>.rightPadAdd { width: 30px; }</styles>
|
<styles>.rightPadAdd { width: 30px; }</styles>
|
||||||
</template>
|
</template>
|
||||||
<template id="addressbook.index.rows" template="" lang="" group="0" version="1.5.007">
|
<template id="addressbook.index.rows" template="" lang="" group="0" version="1.7.001">
|
||||||
<grid width="100%">
|
<grid width="100%">
|
||||||
<columns>
|
<columns>
|
||||||
<column/>
|
<column/>
|
||||||
@ -30,7 +30,7 @@
|
|||||||
<column disabled="@no_distribution_list"/>
|
<column disabled="@no_distribution_list"/>
|
||||||
<column/>
|
<column/>
|
||||||
<column/>
|
<column/>
|
||||||
<column width="90"/>
|
<column width="75"/>
|
||||||
</columns>
|
</columns>
|
||||||
<rows>
|
<rows>
|
||||||
<row class="th">
|
<row class="th">
|
||||||
@ -161,13 +161,18 @@
|
|||||||
<menupopup type="select-account" id="${row}[modifier]" readonly="true"/>
|
<menupopup type="select-account" id="${row}[modifier]" readonly="true"/>
|
||||||
</menulist>
|
</menulist>
|
||||||
</vbox>
|
</vbox>
|
||||||
<hbox options="0" class="noPrint" orient="0">
|
<vbox options="0,0" class="noPrint">
|
||||||
<button id="document[$row_cont[id]]" image="new" label="Insert in document"/>
|
<hbox options="0">
|
||||||
<image options="addressbook.addressbook_ui.view&contact_id=$row_cont[id]" label="View" src="view"/>
|
<image options="addressbook.addressbook_ui.view&contact_id=$row_cont[id]" label="View" src="view"/>
|
||||||
<button image="edit" label="Edit" onclick="window.open(egw::link('/index.php','menuaction=addressbook.addressbook_ui.edit&contact_id=$row_cont[id]'),'_blank','dependent=yes,width=850,height=460,scrollbars=yes,status=yes'); return false;" id="edit[$row_cont[id]]"/>
|
<button image="edit" label="Edit" onclick="window.open(egw::link('/index.php','menuaction=addressbook.addressbook_ui.edit&contact_id=$row_cont[id]'),'_blank','dependent=yes,width=850,height=460,scrollbars=yes,status=yes'); return false;" id="edit[$row_cont[id]]"/>
|
||||||
<button id="delete[$row_cont[id]]" image="delete" label="Delete" statustext="Delete this contact" onclick="return confirm('Delete this contact');"/>
|
<button id="delete[$row_cont[id]]" image="delete" label="Delete" statustext="Delete this contact" onclick="return confirm('Delete this contact');"/>
|
||||||
<checkbox id="checked[]" options="$row_cont[id]" statustext="Select multiple contacts for a further action" align="right"/>
|
<checkbox id="checked[]" options="$row_cont[id]" statustext="Select multiple contacts for a further action" align="right"/>
|
||||||
</hbox>
|
</hbox>
|
||||||
|
<hbox options="0">
|
||||||
|
<button id="document[$row_cont[id]]" image="new" label="Insert in document"/>
|
||||||
|
<image src="filemanager/navbar" options="/index.php?menuaction=filemanager.filemanager_ui.index&path=/apps/addressbook/$row_cont[id]" class="image16" label="Filemanager"/>
|
||||||
|
</hbox>
|
||||||
|
</vbox>
|
||||||
</row>
|
</row>
|
||||||
</rows>
|
</rows>
|
||||||
</grid>
|
</grid>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user