Admin Module User Module: 1.1 About The Project
Admin Module User Module: 1.1 About The Project
Admin Module User Module: 1.1 About The Project
INTRODUCTION
HTML: HTML is used to create and save web document. E.g. Notepad/Notepad++
MySQL: MySQL is a database, widely used for accessing querying, updating, and
managing data in databases.
Hardware Requirement:
Windows 7
Hard Disk 30 GB
Software Requirement:
XAMP Server
FEATURES:
1. Easier To Use
With the windows 2000 professional we have faster access
to information and we are able to accomplish test more quickly
and easily.
Find Information
Work on the Web
Work remotely
Work with the files
Personalize your computer environment
2.Easier To Manage
Source Code:
HOME PAGE
Admin Login:
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Example</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body style="background-image: url('css/images/pubg.jpg');">
</div>
<div class="collapse navbar-collapse" id="myNavbar">
<ul class="nav navbar-nav">
<li class="active"><a href="#">Home</a></li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" >Display Game <span
class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="AdminDisplayMobile.php"">Mobile Game</a></li>
<li><a href="AdminDisplayPc.php">Windows Game</a></li>
<li><a href="AdmindisplayAction.php">Action Game</a></li>
<li><a href="Admindisplayios.php">IOS Game</a></li>
<li><a href="Admindisplayvideo.php">videodisplay</a></li>
</ul>
</li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" >Add Game <span
class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="AdminAddGameMobile.php">Mobile Game</a></li>
<li><a href="AdminAddGamePc.php">Windows Game</a></li>
<li><a href="AdminAddActionGame.php">Action Game</a></li>
<li><a href="AdminAddios.php">IOS Game</a></li>
</ul>
</li>
<li><a href="video.php">Upcoming game</a></li>
<li><a href="login.php">Chart</a></li>
<li><a href="AdminFeedBack.php">FeedBack</a></li>
<li><a href="index.php">Logout</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<!-- <li><a href="#"><span class="glyphicon glyphicon-user"></span> Sign Up</a></li>
<li><a href="#"><span class="glyphicon glyphicon-log-in"></span> Login</a></li>
-->
</ul>
</div>
</div>
</nav>
<div class="container">
</div>
</body>
</html>
REGISTER CODE:
<div class="input-group">
<label>Name</label>
<input type="text" name="name" >
</div>
<div class="input-group">
<label>Email</label>
<input type="email" name="email" value="<?php echo $email; ?>">
</div>
<div class="input-group">
<label>phone numbar</label>
<input type="text" name="phone" >
</div>
<div class="input-group">
<label>Address</label>
<input type="text" name="address" >
</div>
<div class="input-group">
<label>Username</label>
<input type="text" name="username" value="<?php echo
$username; ?>">
</div>
<div class="input-group">
<label>Password</label>
<input type="password" name="password_1">
</div>
<div class="input-group">
<label>Confirm password</label>
<input type="password" name="password_2">
</div>
<div class="input-group">
<button type="submit" class="btn"
name="reg_user">Register</button>
</div>
<p>
Already a member? <a href="login1.php">Sign in</a>
</p>
</form>
</body>
</html>
LOGIN CODE:
<div class="input-group">
<label>Username</label>
<input type="text" name="username" >
</div>
<div class="input-group">
<label>Password</label>
<input type="password" name="password">
</div>
<div class="input-group">
<button type="submit" class="btn" name="login">Login</button>
</div>
<p>
Not yet a member? <a href="regiser.php">Sign up</a>
</p>
<center>
<?php
session_start();
if(isset($_SESSION['msg'])){
echo $_SESSION['msg'];
unset($_SESSION['msg']);
}
?>
</center>
</form>
</body>
</html>
<?php
$db = mysqli_connect('localhost', 'root', '', 'database');
$query="select * from mobilegame ";
//$records=mysql_query($con,$sql);
$results = mysqli_query($db, $query);
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"
>
<script
src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script
src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></s
cript>
</div>
<div class="collapse navbar-collapse" id="myNavbar">
<ul class="nav navbar-nav">
<li class="active"><a href="#">Home</a></li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" >game <span
class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="UserdisplaygameMobile.php">mobile Game</a></li>
<li><a href="Userdisplaygameios.php">IOS Game</a></li>
<li><a href="UserdisplaygameAction.php">Action
Game</a></li>
<li><a href="UserdisplaygamePc.php">Windows Game</a></li>
</ul>
</li>
<li><a href="videodisplay.php">comingGame</a></li>
<li><a href="login.php">Chart</a></li>
<li><a href="FeedBack.php">FeedBack</a></li>
<li><a href="index.php">Logout</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<!-- <li><a href="#"><span class="glyphicon glyphicon-user"></span> Sign
Up</a></li>
<li><a href="#"><span class="glyphicon glyphicon-log-in"></span>
Login</a></li>
-->
</ul>
</div>
</div>
</nav>
<br>
<style>
th, td {
text-align: left;
padding: 8px;
}
th {
background-color: #CD853F;
color: white;
}
</style>
</head>
<body style="background-image: url('css/images/10.jpg');">
<div align="center">
<h2>Mobile Game</h2>
</div>
<!-- <a method="post" action=""></a>
--><!-- <form method="post" action="">
--> <table width="800" width="520" border="1" align="center" method="post"
background="css/images/6.jpg" cellspacing="1">
<tr>
<th>
<h4>id</h4>
</th>
<th>
<h4> Name</h4>
</th>
<th>
<h4> Type</h4>
</th>
<th>
<h4>image</h4>
</th>
<th>
<h4> file</h4>
</th>
<tr>
<?php
echo "<tr>
<td>".$user['id']."</td>
<td>".$user['name']."</td>
<td>".$user['type']."</td>
<?php include('/server.php');
?>
<?php
$db = mysqli_connect('localhost', 'root', '', 'database');
$query="select * from addgame ";
//$records=mysql_query($con,$sql);
$results = mysqli_query($db, $query);
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body style="background-image: url('css/images/pubg.jpg');">
</div>
<div class="collapse navbar-collapse" id="myNavbar">
<ul class="nav navbar-nav">
<li class="active"><a href="#">Home</a></li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" >Display Game <span
class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="AdminDisplayMobile.php"">Mobile Game</a></li>
<li><a href="AdminDisplayPc.php">Windows Game</a></li>
<li><a href="AdmindisplayAction.php">Action Game</a></li>
<li><a href="Admindisplayios.php">IOS Game</a></li>
<li><a href="Admindisplayvideo.php">videodisplay</a></li>
</ul>
</li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" >Add Game <span
class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="AdminAddGameMobile.php">Mobile Game</a></li>
<li><a href="AdminAddGamePc.php">Windows Game</a></li>
<li><a href="AdminAddActionGame.php">Action Game</a></li>
<li><a href="AdminAddios.php">IOS Game</a></li>
</ul>
</li>
<li><a href="video.php">Upcoming game</a></li>
<li><a href="login.php">Chart</a></li>
<li><a href="AdminFeedBack.php">FeedBack</a></li>
<li><a href="index.php">Logout</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<!-- <li><a href="#"><span class="glyphicon glyphicon-user"></span> Sign Up</a></li>
<li><a href="#"><span class="glyphicon glyphicon-log-in"></span> Login</a></li>
-->
</ul>
</div>
</div>
</nav>
<style>th, td {
text-align: left;
padding: 8px;
}
th {
background-color: #CD853F;
color: white;
}</style>
</head>
<body><div>
<div align="center">
<h2>WindowsGame</h2>
</div>
</div>
<th>
<h4> Name</h4>
</th>
<th>
<h4> Type</h4>
</th>
<th>
<h4>image</h4>
</th>
<th>
<h4> file</h4>
</th>
<th>
<h4> Edit</h4>
</th>
<th>
<h4> Delete</h4>
</th>
<tr>
<?php
echo "<tr>
<td>".$user['id']."</td>
<td>".$user['name']."</td>
<td>".$user['type']."</td>
<td>"
?>
</body>
</html>
<!-- <?php
//$_GET['ru'];
$name=$_GET['ru'];
if($results)
{
echo "<script> alert('delete data')</script";
//header('location: Admin/ActionGame.php');
}
else
{
echo "not delete data";
//header('location:Admin/ActionGame.php');
}
?>
-->
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body style="background-image: url('css/images/pubg.jpg');">
<nav class="navbar navbar-inverse">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div class="collapse navbar-collapse" id="myNavbar">
<ul class="nav navbar-nav">
<li class="active"><a href="#">Home</a></li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" >Display Game <span
class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="AdminDisplayMobile.php"">Mobile Game</a></li>
<li><a href="AdminDisplayPc.php">Windows Game</a></li>
<li><a href="AdmindisplayAction.php">Action Game</a></li>
<li><a href="Admindisplayios.php">IOS Game</a></li>
<li><a href="Admindisplayvideo.php">videodisplay</a></li>
</ul>
</li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" >Add Game <span
class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="AdminAddGameMobile.php">Mobile Game</a></li>
<li><a href="AdminAddGamePc.php">Windows Game</a></li>
<li><a href="AdminAddActionGame.php">Action Game</a></li>
<li><a href="AdminAddios.php">IOS Game</a></li>
</ul>
</li>
<li><a href="video.php">Upcoming game</a></li>
<li><a href="login.php">Chart</a></li>
<li><a href="AdminFeedBack.php">FeedBack</a></li>
<li><a href="index.php">Logout</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<!-- <li><a href="#"><span class="glyphicon glyphicon-user"></span> Sign Up</a></li>
<li><a href="#"><span class="glyphicon glyphicon-log-in"></span> Login</a></li>
-->
</ul>
</div>
</div>
</nav>
</head>
<body>
<div class="header">
<h2>Coming Game</h2>
</div>
<div class="input-group">
<label>Name</label>
<input type="text" name="name" placeholder="Game Name" >
</div>
<div class="input-group">
<label>type</label>
<input type="text" name="type" placeholder="type of Game" >
</div>
<div class="input-group">
<label>video</label>
<input type="file" name="video" placeholder="type of Game" >
</div>
<div class="input-group">
<button type="submit" class="btn" name="Addvideo">AddGame</button>
<button class="btn"><a href="AdminIndex.php">Back</a> </button>
</div>
</form>
</body>
</html>
DISPLAY UPCOMING GAME CODE:
<?php include('/server.php');
?>
<?php
$db = mysqli_connect('localhost', 'root', '', 'database');
$query="select * from video ";
$results = mysqli_query($db, $query);
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script
src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<nav class="navbar navbar-inverse">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-
target="#myNavbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div class="collapse navbar-collapse" id="myNavbar">
<ul class="nav navbar-nav">
<li class="active"><a href="#">Home</a></li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" >game <span
class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="UserdisplaygameMobile.php">mobile Game</a></li>
<li><a href="Userdisplaygameios.php">IOS Game</a></li>
<li><a href="UserdisplaygameAction.php">Action Game</a></li>
<li><a href="UserdisplaygamePc.php">Windows Game</a></li>
</ul>
</li>
<li><a href="videodisplay.php">comingGame</a></li>
<li><a href="login.php">Chart</a></li>
<li><a href="FeedBack.php">FeedBack</a></li>
<li><a href="index.php">Logout</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<!-- <li><a href="#"><span class="glyphicon glyphicon-user"></span> Sign Up</a></li>
<li><a href="#"><span class="glyphicon glyphicon-log-in"></span> Login</a></li>
-->
</ul>
</div> </div>
</nav>
<style>th, td {
text-align: left;
padding: 8px;
}
th {
background-color: #CD853F;
color: white;
}</style>
</head>
<body style="background-image: url('css/images/10.jpg');">
<div align="center">
<h2>comingGame</h2>
</div>
<th>
<h4> Name</h4>
</th>
<th>
<h4> Type</h4>
</th>
<th>
<h4>video</h4>
</th>
<tr>
<?php