Hier kann eine Notiz zum Merk-Eintrag hinzugefügt werden (optional)
## Abfrage Berechtigung (-1 = user -2 = trial -3 = Member -4 = Leader -5 = Admin) if ( $_SESSION['authright'] <= -1 ) { $row['downlink'] = '<a href="?m=downloads&um=down&fid='.$row['id'].'">Download</a>'; } else { $row['downlink'] = 'Bitte erst einloggen'; #Ersatztext kann beliebig geändert werden }
$tpl = new tpl ('downloads_show' ); $row['surl'] = ( empty($row['surl']) ? '' : ' <a href="'.$row['surl'].'" target="_blank">Demo/Screenshot</a>' );
$tpl = new tpl ('downloads_show' ); ## Abfrage Berechtigung (-1 = user -2 = trial -3 = Member -4 = Leader -5 = Admin) if ( $_SESSION['authright'] <= -1 ) { $row['downlink'] = '<a href="?m=downloads&um=down&fid='.$row['id'].'">Download</a>'; } else { $row['downlink'] = 'Bitte erst einloggen'; #Ersatztext kann beliebig geändert werden } $row['surl'] = ( empty($row['surl']) ? '' : ' <a href="'.$row['surl'].'" target="_blank">Demo/Screenshot</a>' );
<td class="Cnorm"><a href="?m=downloads&um=down&fid={id}">Download</a>{surl}</td>
<td class="Cnorm">{downlink} {surl}</td>