if (isset($params['action']) && $params['action'] == 'view') {
$target = ' target="_blank"';
}
- return '<a href="' . htmlentities($link) . $target . '"' . $popup . $class . '>' . $text . '</a>';
+ return '<a href="' . htmlentities($link) .'"' . $target . $popup . $class . '>' . $text . '</a>';
}
/** Format tree images links
$res .= '<tr><td colspan="2">';
$i = 0;
foreach ($this->pj as $file) {
- $res .= $file['filename'].' ('.$file['MIME'].') : ';
- $res .= makeHREF(Array('group' => $banana->state['group'],
- 'artid' => $this->id,
- 'pj' => $i),
- _b_('télécharger'));
- $res .= ' . ';
- $res .= makeHREF(Array('group' => $banana->state['group'],
- 'artid' => $this->id,
- 'pj' => $i,
- 'action'=> 'view'),
- _b_('aperçu'));
+ $res .= makeImgLink(Array('group' => $banana->state['group'],
+ 'artid' => $this->id,
+ 'pj' => $i),
+ 'save.gif',
+ _b_('Télécharger')) . ' ';
+ $res .= makeImgLink(Array('group' => $banana->state['group'],
+ 'artid' => $this->id,
+ 'pj' => $i,
+ 'action'=> 'view'),
+ 'preview.gif',
+ _b_('Aperçu'));
+ $res .= ' ' . $file['filename'].' ('.$file['MIME'].')';
$res .= '<br/>';
$i++;
}
a:link, a:visited { color: #f60; background: transparent; }
a:active, a:hover { color: #369; background: transparent; }
+a img { border: 0px; }
hr { border: none; border-top: 1px dotted #a2c2e1; }