-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit fb72537
Showing
10 changed files
with
281 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<link rel="icon" href="favicon.ico"> | ||
<link rel="stylesheet" type="text/css" href="./css/main.css"> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Document</title> | ||
</head> | ||
<body> | ||
<div class="wrapper"> | ||
<div class="container"> | ||
<h2>Gastro</h2> | ||
<ul> | ||
<li><a href="shoppinglist.php">Shoppinglist</a></li> | ||
<li><a href="recipes.php">Recipes</a></li> | ||
<li><a href="menu_manager.php">Menu Manager</a></li> | ||
<li><a href="menu.php">Menükarte</a></li> | ||
</ul> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
|
||
<link rel="icon" href="favicon.ico"> | ||
<link rel="stylesheet" type="text/css" href="./css/main.css"> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Document</title> | ||
</head> | ||
<body> | ||
<div id="menu_container"></div> | ||
<script src="./js/generatemenu.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<link rel="icon" href="favicon.ico"> | ||
<link rel="stylesheet" type="text/css" href="./css/main.css"> | ||
|
||
<meta charset="UTF-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Document</title> | ||
</head> | ||
<?php | ||
|
||
if (!file_exists("./data/menu.json")) { | ||
file_put_contents("./data/menu.json", ""); | ||
} | ||
|
||
?> | ||
<body> | ||
<div class="wrapper"> | ||
<div class="container"> | ||
<script> | ||
document.write('<a href="' + document.referrer + '">zurück</a>'); | ||
</script> | ||
|
||
<h2>Menü-Kategorie:</h2> | ||
<select id="category"></select> | ||
<p id="recipe_title"><b>Rezept auswählen:</b></p> | ||
<select id="recipes"> | ||
|
||
</select> | ||
<ul> | ||
</ul> | ||
<div class="content"> | ||
|
||
</div> | ||
|
||
</div> | ||
|
||
</div> | ||
<script src="./js/functions.js"></script> | ||
<script src="./js/getJsonData.js"></script> | ||
|
||
<script src="./js/menu.js"></script> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<div> | ||
<!-- <h2 id="recipe_name"></h2> --> | ||
<b>Zutaten:</b> | ||
<table id="ingredients"> | ||
|
||
</table> | ||
|
||
<fieldset> | ||
<legend>Beschreibung:</legend> | ||
<textarea class="input_inactive" id="cooking" readonly></textarea> | ||
</fieldset> | ||
|
||
<fieldset> | ||
<legend>(Allergie-) Hinweise:</legend> | ||
<div class="notes"> | ||
<textarea class="input_inactive" id="recipe_notes" readonly></textarea> | ||
</div> | ||
</fieldset> | ||
|
||
</div> | ||
<button type="submit" class="edit" id="edit">Rezept bearbeiten</button> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<div> | ||
|
||
<fieldset> | ||
<legend>Titel:</legend> | ||
<div> | ||
<input type="text" readonly="true" class="input_inactive" id="recipe_name"></input> | ||
<div class="edit_link">bearbeiten</div> | ||
</div> | ||
</fieldset> | ||
|
||
<fieldset> | ||
<legend>Zutaten:</legend> | ||
<table id="ingredients"></table> | ||
<div id="addIngredient"> | ||
<p><b>Neue Zutat hinzufügen:</b></p> | ||
<input type="text" id="input_amount" placeholder="Menge/Einheit"> | ||
<input type="text" id="input_ingredient" placeholder="Zutat"> | ||
<button type="submit" class="save" id="save_ingredient">Zutat hinzufügen/ändern</button> | ||
</div> | ||
</fieldset> | ||
|
||
<fieldset> | ||
<legend>Notiz/Hinweise:</legend> | ||
<div class="notes"> | ||
<textarea readonly="true" class="input_inactive" id="recipe_notes"></textarea> | ||
<div class="edit_link">bearbeiten</div> | ||
</div> | ||
</fieldset> | ||
|
||
<fieldset> | ||
<legend>Zubereitung:</legend> | ||
<textarea readonly="true" class="input_inactive" id="cooking"></textarea> | ||
<div class="edit_link">bearbeiten</div> | ||
</fieldset> | ||
</div> | ||
<button type="submit" class="delete" id="btn_delete_recipe">Rezept löschen</button> | ||
<button type="submit" class="close" id="close">Schließen</button> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<div> | ||
|
||
<fieldset> | ||
<legend>Titel:</legend> | ||
<div> | ||
<input type="text" class="input_inactive" id="recipe_name"></input> | ||
</div> | ||
</fieldset> | ||
|
||
<fieldset> | ||
<legend>Zutaten:</legend> | ||
<table id="ingredients"></table> | ||
<div id="addIngredient"> | ||
<p><b>Neue Zutat hinzufügen:</b></p> | ||
<input type="text" id="input_amount" placeholder="Menge/Einheit"> | ||
<input type="text" id="input_ingredient" placeholder="Zutat"> | ||
<button type="submit" class="save" id="save_ingredient">Zutat hinzufügen/ändern</button> | ||
</div> | ||
</fieldset> | ||
|
||
<fieldset> | ||
<legend>Notiz/Hinweise:</legend> | ||
<div class="notes"> | ||
<textarea class="input_inactive" id="recipe_notes"></textarea> | ||
</div> | ||
</fieldset> | ||
|
||
<fieldset> | ||
<legend>Zubereitung:</legend> | ||
<textarea class="input_inactive" id="cooking"></textarea> | ||
</fieldset> | ||
</div> | ||
<button type="submit" class="save" id="save_new_recipe">Rezept Speichern</button> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<link rel="icon" href="favicon.ico"> | ||
<link rel="stylesheet" type="text/css" href="./css/main.css"> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Document</title> | ||
</head> | ||
<body> | ||
<div class="wrapper"> | ||
<div class="container"> | ||
<script> | ||
document.write('<a href="' + document.referrer + '">zurück</a>'); | ||
</script> | ||
<h2>Rezepte für</h2> | ||
<select id="category"></select> | ||
<p id="recipe_title"><b>Ausgewähltes Rezept:</b></p> | ||
<select id="recipes"> | ||
</select> | ||
<ul> | ||
</ul> | ||
<div class="content"> | ||
</div> | ||
<button type="submit" id="addRecipe">Neues Rezept hinzufügen</button> | ||
</div> | ||
</div> | ||
<script src="./js/functions.js"></script> | ||
<script src="./js/getJsonData.js"></script> | ||
<script src="./js/recipes.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<link rel="icon" href="favicon.ico"> | ||
<link rel="stylesheet" type="text/css" href="./css/main.css"> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Document</title> | ||
</head> | ||
<body> | ||
<div class="wrapper"> | ||
<div class="container"> | ||
<script> | ||
document.write('<a href="' + document.referrer + '">zurück</a>'); | ||
</script> | ||
<h2>Einkaufsliste für</h2> | ||
<select id="category"></select> | ||
<ul class="shoppinglist"> | ||
</ul> | ||
<fieldset> | ||
<legend>Neuen Einkauf hinzufügen</legend> | ||
<div class="inputform"> | ||
<input type="text" id="item" placeholder="Artikelname"> | ||
<input id="amount" type="number" min="1" max="999" value="1" /> | ||
</div> | ||
<button type="submit" id="addItem">Einkauf hinzufügen</button> | ||
<button type="submit" class="hidden save" id="save">Änderungen Speichern</button> | ||
</fieldset> | ||
</div> | ||
</div> | ||
<script src="./js/getJsonData.js"></script> | ||
<script src="./js/shoppinglist.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
$myPost = file_get_contents('php://input'); | ||
$action = $_GET['action']; | ||
|
||
$filename = '../gastro/data/' . $action . '.json'; | ||
|
||
if (!file_exists($filename)) { | ||
file_put_contents($filename, $myPost); | ||
} else { | ||
$myFile = fopen($filename, 'w'); | ||
fwrite($myFile,$myPost); | ||
fclose($myFile); | ||
} | ||
echo $myPost; | ||
?> |