Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
53 changed files
with
2,164 additions
and
0 deletions.
There are no files selected for viewing
BIN
+186 Bytes
DjangoProject/Chatbot/__pycache__/__init__.cpython-37.pyc
Binary file not shown.
BIN
+227 Bytes
DjangoProject/Chatbot/__pycache__/admin.cpython-37.pyc
Binary file not shown.
BIN
+404 Bytes
DjangoProject/Chatbot/__pycache__/apps.cpython-37.pyc
Binary file not shown.
BIN
+224 Bytes
DjangoProject/Chatbot/__pycache__/models.cpython-37.pyc
Binary file not shown.
BIN
+615 Bytes
DjangoProject/Chatbot/__pycache__/urls.cpython-37.pyc
Binary file not shown.
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,3 @@ | ||
from django.contrib import admin | ||
|
||
# Register your models here. |
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,5 @@ | ||
from django.apps import AppConfig | ||
|
||
|
||
class ChatbotConfig(AppConfig): | ||
name = 'Chatbot' |
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,3 @@ | ||
from django.db import models | ||
|
||
# Create your models here. |
BIN
+43.6 KB
DjangoProject/Chatbot/static/ContactIcon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN
+12 KB
DjangoProject/Chatbot/static/DiscordIcon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,139 @@ | ||
body | ||
{ | ||
background-color:#dedede; | ||
color: #000000; | ||
} | ||
|
||
#container { | ||
width: 1200px; | ||
height: 1100px; | ||
margin: auto; | ||
border:thick blue solid; | ||
background-color: black; | ||
} | ||
|
||
#title { | ||
font-family: 'Times New Roman', Times, serif; | ||
width: 1300px; | ||
height: 50px; | ||
text-align: center; | ||
} | ||
|
||
#TextContainer { | ||
background-color: black; | ||
border: thick solid black; | ||
font-family: 'Times New Roman', Times, serif; | ||
width: 910px; | ||
height: 362px; | ||
float: right; | ||
} | ||
|
||
#nav { | ||
height: 40px; | ||
border-bottom: thick #03BAFC solid; | ||
} | ||
nav { | ||
margin: 0; | ||
padding: 0; | ||
background: #03BAFC url(nav_bg.jpg) 0 0 repeat-x; | ||
width: 100%; | ||
float: left; | ||
border: 1px solid black; | ||
border-width: 1px 0; | ||
} | ||
nav li { | ||
display:inline; | ||
padding:0; | ||
margin:0; | ||
} | ||
nav a:link, | ||
nav a:visited { | ||
color: white; | ||
background: #03BAFC; | ||
padding: 20px 180px 10px 180px; | ||
float: left; | ||
width: auto; | ||
border-right: 1px solid black; | ||
text-decoration: none; | ||
font: bold 1em/1em Arial, Helvetica, sans-serif; | ||
text-transform: uppercase; | ||
text-shadow: 2px 2px 2px #555; | ||
} | ||
nav a:hover { | ||
color:white; | ||
background:black; | ||
} | ||
nav li:first-child a { | ||
border-left:1px solid black; | ||
} | ||
#home #nav-home a, | ||
#about #nav-about a, | ||
#archive #nav-archive a, | ||
#lab #nav-lab a, | ||
#reviews #nav-reviews a, | ||
#contact #nav-contact a { | ||
background:Black; | ||
color:#fff; | ||
text-shadow:none; | ||
} | ||
#home #nav-home a:hover, | ||
#about #nav-about a:hover, | ||
#archive #nav-archive a:hover, | ||
#lab #nav-lab a:hover, | ||
#reviews #nav-reviews a:hover, | ||
#contact #nav-contact a:hover { | ||
background:black; | ||
} | ||
nav a:active { | ||
background: White; | ||
color: #fff; | ||
} | ||
|
||
input[type=text], input[type=password] { | ||
width: 100%; | ||
padding: 12px 20px; | ||
margin: 8px 0; | ||
display: inline-block; | ||
border: 1px solid #ccc; | ||
box-sizing: border-box; | ||
} | ||
|
||
button { | ||
background-color: #03BAFC; | ||
color: white; | ||
padding: 14px 20px; | ||
margin: 8px 0; | ||
border: none; | ||
cursor: pointer; | ||
width: 100%; | ||
} | ||
|
||
.loginbutn { | ||
width: 100%; | ||
} | ||
|
||
.cancelbtn { | ||
padding: 14px 20px; | ||
background-color: #f44336; | ||
} | ||
|
||
.cancelbtn, .signupbtn { | ||
float: left; | ||
width: 50%; | ||
} | ||
|
||
.clearfix::after { | ||
content: ""; | ||
clear: both; | ||
display: table; | ||
} | ||
|
||
.spaceforlogin { | ||
padding: 16px; | ||
} | ||
|
||
@media screen and (max-width: 300px) { | ||
.cancelbtn, .signupbtn { | ||
width: 100%; | ||
} | ||
} |
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,51 @@ | ||
{% load static from staticfiles%} | ||
|
||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="description" content="Login Page for Students" /> | ||
<meta name="author" content="Mohammed Danyal" /> | ||
<link rel="stylesheet" type="text/css" href="{% static 'css/style.css' %}"> | ||
<title>Student Login</title> | ||
</head> | ||
<body> | ||
<script lanugage="javascript"> | ||
function LogSuccess() | ||
{ | ||
alert("You have successfully logged in"); | ||
} | ||
</script> | ||
|
||
<div id="title"> | ||
<b><font color="black" size="6">Student Login</font></b> | ||
</div> | ||
|
||
<div id="nav"> | ||
<nav> | ||
<a href="/../">Home</a> | ||
<a href="/TeacherLogin/">Teachers</a> | ||
<a href="/StudentLogin/">Students</a> | ||
</nav> | ||
</div> | ||
</br> | ||
</br> | ||
|
||
<label><font color="black"><b>Username</b></font></label> | ||
<input type="text" placeholder="Enter Username" name="Username" required> | ||
|
||
<label><font color="black"><b>Password</b></font></label> | ||
<input type="password" placeholder="Enter Password" name="psw" required> | ||
|
||
<input type="checkbox" checked="checked"> | ||
<font color="black"> | ||
Remember me | ||
</br> | ||
Not a user ? .<a href="/StudentReg/">Click Here</a> | ||
</font> | ||
|
||
<button type="submit" class="loginbtn" onclick="LogSuccess()">Login</button> | ||
|
||
|
||
</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,75 @@ | ||
{% load static from staticfiles%} | ||
|
||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="description" content="Registartion Page for Students" /> | ||
<meta name="author" content="Mohammed Danyal" /> | ||
<link rel="stylesheet" type="text/css" href="{% static 'css/style.css' %}"> | ||
<title>Student Registration</title> | ||
</head> | ||
<body> | ||
<script lanugage="javascript"> | ||
function RegSuccess() | ||
{ | ||
alert("You have successfully registered"); | ||
} | ||
function populateField_SearchPt() | ||
{ | ||
var inputId = document.getElementById("Question").value; //we get the user input value and put it in a var | ||
|
||
var xhttp = new XMLHttpRequest(); | ||
xhttp.open("GET", "testFile.php" + inputId, true); // we're passing the hId to the server as a parameter | ||
xhttp.onreadystatechange = function() | ||
{ | ||
if (this.readyState == 4 && this.status == 200) | ||
{ | ||
document.getElementById("Username").value = this.responseText; | ||
} | ||
}; | ||
xhttp.send(); | ||
|
||
} | ||
</script> | ||
|
||
<div id="title"> | ||
<b><font color="black" size="6">Student Registration</font></b> | ||
</div> | ||
|
||
<div id="nav"> | ||
<nav> | ||
<a href="/../">Home</a> | ||
<a href="/TeacherLogin/">Teachers</a> | ||
<a href="/StudentLogin/">Students</a> | ||
</nav> | ||
</div> | ||
</br> | ||
</br> | ||
<form method="post" action="testFile.php" name="ClaimForm" id="ClaimForm" autocomplete="on"> | ||
<label><font color="black"><b>Username</b></font></label> | ||
<input type="text" id="Question" placeholder="Enter Username" name="Username" required> | ||
|
||
<label><font color="black"><b>Email</b></font></label> | ||
<input type="text" placeholder="Enter Email" name="email" required> | ||
|
||
<label><font color="black"><b>Password</b></font></label> | ||
<input type="password" placeholder="Enter Password" name="psw" required> | ||
|
||
<label><font color="black"><b>Repeat Password</b></font></label> | ||
<input type="password" placeholder="Repeat Password" name="psw-repeat" required> | ||
<input type="checkbox" checked="checked"> | ||
<font color="black"> | ||
Remember me | ||
<p>By creating an account you agree to our <a href="/TermsAndPolicy/">Terms & Privacy</a>.</p> | ||
</font> | ||
|
||
<div class="clearfix"> | ||
<button type="button" class="cancelbtn">Cancel</button> | ||
<button type="submit" class="signupbtn" onclick="populateField_SearchPt">Sign Up</button> | ||
</div> | ||
</form> | ||
|
||
|
||
</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,51 @@ | ||
{% load static from staticfiles%} | ||
|
||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="description" content="Login Page for Teachers" /> | ||
<meta name="author" content="Mohammed Danyal" /> | ||
<link rel="stylesheet" type="text/css" href="{% static 'css/style.css' %}"> | ||
<title>Teacher Login</title> | ||
</head> | ||
<body> | ||
<script lanugage="javascript"> | ||
function LogSuccess() | ||
{ | ||
alert("You have successfully logged in"); | ||
} | ||
</script> | ||
|
||
<div id="title"> | ||
<b><font color="black" size="6">Teacher Login</font></b> | ||
</div> | ||
|
||
<div id="nav"> | ||
<nav> | ||
<a href="/../">Home</a> | ||
<a href="/TeacherLogin/">Teachers</a> | ||
<a href="/StudentLogin/">Students</a> | ||
</nav> | ||
</div> | ||
</br> | ||
</br> | ||
|
||
<label><font color="black"><b>Username</b></font></label> | ||
<input type="text" placeholder="Enter Username" name="Username" required> | ||
|
||
<label><font color="black"><b>Password</b></font></label> | ||
<input type="password" placeholder="Enter Password" name="psw" required> | ||
|
||
<input type="checkbox" checked="checked"> | ||
<font color="black"> | ||
Remember me | ||
</br> | ||
Not a user ? .<a href="/TeacherReg/">Click Here</a> | ||
</font> | ||
|
||
<button type="submit" class="loginbtn" onclick="LogSuccess()">Login</button> | ||
|
||
|
||
</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,58 @@ | ||
{% load static from staticfiles%} | ||
|
||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="description" content="Registartion Page for Teachers" /> | ||
<meta name="author" content="Mohammed Danyal" /> | ||
<link rel="stylesheet" type="text/css" href="{% static 'css/style.css' %}"> | ||
<title>Teacher Registration</title> | ||
</head> | ||
<body> | ||
|
||
<script lanugage="javascript"> | ||
function RegSuccess() | ||
{ | ||
alert("You have successfully registered"); | ||
} | ||
</script> | ||
|
||
<div id="title"> | ||
<b><font color="black" size="6">Teacher Registration</font></b> | ||
</div> | ||
|
||
<div id="nav"> | ||
<nav> | ||
<a href="/../">Home</a> | ||
<a href="/TeacherLogin/">Teachers</a> | ||
<a href="/StudentLogin/">Students</a> | ||
</nav> | ||
</div> | ||
</br> | ||
</br> | ||
<label><font color="black"><b>Username</b></font></label> | ||
<input type="text" placeholder="Enter Username" name="Username" required> | ||
|
||
<label><font color="black"><b>Email</b></font></label> | ||
<input type="text" placeholder="Enter Email" name="email" required> | ||
|
||
<label><font color="black"><b>Password</b></font></label> | ||
<input type="password" placeholder="Enter Password" name="psw" required> | ||
|
||
<label><font color="black"><b>Repeat Password</b></font></label> | ||
<input type="password" placeholder="Repeat Password" name="psw-repeat" required> | ||
<input type="checkbox" checked="checked"> | ||
<font color="black"> | ||
Remember me | ||
<p>By creating an account you agree to our <a href="/TermsAndPolicy/">Terms & Privacy</a>.</p> | ||
</font> | ||
|
||
<div class="clearfix"> | ||
<button type="button" class="cancelbtn">Cancel</button> | ||
<button type="submit" class="signupbtn" onclick="RegSuccess()">Sign Up</button> | ||
</div> | ||
|
||
|
||
</body> | ||
</html> |
Oops, something went wrong.