PDF anzeigen
This commit is contained in:
@ -50,10 +50,21 @@ if($action == ''){
|
||||
$streamlizenz_vorh = "Nein";
|
||||
}
|
||||
|
||||
$result_link = $db->query("SELECT filename
|
||||
FROM jumi_noten_uploads
|
||||
WHERE jndid=$row[jndid]");
|
||||
$row_link = $result_link->fetch_array();
|
||||
if(file_exists($row_link['filename'])){
|
||||
$fileexists = 1;
|
||||
}else{
|
||||
$fileexists = 0;
|
||||
}
|
||||
|
||||
$result_rl = $db->query("SELECT $row[anz_lizenzen]-count(*) Rest
|
||||
FROM jumi_noten_zus_saenger_zuord
|
||||
WHERE zsid IN( SELECT zsid FROM jumi_noten_zusammenstellung_zuord WHERE jndid=$row[jndid])");
|
||||
$row_rl = $result_rl->fetch_array();
|
||||
|
||||
|
||||
$query1 = "SELECT bezeichnung
|
||||
FROM jumi_noten_zusammenstellung a, jumi_noten_zusammenstellung_zuord b
|
||||
@ -68,6 +79,8 @@ if($action == ''){
|
||||
}
|
||||
$songbook = substr($songbook,0,-2);
|
||||
$row['restlizenz'] = $row_rl['Rest'];
|
||||
$row['link'] = $row_link['filename'];
|
||||
$row['fileexists'] = $fileexists;
|
||||
$row['songbook'] = $songbook;
|
||||
$row['streamlizenz_vorh'] = $streamlizenz_vorh;
|
||||
$value[] = $row;
|
||||
|
Reference in New Issue
Block a user