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
06a09d8b
Commit
06a09d8b
authored
Feb 29, 2016
by
Nico Schallehn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
f1df420f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
index.php
webapp/index.php
+8
-5
No files found.
webapp/index.php
View file @
06a09d8b
...
...
@@ -14,7 +14,7 @@ function jsonCacheDecoder($url){
}
return
json_decode
(
file_get_contents
(
$CacheFolderName
.
$filename
),
true
);
}
function
TableRowRights
(
$Api
,
$Data
=
null
){
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>'
;
...
...
@@ -37,7 +37,8 @@ function TableRowRights($Api, $Data = null){
$ret
.=
'<td><input type="checkbox" name="Kenntnisse_in" '
.
(
$Data
[
"webapp"
]
==
true
?
"checked"
:
""
)
.
'></td>'
;
$ret
.=
'<td><input type="checkbox" name="Kenntnisse_in" '
.
(
$Data
[
"Update"
]
==
true
?
"checked"
:
""
)
.
'></td>'
;
$ret
.=
'<td><input type="checkbox" name="Kenntnisse_in" '
.
(
$Data
[
"DebugO"
]
==
true
?
"checked"
:
""
)
.
'></td>'
;
$ret
.=
'<td><input type="button" value="'
.
((
$Data
==
null
)
?
"Anlegen"
:
"Speichern"
)
.
'"></td>'
;
$ret
.=
'<td><input type="button" value="'
.
((
$Data
==
null
)
?
"Anlegen"
:
"Speichern"
)
.
'">
<input type=text" name="ID" value="'
.
$Key
.
'"></td>'
;
$ret
.=
'</tr>'
;
return
$ret
;
}
...
...
@@ -221,10 +222,12 @@ if($_GET["action"] == "filme"){
$content
.=
'<th class="rotate"><div><span>Debug</th>'
;
$content
.=
'<th>Speichern</th>'
;
$content
.=
'</tr> '
.
PHP_EOL
;
foreach
(
$Data
as
$value
)
{
$content
.=
TableRowRights
(
$API
,
$value
);
$lastKey
=
0
;
foreach
(
$Data
as
$Key
=>
$value
)
{
$content
.=
TableRowRights
(
$API
,
$Key
,
$value
);
$lastKey
=
$Key
;
}
$content
.=
TableRowRights
(
$API
);
$content
.=
TableRowRights
(
$API
,
(
$lastKey
+
1
)
);
$content
.=
' </table></div>'
.
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