56 lines
1.5 KiB
PHP
56 lines
1.5 KiB
PHP
<?php
|
|
include 'functions.php';
|
|
date_default_timezone_set('Europe/Amsterdam');
|
|
?>
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<!-- enable utf-8 encoding for umlauts etc.-->
|
|
<meta charset="utf-8">
|
|
<!-- Description of what this dose -->
|
|
<meta name ="viewport" content="width=device-width, initial-scale=1">
|
|
<!-- link to the default css file -->
|
|
<link rel="stylesheet" href="css/stylesheet.css"/>
|
|
</head>
|
|
|
|
<body>
|
|
<div>
|
|
<div>
|
|
<header>
|
|
<!-- The title begins here -->
|
|
<h1>Board</h1>
|
|
<!--The Title ends here -->
|
|
|
|
<!-- The sidebar naviagtion begins here -->
|
|
<nav>
|
|
<?php
|
|
include 'navigation.php';
|
|
?>
|
|
</nav>
|
|
<!-- The sidebar naviagtion ends here -->
|
|
</header>
|
|
</div>
|
|
<!-- The Post function begins here -->
|
|
<div>
|
|
|
|
<h2>Neuer Eintrag</h2>
|
|
|
|
<?php
|
|
|
|
echo
|
|
"<form class= 'post-box p' method='POST' action='".pbinsert($con)."'> <br /> Maximum<br/>
|
|
<input type='hidden' name='userId' value=''>
|
|
<input type='number' name='piecesMax' value='' > <br /> Minimum<br/>
|
|
<input type='number' name='piecesMin' value='' > <br />
|
|
<input type='hidden' name='date' value='".date('Y-m-d H:i:s')."'>
|
|
<br /> Produktbeschreibung<br/>
|
|
<textarea rows='6' cols='40' name='text'></textarea><br />
|
|
<button type='submit' name='submit'>SUBMIT</button>
|
|
</form>";
|
|
pbget($con);
|
|
?>
|
|
|
|
</div>
|
|
</body>
|
|
</html>
|