#201 add the details
This commit is contained in:
parent
b2978696ae
commit
86da140ad1
2 changed files with 17 additions and 2 deletions
|
|
@ -93,10 +93,14 @@ if ( isset($_GET['f_id']))
|
|||
|
||||
ob_start();
|
||||
require_once('template/history_top.php');
|
||||
if ( $fiche->HtmlTable($array)==-1){
|
||||
echo h2info( $fiche->getName().'['.$fiche->strAttribut(ATTR_DEF_QUICKCODE).']');
|
||||
$detail_card=HtmlInput::card_detail($fiche->strAttribut(ATTR_DEF_QUICKCODE),$fiche->getName());
|
||||
echo h2info( $fiche->getName().'['.$fiche->strAttribut(ATTR_DEF_QUICKCODE).']');
|
||||
echo $detail_card;
|
||||
|
||||
if ( $fiche->HtmlTable($array,0,0)==-1){
|
||||
echo h2("Aucun opération pour l'exercice courant",'class="error"');
|
||||
}
|
||||
|
||||
echo $old;
|
||||
|
||||
$html=ob_get_contents();
|
||||
|
|
|
|||
|
|
@ -414,5 +414,16 @@ class HtmlInput
|
|||
$r.=HtmlInput::button('print','Imprimer','onclick="window.print();"');
|
||||
return $r;
|
||||
}
|
||||
/**
|
||||
*show the detail of a card
|
||||
*/
|
||||
static function card_detail($p_qcode,$pname='')
|
||||
{
|
||||
if ($pname=='')$pname=$p_qcode;
|
||||
$r="";
|
||||
$r.=sprintf('<a href="javascript:void(0)" onclick="fill_ipopcard({qcode:\'%s\'})">%s[%s]</a>',
|
||||
$p_qcode,$pname,$p_qcode);
|
||||
return $r;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue