Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
MediaDBViewerAPI
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
BA_SI-Projekt
MediaDBViewerAPI
Commits
af955ffe
Commit
af955ffe
authored
Feb 13, 2016
by
Nico Schallehn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
977f0371
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
index.php
webapp/index.php
+11
-7
No files found.
webapp/index.php
View file @
af955ffe
...
...
@@ -48,11 +48,19 @@ if($_GET["action"] == "bla"){
$titel
=
"Startseite"
;
//Filme für Coverflow holen...
$MovieArray
=
$API
->
API_GetDataList
(
array
(
"Tabelle"
=>
"Filme"
,
"Spalten"
=>
"imdbID,3d,name"
,
"3d"
=>
"0"
,
"Gesehenzaehler"
=>
"0"
,
"Sortierung"
=>
"rating DESC"
,
"Anzahl"
=>
"5"
));
$movies
=
""
;
foreach
(
$MovieArray
[
"Data"
]
as
$key
=>
$value
)
{
echo
"http://webservice.fanart.tv/v3/movies/tt"
.
$value
[
"imdbID"
]
.
"?api_key="
.
Fanart_Key
.
PHP_EOL
;
$fanart
=
json_decode
(
file_get_contents
(
"http://webservice.fanart.tv/v3/movies/tt"
.
$value
[
"imdbID"
]
.
"?api_key="
.
Fanart_Key
),
true
);
var_dump
(
$fanart
[
"moviethumb"
]);
//var_dump();
if
(
isset
(
$fanart
[
"moviethumb"
][
0
][
url
])){
$movies
.=
'<li><img src="$fanart["moviethumb"][0][url]" class="img-responsive"
alt="" />
<div class="button">
<a href="index.php?action=ShowDetails&imdbID='
.
$value
[
"imdbID"
]
.
'" class="hvr-shutter-out-horizontal">Details anzeigen</a>
</div>
</li>'
;
}
}
...
...
@@ -64,11 +72,7 @@ if($_GET["action"] == "bla"){
<div class="slider">
<div class="callbacks_container">
<ul class="rslides" id="slider">
<li><img src="images/banner17Again.jpg" class="img-responsive"
alt="" />
<div class="button">
<a href="#" class="hvr-shutter-out-horizontal">Details anzeigen</a>
</div></li>
<li><img src="images/banner2012.jpg" class="img-responsive" alt="" />
<div class="button">
<a href="#" class="hvr-shutter-out-horizontal">Details anzeigen</a>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment