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
a977fdcd
Commit
a977fdcd
authored
Feb 29, 2016
by
Nico Schallehn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
1f075852
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
index.php
webapp/index.php
+10
-2
No files found.
webapp/index.php
View file @
a977fdcd
...
@@ -22,6 +22,10 @@ function TableRowRights($Api, $Data = null){
...
@@ -22,6 +22,10 @@ function TableRowRights($Api, $Data = null){
foreach
(
$Api
->
SpaltenFilme
as
$value
)
{
foreach
(
$Api
->
SpaltenFilme
as
$value
)
{
$ret
.=
'<td>'
.
(
in_array
(
$value
,
$Data
[
"SpaltenFil"
])
?
"ja"
:
"Nein"
)
.
'</td>'
;
$ret
.=
'<td>'
.
(
in_array
(
$value
,
$Data
[
"SpaltenFil"
])
?
"ja"
:
"Nein"
)
.
'</td>'
;
}
}
$Api
->
SpaltenEpisoden
;
foreach
(
$Api
->
SpaltenEpisoden
as
$value
)
{
$ret
.=
'<td>'
.
(
in_array
(
$value
,
$Data
[
"SpaltenFil"
])
?
"ja"
:
"Nein"
)
.
'</td>'
;
}
$ret
.=
'</tr>'
;
$ret
.=
'</tr>'
;
return
$ret
;
return
$ret
;
...
@@ -112,8 +116,8 @@ if($_GET["action"] == "filme"){
...
@@ -112,8 +116,8 @@ if($_GET["action"] == "filme"){
}
else
if
(
$_GET
[
"action"
]
==
"rechte"
){
}
else
if
(
$_GET
[
"action"
]
==
"rechte"
){
$titel
=
"Rechteverwaltung"
;
$titel
=
"Rechteverwaltung"
;
$content
=
'<div class="content"><h1>Rechteverwaltung</h1>'
;
$content
=
'<div class="content"><h1>Rechteverwaltung</h1>'
;
$JavaScript
=
'<link rel="stylesheet" href="css/responsive-tables.css">
/*
$JavaScript = '<link rel="stylesheet" href="css/responsive-tables.css">
<script src="js/responsive-tables.js"></script>'
;
<script src="js/responsive-tables.js"></script>';
*/
if
(
!
file_exists
(
API_Rights
)){
if
(
!
file_exists
(
API_Rights
)){
// defaultdatei anlegen...
// defaultdatei anlegen...
$content
.=
"Erzeuge Default Rechtedatei <br>"
.
PHP_EOL
;
$content
.=
"Erzeuge Default Rechtedatei <br>"
.
PHP_EOL
;
...
@@ -139,10 +143,14 @@ if($_GET["action"] == "filme"){
...
@@ -139,10 +143,14 @@ if($_GET["action"] == "filme"){
foreach
(
$API
->
SpaltenFilme
as
$value
)
{
foreach
(
$API
->
SpaltenFilme
as
$value
)
{
$content
.=
'<th>'
.
$value
.
'</th>'
;
$content
.=
'<th>'
.
$value
.
'</th>'
;
}
}
foreach
(
$API
->
SpaltenEpisoden
as
$value
)
{
$content
.=
'<th>'
.
$value
.
'</th>'
;
}
$content
.=
'</tr>'
.
PHP_EOL
;
$content
.=
'</tr>'
.
PHP_EOL
;
foreach
(
$Data
as
$value
)
{
foreach
(
$Data
as
$value
)
{
$content
.=
TableRowRights
(
$API
,
$value
);
$content
.=
TableRowRights
(
$API
,
$value
);
}
}
$content
.=
TableRowRights
(
$API
);
$content
.=
'</table>'
.
PHP_EOL
;
$content
.=
'</table>'
.
PHP_EOL
;
}
}
...
...
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