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
e828ade7
Commit
e828ade7
authored
Feb 29, 2016
by
Nico Schallehn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
06a09d8b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
35 deletions
+10
-35
index.php
webapp/index.php
+10
-35
No files found.
webapp/index.php
View file @
e828ade7
...
...
@@ -16,7 +16,7 @@ function jsonCacheDecoder($url){
}
function
TableRowRights
(
$Api
,
$Key
=
null
,
$Data
=
null
){
$ret
=
'<tr>'
.
'<td><input type="text" value="'
.
$Data
[
"from"
]
.
'" name="from"></td> <td><input type="text" value="'
.
$Data
[
"to"
]
.
'" name="to"></td>'
;
'<
form method="POST"><
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
)
{
...
...
@@ -39,7 +39,7 @@ function TableRowRights($Api, $Key = null, $Data = null){
$ret
.=
'<td><input type="checkbox" name="Kenntnisse_in" '
.
(
$Data
[
"DebugO"
]
==
true
?
"checked"
:
""
)
.
'></td>'
;
$ret
.=
'<td><input type="button" value="'
.
((
$Data
==
null
)
?
"Anlegen"
:
"Speichern"
)
.
'">
<input type=text" name="ID" value="'
.
$Key
.
'"></td>'
;
$ret
.=
'</tr>'
;
$ret
.=
'</tr>
</form>
'
;
return
$ret
;
}
...
...
@@ -126,42 +126,10 @@ if($_GET["action"] == "filme"){
<script type="text/javascript" src="js/jquery.flexisel.js"></script></div>'
;
}
else
if
(
$_GET
[
"action"
]
==
"rechte"
){
$titel
=
"Rechteverwaltung"
;
$content
=
'<div class="content"><h1>Rechteverwaltung</h1>'
;
$JavaScript
=
' <style>
.table-header-rotated {
border-collapse: collapse;
}
.csstransforms .table-header-rotated td {
width: 30px;
}
.no-csstransforms .table-header-rotated th {
padding: 5px 10px;
}
.table-header-rotated td {
text-align: center;
padding: 10px 5px;
border: 1px solid #ccc;
}
.csstransforms .table-header-rotated th.rotate {
height: 140px;
white-space: nowrap;
}
.csstransforms .table-header-rotated th.rotate > div {
-webkit-transform: translate(25px, 51px) rotate(315deg);
transform: translate(25px, 51px) rotate(315deg);
width: 30px;
}
.csstransforms .table-header-rotated th.rotate > div > span {
border-bottom: 1px solid #ccc;
padding: 5px 10px;
}
.table-header-rotated th.row-header {
padding: 0 10px;
border-bottom: 1px solid #ccc;
}
</style>'
;
$JavaScript
=
'<style>
th{text-align: center;
vertical-align: bottom;}
...
...
@@ -204,6 +172,13 @@ if($_GET["action"] == "filme"){
file_put_contents
(
API_Rights
,
json_encode
(
$rights
));
}
if
(
file_exists
(
API_Rights
)){
if
(
isset
(
$_POST
)){
ob_start
();
var_dump
(
$_POST
);
$content
.=
ob_get_clean
();
}
$Data
=
json_decode
(
file_get_contents
(
API_Rights
),
true
);
ob_start
();
var_dump
(
$Data
);
...
...
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