|
<?
|
|
if ($_GET['vytvoreno']==1) {
|
|
switch ($_GET['param']) {
|
|
case "subnet":
|
|
$co_bylo_vytvoreno=$lngDhcp_subnet;
|
|
$jeho_jmeno=$_SESSION["subnet".$_GET['jaky']];
|
|
$sklon_vytvoren=$lng_vytvorena;
|
|
break;
|
|
case "group":
|
|
$co_bylo_vytvoreno=$lngDhcp_group;
|
|
$jeho_jmeno=$_SESSION["popis_g".$_GET['jaky']];
|
|
$sklon_vytvoren=$lng_vytvorena;
|
|
break;
|
|
case "host":
|
|
$co_bylo_vytvoreno=$lngDhcp_host;
|
|
$jeho_jmeno=$_SESSION["host".$_GET['jaky']];
|
|
$sklon_vytvoren=$lng_vytvoren;
|
|
break;
|
|
|
|
}
|
|
echo "<div align=\"center\">
|
|
<div class=\"divUpVyt\">".$co_bylo_vytvoreno." <b>\"".$jeho_jmeno."\"</b> ".$sklon_vytvoren."</div>
|
|
</div><br />";
|
|
}
|
|
|
|
if ($_GET['upraveno']==1) {
|
|
switch ($_GET['param']) {
|
|
case "global":
|
|
$jeho_jmeno=$lngDhcp_globalParamNazev;
|
|
$co_bylo_upraveno="";
|
|
$sklon_upraven=$lng_upraveny;
|
|
break;
|
|
case "subnet":
|
|
$co_bylo_upraveno=$lngDhcp_subnetParamNazev;
|
|
$jeho_jmeno=$_SESSION["subnet".$_GET['jaky']];
|
|
$sklon_upraven=$lng_upraveny;
|
|
break;
|
|
case "group":
|
|
$co_bylo_upraveno=$lngDhcp_groupParamNazev;
|
|
$jeho_jmeno=$_SESSION["popis_g".$_GET['jaky']];
|
|
$sklon_upraven=$lng_upraveny;
|
|
break;
|
|
case "host":
|
|
$co_bylo_upraveno=$lngDhcp_hostParamNazev;
|
|
$jeho_jmeno=$_SESSION["host".$_GET['jaky']];
|
|
$sklon_upraven=$lng_upraveny;
|
|
break;
|
|
|
|
}
|
|
echo "<div align=\"center\">
|
|
<div class=\"divUpVyt\">".$co_bylo_upraveno." <b>\"".$jeho_jmeno."\"</b> ".$sklon_upraven."</div>
|
|
</div><br />";
|
|
}
|
|
|
|
if ($_GET['smazano']==1) {
|
|
switch ($_GET['smazat']) {
|
|
case "subnet":
|
|
$co_bylo_smazano=$lngDhcp_subnet;
|
|
$sklon=$lng_smazana;
|
|
break;
|
|
case "group":
|
|
$co_bylo_smazano=$lngDhcp_group;
|
|
$sklon=$lng_smazana;
|
|
break;
|
|
case "host":
|
|
$co_bylo_smazano=$lngDhcp_host;
|
|
$sklon=$lng_smazan;
|
|
break;
|
|
|
|
}
|
|
echo "<div align=\"center\">
|
|
<div class=\"divUpVyt\">".$co_bylo_smazano." ".$sklon."</div>
|
|
</div><br />";
|
|
}
|
|
|
|
if ($_GET['kontrola']=="error") {
|
|
|
|
echo "<div align=\"center\">";
|
|
for ($i=0;$i<sizeof($_SESSION["_error_"]);$i++) {
|
|
if ($_SESSION["_error_"][$i]!="") {
|
|
echo "<div class=\"divError\">".$lng_error."<br /><b>\"".$_SESSION["_error_"][$i]."\"</b> - ".$_SESSION["_error_typ_"][$i]."</div>";
|
|
|
|
}
|
|
|
|
}
|
|
unset($_SESSION["_error_"]);
|
|
echo "</div><br />";
|
|
}
|
|
?>
|