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
e759e7a7
Commit
e759e7a7
authored
Feb 29, 2016
by
Nico Schallehn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
05bff225
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
5 deletions
+21
-5
index.php
webapp/index.php
+21
-5
No files found.
webapp/index.php
View file @
e759e7a7
...
...
@@ -16,7 +16,7 @@ function jsonCacheDecoder($url){
}
function
TableRowRights
(
$Api
,
$Data
=
null
){
$ret
=
'<tr>'
.
'<td>
'
.
$Data
[
"from"
]
.
'</td> <td> '
.
$Data
[
"to"
]
.
'
</td>'
;
'<td>
<input type="text" value="'
.
$Data
[
"from"
]
.
'" name="from"></td> <td><input type="text" value="'
.
$Data
[
"to"
]
.
'" name="to">
</td>'
;
$Api
->
SpaltenFilme
;
foreach
(
$Api
->
SpaltenFilme
as
$value
)
{
...
...
@@ -127,8 +127,24 @@ if($_GET["action"] == "filme"){
}
else
if
(
$_GET
[
"action"
]
==
"rechte"
){
$titel
=
"Rechteverwaltung"
;
$content
=
'<div class="content"><h1>Rechteverwaltung</h1>'
;
/*$JavaScript = '<link rel="stylesheet" href="css/responsive-tables.css">
<script src="js/responsive-tables.js"></script>';*/
$JavaScript
=
'<style>th.rotate {
/* Something you can count on */
height: 140px;
white-space: nowrap;
}
th.rotate > div {
transform:
/* Magic Numbers */
translate(25px, 51px)
/* 45 is really 360 - 45 */
rotate(315deg);
width: 30px;
}
th.rotate > div > span {
border-bottom: 1px solid #ccc;
padding: 5px 10px;
}</style>'
;
if
(
!
file_exists
(
API_Rights
)){
// defaultdatei anlegen...
$content
.=
"Erzeuge Default Rechtedatei <br>"
.
PHP_EOL
;
...
...
@@ -155,10 +171,10 @@ if($_GET["action"] == "filme"){
<th colspan="'
.
count
(
$API
->
SpaltenEpisoden
)
.
'"> SpaltenEpisoden</th>
<th colspan="3"> Sonstige</th></tr>'
;
foreach
(
$API
->
SpaltenFilme
as
$value
)
{
$content
.=
'<th
>'
.
$value
.
'
</th>'
;
$content
.=
'<th
class="rotate"><div><span>'
.
$value
.
'</span></div>
</th>'
;
}
foreach
(
$API
->
SpaltenEpisoden
as
$value
)
{
$content
.=
'<th
>'
.
$value
.
'
</th>'
;
$content
.=
'<th
class="rotate"><div><span>'
.
$value
.
'</span></div>
</th>'
;
}
$content
.=
'<th>Webapp</th>'
;
$content
.=
'<th>Update</th>'
;
...
...
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