PDF anzeigen
This commit is contained in:
parent
7cca94f2db
commit
687e45b7b0
@ -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;
|
||||
|
@ -69,7 +69,7 @@
|
||||
<tbody>
|
||||
{section name=table_data loop=$table_data}
|
||||
<tr>
|
||||
<td>{$table_data[table_data].titel}</td>
|
||||
<td>{if $table_data[table_data].fileexists == 1}<a href="{$table_data[table_data].link}" target="_new">{$table_data[table_data].titel}</a>{else}{$table_data[table_data].titel}{/if}</td>
|
||||
<td class="d-none d-md-table-cell">{$table_data[table_data].verlag}</td>
|
||||
<td>{$table_data[table_data].songbook}</td>
|
||||
<td class="d-none d-md-table-cell">{$table_data[table_data].restlizenz}/{$table_data[table_data].anz_lizenzen}</td>
|
||||
|
Loading…
x
Reference in New Issue
Block a user