} else { $_users->insert_user($_a . ";" . $_b . ";" . $_c . ";" . $_d); $_users->add_user($_a); header("Location: admin.php?action=user_edit&admin_id=" . $_users->get_anzahl()); $_infotext = "<table><tr><td><img src='images/icons/error.png' border=0></td><td>Mitarbeiter <b>" . $_a . "</b> wurde erfolgreich erstellt.</td></tr></table>"; $_infotext = getinfotext($_infotext, "td_background_heute"); break; } } else { //echo "Daten falsch"; $_infotext = "<table><tr><td><img src='images/icons/error.png' border=0></td><td>Mitarbeiter konnte NICHT erstellt werden.</td></tr></table>"; $_infotext = getinfotext($_infotext, "td_background_heute"); } } else { $_infotext = "Neuer Mitarbeiter erfassen."; $_infotext = getinfotext($_infotext, "td_background_top"); } $_template->_user02 = "sites_admin/admin02.php"; $_template->_user04 = "sites_admin/admin04_user_add.php"; break; default: setLoginForm(); break; } // ---------------------------------------------------------------------------- // Logion - Formular darstellen // ---------------------------------------------------------------------------- function setLoginForm() { global $_template; $_template->_user01 = "sites_time/null.php";
} else { } $_logcheck->logout(); header("Location: index.php?tmp=1"); } else { header("Location: index.php?tmp=2"); } exit; } $_infotext02 = getinfotext("Stempel - Pannel", "td_background_top"); if ($_GET['tmp'] == "1") { $_infotext04 = getinfotext("Stempelzeit erfasst!", "td_background_heute"); } elseif ($_GET['tmp'] == "2") { $_infotext04 = getinfotext("Falscher Benutzername oder Passwort!", "td_background_top"); } else { $_infotext04 = getinfotext("Bitte Username und Passwort eingeben!", "td_background_top"); } $_template->_user01 = "sites_time/null.php"; $_template->_user02 = "sites_login/login_mehr_02.php"; $_template->_user03 = "sites_login/login_mehr_03.php"; $_template->_user04 = "sites_login/login_mehr_04.php"; break; case "login_einzel": $_template->_user01 = "sites_time/null.php"; $_template->_user02 = "sites_login/login_einzel_02.php"; if ($_GET['group'] == "-1") { $_template->_user03 = "sites_login/login_einzel_03.php"; } $_template->_user04 = "sites_login/login_einzel_04.php"; break; case "login":
* Copyright (c), IT-Master GmbH, All rights reserved *******************************************************************************/ if ($_GET["designname"] == "mobile") { ?> <script type="text/javascript"> $(document).ready(function() { $("#designwahl a").click(function() { alert("Eventuell die Seite nach der Auswahl des Designs mit F5 neu laden."); }); }); </script> <?php } echo getinfotext("Eventuell die Seite nach der Auswahl des Designs mit F5 neu laden.", "td_background_top"); echo "<hr>"; echo '<div id="designwahl">'; $ordner = "./templates"; $handle = opendir($ordner); while ($file = readdir($handle)) { if ($file != "." && $file != "..") { if ($_COOKIE["designname"] == "mobile") { echo '<a title="' . $file . '" href="?action=setdesign&designname=' . $file . '">'; } else { echo '<a title="' . $file . '" href="?action=setdesign&designname=' . $file . '">'; } echo "<img src='./templates/{$file}/images/background.jpg' width='100'>"; echo "</a> "; } }