Skip to content
Snippets Groups Projects
Commit c680c8e9 authored by Genvictus's avatar Genvictus
Browse files

rfc: fix pages

parent 1d66ed63
Branches
Tags
No related merge requests found
<?php
require_once SRC_ROOT_PATH . "/app/baseclasses/BaseController.php";
require_once SRC_ROOT_PATH . "/app/controllers/Post/PostController.php";
class ComposePage extends BaseController{
protected static $instance;
public function __construct(){
parent::__construct(null);
public function __construct($srv){
parent::__construct($srv);
}
public static function getInstance(){
if(!isset(self::$instance)){
self::$instance = new static();
self::$instance = new static(
PostController::getInstance()
);
}
return self::$instance;
}
public function post($urlParams)
{
$srv->post();
require PAGE_PATH . "/submission.php";
exit();
}
public function get($urlParams)
{
require PAGE_PATH . "/post.php";
......
......@@ -11,9 +11,9 @@
<body>
<section id="overlay">
<img src="/public/assets/github_post_logo.jpg" alt="Github Logo" id="logo">
<img src="/public/assets/Logo.png" alt="Kicau Logo" id="logo">
<hr>
<form action="submission.php" method="POST">
<form action="create" method="POST">
<h1>Create a post!</h1>
<section class="text-input">
<label for="textarea-input">Type in the box below:</label>
......@@ -22,21 +22,11 @@
</section>
<br>
<section class="image">
<label for="image-input">Select an image file:</label>
<input type="file" id="image-input" name="image-input">
<section class="file">
<label for="file-input">Select a file:</label>
<input type="file" id="file-input" name="image-input">
</section>
<hr>
<section class="video">
<label for="video-input">Select a video file:</label>
<input type="file" id="video-input" name="video-input">
</section>
<hr>
<section class="audio">
<label for="audio-input">Select an audio file:</label>
<input type="file" id="audio-input" name="audio-input">
</section>
<br>
<section class="submission">
<input type="submit" value="Post">
......
......@@ -3,14 +3,14 @@
<head>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="public/css/post.css">
<link rel="stylesheet" type="text/css" href="/public/css/post.css">
<link href="https://fonts.googleapis.com/css?family=Rubik" rel="stylesheet">
<title>Post Review</title>
</head>
<body>
<section id="overlay">
<img src="public/assets/github_post_logo.jpg" alt="Github Logo" id="logo">
<img src="/public/assets/github_post_logo.jpg" alt="Github Logo" id="logo">
<hr>
<h1>You have made a new post!</h1>
</section>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment