oude versie.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. (<a href="<?php echo $_SERVER['PHP_SELF']."?cidReq=".$_GET['cidReq']."&uInfo=".$_GET['uInfo']; ?>">Hide</a>)
  2. <?php
  3. foreach ($allpermissions as $tool=>$toolpermissions)
  4. {
  5. echo "\t<tr>\n";
  6. echo "\t\t<td>\n";
  7. echo $tool;
  8. echo "\t\t</td>\n";
  9. foreach ($possiblepermissions as $key=>$value)
  10. {
  11. echo "\t\t<td align='center'>\n";
  12. // checking if this permission is relevant for this tool
  13. if (in_array($value,$allpermissions[$tool]))
  14. {
  15. $checked="";
  16. if (is_array($currentpermissions[$tool]) AND in_array($value,$currentpermissions[$tool]))
  17. {
  18. $checked="checked";
  19. }
  20. echo "<input type=\"checkbox\" name=\"permission*$tool*$value\" $checked>";
  21. }
  22. echo "\t\t</td>\n";
  23. }
  24. echo "\t</tr>\n";
  25. }
  26. echo "</table>\n";
  27. echo "<input type=\"Submit\" name=\"StorePermissions\" value=\"Store Permissions\">";
  28. echo "</form>";
  29. /*
  30. echo "<hr>allpermissions<br>";
  31. echo "<pre>";
  32. print_r($allpermissions);
  33. echo "</pre>";
  34. echo "currentpermissions<br>";
  35. echo "<pre>";
  36. print_r($currentpermissions);
  37. echo "</pre>";
  38. */
  39. ?>