Commit 06a09d8b authored by Nico Schallehn's avatar Nico Schallehn

test

parent f1df420f
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment