Skip to content

Commit

Permalink
Done
Browse files Browse the repository at this point in the history
  • Loading branch information
kienltgcc19138 committed Apr 13, 2023
1 parent ad1a7b1 commit 2c9a426
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 37 deletions.
Binary file modified .DS_Store
Binary file not shown.
15 changes: 8 additions & 7 deletions Staff_PostIdeas.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,11 @@
<div class="col-lg-6">
<!-- Create Idea Form -->
<div class="bg-light p-3 text-center mb-3">
<form>
<form class="text-start">
<!-- head -->
<div class="modal-header bg-primary text-white bg-white">
<h5 class="modal-title" id="exampleModalLabel">
Submit Your Ideas for Topic 1
<div class="modal-header bg-primary text-white bg-white mx-auto">
<h5 class="modal-title text-primary" id="exampleModalLabel">
Submit Your Ideas for Topic
</h5>
</div>
<!-- body -->
Expand Down Expand Up @@ -136,8 +136,7 @@
<!-- agree to terms and conditions -->
<input type="checkbox" class="form-check-input" id="terms" required>
<label class="form-check-label" for="terms">
I agree to the <a href="#" data-bs-toggle="modal" data-bs-target="#termsModal" class="text-primary">terms and
conditions</a>
I agree to the <a href="#" data-bs-toggle="modal" data-bs-target="#termsModal" class="text-primary">terms and conditions</a>
</label>
</div>
</div>
Expand All @@ -148,6 +147,7 @@
</form>
</div>


<!-- terms and conditions modal -->
<div class="modal fade" id="termsModal" tabindex="-1" aria-labelledby="termsModalLabel" aria-hidden="true" data-bs-backdrop="false">
<div class="modal-dialog modal-dialog-centered modal-lg">
Expand Down Expand Up @@ -198,7 +198,7 @@
</div>

<!-- Post -->
<div class="col-lg-6 bg-white" style="height: 200px;">
<div class="col-lg-6 bg-white" style="height: 230px;">
<div class="d-flex justify-content-between align-items-center">
<!-- avatar -->
<div class="d-flex align-items-center">
Expand Down Expand Up @@ -240,6 +240,7 @@ class="rounded-circle me-2"
</div>

</div>

</div>
</div>
</div>
Expand Down
Binary file added database/.DS_Store
Binary file not shown.
47 changes: 38 additions & 9 deletions database/db_ideas.sql
Original file line number Diff line number Diff line change
@@ -1,3 +1,32 @@
-- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Apr 13, 2023 at 05:21 PM
-- Server version: 10.4.19-MariaDB
-- PHP Version: 7.4.20

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;

--
-- Database: `db_ideas`
--

-- --------------------------------------------------------

--
-- Table structure for table `document`
--

CREATE TABLE Role
(
RoleID INT PRIMARY KEY AUTO_INCREMENT,
Expand Down Expand Up @@ -42,12 +71,12 @@ CREATE TABLE Topic
CREATE TABLE Idea
(
IdeaID INT PRIMARY KEY AUTO_INCREMENT,
Title VARCHAR(100) NOT NULL,
Content TEXT NOT NULL,
is_anonymous BOOLEAN NOT NULL default FALSE,
PostDate DATETIME NOT NULL,
StaffID INT NOT NULL,
TopicID INT NOT NULL,
Title VARCHAR(100) NOT NULL,
Content LONGTEXT NOT NULL,
is_anonymous BOOLEAN NOT NULL default FALSE,
PostDate DATETIME NOT NULL,
StaffID INT NOT NULL,
TopicID INT NOT NULL,
FOREIGN KEY (StaffID) REFERENCES Staff (StaffID),
FOREIGN KEY (TopicID) REFERENCES Topic (TopicID)
);
Expand All @@ -73,11 +102,11 @@ CREATE TABLE Vote
CREATE TABLE Comment
(
CommentID INT PRIMARY KEY AUTO_INCREMENT,
CommentContent VARCHAR(500) NOT NULL,
CommentContent VARCHAR(1000) NOT NULL,
StaffID INT NOT NULL,
IdeaID INT NOT NULL,
is_anonymous BOOLEAN NOT NULL default FALSE,
CommentDate DATETIME NOT NULL,
CommentDate DATETIME NOT NULL,
FOREIGN KEY (StaffID) REFERENCES Staff (StaffID),
FOREIGN KEY (IdeaID) REFERENCES Idea (IdeaID)
);
Expand All @@ -100,7 +129,7 @@ VALUES (1, 'Quality Assurance Manager (QAM)'),
INSERT INTO Staff (StaffID, FullName, Email, Password, RoleID, DepartmentID)
VALUES (1, 'QAM', '[email protected]', '$2y$10$aUaqeyUNjiSTgi44hJxRCOoHYscBb669g1MGlP.oFJYBFW2pm0hAG', 1, 1),
(2, 'QAC', '[email protected]', '$2y$10$pjaXpyOBJ9Y964u7E4GWv.wy2IMbLdhd/Wj9vSmw4o/UxI8ya6V2C', 2, 1),
(3, 'Biran Lee', '[email protected]', '$2y$10$FlkAQm89yKb4/sOpNEM8UOkPxu.deAdb4vFRq6OAs74aaG5F7vIOu', 3,
(3, 'Biran Lee', '[email protected]', '$2y$10$FlkAQm89yKb4/sOpNEM8UOkPxu.deAdb4vFRq6OAs74aaG5F7vIOu', 3,
2),
(4, 'Le Trung Kien', '[email protected]', '$2y$10$jukBN3dfGBBjR2RsYz9geuZsbUwPMZnVbb1H7Cj1IoaG0jYMOdciy', 3,
3);
11 changes: 3 additions & 8 deletions footer.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
<!-- ================= Footer ================= -->
<footer class="bg-white d-flex align-items-center fixed-bottom shadow">
<footer class="bg-white d-flex align-items-center shadow" style="position: fixed; bottom: 0; left: 0; right: 0;">
<div class="container">
<div class="row">
<div class="col-md-12 text-center" style="margin-top: 20px;">
<!-- terms -->
<div
">
<p>
Privacy &#8226; Terms &#8226; Ideas Uni © 2024. Developed by Group LVKP. All rights reserved.
Privacy &#8226; Terms &#8226; Ideas Uni &copy; 2024. Developed by Group LVKP. All rights reserved.
</p>
</div>
</div>
</div>
</div>
</footer>
</footer>
13 changes: 0 additions & 13 deletions header.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,6 @@
<div class="col d-flex align-items-center">
<!--logo -->
<img class="logoImage" src="./img/logo.png" alt="University of Greenwich">
<!-- search bar -->
<div class="input-group ms-2">
<li class="p-1 d-flex">
<div class="input-group-text bg-gray border-0 rounded-pill"
style="min-height: 40px; min-width: 300px;">
<i class="fas fa-search me-2 text-muted"></i>
<input type="text" class="form-control rounded-pill border-0 bg-gray"
placeholder="Search Ideas ..." id="searchInput">
<button class="btn btn-outline-secondary border-0 rounded-circle" type="button"
id="clearSearch"><i class="fas fa-times"></i></button>
</div>
</li>
</div>
</div>
<script>
// Clear search input when X button is clicked
Expand Down

0 comments on commit 2c9a426

Please sign in to comment.