Subversion Repositories personal-webbase

Rev

Rev 12 | Blame | Compare with Previous | 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. if ($wb_user_type < 2) die('Keine Zugriffsberechtigung');
  6.  
  7.   echo $header;
  8.  
  9.   if (!isset($vonmodul)) $vonmodul = $modul;
  10.   if (!isset($vonseite)) $vonseite = 'inhalt';
  11.  
  12. if ($modulueberschrift == '') $modulueberschrift = $modul;
  13.     echo '<h1>'.my_htmlentities($modulueberschrift).'</h1>';
  14.     echo 'Hier k&ouml;nnen Sie das Personal WebBase-Desing bestimmen. Es sind folgende Designs installiert:<br><br>';
  15.  
  16.   echo '<form action="'.$_SERVER['PHP_SELF'].'" method="POST" name="mainform" id="mainform">
  17. <input type="hidden" name="seite" value="kraftsetzung">
  18. <input type="hidden" name="aktion" value="changekonfig">
  19. <input type="hidden" name="modul" value="'.$modul.'">
  20. <input type="hidden" name="vonseite" value="'.$vonseite.'">
  21. <input type="hidden" name="vonmodul" value="'.$vonmodul.'">';
  22.  
  23.   $i = 0;
  24.   $v = 'design/';
  25.   $verz=opendir($v);
  26.  
  27.   while ($file = readdir($verz))
  28.   {
  29.     if (($file != '.') && ($file != '..') && (is_dir($v.$file)))
  30.     {
  31.       $i++;
  32.       if ($konfiguration[$modul]['design'] == $file)
  33.         $zus = ' checked';
  34.       else
  35.         $zus = '';
  36.       echo "<input type=\"radio\" name=\"newdesign\" value=\"$file\"$zus> $file<br>";
  37.     }
  38.   }
  39.  
  40.   closedir($verz);
  41.  
  42.   echo '<br>';
  43.  
  44.   echo '<input type="button" onclick="document.location.href=\''.$_SERVER['PHP_SELF'].'?modul='.urlencode($vonmodul).'&amp;seite='.urlencode($vonseite).'\';" class="button" onmouseover="this.className=\'button_act\';" onmouseout="this.className=\'button\';" value="Zur&uuml;ck">';
  45.   echo '&nbsp;&nbsp;&nbsp;';
  46.   echo '<input type="submit" value="&Auml;ndern" class="button" onmouseover="this.className=\'button_act\';" onmouseout="this.className=\'button\';">
  47.  
  48.  </form>';
  49.  
  50.       echo $footer;
  51.  
  52. ?>
  53.