Game-Jaming/Backend/Main.php

39 lines
1007 B
PHP
Raw Normal View History

2021-03-02 11:40:44 +00:00
<?php
2021-03-03 11:56:14 +00:00
use Backend\Models\GameJam;
2021-03-04 09:19:58 +00:00
2021-03-12 10:10:14 +00:00
require_once('../bootstrap.php');
2021-03-03 11:48:49 +00:00
2021-03-03 11:56:14 +00:00
$gameJam = GameJam::firstOrCreate([
2021-03-08 13:20:56 +00:00
'name' => "First game jam ever!", 'start_time' => "2021-03-03T12:40", 'end_time' => "2021-04-03T12:40", 'description' => "Det her et en beskrivelse"
2021-03-03 11:48:49 +00:00
]);
2021-03-04 09:19:58 +00:00
2021-03-04 12:13:07 +00:00
?>
<!DOCTYPE html>
<html>
<title>HTML Tutorial</title>
<body>
2021-03-09 12:54:20 +00:00
<form action="Controllers/Group/SigningUp.php" method="POST">
2021-03-04 12:13:07 +00:00
<input type="text" name="groupName" placeholder="Group name">
<input type="number" name="groupAmount" placeholder="Group Amount">
<input type="number" name="gameJamId" placeholder="Game Jam id">
2021-03-12 10:10:14 +00:00
<input type="password" name="password" placeholder="password">
2021-03-11 12:20:10 +00:00
<input type="submit" name="regGroup" value="Register">
2021-03-04 12:13:07 +00:00
</form>
2021-03-09 12:54:20 +00:00
<form action="Controllers/Group/Login.php" method="POST">
2021-03-04 12:13:07 +00:00
<input type="text" name="groupName" placeholder="Group name">
<input type="password" name="password" placeholder="password">
<input type="submit" name="login" value="login">
</form>
2021-03-04 13:12:14 +00:00
2021-03-04 12:13:07 +00:00
</body>
</html>