redesigned the edit and view dialog, hope you like it Conny ;-)

This commit is contained in:
Ralf Becker 2005-11-13 17:51:41 +00:00
parent 56ce0aee48
commit 35b9fe0cbe
6 changed files with 302 additions and 323 deletions

View File

@ -511,8 +511,9 @@
$GLOBALS['egw']->template->set_var('th_text',$GLOBALS['egw_info']['theme']['th_text']);
$GLOBALS['egw']->template->set_var('action_url',$GLOBALS['egw']->link('/index.php','menuaction=addressbook.uiaddressbook.delete'));
$GLOBALS['egw']->template->set_var('lang_add',lang('Add'));
$GLOBALS['egw']->template->set_var('add_url',$GLOBALS['egw']->link('/index.php','menuaction=addressbook.uiaddressbook.add'));
$GLOBALS['egw']->template->set_var('add_onclick','window.open(\''.$GLOBALS['egw']->link('/index.php?menuaction=addressbook.uicontacts.edit').'\',\'\',\'dependent=yes,width=800,height=600,location=no,menubar=no,toolbar=no,scrollbars=yes,status=yes\');return false;');
$add_link = $GLOBALS['egw']->link('/index.php?menuaction=addressbook.uicontacts.edit');
$GLOBALS['egw']->template->set_var('add_url',$add_link);
$GLOBALS['egw']->template->set_var('add_onclick',"window.open('$add_link','_blank','dependent=yes,width=850,height=440,location=no,menubar=no,toolbar=no,scrollbars=yes,status=yes'); return false;");
$GLOBALS['egw']->template->set_var('lang_addvcard',lang('AddVCard'));
$GLOBALS['egw']->template->set_var('vcard_url',$GLOBALS['egw']->link('/index.php','menuaction=addressbook.uivcard.in'));
$GLOBALS['egw']->template->set_var('lang_import',lang('Import Contacts'));
@ -609,14 +610,11 @@
{
$actions .= '<a href="'
. $GLOBALS['egw']->link('/index.php',array(
'menuaction' => 'addressbook.uiaddressbook.edit',
'ab_id' => $entries[$i]['id']
))
. '"><img src="'
. $GLOBALS['egw']->common->image('addressbook','edit')
. '" border="0" title="' . lang('Edit') .
'" onClick="window.open(\''.$GLOBALS['egw']->link('/index.php?menuaction=addressbook.uicontacts.edit') . '&contact_id='.$entries[$i]['id'].
'\',\'\',\'dependent=yes,width=800,height=600,location=no,menubar=no,toolbar=no,scrollbars=yes,status=yes\');return false;"></a>';
'menuaction' => 'addressbook.uicontacts.edit',
'contact_id' => $entries[$i]['id'],
)). '" onClick="window.open(this,this.target,\'dependent=yes,width=850,height=440,location=no,menubar=no,toolbar=no,scrollbars=yes,status=yes\'); return false;">'.
'<img src="'. $GLOBALS['egw']->common->image('addressbook','edit')
. '" border="0" title="' . lang('Edit') . '"></a>';
}
if($this->bo->check_perms($entries[$i],PHPGW_ACL_DELETE))
@ -1155,7 +1153,7 @@
$GLOBALS['egw']->template->set_var('edit_button',$this->html_1button_form('edit','Edit',
$GLOBALS['egw']->link('/index.php','menuaction=addressbook.uiaddressbook.edit&ab_id=' .$ab_id),'window.open(\''.$GLOBALS['egw']->link('/index.php?menuaction=addressbook.uicontacts.edit') . '&contact_id='.$ab_id.
'\',\'\',\'dependent=yes,width=800,height=600,location=no,menubar=no,toolbar=no,scrollbars=yes,status=yes\');return false;'));
'\',\'\',\'dependent=yes,width=850,height=440,location=no,menubar=no,toolbar=no,scrollbars=yes,status=yes\');return false;'));
}
$GLOBALS['egw']->template->set_var('copy_button',$this->html_1button_form('submit','copy',
$GLOBALS['egw']->link('/index.php','menuaction=addressbook.uiaddressbook.copy&ab_id=' . $fields[0]['id'])));

View File

@ -52,53 +52,56 @@ class uicontacts extends bocontacts
}
/**
* Edit a contact
*
* @param array $content=null submitted content
* @param int $_GET['contact_id'] contact_id manly for popup use
* @param bool $_GET['makecp'] ture if you want do copy the contact given by $_GET['contact_id']
*/
function edit($content='')
function edit($content=null)
{
if (is_array($content))
{
if (isset($content['button']['save']))
list($button) = each($content['button']);
switch($button)
{
$this->save($content);
echo "<html><body><script>var referer = opener.location;opener.location.href = referer;window.close();</script></body></html>\n";
$GLOBALS['egw']->common->egw_exit();
}
elseif (isset($content['button']['apply']))
{
$content = $this->save($content);
$GLOBALS['egw_info']['flags']['java_script'] .= "<script LANGUAGE=\"JavaScript\">
var referer = opener.location;
opener.location.href = referer;</script>";
}
elseif (isset($content['button']['delete']))
{
if(!$this->delete($content));
{
echo "<html><body><script>var referer = opener.location;opener.location.href = referer;window.close();</script></body></html>\n";
$GLOBALS['egw']->common->egw_exit();
}
case 'save':
$this->save($content);
echo "<html><body><script>var referer = opener.location;opener.location.href = referer;window.close();</script></body></html>\n";
$GLOBALS['egw']->common->egw_exit();
case 'apply':
$content = $this->save($content);
$GLOBALS['egw_info']['flags']['java_script'] .= "<script LANGUAGE=\"JavaScript\">
var referer = opener.location;
opener.location.href = referer;</script>";
break;
case 'delete':
if(!$this->delete($content));
{
echo "<html><body><script>var referer = opener.location;opener.location.href = referer;window.close();</script></body></html>\n";
$GLOBALS['egw']->common->egw_exit();
}
break;
}
}
else
{
$content = array();
$content_id = $_GET['contact_id'] ? $_GET['contact_id'] : 0;
$contact_id = $_GET['contact_id'] ? $_GET['contact_id'] : 0;
$view = $_GET['view'];// == 1 ? true : false;
if ($content_id != 0)
if ($contact_id)
{
$content = $this->read($content_id);
$content = $this->read($contact_id);
}
if($_GET['makecp']) unset($content['id']);
}
//_debug_array($content);
$readonlys['button[delete]'] = !$this->check_perms(EGW_ACL_DELETE,$content);
$readonlys['button[copy]'] = true;
$readonlys['button[edit]'] = true;
$readonlys['button[copy]'] = $readonlys['button[edit]'] = $readonlys['button[vcard]'] = true;
$preserv = array(
'id' => $content['id'],
@ -118,30 +121,29 @@ class uicontacts extends bocontacts
return $this->tmpl->exec('addressbook.uicontacts.edit',$content,$sel_options,$readonlys,$preserv, 2);
}
function view($content='')
function view($content=null)
{
if(is_array($content))
{
if (isset($content['button']['vcard']))
list($button) = each($content['button']);
switch ($button)
{
$GLOBALS['egw']->redirect_link('/index.php','menuaction=addressbook.uivcard.out&ab_id=' .$content['id']);
}
elseif (isset($content['button']['cancel']))
{
$GLOBALS['egw']->redirect_link('/index.php','menuaction=addressbook.uiaddressbook.index');
}
elseif (isset($content['button']['delete']))
{
if(!$this->delete($content))
{
$content['msg'] = lang('Something wen\'t wrong by deleting this contact');
}
else
{
case 'vcard':
$GLOBALS['egw']->redirect_link('/index.php','menuaction=addressbook.uivcard.out&ab_id=' .$content['id']);
case 'cancel':
$GLOBALS['egw']->redirect_link('/index.php','menuaction=addressbook.uiaddressbook.index');
}
case 'delete':
if(!$this->delete($content))
{
$content['msg'] = lang('Something went wrong by deleting this contact');
}
else
{
$GLOBALS['egw']->redirect_link('/index.php','menuaction=addressbook.uiaddressbook.index');
}
}
}
else
{
@ -150,95 +152,23 @@ class uicontacts extends bocontacts
$content = $this->read($contact_id);
}
foreach($content as $key => $val)
{
$readonlys[$key] = true;
if (in_array($key,array('tel_home','tel_work','tel_cell')))
{
$readonlys[$key.'2'] = true;
$content[$key.'2'] = $content[$key];
}
}
$content['view'] = true;
// privat
foreach(array(
'adr_two_street' => 'home street',
'adr_two_locality' => 'home city',
'adr_two_region' => 'home state',
'adr_two_postalcode' => 'home zip code',
'adr_two_countryname' => 'home country',
'adr_two_type' => 'home address type',
) as $field => $name)
{
if($content[$field] == '') continue;
$content['personal_entries'][] = array(
'field' => $name,
'value' => $content[$field],
);
}
// tel numbers
foreach(array(
'tel_work' => 'business phone',
'tel_home' => 'home phone',
'tel_voice' => 'voice phone',
'tel_msg' => 'message phone',
'tel_fax' => 'fax',
'tel_pager' => 'pager',
'tel_cell' => 'mobile phone',
'tel_bbs' => 'bbs phone',
'tel_modem' => 'modem phone',
'tel_isdn' => 'isdn phone',
'tel_car' => 'car phone',
'tel_video' => 'video phone',
'ophone' => 'other phone',
'tel_prefer' => 'preferred phone',
) as $field => $name)
{
if($content[$field] == '') continue;
$content['phone_entries'][] = array(
'field' => $name,
'value' => $content[$field],
);
}
// organisation
foreach(array(
'adr_one_street' => 'business street',
'address2' => 'address line 2',
'address3' => 'address line 3',
'adr_one_locality' => 'business city',
'adr_one_region' => 'business state',
'adr_one_postalcode' => 'business zip code',
'adr_one_countryname' => 'business country',
'adr_one_type' => 'business address type',
) as $field => $name)
{
if($content[$field] == '') continue;
$content['organisation_entries'][] = array(
'field' => $name,
'value' => $content[$field],
);
}
// emails
foreach(array(
'email' => 'business email',
'email_home' => 'home email',
) as $field => $name)
{
if($content[$field] == '') continue;
$content['email_entries'][] = array(
'field' => $name,
'value' => $content[$field],
);
}
//urls
foreach(array(
'url' => 'url'
) as $field => $name)
{
if($content[$field] == '') continue;
$content['url_entries'][] = array(
'field' => $name,
'value' => $content[$field],
);
}
if($content['tz'] == '') $content['tz'] = 0;
$readonlys['link'] = $readonlys['link_to'] = $readonlys['customfields'] = true;
$readonlys['button[save]'] = $readonlys['button[apply]'] = true;
$readonlys['button[delete]'] = !$this->check_perms(EGW_ACL_DELETE,$content);
$readonlys['button[private]'] = $content['private'] == 1 ? false :true;
$this->tmpl->read('addressbook.view');
$readonlys['button[edit]'] = !$this->check_perms(EGW_ACL_EDIT,$content);
$this->tmpl->read('addressbook.edit');
$this->tmpl->exec('addressbook.uicontacts.view',$content,$sel_options,$readonlys,array('id' => $content['id']));
$GLOBALS['egw']->hooks->process(array(

File diff suppressed because one or more lines are too long

View File

@ -18,6 +18,7 @@ addressbook-fieldname addressbook de Adressbuch Feldname
addvcard addressbook de VCard hinzufügen
advanced search addressbook de Erweiterte Suche
alt. csv import addressbook de Alt. CSV Import
are you shure you want to delete this contact? addressbook de Diesen Kontakt löschen?
are you sure you want to delete this field? addressbook de Sind Sie sicher, dass Sie dieses Feld löschen wollen?
bbs phone addressbook de BBS
birthday common de Geburtstag
@ -47,6 +48,7 @@ contact saved addressbook de Kontakt gespeichert
contact settings admin de Kontakt Einstellungen
copied by %1, from record #%2. addressbook de Kopiert von %1, vom Datensatz Nr. %2.
country common de Land
create new links addressbook de Neue Verknüpfung erstellen
csv-fieldname addressbook de CSV-Feldname
csv-filename addressbook de CSV-Dateiname
custom addressbook de Benutzerdefiniert
@ -60,11 +62,14 @@ doesn't matter addressbook de egal
domestic addressbook de Wohnung
download addressbook de Herunterladen
download export file (uncheck to debug output in browser) addressbook de Download Export-Datei (zur Vorschau im Browser Ankreuzfeld frei lassen)
download this contact as vcard file addressbook de Diese Adresse als vCard Datei herunterladen
edit custom field addressbook de Benutzerdefiniertes Feld bearbeiten
edit custom fields admin de Benutzerdefinierte Felder bearbeiten
edit phonenumbers - addressbook de Telefonnummern bearbeiten
email & internet addressbook de Email & Internet
empty for all addressbook de leer für alle
enter the path to the exported file here addressbook de Bitte geben Sie den Pfad für die exportierte Datei an
existing links addressbook de Bestehende Verknüpfungen
export addressbook de Export
export contacts addressbook de Kontakte exportieren
export file name addressbook de Dateiname zum Exportieren
@ -110,6 +115,7 @@ ldap root dn for contacts admin de LDAP-rootdn f
ldap root pw for contacts admin de LDAP-Passwort für Kontakte
ldif addressbook de LDIF
line 2 addressbook de Zeile 2
links addressbook de Verknüpfungen
list all categories addressbook de Liste alle Kategorien
list all customfields addressbook de Liste alle benutzerdefinierten Felder
load vcard addressbook de VCard laden
@ -119,7 +125,7 @@ middle name addressbook de Zweiter Vorname
mobile addressbook de Mobil
mobile phone addressbook de Mobiltelefon
modem phone addressbook de Modem
more phonenumbers addressbook de Weitere Telefonnummern
more ... addressbook de Mehr ...
multiple vcard addressbook de Mehrere VCards
no vcard addressbook de Keine VCard
number addressbook de Nummer
@ -134,7 +140,7 @@ phone numbers common de Telefonnummern
please enter a name for that field ! addressbook de Bitte geben sie einen Namen für das Feld an!
postal common de Postanschrift
pref addressbook de präf
prefix addressbook de Präfix
prefix addressbook de Anrede
public key addressbook de öffentlicher Schlüssel
read a list / search for entries. addressbook de Lese die Liste / Suche nach Einträgen
read a list of entries. addressbook de Liest eine Liste von Einträgen.

View File

@ -18,6 +18,7 @@ addressbook-fieldname addressbook en Addressbook-Fieldname
addvcard addressbook en Add VCard
advanced search addressbook en Advanced search
alt. csv import addressbook en Alt. CSV Import
are you shure you want to delete this contact? addressbook en Are you shure you want to delete this contact?
are you sure you want to delete this field? addressbook en Are you sure you want to delete this field?
bbs phone addressbook en BBS Phone
birthday common en Birthday
@ -47,6 +48,7 @@ contact saved addressbook en Contact saved
contact settings admin en Contact Settings
copied by %1, from record #%2. addressbook en Copied by %1, from record #%2.
country common en Country
create new links addressbook en Create new links
csv-fieldname addressbook en CSV-Fieldname
csv-filename addressbook en CSV-Filename
custom addressbook en Custom
@ -60,11 +62,14 @@ doesn't matter addressbook en doesn't matter
domestic addressbook en Domestic
download addressbook en Download
download export file (uncheck to debug output in browser) addressbook en Download export file (Uncheck to debug output in browser)
download this contact as vcard file addressbook en download this contact as vCard file
edit custom field addressbook en Edit Custom Field
edit custom fields admin en Edit Custom Fields
edit phonenumbers - addressbook en Edit Phonenumbers -
email & internet addressbook en Email & Internet
empty for all addressbook en empty for all
enter the path to the exported file here addressbook en Enter the path to the exported file here
existing links addressbook en Existing links
export addressbook en export
export contacts addressbook en Export Contacts
export file name addressbook en Export file name
@ -110,6 +115,7 @@ ldap root dn for contacts admin en LDAP root dn for contacts
ldap root pw for contacts admin en LDAP root pw for contacts
ldif addressbook en LDIF
line 2 addressbook en Line 2
links addressbook en Links
list all categories addressbook en List all categories
list all customfields addressbook en List all customfields
load vcard addressbook en Load VCard
@ -119,7 +125,7 @@ middle name addressbook en Middle Name
mobile addressbook en Mobile
mobile phone addressbook en Mobile Phone
modem phone addressbook en Modem Phone
more phonenumbers addressbook en more phonenumbers
more ... addressbook en More ...
multiple vcard addressbook en Multiple VCard
no vcard addressbook en No VCard
number addressbook en Number
@ -176,7 +182,6 @@ voice phone addressbook en Voice Phone
warning!! ldap is valid only if you are not using contacts for accounts storage! admin en WARNING!! LDAP is valid only if you are NOT using contacts for accounts storage!
warning: all contacts found will be deleted! addressbook en WARNING: All contacts found will be deleted!
work phone addressbook en Work Phone
write (update or add) a single entry by passing the fields. addressbook en Write (update or add) a single entry by passing the fields.
you are not permitted to delete contact %1 addressbook en You are not permitted to delete contact %1
you are not permittet to delete this contact addressbook en You are not permittet to delete this contact
you are not permittet to edit this contact addressbook en You are not permittet to edit this contact

View File

@ -1,109 +1,59 @@
<?xml version="1.0"?>
<!-- $Id$ -->
<overlay>
<template id="addressbook.edit.personal" template="" lang="" group="0" version="">
<grid class="editphones">
<template id="addressbook.edit.personal" template="" lang="" group="0" version="1.0.1.001">
<grid height="250">
<columns>
<column/>
<column/>
<column/>
<column/>
<column/>
<column/>
</columns>
<rows>
<row>
<image src="personal"/>
<description value="prefix"/>
<textbox id="prefix" size="40" tabindex="1"/>
<description/>
<description value="time zone"/>
<menulist>
<menupopup 1="label" 2="label" id="tz" no_lang="1"/>
</menulist>
<textbox id="n_prefix" size="40" tabindex="1"/>
</row>
<row>
<description/>
<description value="first name"/>
<textbox id="n_given" size="40" tabindex="2"/>
<image src="kaddressbook"/>
<description value="home phone"/>
<textbox id="tel_home" size="30" tabindex="6"/>
</row>
<row>
<description/>
<description value=" middle name"/>
<description value="middle name"/>
<textbox id="n_middle" size="40" tabindex="3"/>
<description/>
<description value="business phone"/>
<textbox id="tel_work" size="30" tabindex="7"/>
</row>
<row>
<description/>
<description value="last name"/>
<textbox id="n_family" size="40" tabindex="4"/>
<description/>
<description value="mobile phone"/>
<textbox id="tel_cell" size="30" tabindex="8"/>
</row>
<row>
<description/>
<description value="suffix"/>
<textbox id="n_suffix" size="40" tabindex="5"/>
<description/>
<description/>
<button label="more phonenumbers" onclick="showphones(this.form); return false;" tabindex="9" accesskey="m"/>
</row>
<row>
<description/>
<description/>
<description/>
<image src="email"/>
<description value="home email"/>
<textbox id="email_home" size="30" tabindex="10"/>
</row>
<row>
<description/>
<description value=" birthday"/>
<date 1="label" id="bday"/>
<description/>
<description value="business email"/>
<textbox id="email" size="30" tabindex="11"/>
</row>
<row>
<description/>
<description/>
<description/>
<description/>
<description/>
<description/>
<row height="40">
<image src="gohome"/>
<description value="company name" options=",,,org_name"/>
<textbox size="40" id="org_name" tabindex="5"/>
</row>
<row valign="top">
<image src="folder"/>
<description value="category"/>
<listbox type="select-cat" id="cat_id" rows="3" span="4" tabindex="13"/>
<listbox type="select-cat" id="cat_id" rows="3" span="4" tabindex="6"/>
</row>
<row>
<image src="password"/>
<description value="private"/>
<checkbox id="private" tabindex="14"/>
<image src="package_network"/>
<description value="url"/>
<textbox id="url" size="30" tabindex="12"/>
</row>
<row height="100%">
<description/>
<description/>
<description/>
<description/>
<description/>
<description/>
<description value="Private" options=",,,private"/>
<checkbox id="private" tabindex="7"/>
</row>
</rows>
</grid>
</template>
<template id="addressbook.edit.organisation" template="" lang="" group="0" version="">
<grid height="320">
<template id="addressbook.edit.organisation" template="" lang="" group="0" version="1.0.1.001">
<grid height="250">
<columns>
<column/>
<column/>
@ -131,13 +81,7 @@
</row>
<row>
<image src="gohome"/>
<description value="company name"/>
<textbox size="40" id="org_name"/>
<description/>
</row>
<row>
<description/>
<description value="business street"/>
<description value="street"/>
<textbox size="40" id="adr_one_street"/>
<description/>
</row>
@ -155,29 +99,29 @@
</row>
<row>
<description/>
<description value="business city"/>
<description value="city"/>
<textbox size="40" id="adr_one_locality"/>
<description/>
</row>
<row>
<description/>
<description value="business zip code"/>
<description value="zip code"/>
<textbox size="40" id="adr_one_postalcode"/>
<description/>
</row>
<row>
<description/>
<description value="business state"/>
<description value="state"/>
<textbox size="40" id="adr_one_region"/>
<description/>
</row>
<row>
<description/>
<description value="business country"/>
<description value="country"/>
<textbox size="40" id="adr_one_countryname"/>
<description/>
</row>
<row height="100%">
<row>
<description/>
<description/>
<description/>
@ -186,8 +130,8 @@
</rows>
</grid>
</template>
<template id="addressbook.edit.home" template="" lang="" group="0" version="">
<grid height="320">
<template id="addressbook.edit.home" template="" lang="" group="0" version="1.0.1.001">
<grid height="250">
<columns>
<column/>
<column/>
@ -196,85 +140,93 @@
<rows>
<row>
<image src="gohome"/>
<description value="home street"/>
<description value="street"/>
<textbox size="40" id="adr_two_street"/>
</row>
<row>
<description/>
<description value="home city"/>
<description value="city"/>
<textbox size="40" id="adr_two_locality"/>
</row>
<row>
<description/>
<description value="home zip code"/>
<description value="zip code"/>
<textbox size="40" id="adr_two_postalcode"/>
</row>
<row>
<description/>
<description value="home state"/>
<description value="state"/>
<textbox size="40" id="adr_two_locality"/>
</row>
<row>
<description/>
<description value="home country"/>
<description value="country"/>
<textbox size="40" id="adr_two_countryname"/>
</row>
<row valign="baseline" height="100%">
<row height="30">
<description/>
<description options=",,,bday" value="Birthday"/>
<date 1="label" id="bday"/>
</row>
<row>
<description/>
<description options=",,,tz" value="Time zone"/>
<menulist>
<menupopup id="tz" no_lang="1"/>
</menulist>
</row>
<row>
<description/>
<description value="Public key"/>
<textbox multiline="true" rows="2" cols="45" id="pubkey"/>
</row>
</rows>
</grid>
</template>
<template id="addressbook.edit.details" template="" lang="" group="0" version="">
<grid height="320">
<columns>
<column/>
<column/>
<column/>
</columns>
<rows>
<row valign="top">
<description/>
<description value="notes"/>
<textbox multiline="true" rows="4" cols="80" id="note"/>
</row>
<row valign="top">
<description/>
<description value=" label"/>
<textbox multiline="true" rows="4" cols="80" id="label"/>
</row>
<row valign="top">
<description/>
<description value="public key"/>
<textbox multiline="true" rows="4" cols="80" id="pubkey"/>
</row>
<row height="100%">
<description/>
<description/>
<description/>
</row>
</rows>
</grid>
</template>
<template id="addressbook.edit.custom" template="" lang="" group="0" version="">
<grid height="320">
<template id="addressbook.edit.details" template="" lang="" group="0" version="1.0.1.001">
<grid width="100%" height="250" overflow="auto">
<columns>
<column/>
</columns>
<rows>
<row>
<customfields/>
<description value="Notes"/>
</row>
<row height="100%">
<description/>
<row valign="top">
<textbox multiline="true" rows="4" cols="56" id="note"/>
</row>
<row class="th">
<description value="Custom fields"/>
</row>
<row valign="top" height="100%">
<customfields id="customfields"/>
</row>
</rows>
</grid>
</template>
<template id="addressbook.editphones" template="" lang="" group="0" version="">
<grid width="100%">
<template id="addressbook.edit.links" template="" lang="" group="0" version="1.0.1.001">
<grid width="100%" height="250" overflow="auto">
<columns>
<column/>
</columns>
<rows>
<row disabled="@view">
<description value="Create new links"/>
</row>
<row>
<link-to id="link_to"/>
</row>
<row class="th">
<description value="Existing links"/>
</row>
<row>
<link-list id="link"/>
</row>
</rows>
</grid>
</template>
<template id="addressbook.editphones" template="" lang="" group="0" version="1.0.1.001">
<grid class="editphones">
<columns>
<column/>
<column/>
@ -283,12 +235,7 @@
</columns>
<rows>
<row>
<hbox span="all" class="windowheader">
<hbox align="center">
<description value="Edit Phonenumbers - " align="right"/>
<description no_lang="1" id="fn"/>
</hbox>
</hbox>
<description value="Edit Phonenumbers - " align="center" span="all" class="windowheader" id="fn" no_lang="1"/>
<description/>
<description/>
<description/>
@ -307,13 +254,7 @@
</row>
<row>
<description/>
<description value="home phone"/>
<textbox size="30" id="tel_home2"/>
<radio options="tel_home" id="tel_prefer"/>
</row>
<row>
<description/>
<description value="business phone"/>
<description value="business"/>
<textbox size="30" id="tel_work2"/>
<radio options="tel_work" id="tel_prefer"/>
</row>
@ -323,6 +264,12 @@
<textbox size="30" id="tel_cell2"/>
<radio options="tel_cell" id="tel_prefer"/>
</row>
<row>
<description/>
<description value="Private"/>
<textbox size="30" id="tel_home2"/>
<radio options="tel_home" id="tel_prefer"/>
</row>
<row>
<description/>
<description value="fax"/>
@ -385,15 +332,7 @@
</row>
<row>
<description/>
<description/>
<description/>
<description/>
</row>
<row>
<description/>
<hbox span="3">
<button label="Ok" onclick="hidephones(this.form); return false;"/>
</hbox>
<button label="Ok" onclick="hidephones(this.form); return false;" span="all" align="center"/>
</row>
</rows>
</grid>
@ -417,64 +356,133 @@ border-bottom: #9c9c9c 1px solid;
}
</styles>
</template>
<template id="addressbook.edit" template="" lang="" group="0" version="">
<template id="addressbook.edit" template="" lang="" group="0" version="1.0.1.001">
<grid>
<columns>
<column width="750"/>
<column width="450"/>
<column/>
</columns>
<rows>
<row>
<row disabled="!@msg">
<description span="all" class="redItalic" id="msg" no_lang="1"/>
<description/>
</row>
<row>
<textbox id="fn" readonly="true" span="all"/>
<grid>
<columns>
<column disabled="!@org_name"/>
<column disabled="!@org_name"/>
<column/>
</columns>
<rows>
<row>
<textbox id="org_name" readonly="true"/>
<description value=":"/>
<textbox id="fn" readonly="true" span="all"/>
</row>
</rows>
</grid>
</row>
<row valign="top" height="350">
<tabbox span="all">
<row valign="top">
<tabbox>
<tabs>
<tab label="personal" statustext=""/>
<tab label="organisation" statustext=""/>
<tab label="home" statustext=""/>
<tab label="details" statustext=""/>
<tab label="custom" statustext=""/>
<tab label="Personal" statustext=""/>
<tab label="Company" statustext=""/>
<tab label="Private" statustext=""/>
<tab label="Details" statustext=""/>
<tab label="Links" statustext=""/>
</tabs>
<tabpanels>
<template id="addressbook.edit.personal"/>
<template id="addressbook.edit.organisation"/>
<template id="addressbook.edit.home"/>
<template id="addressbook.edit.details"/>
<template id="addressbook.edit.custom"/>
<template id="addressbook.edit.links"/>
</tabpanels>
</tabbox>
<vbox>
<description value="."/>
<groupbox>
<caption label="Phone Numbers"/>
<grid>
<columns>
<column width="20"/>
<column width="120"/>
<column/>
</columns>
<rows>
<row height="30">
<image src="kaddressbook"/>
<description value="business" options=",,,tel_work"/>
<textbox id="tel_work" size="30" tabindex="10"/>
</row>
<row>
<description/>
<description value="mobile phone" options=",,,tel_cell"/>
<textbox id="tel_cell" size="30" tabindex="11"/>
</row>
<row height="30">
<description/>
<description value="Private" options=",,,tel_home"/>
<textbox id="tel_home" size="30" tabindex="12"/>
</row>
<row>
<description/>
<description/>
<button label="More ..." onclick="showphones(this.form); return false;" tabindex="13" accesskey="m"/>
</row>
</rows>
</grid>
</groupbox>
<groupbox>
<caption label="Email &amp; Internet"/>
<grid>
<columns>
<column width="20"/>
<column width="120"/>
<column/>
</columns>
<rows>
<row>
<image src="package_network"/>
<description value="url" options=",,,url"/>
<textbox id="url" size="30" tabindex="15"/>
</row>
<row>
<image src="email_icon"/>
<description value="business email" options=",,,email"/>
<textbox id="email" size="30" tabindex="16"/>
</row>
<row>
<description/>
<description value="home email" options=",,,email_home"/>
<textbox id="email_home" size="30" tabindex="17"/>
</row>
</rows>
</grid>
</groupbox>
</vbox>
</row>
<row disabled="!@id">
<hbox>
<hbox>
<description value="owner"/>
<menulist>
<menupopup type="select-account" id="owner" readonly="true"/>
</menulist>
</hbox>
<hbox align="right">
<description value="last modified"/>
<date-time id="last_mod" readonly="true"/>
</hbox>
<menulist>
<menupopup type="select-account" id="owner" readonly="true" label="Owner"/>
</menulist>
<hbox align="right">
<description value="Last modified"/>
<date-time id="last_mod" readonly="true"/>
</hbox>
</row>
<row disabled="@hidebuttons">
<hbox>
<hbox>
<button label="Edit" id="button[edit]" tabindex="15"/>
<button label="Copy" id="button[copy]"/>
<button label="Save" id="button[save]" tabindex="16" accesskey="s"/>
<button label="Apply" id="button[apply]" tabindex="17"/>
<button label="Cancel" id="button[cancel]" onclick="self.close(); return false;" tabindex="18"/>
</hbox>
<button label="Delete" id="button[delete]" onclick="return confirm('Are you shure you want to delete this contact?');" align="right" tabindex="20"/>
<button label="Edit" id="button[edit]" onclick="window.open(egw::link('/index.php','menuaction=addressbook.uicontacts.edit&amp;contact_id=$cont[id]'),'_blank','dependent=yes,width=850,height=440,scrollbars=yes,status=yes'); return false;"/>
<button label="Copy" id="button[copy]" onclick="window.open(egw::link('/index.php','menuaction=addressbook.uicontacts.edit&amp;contact_id=$cont[id]&amp;makecp=1'),'_blank','dependent=yes,width=850,height=440,scrollbars=yes,status=yes'); return false;"/>
<button label="vCard" id="button[vcard]" statustext="download this contact as vCard file"/>
<button label="Save" id="button[save]" tabindex="20" accesskey="s"/>
<button label="Apply" id="button[apply]" tabindex="21"/>
<button label="Cancel" id="button[cancel]" onclick="if($cont[view]0) return true; self.close(); return false;" tabindex="22"/>
<template id="addressbook.editphones"/>
</hbox>
</row>
<row>
<template id="addressbook.editphones"/>
<button label="Delete" id="button[delete]" onclick="return confirm('Are you shure you want to delete this contact?');" align="right" tabindex="25"/>
</row>
</rows>
</grid>