task #827 : ajout nom tiers + quick_code

This commit is contained in:
Dany De Bontridder 2013-05-10 21:45:03 +00:00
parent fff3179347
commit f504673abf
7 changed files with 21 additions and 4 deletions

View file

@ -26,6 +26,7 @@
require_once('class_exercice.php');
global $g_user;
echo '<div class="content" style="width:80%;margin-left:10%">';
echo $f->get_gestion_title();
$exercice=new Exercice($cn);
$old='';
$fiche=new Fiche($cn,$_GET['f_id']);

View file

@ -109,9 +109,11 @@ if ( $ss_action=='bal')
if ( $ss_action == 'cn')
{
echo '<div class="content">';
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("");

View file

@ -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 '<div class="content">';
echo $fiche->get_gestion_title();
require_once('action.common.inc.php');
echo '</div>';

View file

@ -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');

View file

@ -1899,5 +1899,12 @@ class Fiche
print_r($empty);
}
}
function get_gestion_title()
{
$r = "<h2>" . h($this->getName()) . " " . h($this->getAttribut(ATTR_DEF_FIRST_NAME)) . '[' . $this->get_quick_code() . ']</h2>';
return $r;
}
}
?>

View file

@ -35,6 +35,7 @@ $g_failed="<span style=\"font-size:18px;color:red\">&#x2716;</span>";
$g_succeed="<span style=\"font-size:18px;color:green\">&#x2713;</span>";
/*set to none for production */
/* uncomment for production */
define ('SVNINFO',5900);
$version_phpcompta=SVNINFO;
define ("DEBUG",false);
/* define ('SVNINFO',5015);

View file

@ -2,6 +2,8 @@
require_once('class_lettering.php');
global $g_user;
echo '<div class="content">';
echo $f->get_gestion_title();
echo '<div id="search">';
echo '<FORM METHOD="GET">';
echo dossier::hidden();