Hallo zusammen,
ich lese mir seit neustem meine Plex-Mediatheken aus, und schreibe diese in eine HTML Box zur Anzeige in IPS-View auf dem Handy. Im Webfront (Browser / Handy) von IPS werden die Bilder normal dargestellt, im Windows Client von IPS-View ebenfalls. Leider nicht unter IOS, da bleiben diese schwarz.
HTML Box wird wie folgt gefüllt.
$type = $array[0]['type'];
$font_size_header = "16px";
$font_size_table = "14px";
$font_size_summary = "12px";
$s = '';
$s = $s . "<style type='text/css'>";
$s = $s . "table.test { width: 100%; border-collapse: true;}";
$s = $s . "CSS { border: 1px solid #444455; }</style>";
$s = $s . "<table class='CSS'>";
$s = $s . "<tr>";
$s = $s . "<td style='text-align:left;background: #121212;font-size:$font_size_header;' colspan='2'><B>Cover</td>";
if($type === "artist") {
$s = $s . "<td style='width: 20%;text-align:left;background: #121212;font-size:$font_size_header;' colspan='2'><B>Artist</td>";
} elseif($type === "show") {
$s = $s . "<td style='width: 20%;text-align:left;background: #121212;font-size:$font_size_header;' colspan='2'><B>Serie</td>";
} elseif($type === "movie") {
$s = $s . "<td style='width: 20%;text-align:left;background: #121212;font-size:$font_size_header;' colspan='2'><B>Film</td>";
}
$s = $s . "<td style='text-align:center;background: #121212;font-size:$font_size_header;' colspan='2'><B>Jahr</td>";
$s = $s . "<td style='background: #121212;font-size:$font_size_header;' colspan='2'><B>Beschreibung</td>";
$s = $s . "<td style='text-align:center;background: #121212;font-size:$font_size_header;' colspan='2'><B>Hinzugefügt</td>";
$s = $s . "</tr>";
$s = $s . "<tr>";
foreach($array as $key) {
$type = $key['type'];
if(!empty($key['thumb'])) {
if($type === "artist") {
$pic = "<img src=".$key['thumb'].".png"." width=\"150\" height=\"150\" >";
} else {
$pic = "<img src=".$key['thumb'].".png"." width=\"150\" height=\"200\" >";
}
} else {
$pic = "";
}
$title = $key['title'];
$summary = $key['summary'];
$addedAt = $key['addedAt'];
$year = $key['year'];
$s = $s . "<tr>";
$s = $s . "<td style='text-align:center;font-size:$font_size_table;' colspan='2'>$pic</td>";
$s = $s . "<td style='font-size:$font_size_table;' colspan='2'>$title</td>";
$s = $s . "<td style='text-align:left;font-size:$font_size_table;' colspan='2'>$year</td>";
$s = $s . "<td style='text-align:left;font-size:$font_size_summary;' colspan='2'>$summary</td>";
$s = $s . "<td style='text-align:left;font-size:$font_size_table;' colspan='2'>$addedAt</td>";
$s = $s . "</tr>";
$s = $s . "<tr>";
}
SetValue($VarIDHtml,$s);
Vielleicht hat eine ne Idee, woran das liegt!?
Vielen Dank