Let you call detail of a card from impression->category -> historic
This commit is contained in:
parent
1a6f99c13e
commit
6d51e41b59
2 changed files with 5 additions and 4 deletions
|
|
@ -458,12 +458,12 @@ class HtmlInput
|
|||
/**
|
||||
*show the detail of a card
|
||||
*/
|
||||
static function card_detail($p_qcode,$pname='')
|
||||
static function card_detail($p_qcode,$pname='',$p_style="")
|
||||
{
|
||||
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);
|
||||
$r.=sprintf('<a href="javascript:void(0)" onclick="fill_ipopcard({qcode:\'%s\'})">%s[%s]</a %s>',
|
||||
$p_qcode,$pname,$p_qcode,$p_style);
|
||||
return $r;
|
||||
}
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -217,8 +217,9 @@ foreach($array as $card)
|
|||
}
|
||||
/* skip if nothing to display */
|
||||
if (count($letter->content) == 0 ) continue;
|
||||
$detail_card=HtmlInput::card_detail($row->strAttribut(ATTR_DEF_QUICKCODE),$row->strAttribut(ATTR_DEF_NAME));
|
||||
|
||||
echo '<h2 style="font-size:14px;text-align:left;margin-left:10;padding-left:50;border:solid 1px blue;width:25%">'.$row->strAttribut(ATTR_DEF_NAME).'</h2>';
|
||||
echo '<h2 style="font-size:14px;text-align:left;margin-left:10;padding-left:50;border:solid 1px blue;width:25%;text-decoration:underline">'.$detail_card.'</h2>';
|
||||
|
||||
echo '<table style="width:80%;padding-left:10%;padding-right:10%">';
|
||||
echo '<tr>';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue