<?php
$user_admin=$_COOKIE["user_admin"];
$jahrgang=$_COOKIE["jahrgang"];

if ($jahrgang == ""){ require("jahrgang.php"); exit;} //Wenn man kein Jahrgang ausgew&auml;hlt hat wird die Jahrgangsauswahlseite geladen
include("kurs/datenbankanbindung.php");     // f&uuml;gt die Datenbankanbindung ein: Sys:\php\includes\kurs\datenbankanbindung.php

// Rechte&uuml;berpr&uuml;fung
$db = dbconnect();
if ($user_admin == ""){ require("index.php"); exit;} //Wenn man nicht angemeldet ist, darf man nicht auf die Seite
$result = $db->query("SELECT 1 FROM skik_admin_rechte, skik_admin_rechte_zuord , skik_admin where skik_admin_rechte.skik_admin_rolle = skik_admin_rechte_zuord.skik_admin_rolle AND skik_admin_rechte_zuord.faid = skik_admin.faid AND skik_admin.user = '$user_admin' AND skik_admin_rechte_zuord.skik_admin_rolle = 'a_priobear'");
$row = $result->fetch_array();
if ($row[0] != 1){ include("kurs/rechte.php"); exit;}
// Rechte&uuml;berpr&uuml;fung ende

if (isset($_GET['action']))
   $action = $_GET['action'];
else
   $action = "";

switch($action){
default:

echo"

<html>
<head>
<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\">
<link rel=\"stylesheet\" href=\"../styles_pc.css\" type=\"text/css\">
<title>Priorit&auml;ten bearbeiten</title>
</head>
<body>
<table border=\"0\" style=\"border-collapse: collapse\" width=\"100%\" cellpadding=\"0\" height=\"100%\" id=\"table1\">
    <tr>
        <td>
        <div align=\"center\">
            <table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\" border=\"0\">
                <tr>
                    <td align=\"left\" width=\"1%\" width=\"10\" background=\"../images/box_e1.gif\">
                    <img height=\"40\" src=\"../images/blank.gif\" width=\"22\"></td>
                    <td align=\"left\" width=\"98%\" background=\"../images/box_top.gif\" valign=\"top\" colspan=\"2\">
                    <img height=\"10\" src=\"../images/blank.gif\" width=\"1\"><br>
                    <font class=\"hd\">Priorit&auml;ten bearbeiten</font><br>
                    <img height=\"5\" src=\"../images/blank.gif\" width=\"1\"></td>
                    <td align=\"right\" width=\"1%\" background=\"../images/box_e2.gif\">
                    <img height=\"40\" src=\"../images/blank.gif\" width=\"22\"></td>
                </tr>
                <tr>
                    <td width=\"1%\" background=\"../images/box_l.gif\">
                    <img height=\"1\" src=\"../images/blank.gif\" width=\"22\"></td>
                    <td colspan=\"2\">
                <form action="; echo $_SERVER['PHP_SELF'] . "?action=bearbeiten"; echo" method=\"POST\" name=\"PSN_bearb\">
                    <table border=\"0\" cellpadding=\"4\" cellspacing=\"0\" style=\"border-collapse: collapse\" bordercolor=\"#E7E8ED\" width=\"100%\">
                        <tr>
                            <td width=\"8%\" rowspan=\"2\" style=\"border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: solid; border-bottom-width: 1px\">
                            <p align=\"center\"><b>Nr.</b></p>
                            </td>
                            <td width=\"56%\" rowspan=\"2\" style=\"border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: solid; border-bottom-width: 1px\">
                            <b>
                            <p>Bezeichnung</p>
                            </b></td>
                            <td width=\"24%\" style=\"border-top-color: #111111; border-top-width: 1; border-bottom-style: none; border-bottom-width: medium; border-right-style:none; border-right-width:medium\">
                            <b>
                            <p align=\"center\">Teilnehmer</p>
                            </b></td>
                            <td width=\"12%\" align=\"center\" rowspan=\"2\" style=\"border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: solid; border-bottom-width: 1px\">
                            <b>Auswahl</b></td>
                        </tr>
                        <tr>
                            <td width=\"24%\" style=\"border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: solid; border-bottom-width: 1px\">
                            <p align=\"center\"><b>Ist / Max </b></p>
                            </td>
                        </tr>";
                        $db = dbconnect();
                        $query = "SELECT id, FPRNr, Bezeichnung, bemerkung, TN_max FROM skik_kurs where Jahr=\"$jahrgang\" order by FPRNr asc";
                        $result = $db->query($query)
                               or die ("Cannot execute query");
                        while ($row = $result->fetch_array()){

                        if ( $res=$db->query("SELECT count(skik_wunsch.uid) from skik_wunsch left join stud using (uid) where skik_wunsch.id=$row[id] and skik_wunsch.Prioritaet=\"0\" and stud.durchgefallen !=\"Y\" order by skik_wunsch.uid") ){
                        if ( $row1=$res->fetch_array() ) {
                        $result_ist=$row1[0];
                        } else $result_ist=0;
                        } else $result_ist=0;

                        echo "
                        <tr>
                            <td width=\"8%\" style=\"border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: solid; border-bottom-width: 1px\">
                            <p align=\"center\">$row[FPRNr]</p>
                            </td>
                            <td width=\"56%\" style=\"border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: solid; border-bottom-width: 1px\">
                            <p>$row[Bezeichnung]<span class=\"bemerkung\"><br>
                            $row[bemerkung]</span></p>
                            </td>
                            <td width=\"24%\" style=\"border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: solid; border-bottom-width: 1px\">
                            <p align=\"center\">$result_ist&nbsp;&nbsp; /&nbsp;&nbsp;
                            $row[TN_max]</p>
                            </td>
                            <td width=\"12%\" align=\"center\" style=\"border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: solid; border-bottom-width: 1px\">
                            <p>
                            <input type=\"radio\" value=\"$row[id]\" name=\"aus_bearb\" size=\"20\">$row[id]
                            </td>
                        </tr>";
                           }
                      echo "
                      </table>
                      <br>
                      <input type=\"submit\" value=\"Abschicken\" name=\"B1\" size=\"20\"></p>
                      </form>
                      </td>
                    <td width=\"1%\" background=\"../images/box_r.gif\">
                    <img height=\"1\" src=\"../images/blank.gif\" width=\"22\"></td>
                </tr>
                <tr>
                    <td nowrap=\"nowrap\" align=\"left\" width=\"1%\" background=\"../images/box_e3.gif\">
                    <img height=\"16\" src=\"../images/blank.gif\" width=\"22\"></td>
                    <td nowrap=\"nowrap\" align=\"left\" width=\"98%\" background=\"../images/box_bottom.gif\" colspan=\"2\">
                    <img height=\"16\" src=\"../images/blank.gif\" width=\"8\"></td>
                    <td nowrap=\"nowrap\" align=\"right\" width=\"1%\" background=\"../images/box_e4.gif\">
                    <img height=\"16\" src=\"../images/blank.gif\" width=\"22\"> </td>
                </tr>
            </table>
        </div>
        </td>
    </tr>
</table>
</body>
</html>";

break;
case "bearbeiten":
setcookie("bearbeiten",$_POST['aus_bearb']);
$db = dbconnect();
$sel_pros = $db->query("SELECT Bezeichnung FROM skik_kurs where id='$_POST[aus_bearb]'");
$pros = $sel_pros->fetch_array();

echo "
<html>
<head>
<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\">
<link rel=\"stylesheet\" href=\"../styles_pc.css\" type=\"text/css\">
<title>Sprachkurse / Interkulturelle Kompetenzen bearbeiten</title>
</head>
<body>
<table border=\"0\" style=\"border-collapse: collapse\" width=\"100%\" cellpadding=\"0\" height=\"100%\" id=\"table1\">
    <tr>
        <td>
        <div align=\"center\">
            <table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\" border=\"0\">
                <tr>
                    <td align=\"left\" width=\"1%\" width=\"10\" background=\"../images/box_e1.gif\">
                    <img height=\"40\" src=\"../images/blank.gif\" width=\"22\"></td>
                    <td align=\"left\" width=\"98%\" background=\"../images/box_top.gif\" valign=\"top\" colspan=\"2\">
                    <img height=\"10\" src=\"../images/blank.gif\" width=\"1\"><br>
                    <font class=\"hd\">Zuordnung der Studenten zu den Sprachkurse / Interkulturelle Kompetenzen</font><br>
                    <span class=\"sh\">$pros[Bezeichnung]</span>
                    <td align=\"right\" width=\"1%\" background=\"../images/box_e2.gif\">
                    <img height=\"40\" src=\"../images/blank.gif\" width=\"22\"></td>
                </tr>
                <tr>
                    <td width=\"1%\" background=\"../images/box_l.gif\">
                    <img height=\"1\" src=\"../images/blank.gif\" width=\"22\"></td>
                    <td colspan=\"2\">

<form action="; echo $_SERVER['PHP_SELF'] . "?action=bearbeiten2"; echo" method=\"POST\" name=\"PSN_bearb\">
    <table border=\"0\" cellpadding=\"4\" cellspacing=\"0\" style=\"border-collapse: collapse\" bordercolor=\"#E7E8ED\" width=\"100%\">
    <tr>
      <td width=\"30%\" rowspan=\"2\" style=\"border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: solid; border-bottom-width: 1px\">
      <b>Name</b>
      </td>
      <td width=\"17%\" align=right rowspan=\"2\" style=\"border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: solid; border-bottom-width: 1px\">
      <p align=\"center\"><b>Verschieben</b></p>
      </td>
      <td width=\"6%\" align=center rowspan=\"2\" style=\"border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: solid; border-bottom-width: 1px\">
      <b>EW</b></td>
      <td width=\"6%\" align=center rowspan=\"2\" style=\"border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: solid; border-bottom-width: 1px\">
      <b>ZW</b></td>
      <td width=\"6%\" align=center rowspan=\"2\" style=\"border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: solid; border-bottom-width: 1px\">
      <b>DW</b></td>
      <td width=\"6%\" align=center rowspan=\"2\" style=\"border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: solid; border-bottom-width: 1px\">
      <b>VW</b></td>
      <td width=\"23%\" align=center colspan=\"4\" style=\"border-style: none; border-width: medium\">
      <b>verf. Alternativen</b></td>
    </tr>
    <tr>
      <td width=\"6%\" align=center style=\"border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: solid; border-bottom-width: 1px\">
      <b>EW</b></td>
      <td width=\"6%\" align=center style=\"border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: solid; border-bottom-width: 1px\">
      <b>ZW</b></td>
      <td width=\"6%\" align=center style=\"border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: solid; border-bottom-width: 1px\">
      <b>DW</b></td>
      <td width=\"6%\" align=center style=\"border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: solid; border-bottom-width: 1px\">
      <b>VW</b></td>
    </tr>";
    $db = dbconnect();
    $result = $db->query("SELECT stud.uid, id, Prioritaet 
                             FROM skik_wunsch, stud 
                            WHERE id=\"". $_POST['aus_bearb']."\"
                              AND Prioritaet=\"0\" 
                              AND skik_wunsch.uid = stud.uid 
                              AND stud.durchgefallen != 'Y' 
                         ORDER BY stud.uid");

    while ($row = $result->fetch_array()){
    $sel_name = $db->query("SELECT Vorname, Nachname, AG, Jahrgang from stud where uid=\"$row[uid]\"");
    $res_name = $sel_name->fetch_array();
    echo "
      <td width=\"30%\" valign=\"middle\" style=\"border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: solid; border-bottom-width: 1px\">
      $res_name[Nachname], $res_name[Vorname]&nbsp;&nbsp;&nbsp;($res_name[AG]/$res_name[Jahrgang])
      </td>
      <td width=\"17%\" align=center valign=\"middle\" style=\"border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: solid; border-bottom-width: 1px\">
      <select size=1 name=$row[uid]>";
      $db = dbconnect();
      $result0 = $db->query("SELECT skik_kurs.FPRNr as FPRNr, skik_wunsch.id as id, skik_wunsch.prioritaet FROM skik_kurs, skik_wunsch WHERE skik_kurs.id = skik_wunsch.id and skik_wunsch.uid =  \"$row[uid]\" AND skik_wunsch.prioritaet =\"0\" ");
      $row0 = $result0->fetch_array();

      $result1 = $db->query("SELECT skik_kurs.FPRNr as FPRNr, skik_wunsch.id as id, skik_wunsch.prioritaet FROM skik_kurs, skik_wunsch WHERE skik_kurs.id = skik_wunsch.id and skik_wunsch.uid =  \"$row[uid]\" AND skik_wunsch.prioritaet =\"1\" ");
      $row1 = $result1->fetch_array();

      $result2 = $db->query("SELECT skik_kurs.FPRNr as FPRNr, skik_wunsch.id as id, skik_wunsch.prioritaet FROM skik_kurs, skik_wunsch WHERE skik_kurs.id = skik_wunsch.id and skik_wunsch.uid =  \"$row[uid]\" AND skik_wunsch.prioritaet =\"2\" ");
      $row2 = $result2->fetch_array();

      $result3 = $db->query("SELECT skik_kurs.FPRNr as FPRNr, skik_wunsch.id as id, skik_wunsch.prioritaet FROM skik_kurs, skik_wunsch WHERE skik_kurs.id = skik_wunsch.id and skik_wunsch.uid =  \"$row[uid]\" AND skik_wunsch.prioritaet =\"3\" ");
      $row3 = $result3->fetch_array();

      $result4 = $db->query("SELECT skik_kurs.FPRNr as FPRNr, skik_wunsch.id as id, skik_wunsch.prioritaet FROM skik_kurs, skik_wunsch WHERE skik_kurs.id = skik_wunsch.id and skik_wunsch.uid =  \"$row[uid]\" AND skik_wunsch.prioritaet =\"4\" ");
      $row4 = $result4->fetch_array();
      
      $query3 = "SELECT id, FPRNr
                   FROM skik_kurs
                  WHERE jahr = '$res_name[Jahrgang]'
                  ORDER BY FPRNr ASC";
      $result3 = $db->query($query3); 

      echo"
      <option value=$row0[id]>Admin: $row0[FPRNr]</option>
      <option value=$row1[id]>Erstwahl: $row1[FPRNr]</option>
      <option value=$row2[id]>Zweitwahl: $row2[FPRNr]</option>
      <option value=$row3[id]>Drittwahl: $row3[FPRNr]</option>
      <option value=$row4[id]>Viertwahl: $row4[FPRNr]</option>
                ";
                while ($row5 = $result3->fetch_array()){
                  echo"<option value=$row5[id]>$row5[FPRNr]</option>";
                }
                echo"
      </select>
      </td>
      <td width=\"6%\" align=center style=\"border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: solid; border-bottom-width: 1px\">
      $row1[FPRNr]</td>
      <td width=\"6%\" align=center style=\"border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: solid; border-bottom-width: 1px\">
      $row2[FPRNr]</td>
      <td width=\"6%\" align=center style=\"border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: solid; border-bottom-width: 1px\">
      $row3[FPRNr]</td>
      <td width=\"6%\" align=center style=\"border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: solid; border-bottom-width: 1px\">
      $row4[FPRNr]</td>
      <td width=\"6%\" align=center style=\"border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: solid; border-bottom-width: 1px\">

      ";
$db = dbconnect();
$queryEW = $db->query("SELECT TN_max FROM skik_kurs where id=\"$row1[id]\"");
while ($rowEW = $queryEW->fetch_array()){
if ( $resEW=$db->query("SELECT COUNT(*) FROM skik_wunsch where id=$row1[id] and Prioritaet =\"0\"") ){         // Z&auml;hlen der tats&auml;chlichen Teilnehmer in den Alternativen
if ( $row1EW=$resEW->fetch_array() ) {
$result_istEW=$row1EW[0];
} else $result_istEW=0;
} else $result_istEW=0;
echo $result_istEW; echo "/"; echo $rowEW[TN_max];
echo "<br>";


if ($result_istEW >= $rowEW[TN_max])
{
echo "<img border=\"0\" src=\"cross.jpg\">";
} else {
echo "<img border=\"0\" src=\"ok.gif\">";
}
}
echo "


</td>
      <td width=\"6%\" align=center style=\"border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: solid; border-bottom-width: 1px\">

      ";
$db = dbconnect();
$queryZW = $db->query("SELECT TN_max FROM skik_kurs where id=\"$row2[id]\"");
while ($rowZW = $queryZW->fetch_array()){
if ( $resZW=$db->query("SELECT COUNT(*) FROM skik_wunsch where id=$row2[id] and Prioritaet =\"0\"") ){
if ( $row1ZW=$resZW->fetch_array() ) {
$result_istZW=$row1ZW[0];
} else $result_istZW=0;
} else $result_istZW=0;
echo $result_istZW; echo "/"; echo $rowZW[TN_max];
echo "<br>";


if ($result_istZW >= $rowZW[TN_max])
{
echo "<img border=\"0\" src=\"cross.jpg\">";
} else {
echo "<img border=\"0\" src=\"ok.gif\">";
}
}
echo "

           </td>

      <td width=\"6%\" align=center style=\"border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: solid; border-bottom-width: 1px\">

       ";
$db = dbconnect();
$queryDW = $db->query("SELECT TN_max FROM skik_kurs where id=\"$row3[id]\"");
while ($rowDW = $queryDW->fetch_array()){
if ( $resDW=$db->query("SELECT COUNT(*) FROM skik_wunsch where id=$row3[id] and Prioritaet =\"0\"") ){
if ( $row1DW=$resDW->fetch_array() ) {
$result_istDW=$row1DW[0];
} else $result_istDW=0;
} else $result_istDW=0;
echo $result_istDW; echo "/"; echo $rowDW[TN_max];
echo "<br>";


if ($result_istDW >= $rowDW[TN_max])
{
echo "<img border=\"0\" src=\"cross.jpg\">";
} else {
echo "<img border=\"0\" src=\"ok.gif\">";
}
}
echo "



      </td>
      <td width=\"6%\" align=center style=\"border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: solid; border-bottom-width: 1px\">

      ";
$db = dbconnect();
$queryVW = $db->query("SELECT TN_max FROM skik_kurs where id=\"$row4[id]\"");
while ($rowVW = $queryVW->fetch_array()){
if ( $resVW=$db->query("SELECT COUNT(*) FROM skik_wunsch where id=$row4[id] and Prioritaet =\"0\"") ){
if ( $row1VW=$resVW->fetch_array() ) {
$result_istVW=$row1VW[0];
} else $result_istVW=0;
} else $result_istVW=0;
echo $result_istVW; echo "/"; echo $rowVW[TN_max];
echo "<br>";


if ($result_istVW >= $rowVW[TN_max])
{
echo "<img border=\"0\" src=\"cross.jpg\">";
} else {
echo "<img border=\"0\" src=\"ok.gif\">";
}
}
echo "

      </td>
    </tr>";
    }
  echo "
</table>
<br>
                      <input type=\"submit\" value=\"Abschicken\" name=\"B1\" size=\"20\"></p>
                      </form>
                      </td>
                    <td width=\"1%\" background=\"../images/box_r.gif\">
                    <img height=\"1\" src=\"../images/blank.gif\" width=\"22\"></td>
                </tr>
                <tr>
                    <td nowrap=\"nowrap\" align=\"left\" width=\"1%\" background=\"../images/box_e3.gif\">
                    <img height=\"16\" src=\"../images/blank.gif\" width=\"22\"></td>
                    <td nowrap=\"nowrap\" align=\"left\" width=\"98%\" background=\"../images/box_bottom.gif\" colspan=\"2\">
                    <img height=\"16\" src=\"../images/blank.gif\" width=\"8\"></td>
                    <td nowrap=\"nowrap\" align=\"right\" width=\"1%\" background=\"../images/box_e4.gif\">
                    <img height=\"16\" src=\"../images/blank.gif\" width=\"22\"> </td>
                </tr>
            </table>
        </div>
        </td>
    </tr>
</table>
</body>
</html>";


break;
case "bearbeiten2":

$bearbeiten=$_COOKIE["bearbeiten"];

$db = dbconnect();
$result8 = $db->query("SELECT uid, Prioritaet from skik_wunsch where id=\"$bearbeiten\" and Prioritaet=\"0\"");

while ($row8 = $result8->fetch_array()){
      $stud="$row8[0]";
      $sql = $db->query ("UPDATE skik_wunsch 
                              SET id=\"". $_POST[$stud]."\" 
                            WHERE uid=\"$row8[0]\" 
                              AND Prioritaet=\"0\""); // hier entspricht die uid den namen des Dropdownfeldes in der die neue Nr des PSN steht
}

echo "
<meta http-equiv=\"refresh\" content=\"1; URL=bearbeiten.php\">
<html>
<head>
<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\">
<link rel=\"stylesheet\" href=\"../styles_pc.css\" type=\"text/css\">
<title>Aktualisierung</title>
</head>
<body>
<table border=\"0\" style=\"border-collapse: collapse\" width=\"100%\" cellpadding=\"0\" height=\"100%\" id=\"table1\">
    <tr>
        <td>
        <div align=\"center\">
            <table cellspacing=\"0\" cellpadding=\"0\" width=\"550\" border=\"0\">
                <tr>
                    <td width=\"10\" background=\"../images/box_e1.gif\">
                    <img height=\"40\" src=\"../images/blank.gif\" width=\"22\"></td>
                    <td nowrap=\"nowrap\" align=\"left\" width=\"3%\" background=\"../images/box_top.gif\" valign=\"top\"></td>
                    <td width=\"95%\" background=\"../images/box_top.gif\">
                    <img height=\"10\" src=\"../images/blank.gif\" width=\"1\"><br>
                    <span class=\"sh\">Aktualisierung</span><br>
                    <img height=\"5\" src=\"../images/blank.gif\" width=\"1\"></td>
                    <td nowrap=\"nowrap\" align=\"right\" width=\"1%\" background=\"../images/box_e2.gif\">
                    <img height=\"40\" src=\"../images/blank.gif\" width=\"22\"></td>
                </tr>
                <tr>
                    <td width=\"1%\" background=\"../images/box_l.gif\">
                    <img height=\"1\" src=\"../images/blank.gif\" width=\"22\"></td>
                    <td colspan=\"2\"><br>
                    <p align=\"center\"><b>Sprachkurse / Interkulturelle Kompetenzen wurde aktualisiert!</b>
                    </p>
                    <p></p>
                    <p><br>
                    </p>
                    </td>
                    <td width=\"1%\" background=\"../images/box_r.gif\">
                    <img height=\"1\" src=\"../images/blank.gif\" width=\"22\"></td>
                </tr>
                <tr>
                    <td nowrap=\"nowrap\" align=\"left\" width=\"1%\" background=\"../images/box_e3.gif\">
                    <img height=\"16\" src=\"../images/blank.gif\" width=\"22\"></td>
                    <td nowrap=\"nowrap\" align=\"left\" width=\"98%\" background=\"../images/box_bottom.gif\" colspan=\"2\">
                    <img height=\"16\" src=\"../images/blank.gif\" width=\"8\"></td>
                    <td nowrap=\"nowrap\" align=\"right\" width=\"1%\" background=\"../images/box_e4.gif\">
                    <img height=\"16\" src=\"../images/blank.gif\" width=\"22\"> </td>
                </tr>
            </table>
        </div>
        </td>
    </tr>
</table>
</body>
</html>
";

} //Ende Action Abfrage
?>