forked from codemistic/Web-Development
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request codemistic#337 from go4krishanu/main
Added Resume Builder Project
- Loading branch information
Showing
138 changed files
with
5,512 additions
and
0 deletions.
There are no files selected for viewing
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,62 @@ | ||
<?php | ||
$page="password"; | ||
require("header.php"); | ||
|
||
if(isset($_POST['updatePass'])){ | ||
$oldPass=$_POST['oldPass']; | ||
$newPass=$_POST['newPass']; | ||
$rePass=$_POST['rePass']; | ||
|
||
if($newPass!==$rePass) | ||
echo "New password and Repassword does not match."; | ||
else { | ||
$query="select * from user where uid=1"; | ||
$result=mysqli_query($link,$query) or die("Error fetching data.".mysqli_error($link)); | ||
$user=mysqli_fetch_assoc($result); | ||
if(!password_verify($oldPass,$user['upass'])) | ||
echo "Old password does not match."; | ||
else { | ||
$query="update user set upass='".password_hash($newPass,PASSWORD_DEFAULT)."' where uid=1"; | ||
mysqli_query($link,$query) or die("Error updating data.".mysqli_error($link)); | ||
} | ||
} | ||
} | ||
?> | ||
<div class="row"> | ||
<div class="col-md-6 col-md-offset-3"> | ||
<form class="form-horizontal" method="post"> | ||
<div class="form-group"> | ||
<label class="control-label col-md-4"></label > | ||
<div class="col-sm-8"> | ||
<img src="../images/user_photo.jpg" class="img-thumbnail"/> | ||
</div> | ||
</div> | ||
<div class="form-group"> | ||
<label class="control-label col-md-4">Current Password</label > | ||
<div class="col-sm-8"> | ||
<input type="password" class="form-control col-md-8" name="oldPass" required> | ||
</div> | ||
</div> | ||
<div class="form-group"> | ||
<label class="control-label col-md-4">New Password</label > | ||
<div class="col-sm-8"> | ||
<input type="password" class="form-control col-md-8" name="newPass" required> | ||
</div> | ||
</div> | ||
<div class="form-group"> | ||
<label class="control-label col-md-4">Retype Password</label > | ||
<div class="col-sm-8"> | ||
<input type="password" class="form-control col-md-8" name="rePass" required> | ||
</div> | ||
</div> | ||
<div class="form-group"> | ||
<div class="col-sm-offset-4 col-sm-10"> | ||
<button type="submit" class="btn btn-default btn-success" name="updatePass">Update</button> | ||
</div> | ||
</div> | ||
</form> | ||
</div> | ||
</div> | ||
<?php | ||
require("footer.php"); | ||
?> |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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,124 @@ | ||
body | ||
{ | ||
background:#eee; | ||
} | ||
.container | ||
{ | ||
margin-top:70px; | ||
} | ||
.my-container | ||
{ | ||
background:#FFF; | ||
border:1px solid #ddd; | ||
border-radius:4px; | ||
} | ||
.navbar-btn | ||
{ | ||
margin-right:10px; | ||
} | ||
/*--------------------Sign in--------------------------*/ | ||
.signin | ||
{ | ||
width:400px; | ||
text-align:center; | ||
} | ||
.img-thumbnail | ||
{ | ||
margin:0 auto; | ||
} | ||
.form-signin { | ||
max-width: 330px; | ||
padding: 15px; | ||
margin: 0 auto; | ||
} | ||
.form-signin .form-signin-heading, | ||
.form-signin .checkbox { | ||
margin-bottom: 10px; | ||
} | ||
.form-signin .checkbox { | ||
font-weight: normal; | ||
} | ||
.form-signin .form-control { | ||
position: relative; | ||
height: auto; | ||
-webkit-box-sizing: border-box; | ||
-moz-box-sizing: border-box; | ||
box-sizing: border-box; | ||
padding: 10px; | ||
font-size: 16px; | ||
} | ||
.form-signin .form-control:focus { | ||
z-index: 2; | ||
} | ||
.form-signin input[type="email"] { | ||
margin-bottom: -1px; | ||
border-bottom-right-radius: 0; | ||
border-bottom-left-radius: 0; | ||
} | ||
.form-signin input[type="password"] { | ||
margin-bottom: 10px; | ||
border-top-left-radius: 0; | ||
border-top-right-radius: 0; | ||
} | ||
|
||
|
||
/*--------------------inner pages-------------------------*/ | ||
.input-group | ||
{ | ||
width:100%; | ||
} | ||
.input-group-addon.right | ||
{ | ||
width:30px; | ||
} | ||
.form-control.right | ||
{ | ||
text-align:right; | ||
} | ||
.form-inline{ | ||
margin-bottom:20px; | ||
} | ||
#profilePhotoIn | ||
{ | ||
margin:54px 0 0 10px; | ||
} | ||
#profilePhotoBtn | ||
{ | ||
margin:10px 0 0 10px; | ||
} | ||
/*#profilePhoto | ||
{ | ||
opacity:0; | ||
} | ||
*/ | ||
.nav-tabs li.active | ||
{ | ||
font-weight:bold; | ||
} | ||
.tab-content | ||
{ | ||
background:#FFF; | ||
border:none; | ||
border-left:1px solid #ddd; | ||
border-right:1px solid #ddd; | ||
border-bottom:1px solid #ddd; | ||
border-radius:0 0 4px 4px; | ||
} | ||
.tab-pane>.btn | ||
{ | ||
margin:10px; | ||
} | ||
|
||
#skills | ||
{ | ||
padding:20px; | ||
} | ||
|
||
.btnNewProject | ||
{ | ||
margin-top:20px; | ||
} | ||
.img-thumbnail | ||
{ | ||
width:120px; | ||
} |
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 @@ | ||
<?php | ||
|
||
mysqli_close($link); | ||
|
||
?> |
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 @@ | ||
<?php | ||
|
||
$link=mysqli_connect("localhost","root","","wtproject2017") or die("Error: connecting database.".mysqli_connect_error()); | ||
|
||
?> |
Binary file not shown.
288 changes: 288 additions & 0 deletions
288
Resume Builder/admin/fonts/glyphicons-halflings-regular.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
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,43 @@ | ||
|
||
</div> | ||
<?php | ||
require_once("dbclose.php"); | ||
?> | ||
<script src="js/jquery.min.js"></script> | ||
<script src="js/bootstrap.min.js"></script> | ||
<script src="js/tinymce/tinymce.min.js"></script> | ||
<script type="text/javascript"> | ||
|
||
$(document).ready(function(){ | ||
|
||
tinymce.init({ | ||
selector: '#myInfo' | ||
}); | ||
|
||
$('#employmentEditModal').on('show.bs.modal', function (event) { | ||
var button = $(event.relatedTarget); | ||
var modal = $(this); | ||
modal.find('.modal-title').text('Edit details of ' + button.parents('tr').find('.company').text()); | ||
modal.find('input#empid').val(button.attr('empid')); | ||
modal.find('input#emp-from').val(button.parents('tr').find('.from').text()); | ||
modal.find('input#emp-to').val(button.parents('tr').find('.to').text()); | ||
modal.find('input#emp-designation').val(button.parents('tr').find('.designation').text()); | ||
modal.find('textarea#emp-description').text(button.parents('tr').find('.description').text()); | ||
}); | ||
|
||
$('#educationEditModal').on('show.bs.modal', function (event) { | ||
var button = $(event.relatedTarget); | ||
var modal = $(this); | ||
modal.find('.modal-title').text('Edit details of ' + button.parents('tr').find('.college').text()); | ||
modal.find('input#eduid').val(button.attr('eduid')); | ||
modal.find('input#edu-from').val(button.parents('tr').find('.from').text()); | ||
modal.find('input#edu-to').val(button.parents('tr').find('.to').text()); | ||
modal.find('input#edu-course').val(button.parents('tr').find('.course').text()); | ||
modal.find('textarea#edu-description').text(button.parents('tr').find('.description').text()); | ||
}); | ||
|
||
}); | ||
|
||
</script> | ||
</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,62 @@ | ||
<!DOCTYPE html> | ||
<?php | ||
session_start(); | ||
if(!isset($_SESSION['uid'])) | ||
header('Location:login.php'); | ||
if(isset($_POST['logoutsubmit'])) { | ||
session_destroy(); | ||
header('Location:login.php'); | ||
} | ||
require_once("dbconnect.php"); | ||
?> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<title>Resume</title> | ||
<link href="css/bootstrap.min.css" rel="stylesheet"> | ||
<link href="https://cdn.quilljs.com/1.2.2/quill.snow.css" rel="stylesheet"> | ||
<link href="css/style.css" rel="stylesheet"> | ||
</head> | ||
<body> | ||
<nav class="navbar navbar-inverse navbar-fixed-top"> | ||
<div class="container-fluid"> | ||
<div class="navbar-header"> | ||
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false"> | ||
<span class="sr-only">Toggle navigation</span> | ||
<span class="icon-bar"></span> | ||
<span class="icon-bar"></span> | ||
<span class="icon-bar"></span> | ||
</button> | ||
<a class="navbar-brand" href="index.php">Admin</a> | ||
</div> | ||
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> | ||
<ul class="nav navbar-nav"> | ||
<li <?php if($page=="index") echo 'class="active"' ?>><a href="index.php">Information</a></li> | ||
<li <?php if($page=="profile") echo 'class="active"' ?>><a href="profile.php">Profile</a></li> | ||
<li <?php if($page=="portfolio") echo 'class="active"' ?>><a href="portfolio.php">Portfolio</a></li> | ||
</ul> | ||
<form method="post"> | ||
<ul class="nav navbar-nav navbar-right"> | ||
<li class="dropdown"> | ||
<?php | ||
$query="select * from personal where uid=1"; | ||
$result=mysqli_query($link,$query) or die("Error fetching data.".mysqli_error($link)); | ||
$personaldetails=mysqli_fetch_assoc($result); | ||
mysqli_free_result($result); | ||
?> | ||
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Welcome <?php echo ucfirst($personaldetails['fname']); ?> <span class="caret"></span></a> | ||
<ul class="dropdown-menu"> | ||
<li><a href="change-password.php">Change Password</a></li> | ||
<li role="separator" class="divider"></li> | ||
<li><form method="post"><input type="submit" class="btn btn-default pull-right" name="logoutsubmit" value="Logout"></a><form></li> | ||
</ul> | ||
</li> | ||
</ul> | ||
</form> | ||
</div> | ||
</div> | ||
</nav> | ||
<div class="container"> | ||
|
Oops, something went wrong.