Computer Report
Computer Report
Description
This is the index page of the of kasiya website which is specifically used to log in into the website if someone has
already have an account, in order to log in, a person is required to enter their username and password to confirm that
he/she is the owner of the account. If someone does not have an account, it directs or gives an opportunity to go to
sign up page.
<head> }
*{ .topnav a {
} display: block;
} }
background: mediumseagreen; }
} width: 75%;
1
.rightcolumn { }
} background: #ddd;
backgroud-image:url('wow.jpg'); }
background-size:cover/* or contain,or specify a size /* Responsive layout - when the screen is less than
value*/ 800px wide, make the two columns stack on top of
each other instead of next to each other */
background-repeat:no-repear;/*optionalto prevent the
imagefromrepeating*/ @media screen and (max-width: 800px) {
} padding: 0;
.wow.jpg { }
background-color: #aaa; }
2
<form ACTION="login.php" METHOD="POST"> $password = $_POST['password'];
<div> if ($conn->connect_error) {
</form>
$stmt->close();
</body>
} else {
</html>
echo "Database selection failed: " .
mysqli_error($conn);
$conn->close();
<?php }
3
Display
4
Sign up page
Description
This sign up page is used to register an account and have access to the website. Sign up requires to enter the
following; the first name, last name, phone number, address and password. If at all, someone have an account
already after enter the requirement it direct to login instead.
<head>
}
<title>SIGNUP PAGE
</title>
/* Style the top navigation bar */
<style>
.topnav {
*{
overflow: hidden;
box-sizing: border-box;
background-color:pink;
}
}
body {
/* Style the topnav links */
font-family: Times New Roman;
.topnav a {
padding: 10px;
float: left;
background: lightgreen;
display: block;
}
color: #f2f2f2;
text-align: center;
/* Header/Blog Title */
padding: 14px 16px;
.header {
text-decoration: none;
padding: 30px;
}
text-align: center;
background: blue;
/* Change color on hover */
}
.topnav a:hover {
background-color: red;
.header h1 {
color: blue;
font-size: 50px;
}
5
/* Add a card effect for articles */
}
/* Clear floats after the columns */
.row::after {
/* Right column */
content: "";
.rightcolumn {
display: table;
float: left;
clear: both;
width: 25%;
}
background-color: #f1f1f1;
padding-left: 20px;
/* Footer */
}
.footer {
padding: 20px;
.element{
text-align: center;
backgroud-image:url('wow.jpg');
background: #ddd;
background-size:cover/* or contain,or specify a size
margin-top: 20px;
value*/
}
background-repeat:no-repear;/*optionalto prevent the
imagefromrepeating*/
6
background-color: #4CAF50;
}
input[type=Done]:hover {
background-color: #45a049;
input[type=text], select {
}
width: 100%;
7
<div><input type="submit" value="Done"></div>
<a href="index.html">Login</a>
<div><label for="LASTNAME">LAST
NAME</label> </html>
<INPUT TYPE="TEXT"
ID="LASTNAME"NAME="LASTNAME"placehold
er="ENTER LAST NAME"required></div></BR>
<INPUT TYPE="EMAIL"
ID="EMAIL"NAME="EMAIL"placeholder="EMAI
L ADDRESS"required>
</div></BR>
<INPUT TYPE="TEXT"
ID="NUMBER"NAME="NUMBER"placeholder="E
NTER NUMBER"required>
</div></BR>
<div><label for="PASSWORD">
PASSWORD</label>
<INPUT TYPE="PASSWORD"
ID="PASSWORD"NAME="PASSWORD"placehold
er="ENTER PASSWORD"required></div></BR>
<div><label for="CONFIRMPASSWORD">
COMFIRM PASSWORD</label>
<INPUT TYPE="PASSWORD"
ID="CONFIRMPASSWORD"
NAME="CONFIRMPASSWORD"placeholder="CO
NFIRM PASSWORD"required></div></BR>
</div></BR>
8
DISPLAY
9
HOME PAGE
DESCRIPTION
Home page is the first web page accessed after log in into the website. Home page helps to access the following web
pages; Log out page, contact page, sign up page. On the other hand, Home page consists of the basic content of the
website. In this case it consists of all course offered by Kasiya college and their duration of study and requirement for
admission
<head>
}
<title>home page</title>
/* Style the top navigation bar */
<meta charset="utf-8">
.topnav {
<meta name="viewport" content="width=device-
width, initial-scale=1"> overflow: hidden;
<style> background-color:pink;
*{ }
} .topnav a {
.header { }
} color: blue;
.header h1 { }
10
/* Left column */ padding: 20px;
float: left; }
} .row::after {
width: 25%; }
} padding: 20px;
text-align: center;
} width: 100%;
.wow.jpg { padding: 0;
background-color: #aaa; }
width: 100%; }
11
} <a href="Signup.php"> Sign up</a>
#customers th { </p>
12
technical education, vocationand enterpreneurship <p align="center"><b>To prepare for a job of your
training to enhance individual and nation dreams <br/>A promotionin your job; or
development.</p>
<br/> To become established in your current
<h2 align="center" style="color:Tomato;">
<br/>job</b></p>
VALUE</h2>
<p align="center">
<br/>Kasiya College enrolled members
<ul>
receive carefully planned, high quality and
<h4 align="left">Our values include the professional trainig which gives competence in
following:</h4> planned careers.
13
<th width="40%"> PROGRAMME</th> </tr>
<tr> </tr>
</TABLE> </tr>
<p> <tr>
14
<tr> <td width="70%"> ACSOM</td>
<tr> </Tr>
</tr> </TABLE>
15
SECONDARY TEACHERS DIPLOMA <td width="70%">Diploma in<br/> ICT
<BR/>EDUCATION DEPARTMENT with<br/>Civic<br/> Education</td>
</tr> </Tr>
<tr> <tr>
<td width="70%"> Diploma in<br/> ICT with<br/> <td width="70%">Diploma in<br/> ICT
Mathematics</td> with<br/>Business<br/> Studies</td>
</Tr> </Tr>
<tr> </p>
<td width=30%>UNZA</td> All programmes are offered on both FULL TIME and
DISTANCE learning mode.
<td width=30%> Certificate</td>
<br/>
</Tr>
<h4 style="color:red" align="left"> Entry
<!start of the data row>
Requirements:</h4>
<tr>
16
<b>Diploma:</b> 5 Credits or better including <p>Now just watch us turn you into that professional
English.<br/> that you have always dreamed of enjoy being always
a step ahead with a college that has been in the traing
<b>Advanced Certificate:</b> 3 credits plus two
business for over four decades. </p>
passes with at least a minimum of a credit in
English.<br/> <div><H2 align="center" style="color:blue">
<h4 style="color:red" align="left"> Acronyms</h4> <i>Boarding facilities are always available for both
Female and Male at both campuses.
ACSOM -Advanced
</b></i></H2></div>
certificate in Secretarial and office
Management.<br/> </P>
17
Display
18
19
CONTACT PAGE
DESCRIPTION
Contact page is containing information and details that can be used to get in touch with the college for any query and
consultation
CODES
<html>
<head>
<title>contact</title>
</head>
</style><title> contact</title>
text-decoration: none;
.header h1 {
20
} padding: 20px;
} padding: 20px;
width: 100%;
21
/* Responsive layout - when the screen is less than Education
400px wide, make the navigation links stack on top Programs:0977724880/0978850116<BR/>Secretarial
of each other instead of next to each other */ programs:0974713904/0955819093<BR/>Business
program :0977425567/0955979255<BR/>Short-
@media screen and (max-width: 400px) {
intensive programs:09060771/0977786769.
.topnav a {
<i></P>
float: none;
</body>
width: 100%;
<address><p>E-mail us on:</p><a href="
} mailto:[email protected]">
[email protected]</a></address>
}
<p align="center">You can visit us at<br/></p>
</style>
<address style="text-align: center;">
</head> https://www.mstvt.gov.zm/Kasiya</address>
<body> <h1><center><b style="color:green">ALWAYS A
STEP AHEAD </center></b></h1>
<div class="header">
<br>
<h1> Contact</h1>
</br>
</div>
<center><a href="home.php">Go to previous
<body>
page</a></center>
<div class="topnav">
</boy>
<a href="home.php">Home</a>
</html>
<a href="Signup.php"> Sign up</a>
<a href="contact.php">Contact</a>
<a href="logout.php">logout</a></div>
<br/>
THE PRINCIPAL<BR/>KASIYA
COLLEGE<BR/>P.O. BOX 640060<BR/>PEMBA
<BR/> <b>OR</b>
<BR/>0977723617/0974916567<BR/></p><p><i>
22
Display
23
CONNECT
DESCRIPTION
This program is connecting all the pages to the database of the website of kasiya College. Not only that it also posts
information or details ( firstname, lastname, email, number and password) of the user to the database system.
CODES
$NUMBER = $_POST['NUMBER'];
if ($execval) {
$PASSWORD = $_POST['PASSWORD'];
echo "Registration successfully...";
$CONFIRMPASSWORD =
} else {
$_POST['CONFIRMPASSWORD'];
echo "Error: " . $stmt->error;
}
// Database connection
} else { $conn->close();
if (mysqli_select_db($conn, 'blessing_db')) {
24
DATABASE
DESCRIPTION
This is the database for kasiya college website. The main purpose of the database is to store users details and this
include; username, phone number, password.
CODES --
-- phpMyAdmin SQL Dump
-- version 5.2.0 -- --------------------------------------------------------
-- https://www.phpmyadmin.net/
-- --
-- Host: 127.0.0.1 -- Table structure for table `login`
-- Generation Time: Apr 01, 2025 at 07:44 PM --
-- Server version: 10.4.27-MariaDB
-- PHP Version: 8.2.0 CREATE TABLE `login` (
`id` int(11) NOT NULL,
SET SQL_MODE = `username` varchar(50) NOT NULL,
"NO_AUTO_VALUE_ON_ZERO";
`password` varchar(12) NOT NULL
START TRANSACTION;
) ENGINE=InnoDB DEFAULT
SET time_zone = "+00:00"; CHARSET=utf8mb4
COLLATE=utf8mb4_general_ci;
--
/*!40101 SET
@OLD_CHARACTER_SET_CLIENT=@@C -- Dumping data for table `login`
HARACTER_SET_CLIENT */;
--
/*!40101 SET
@OLD_CHARACTER_SET_RESULTS=@@
CHARACTER_SET_RESULTS */; INSERT INTO `login` (`id`, `username`,
`password`) VALUES
/*!40101 SET
@OLD_COLLATION_CONNECTION=@@C (1, 'blessing', 'bles12'),
OLLATION_CONNECTION */;
(2, 'blessing', 'bles12');
/*!40101 SET NAMES utf8mb4 */;
-- --------------------------------------------------------
--
-- Database: `blessing_db`
25
-- --
-- Table structure for table `signup`
-- --
-- Indexes for table `login`
CREATE TABLE `signup` ( --
`id` int(11) NOT NULL, ALTER TABLE `login`
`FIRSTNAME` varchar(50) NOT NULL, ADD PRIMARY KEY (`id`);
`LASTNAME` varchar(50) NOT NULL,
`EMAIL` varchar(45) NOT NULL, --
`NUMBER` bigint(12) NOT NULL, -- Indexes for table `signup`
`PASSWORD` varchar(12) NOT NULL, --
`CONFIRMPASSWORD` varchar(12) NOT ALTER TABLE `signup`
NULL
ADD PRIMARY KEY (`id`);
) ENGINE=InnoDB DEFAULT
CHARSET=utf8mb4
COLLATE=utf8mb4_general_ci; --
-- AUTO_INCREMENT for dumped tables
-- --
-- Dumping data for table `signup`
-- --
-- AUTO_INCREMENT for table `login`
INSERT INTO `signup` (`id`, `FIRSTNAME`, --
`LASTNAME`, `EMAIL`, `NUMBER`,
`PASSWORD`, `CONFIRMPASSWORD`) ALTER TABLE `login`
VALUES MODIFY `id` int(11) NOT NULL
(1, 'blessing', 'siagumbwe', AUTO_INCREMENT,
'[email protected]', 978654332, 'bless12', AUTO_INCREMENT=3;
'bless12'),
(2, 'royce', 'mwila', '[email protected]', --
978654332, 'royce1245', 'royce1245');
-- AUTO_INCREMENT for table `signup`
--
--
ALTER TABLE `signup`
-- Indexes for dumped tables
26
MODIFY `id` int(11) NOT NULL /*!40101 SET
AUTO_INCREMENT, CHARACTER_SET_RESULTS=@OLD_CHA
AUTO_INCREMENT=3; RACTER_SET_RESULTS */;
COMMIT; /*!40101 SET
COLLATION_CONNECTION=@OLD_COLL
ATION_CONNECTION *
/*!40101 SET
CHARACTER_SET_CLIENT=@OLD_CHAR
ACTER_SET_CLIENT */;
27
DISPLAY
28
Log out page
Description
This program that is used to check and monitor the start session, if destroyed it directs to home page.
Codes
<?php
session_start();
// Destroy session
if(session_destroy()) {
header("Location: index.html");
?>
29