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
feb9e178
Commit
feb9e178
authored
Feb 29, 2016
by
Nico Schallehn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
9d590d64
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
index.php
webapp/index.php
+22
-0
No files found.
webapp/index.php
View file @
feb9e178
...
...
@@ -42,6 +42,16 @@ function TableRowRights($Api, $Key = null, $Data = null){
}
}
}
$Api
->
StatistikViews
;
foreach
(
$Api
->
StatistikViews
as
$value
)
{
if
(
!
(
$Data
==
null
)){
$ret
.=
'<td><input type="checkbox" name="Statistik_list[]"'
.
(
in_array
(
$value
,
$Data
[
"StatiViews"
])
?
"checked"
:
""
)
.
' value="'
.
$value
.
'"></td>'
;
}
else
{
$ret
.=
'<td><input type="checkbox" name="Statistik_list[]" value="'
.
$value
.
'"></td>'
;
}
}
$ret
.=
'<td><input type="checkbox" name="webapp" '
.
(
$Data
[
"webapp"
]
==
true
?
"checked"
:
""
)
.
'></td>'
;
$ret
.=
'<td><input type="checkbox" name="Update" '
.
(
$Data
[
"Update"
]
==
true
?
"checked"
:
""
)
.
'></td>'
;
$ret
.=
'<td><input type="checkbox" name="DebugO" '
.
(
$Data
[
"DebugO"
]
==
true
?
"checked"
:
""
)
.
'></td>'
;
...
...
@@ -207,6 +217,15 @@ if($_GET["action"] == "filme"){
//echo $selected."</br>";
}
}
$Data
[
$_POST
[
"ID"
]][
"StatiViews"
]
=
array
();
if
(
!
empty
(
$_POST
[
"Statistik_list"
])){
// Loop to store and display values of individual checked checkbox.
foreach
(
$_POST
[
"Statistik_list"
]
as
$selected
){
array_push
(
$Data
[
$_POST
[
"ID"
]][
"StatiViews"
],
$selected
);
//echo $selected."</br>";
}
}
file_put_contents
(
API_Rights
,
json_encode
(
$Data
,
JSON_PRETTY_PRINT
));
...
...
@@ -229,6 +248,9 @@ if($_GET["action"] == "filme"){
foreach
(
$API
->
SpaltenEpisoden
as
$value
)
{
$content
.=
'<th class="rotate"><div><span>'
.
$value
.
'</span></div></th>'
;
}
foreach
(
$API
->
StatistikViews
as
$value
)
{
$content
.=
'<th class="rotate"><div><span>'
.
$value
.
'</span></div></th>'
;
}
$content
.=
'<th class="rotate"><div><span>Webapp</th>'
;
$content
.=
'<th class="rotate"><div><span>Update</th>'
;
$content
.=
'<th class="rotate"><div><span>Debug</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