diff --git a/include/balance_card.inc.php b/include/balance_card.inc.php index 453bb1df3..c81bd005d 100644 --- a/include/balance_card.inc.php +++ b/include/balance_card.inc.php @@ -26,6 +26,7 @@ require_once('class_exercice.php'); global $g_user; echo '
'; +echo $f->get_gestion_title(); $exercice=new Exercice($cn); $old=''; $fiche=new Fiche($cn,$_GET['f_id']); diff --git a/include/category_card.inc.php b/include/category_card.inc.php index 4104cca78..076d56ad8 100644 --- a/include/category_card.inc.php +++ b/include/category_card.inc.php @@ -109,9 +109,11 @@ if ( $ss_action=='bal') if ( $ss_action == 'cn') { echo '
'; - echo dossier::hidden(); - $f=new Fiche($cn,$_REQUEST['f_id']); - $contact=new Contact($cn); + + echo dossier::hidden(); + $f = new Fiche($cn, $_REQUEST['f_id']); + echo $f->get_gestion_title(); + $contact=new Contact($cn); $contact->company=$f->get_quick_code(); echo $contact->summary(""); diff --git a/include/category_followup.inc.php b/include/category_followup.inc.php index 1eec37ae0..3bf5dc28a 100644 --- a/include/category_followup.inc.php +++ b/include/category_followup.inc.php @@ -44,7 +44,9 @@ $retour=HtmlInput::button_anchor('Retour','?'.dossier::get().'&'.$base); $fiche=new Fiche($cn,$_REQUEST['f_id']); $_GET['qcode']=$fiche->get_quick_code(); -$_REQUEST['qcode']=$fiche->get_quick_code(); +$_REQUEST['qcode'] = $fiche->get_quick_code(); + echo '
'; +echo $fiche->get_gestion_title(); require_once('action.common.inc.php'); echo '
'; diff --git a/include/category_operation.inc.php b/include/category_operation.inc.php index 96358803b..8132f1109 100644 --- a/include/category_operation.inc.php +++ b/include/category_operation.inc.php @@ -36,5 +36,7 @@ $_GET['qcode']=$qcode; $_REQUEST['qcode']=$qcode; $var_array=compute_variable('ledger_type=ALL'); put_global($var_array); +echo $f->get_gestion_title(); + require_once ('history_operation.inc.php'); diff --git a/include/class_fiche.php b/include/class_fiche.php index 03a2c51fd..b565f890f 100644 --- a/include/class_fiche.php +++ b/include/class_fiche.php @@ -1899,5 +1899,12 @@ class Fiche print_r($empty); } } + + function get_gestion_title() + { + $r = "

" . h($this->getName()) . " " . h($this->getAttribut(ATTR_DEF_FIRST_NAME)) . '[' . $this->get_quick_code() . ']

'; + return $r; + } } + ?> diff --git a/include/constant.php b/include/constant.php index 604495f0c..0e05b6ca0 100644 --- a/include/constant.php +++ b/include/constant.php @@ -35,6 +35,7 @@ $g_failed=""; $g_succeed=""; /*set to none for production */ /* uncomment for production */ + define ('SVNINFO',5900); $version_phpcompta=SVNINFO; define ("DEBUG",false); /* define ('SVNINFO',5015); diff --git a/include/lettering.gestion.inc.php b/include/lettering.gestion.inc.php index 926b6c115..8e1e44d20 100644 --- a/include/lettering.gestion.inc.php +++ b/include/lettering.gestion.inc.php @@ -2,6 +2,8 @@ require_once('class_lettering.php'); global $g_user; echo '
'; +echo $f->get_gestion_title(); + echo '