Subversion Repositories personal-webbase

Rev

Go to most recent revision | Blame | Last modification | View Log | RSS feed

  1. <?php
  2.  
  3. if (!defined('WBLEGAL')) die('Kann nicht ohne Personal WebBase ausgef&uuml;hrt werden.');
  4.  
  5. echo $header;
  6.  
  7. if (!isset($vonmodul)) $vonmodul = $modul;
  8. if (!isset($vonseite)) $vonseite = 'main';
  9.  
  10. echo '<h1>'.htmlentities($module_information->caption).'</h1>';
  11. echo 'Hier k&ouml;nnen Sie Konfigurationen an Personal WebBase-Modulen manuell vornehmen. Dies wird jedoch nicht empfohlen, da auch Fehlkonfigurationen mit ung&uuml;ltigen Werten angenommen werden.<br><br>';
  12.  
  13. wb_draw_table_begin();
  14. wb_draw_table_content('', '<b>Modul</b>', '', '<b>Eigenschaft</b>', '', '<b>Wert</b>', '', '<b>Aktionen</b>', '', '');
  15. $res = db_query("SELECT `id`, `name`, `value`, `module` FROM `".$WBConfig->getMySQLPrefix()."configuration` ORDER BY `module` ASC, `name` ASC");
  16. while ($row = db_fetch($res))
  17. {
  18.         if (isset($only) && ($row['module'] == $only))
  19.         {
  20.                 $s1 = '<span class="red">';
  21.                 $s2 = '</span>';
  22.         }
  23.         else
  24.         {
  25.                 $s1 = '';
  26.                 $s2 = '';
  27.         }
  28.         if (is_dir('modules/'.$row['module']))
  29.         {
  30.                 $z = '';
  31.                 $x = 'Standard herstellen';
  32.         }
  33.         else
  34.         {
  35.                 $z = ' (Nicht mehr installiert)';
  36.                 $x = 'Wert entfernen';
  37.         }
  38.         wb_draw_table_content('', $s1.htmlentities($row['module']).$z.$s2, '',  $s1.htmlentities($row['name']).$s2, '', $s1.htmlentities($row['value']).$s2, '', '<a href="'.$_SERVER['PHP_SELF'].'?modul='.$modul.'&amp;seite=edit&amp;id='.$row['id'].'" class="menu">'.$s1.'Bearbeiten'.$s2.'</a>', '', '<a href="javascript:abfrage(\''.$_SERVER['PHP_SELF'].'?modul='.$modul.'&amp;seite=operate&amp;aktion=delete&amp;id='.$row['id'].'\');" class="menu">'.$s1.$x.$s2.'</a>');
  39. }
  40. wb_draw_table_end();
  41.  
  42. echo '<input type="button" onclick="document.location.href=\''.$_SERVER['PHP_SELF'].'?modul='.$vonmodul.'&amp;seite='.$vonseite.'\';" class="button" onmouseover="this.className=\'button_act\';" onmouseout="this.className=\'button\';" value="Zur&uuml;ck">';
  43.  
  44. echo $footer;
  45.  
  46. ?>