<?php session_start(); set_include_path(get_include_path() . PATH_SEPARATOR . $_SERVER["DOCUMENT_ROOT"] . "/../" . "/libary"); require_once "general.php"; require_once "base.php"; BuildPageHead(2); ?> <h1 style="margin-left:auto;margin-right:auto;text-align:center;">Filme</h1> <table class="table" style="margin-left:auto;margin-right:auto;"> <thead> <th> Filmtitel </th> <th> Dauer in Minuten </th> <th> Preis in € </th> <th> Kurzbeschreibung </th> </thead> <tbody> <?php //Load Movie List require_once "getSqlConnection.php"; $sqlcon = getSqlCon();
// Row -> Nummeric 1- 3 digits // Row -> Nummeric 1- 4 digits BuildPageHead(4, ' <script> function validateForm() { var x = document.forms["HallForm"]["Name"].value; var isValid = true; var myReg = new RegExp(/^[A-Za-z1-9\\-_\\. öäüßÖÄÜ]+$/); if (x == null || x == "" || !myReg.test(x)) { isValid = false; } myReg = new RegExp(/^[0-9]{1,3}$/); x = document.forms["HallForm"]["Rows"].value; if (isValid && (x == null || x == "" || !myReg.test(x))) { isValid = false; } myReg = new RegExp(/^[0-9]{1,4}$/); x = document.forms["HallForm"]["Seats"].value; if (isValid && (x == null || x == "" || !myReg.test(x))) { isValid = false; } if(!isValid) $("#validateResult").show(); else $("#validateResult").hide(); return isValid; } </script> ', 1); //form for edit data + fill data for cinema hall and performace ?>
<?php session_start(); set_include_path(get_include_path() . PATH_SEPARATOR . $_SERVER["DOCUMENT_ROOT"] . "/../" . "/libary"); require_once "general.php"; require_once "base.php"; //check login state $IsLoggedID = isManagerLoggedIn(); if (!$IsLoggedID) { session_start(); $_SESSION["ReturnUrl"] = "/ManageOverview.php"; redirect("/login.php"); } BuildPageHead(4, '', 2); ?> <h1 style="margin-left:auto;margin-right:auto;text-align:center;">Mitarbeiter<button onclick="location.href='/editEmployee.php'">Hinzufügen</button></h1> <table class="table" style="margin-left:auto;margin-right:auto;"> <thead> <th> Benutzername </th> <th> Vorname </th> <th> Nachname </th> <th> E-Mail </th> <th>
session_start(); $_SESSION["ReturnUrl"] = $returnurl; } /* require_once("getSqlConnection.php"); $sqlcon = getSqlCon(); $x = $sqlcon->prepare("SELECT * From t_Land WHERE ID < ?"); $myval = 10; $x->bind_param("i", $myval); $x->execute(); $x->bind_result($res1, $res2); while($x->fetch()) { echo "$res1 - $res2 <br />"; }*/ BuildPageHead(0); ?> <div class="Teaser"> <div class="col1"> <br /><br /><br /> <div style="font-weight:800;color: #1acdc9;font-size: 2.8em;padding-bottom:20px;">STAR MOVIES</div> <div style="font-weight:300;color:#68696b;font-size:2.3em;">Watch the star, watch us.</div> <br /> <div style="font-family: Signika;font-style:normal;font-size: 1.25em;line-height:1.7em;"> <form id="LoginForm" action="<?php echo htmlspecialchars($_SERVER['PHP_SELF']); ?> " method="post"> <table> <tbody>
<?php session_start(); set_include_path(get_include_path() . PATH_SEPARATOR . $_SERVER["DOCUMENT_ROOT"] . "/../" . "/libary"); require_once "general.php"; require_once "base.php"; isLoggedIn(); BuildPageHead(1); ?> <div class="Teaser"> <div class="col1"> <br /><br /><br /> <div style="font-weight:800;color: #1acdc9;font-size: 2.8em;padding-bottom:20px;">STAR MOVIES</div> <div style="font-weight:300;color:#68696b;font-size:2.3em;">Watch the star, watch us.</div> <br /> <div style="font-family: Signika;font-style:normal;font-size: 1.25em;line-height:1.7em;"> Besuchen Sie Star Movies und erleben Sie Kino <br /> auf einen anderen Dimension.<br /> <!--Jetzt neu-->Bald verfügbar: Tickets bis zu einer Woche vor Reservieren!<br /> <a href="/" style="font-size: 0.8em;"> > MEHR INFO</a> </div> </div> <div class="col2"> <br /><br /> <img src="/Images/movie.png" width="400px" height="260px" alt="Movie Image" /> </div> </div> <div class="clear"></div> <br />
BuildPageHead(4, ' <script> function validateForm() { var x = document.forms["cinemaForm"]["Kinoname"].value; var isValid = true; var myReg = new RegExp(/^[A-Za-z1-9\\-_\\. öäüßÖÄÜ]+$/); if (x == null || x == "" || !myReg.test(x)) { isValid = false; } myReg = new RegExp(/^\\+|0[0-9\\- ]{9,15}$/); x = document.forms["cinemaForm"]["Tel"].value; if (isValid && (x == null || x == "" || !myReg.test(x))) { isValid = false; } myReg = new RegExp(/^[A-Za-z0-9\\.\\- öäüßÖÄÜ]+$/); x = document.forms["cinemaForm"]["Str"].value; if (isValid && (x == null || x == "" || !myReg.test(x))) { isValid = false; } myReg = new RegExp(/^[0-9]{4}$/); x = document.forms["cinemaForm"]["PLZ"].value; if (isValid && (x == null || x == "" || !myReg.test(x))) { isValid = false; } myReg = new RegExp(/^[A-Za-z \\-öäüßÖÄÜ]+$/); x = document.forms["cinemaForm"]["Ort"].value; if (isValid && (x == null || x == "" || !myReg.test(x))) { isValid = false; } if(!isValid) $("#validateResult").show(); else $("#validateResult").hide(); return isValid; } </script> ', 1);
<?php session_start(); set_include_path(get_include_path() . PATH_SEPARATOR . $_SERVER["DOCUMENT_ROOT"] . "/../" . "/libary"); require_once "general.php"; require_once "base.php"; //check for login $IsLoggedID = isManagerLoggedIn(); if (!$IsLoggedID) { session_start(); $_SESSION["ReturnUrl"] = "/ManageOverview.php"; redirect("/login.php"); } //load HTML head BuildPageHead(4, '', 3); //load HTMLTable for movies ?> <h1 style="margin-left:auto;margin-right:auto;text-align:center;">Filme<button onclick="location.href='/editMovie.php?id=$ID'">Hinzufügen</button></h1> <table class="table" style="margin-left:auto;margin-right:auto;"> <thead> <th> Filmtitel </th> <th> Dauer in Minuten </th> <th> Preis in € </th> <th> Kurzbeschreibung
} } //load HTML head and timehandle //Datepicker //Validator for BeginnTime -> hh:mm format BuildPageHead(4, '<link rel="stylesheet" href="/scripts/jqueryui/jquery-ui.min.css"> <script src="/scripts/jqueryui/jquery-ui.min.js"></script> <script> $(document).ready(function(){ $("#BeginnDate").datepicker(); $("#BeginnDate").datepicker("option", "dateFormat", "yy-mm-dd" ); $("#BeginnDate").datepicker("setDate", new Date("' . (isset($_GET["id"]) ? $datetime[0] : '') . '")); }); function validateForm() { var isValid = true; var myReg = new RegExp(/^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$/); x = document.forms["performaceForm"]["BeginnTime"].value; if (isValid && (x == null || x == "" || !myReg.test(x))) { isValid = false; } if(!isValid) $("#validateResult").show(); else $("#validateResult").hide(); return isValid; } </script>', 1); //form for edit data + fill data for performance ?> <form id="performaceForm" onsubmit="return validateForm()" action="<?php echo htmlspecialchars($_SERVER['PHP_SELF']); ?>
<?php session_start(); set_include_path(get_include_path() . PATH_SEPARATOR . $_SERVER["DOCUMENT_ROOT"] . "/../" . "/libary"); require_once "general.php"; require_once "base.php"; //load HTML head BuildPageHead(3); //table cinema overview ?> <h1 style="margin-left:auto;margin-right:auto;text-align:center;">Kinos</h1> <table class="table" style="margin-left:auto;margin-right:auto;"> <thead> <th> Kinoname </th> <th> Tel Nr. </th> <th> Straße </th> <th> PLZ </th> <th> Ort </th>
<?php session_start(); set_include_path(get_include_path() . PATH_SEPARATOR . $_SERVER["DOCUMENT_ROOT"] . "/../" . "/libary"); require_once "general.php"; require_once "base.php"; //check login state $IsLoggedID = isManagerLoggedIn(); if (!$IsLoggedID) { session_start(); $_SESSION["ReturnUrl"] = "/ManageOverview.php"; redirect("/login.php"); } BuildPageHead(4, '', 0); ?> <button onclick="location.href='/Kinouebersicht.php'">Kinos</button> <button onclick="location.href='/Mitarbeiter.php'">Mitarbeiter</button> <button onclick="location.href='/Filmuebersicht.php'">Filme</button> <?php BuildPageFoot();
<?php session_start(); set_include_path(get_include_path() . PATH_SEPARATOR . $_SERVER["DOCUMENT_ROOT"] . "/../" . "/libary"); require_once "general.php"; require_once "base.php"; //check login state $IsLoggedID = isManagerLoggedIn(); if (!$IsLoggedID) { session_start(); $_SESSION["ReturnUrl"] = "/ManageOverview.php"; redirect("/login.php"); } BuildPageHead(4, '', 1); ?> <h1 style="margin-left:auto;margin-right:auto;text-align:center;">Kinos<button onclick="location.href='/editCinema.php'">Hinzufügen</button></h1> <table class="table" style="margin-left:auto;margin-right:auto;"> <thead> <th> Kinoname </th> <th> Tel Nr. </th> <th> Straße </th> <th> PLZ </th> <th>
BuildPageHead(4, ' <script> function validateForm() { var myReg = new RegExp(/^[A-Za-z1-9\\-_]+$/); var x = document.forms["empForm"]["Benutzername"].value; var isValid = true; if (x == null || x == "" || !myReg.test(x)) { isValid = false; } myReg = new RegExp(/^(?=.{8,32})(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!\\{\\}@#$%^&+=]).*$/); x = document.forms["empForm"]["Passwort"].value; if (isValid && ((x != null && x != "" && !myReg.test(x)) || x != document.forms["empForm"]["PWRep"].value)) { isValid = false; } myReg = new RegExp(/^[-a-z0-9~!$%^&*_=+}{\'?]+(\\.[-a-z0-9~!$%^&*_=+}{\'?]+)*@([a-z0-9_][-a-z0-9_]*(\\.[-a-z0-9_]+)*\\.(aero|arpa|biz|com|coop|edu|gov|info|int|mil|museum|name|net|org|pro|travel|mobi|[a-z][a-z])|([0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}))(:[0-9]{1,5})?$/i); x = document.forms["empForm"]["EMail"].value; if (isValid && (x == null || x == "" || !myReg.test(x))) { isValid = false; } myReg = new RegExp(/^[A-Za-z0-9\\.\\- öäüßÖÄÜ]+$/); x = document.forms["empForm"]["Strasse"].value; if (isValid && (x == null || x == "" || !myReg.test(x))) { isValid = false; } myReg = new RegExp(/^[A-Za-z öäüßÖÄÜ]+$/); x = document.forms["empForm"]["Vorname"].value; if (isValid && (x == null || x == "" || !myReg.test(x))) { isValid = false; } myReg = new RegExp(/^[A-Za-z öäüßÖÄÜ]+$/); x = document.forms["empForm"]["Nachname"].value; if (isValid && (x == null || x == "" || !myReg.test(x))) { isValid = false; } myReg = new RegExp(/^[0-9]{4}$/); x = document.forms["empForm"]["PLZ"].value; if (isValid && (x == null || x == "" || !myReg.test(x))) { isValid = false; } myReg = new RegExp(/^[A-Za-z \\-öäüßÖÄÜ]+$/); x = document.forms["empForm"]["Ort"].value; if (isValid && (x == null || x == "" || !myReg.test(x))) { isValid = false; } if(!isValid) $("#validateResult").show(); else $("#validateResult").hide(); return isValid; } </script> ', 2);
//Validators for dauer -> number with 1 -4 digits // Titel -> not null or empty // Preis -> float 1-3.1-2 digits BuildPageHead(4, ' <script> function validateForm() { var x = document.forms["MovieForm"]["Titel"].value; var isValid = true; if (x == null || x == "") { isValid = false; } var myReg = new RegExp(/^\\d{1,4}$/); x = document.forms["MovieForm"]["Dauer"].value; if (isValid && (x == null || x == "" || !myReg.test(x))) { isValid = false; } myReg = new RegExp(/^\\d{1,3}(\\.\\d{1,2})?$/); x = document.forms["MovieForm"]["Preis"].value; if (isValid && (x == null || x == "" || !myReg.test(x))) { isValid = false; } if(!isValid) $("#validateResult").show(); else $("#validateResult").hide(); return isValid; } </script> ', 3); //Form for edit data + fill data for movie ?> <form id="MovieForm" onsubmit="return validateForm()" action="<?php