From 59ef6f72700b554be3fe3982dc852e65a4701cba Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Sat, 18 May 2013 20:18:27 +0000 Subject: [PATCH] =?UTF-8?q?task=20#0000844:=20Ajout=20d'une=20description?= =?UTF-8?q?=20pour=20les=20cat=C3=A9gories=20de=20fiches?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/fiche.inc.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/include/fiche.inc.php b/include/fiche.inc.php index c070ce7ee..c73bcd04b 100644 --- a/include/fiche.inc.php +++ b/include/fiche.inc.php @@ -90,7 +90,7 @@ $search_card_js=sprintf('onclick="boxsearch_card(\'%d\')"',dossier::id()); :input()?> -'; $str = "if (g('histo').value==3 || g('histo').value== -1 ) { g('trstart').style.display='none';g('trend').style.display='none';g('allcard').style.display='none';} @@ -105,6 +105,7 @@ if (!isset($_GET['cat_display'])) exit(); $fd_id = $_GET['cat']; + $array = Fiche::get_fiche_def($cn, $_GET['cat'], 'name_asc'); $h_add_card_b = new IButton('add_card'); @@ -123,6 +124,12 @@ if ($array == null) } $allcard = (isset($_GET['allcard'])) ? 1 : 0; +if ( $allcard == 0 ){ + $fiche_def=new Fiche_Def($cn,$_GET['cat']); + $fiche_def->Get(); + echo h1($fiche_def->label,""); + echo h2($fiche_def->fd_description,""); +} /* * ********************************************************************************************************************************* * Liste * @@ -203,6 +210,7 @@ if ($_GET['histo'] == -1) "); $nb_line = Database::num_row($res); if ($write != 1 || $allcard != 0 ) $str_add_card=""; + require_once 'template/fiche_list.php'; echo '
'.$bar; exit();