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
f9c36c7d
Commit
f9c36c7d
authored
Feb 29, 2016
by
Nico Schallehn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
d66d8b2f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
index.php
webapp/index.php
+24
-0
No files found.
webapp/index.php
View file @
f9c36c7d
...
...
@@ -14,6 +14,19 @@ function jsonCacheDecoder($url){
}
return
json_decode
(
file_get_contents
(
$CacheFolderName
.
$filename
),
true
);
}
function
TableRowRights
(
$Api
,
$Data
=
null
){
$ret
=
'<tr>'
.
'<td>'
.
$Data
[
"from"
]
.
'</td>'
.
'<td>'
.
$Data
[
"to"
]
.
'</td>'
;
$Api
->
SpaltenFilme
;
foreach
(
$Api
->
SpaltenFilme
as
$value
)
{
$ret
.=
'<td>'
.
(
in_array
(
$value
,
$Data
[
"SpaltenFil"
])
?
$value
.
"ja"
:
$value
.
"Nein"
)
.
'</td>'
;
}
$ret
.=
'</tr>'
;
return
$ret
;
}
if
(
isset
(
$_GET
[
"logoff"
])){
//echo "abmelden!!";
...
...
@@ -121,6 +134,17 @@ if($_GET["action"] == "filme"){
ob_start
();
var_dump
(
$Data
);
$content
.=
ob_get_clean
();
$content
.=
'<table border="1">'
.
PHP_EOL
;
$content
.=
'<tr><th>Von</th><th>bis</th>'
;
foreach
(
$Api
->
SpaltenFilme
as
$value
)
{
$content
.=
'<th>'
.
$value
.
'</th>'
;
}
$content
.=
'</tr>'
.
PHP_EOL
;
foreach
(
$Data
as
$value
)
{
$content
.=
TableRowRights
(
$API
,
$value
);
}
$content
.=
'</table>'
.
PHP_EOL
;
}
$content
.=
"</div>"
;
...
...
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