Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
shrishail92 committed Apr 17, 2015
0 parents commit e6dd6f0
Show file tree
Hide file tree
Showing 82 changed files with 28,036 additions and 0 deletions.
1 change: 1 addition & 0 deletions .idea/.name

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/scopes/scope_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/sqltoweb.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

78 changes: 78 additions & 0 deletions admin_login.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
<html>
<head lang="en">
<meta charset="UTF-8">
<link type="text/css" rel="stylesheet" href="bootstrap-3.2.0-dist\css\bootstrap.css">
<title>Admin Login</title>
</head>
<style>
.login-panel {
margin-top: 150px;

</style>

<body>

<div class="container">
<div class="row">
<div class="col-md-4 col-md-offset-4">
<div class="login-panel panel panel-success">
<div class="panel-heading">
<h3 class="panel-title">Sign In</h3>
</div>
<div class="panel-body">
<form role="form" method="post" action="admin_login.php">
<fieldset>
<div class="form-group">
<input class="form-control" placeholder="Name" name="admin_name" type="text" autofocus>
</div>
<div class="form-group">
<input class="form-control" placeholder="Password" name="admin_pass" type="password"
value="">
</div>


<input class="btn btn-lg btn-success btn-block" type="submit" value="login"
name="admin_login">


</fieldset>
</form>
</div>
</div>
</div>
</div>
</div>


</body>

</html>

<?php
/**
* Created by PhpStorm.
* User: Ehtesham Mehmood
* Date: 11/24/2014
* Time: 3:26 AM
*/
include("database/db_conection.php");

if (isset($_POST['admin_login']))//this will tell us what to do if some data has been post through form with button.
{
$admin_name = $_POST['admin_name'];
$admin_pass = $_POST['admin_pass'];

$admin_query = "select * from admin where admin_name='$admin_name' AND admin_pass='$admin_pass'";

$run_query = mysqli_query($dbcon, $admin_query);

if (mysqli_num_rows($run_query) > 0) {

echo "<script>window.open('view_users.php','_self')</script>";
} else {
echo "<script>alert('Admin Details are incorrect..!')</script>";
}

}

?>
185 changes: 185 additions & 0 deletions cover.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,185 @@
/*
* Globals
*/

/* Links */
a,
a:focus,
a:hover {
color: #fff;
}

/* Custom default button */
.btn-default {
color: #333;
text-shadow: none; /* Prevent inheritence from `body` */
background-color: #fff;
border: 1px solid #fff;
}

.btn-default:hover,
.btn-default:focus {
color: #fff;
background-color: #333;
border: 1px solid #fff;
transition: all .3s linear 0s;
}

/*
* Base structure
*/

html,
body {
height: 100%;
background-color: #333;
}

body {
color: #fff;
text-align: center;
text-shadow: 0 1px 3px rgba(0, 0, 0, .5);
background-image: url(images/bg16.png);
}

/* Extra markup and styles for table-esque vertical and horizontal centering */
.site-wrapper {
display: table;
width: 100%;
height: 100%; /* For at least Firefox */
min-height: 100%;
-webkit-box-shadow: inset 0 0 100px rgba(0, 0, 0, .5);
box-shadow: inset 0 0 100px rgba(0, 0, 0, .5);
}

.site-wrapper-inner {
display: table-cell;
vertical-align: top;
}

.cover-container {
margin-right: auto;
margin-left: auto;
}

/* Padding for spacing */
.inner {
padding: 30px;
}

/*
* Header
*/
.masthead-brand {
margin-top: 10px;
margin-bottom: 10px;
}

.masthead-nav > li {
display: inline-block;
}

.masthead-nav > li + li {
margin-left: 20px;
}

.masthead-nav > li > a {
padding-right: 0;
padding-left: 0;
font-size: 16px;
font-weight: bold;
color: #fff; /* IE8 proofing */
color: rgba(255, 255, 255, .75);
border-bottom: 2px solid transparent;
}

.masthead-nav > li > a:hover,
.masthead-nav > li > a:focus {
background-color: transparent;
border-bottom-color: #a9a9a9;
border-bottom-color: rgba(255, 255, 255, .25);
}

.masthead-nav > .active > a,
.masthead-nav > .active > a:hover,
.masthead-nav > .active > a:focus {
color: #fff;
border-bottom-color: #fff;
}

@media (min-width: 768px) {
.masthead-brand {
float: left;
}

.masthead-nav {
float: right;
}
}

/*
* Cover
*/

.cover {
padding: 0 20px;
}

.cover .btn-lg {
padding: 10px 20px;
font-weight: bold;
}

.logo {
border-radius: 50%;
box-shadow: 0px 0px 10px 1px #C2D3E1;
box-shadow: 0px 1px 0px rgba(0, 0, 0, 0.2);
background-color: #aaa;
border: 4px solid #FFF;
}

/*
* Footer
*/

.mastfoot {
color: #999; /* IE8 proofing */
color: rgba(255, 255, 255, .5);
}

/*
* Affix and center
*/

@media (min-width: 768px) {
/* Pull out the header and footer */
.masthead {
position: fixed;
top: 0;
}

.mastfoot {
position: fixed;
bottom: 0;
}

/* Start the vertical centering */
.site-wrapper-inner {
vertical-align: middle;
}

/* Handle the widths */
.masthead,
.mastfoot,
.cover-container {
width: 100%; /* Must be percentage or pixels for horizontal alignment */
}
}

@media (min-width: 992px) {
.masthead,
.mastfoot,
.cover-container {
width: 700px;
}
}
Loading

0 comments on commit e6dd6f0

Please sign in to comment.