diff --git a/htdocs/contact/canvas/default/actions_contactcard_default.class.php b/htdocs/contact/canvas/default/actions_contactcard_default.class.php index 22aca6f0f8e..fe04de69c82 100644 --- a/htdocs/contact/canvas/default/actions_contactcard_default.class.php +++ b/htdocs/contact/canvas/default/actions_contactcard_default.class.php @@ -21,7 +21,7 @@ * \file htdocs/contact/canvas/default/actions_contactcard_default.class.php * \ingroup thirdparty * \brief Fichier de la classe Thirdparty contact card controller (default canvas) - * \version $Id$ + * \version $Id: actions_contactcard_default.class.php,v 1.9 2011/07/08 13:07:45 eldy Exp $ */ include_once(DOL_DOCUMENT_ROOT.'/contact/canvas/actions_contactcard_common.class.php'); @@ -70,17 +70,6 @@ class ActionsContactCardDefault extends ActionsContactCardCommon return parent::getTitle($action); } - /** - * Return the head of card (tabs) - */ - function showHead($action) - { - $head = contact_prepare_head($this->object); - $title = $this->getTitle($action); - - return dol_fiche_head($head, 'card', $title, 0, 'contact'); - } - /** * Assigne les valeurs POST dans l'objet */ @@ -107,7 +96,11 @@ class ActionsContactCardDefault extends ActionsContactCardCommon if ($action == 'view') { // Card header - $this->tpl['showhead']=$this->showHead($action); + $head = contact_prepare_head($this->object); + $title = $this->getTitle($action); + + $this->tpl['showhead']=dol_get_fiche_head($head, 'card', $title, 0, 'contact'); + $this->tpl['showend']=dol_get_fiche_end(); // Confirm delete contact if ($user->rights->societe->contact->supprimer) @@ -121,9 +114,9 @@ class ActionsContactCardDefault extends ActionsContactCardCommon $objsoc = new Societe($db); $objsoc->fetch($this->object->fk_soc); - $this->tpl['actionstodo']=show_actions_todo($conf,$langs,$db,$objsoc,$this->control->object,1); + $this->tpl['actionstodo']=show_actions_todo($conf,$langs,$db,$objsoc,$this->object,1); - $this->tpl['actionsdone']=show_actions_done($conf,$langs,$db,$objsoc,$this->control->object,1); + $this->tpl['actionsdone']=show_actions_done($conf,$langs,$db,$objsoc,$this->object,1); } } diff --git a/htdocs/contact/canvas/default/tpl/contactcard_view.tpl.php b/htdocs/contact/canvas/default/tpl/contactcard_view.tpl.php index 4b0336fb52d..552de474fdc 100644 --- a/htdocs/contact/canvas/default/tpl/contactcard_view.tpl.php +++ b/htdocs/contact/canvas/default/tpl/contactcard_view.tpl.php @@ -15,7 +15,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * - * $Id$ + * $Id: contactcard_view.tpl.php,v 1.9 2011/07/08 13:07:45 eldy Exp $ */ $contact = $GLOBALS['objcanvas']->control->object; @@ -23,6 +23,7 @@ $contact = $GLOBALS['objcanvas']->control->object; ?> +control->tpl['showhead']; ?> control->tpl['error'],$this->control->tpl['errors']); @@ -134,7 +135,7 @@ dol_htmloutput_errors($this->control->tpl['error'],$this->control->tpl['errors'] - +control->tpl['showend']; ?> societe_id) { ?>