diff --git a/htdocs/societe/canvas/actions_card_common.class.php b/htdocs/societe/canvas/actions_card_common.class.php index 15bb0519539..89fa329b577 100644 --- a/htdocs/societe/canvas/actions_card_common.class.php +++ b/htdocs/societe/canvas/actions_card_common.class.php @@ -384,6 +384,7 @@ abstract class ActionsCardCommon } $this->tpl['error'] = get_htmloutput_errors($this->object->error,$this->object->errors); + if (is_array($GLOBALS['errors'])) $this->tpl['error'] = get_htmloutput_mesg('',$GLOBALS['errors'],'error'); if ($action == 'create') { diff --git a/htdocs/societe/canvas/company/actions_card_company.class.php b/htdocs/societe/canvas/company/actions_card_company.class.php index 0e01557eb30..b31ff85e95c 100644 --- a/htdocs/societe/canvas/company/actions_card_company.class.php +++ b/htdocs/societe/canvas/company/actions_card_company.class.php @@ -105,9 +105,9 @@ class ActionsCardCompany extends ActionsCardCommon parent::assign_values($action); - $this->tpl['title'] = $this->getTitle($action); + $this->tpl['title'] = load_fiche_titre($this->getTitle($action)); - $this->tpl['profid1'] = $this->object->idprof1; + $this->tpl['profid1'] = $this->object->idprof1; $this->tpl['profid2'] = $this->object->idprof2; $this->tpl['profid3'] = $this->object->idprof3; $this->tpl['profid4'] = $this->object->idprof4; diff --git a/htdocs/societe/canvas/company/tpl/card_create.tpl.php b/htdocs/societe/canvas/company/tpl/card_create.tpl.php index a306bd6d0f7..181e248f849 100644 --- a/htdocs/societe/canvas/company/tpl/card_create.tpl.php +++ b/htdocs/societe/canvas/company/tpl/card_create.tpl.php @@ -1,5 +1,6 @@ +/* Copyright (C) 2010 Regis Houssin + * Copyright (C) 2010-2012 Laurent Destailleur * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -19,9 +20,9 @@ -control->tpl['title']); ?> +control->tpl['title']; ?> -control->tpl['error'],$this->control->tpl['errors']); ?> +control->tpl['error']; ?> use_javascript_ajax) { ?> control->tpl['ajax_selecttype']; ?> diff --git a/htdocs/societe/canvas/company/tpl/card_edit.tpl.php b/htdocs/societe/canvas/company/tpl/card_edit.tpl.php index ebb1ff9b739..c0e865c6aef 100644 --- a/htdocs/societe/canvas/company/tpl/card_edit.tpl.php +++ b/htdocs/societe/canvas/company/tpl/card_edit.tpl.php @@ -1,5 +1,6 @@ +/* Copyright (C) 2010 Regis Houssin + * Copyright (C) 2010-2012 Laurent Destailleur * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -22,11 +23,9 @@ $contact = $GLOBALS['objcanvas']->control->object; -control->tpl['title']); +control->tpl['title']; ?> -dol_htmloutput_errors($this->control->tpl['error'],$this->control->tpl['errors']); -?> +control->tpl['error']; ?> control->tpl['ajax_selectcountry']; ?> control->tpl['js_checkVatPopup']) echo $this->control->tpl['js_checkVatPopup']; ?> diff --git a/htdocs/societe/canvas/individual/actions_card_individual.class.php b/htdocs/societe/canvas/individual/actions_card_individual.class.php index 0f32ae9317a..8b807e9960b 100644 --- a/htdocs/societe/canvas/individual/actions_card_individual.class.php +++ b/htdocs/societe/canvas/individual/actions_card_individual.class.php @@ -65,8 +65,8 @@ class ActionsCardIndividual extends ActionsCardCommon $out=''; if ($action == 'view') $out.= $langs->trans("Individual"); - if ($action == 'edit') $out.= $langs->trans("EditIndividual"); - if ($action == 'create') $out.= $langs->trans("NewIndividual"); + if ($action == 'edit') $out.= $langs->trans("EditCompany"); + if ($action == 'create') $out.= $langs->trans("NewCompany"); return $out; } @@ -105,7 +105,7 @@ class ActionsCardIndividual extends ActionsCardCommon parent::assign_values($action); - $this->tpl['title'] = $this->getTitle($action); + $this->tpl['title'] = load_fiche_titre($this->getTitle($action)); if ($action == 'create' || $action == 'edit') { diff --git a/htdocs/societe/canvas/individual/tpl/card_create.tpl.php b/htdocs/societe/canvas/individual/tpl/card_create.tpl.php index a35e0c4da25..6c7e029b8e3 100644 --- a/htdocs/societe/canvas/individual/tpl/card_create.tpl.php +++ b/htdocs/societe/canvas/individual/tpl/card_create.tpl.php @@ -1,5 +1,6 @@ +/* Copyright (C) 2010-2011 Regis Houssin + * Copyright (C) 2010-2012 Laurent Destailleur * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -19,11 +20,9 @@ -control->tpl['title']); +control->tpl['title']; ?> -dol_htmloutput_errors($this->control->tpl['error'],$this->control->tpl['errors']); -?> +control->tpl['error']; ?> use_javascript_ajax) { ?> control->tpl['ajax_selecttype']; ?> diff --git a/htdocs/societe/canvas/individual/tpl/card_edit.tpl.php b/htdocs/societe/canvas/individual/tpl/card_edit.tpl.php index 6e34b94b7fe..19d7f4b67d5 100644 --- a/htdocs/societe/canvas/individual/tpl/card_edit.tpl.php +++ b/htdocs/societe/canvas/individual/tpl/card_edit.tpl.php @@ -1,5 +1,6 @@ +/* Copyright (C) 2010 Regis Houssin + * Copyright (C) 2010-2012 Laurent Destailleur * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -19,11 +20,9 @@ -control->tpl['title']); +control->tpl['title']; ?> -dol_htmloutput_errors($this->control->tpl['error'],$this->control->tpl['errors']); -?> +control->tpl['error']; ?> control->tpl['ajax_selectcountry']; ?>