-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetting.php
More file actions
133 lines (107 loc) · 4.83 KB
/
Copy pathsetting.php
File metadata and controls
133 lines (107 loc) · 4.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<?php
session_start();
// $_SESSION['userId'] = '1';
if(!isset($_SESSION['userId']))
{
header('location:login.php');
}
?>
<!DOCTYPE html>
<html>
<head>
<title>Online Resume Builder</title>
<?php require 'assets/function.php'; ?>
<?php require "assets/autoloader.php" ?>
<style type="text/css">
<?php include 'css/myStyle.css'; ?>
.treb{font-family: 'KoHo', sans-serif;}
.flex{display: flex}
.hub-top {position: fixed;top: 0;z-index: 20;width: 100%;background:transparent;height: 111px;}
.logo{padding:11px 5px 11px 22px;color: white}
.logo i{color: white;font-size: 77pt}
.logoname{color: white;font-size: 22pt;padding: 22px 11px;}
.login{margin: 11px; color:white;}
.m1{margin: 1px}
.dashboard{background: #333333;position: fixed;height: 100%;width: 17%;padding-top: 111px;}
.dashboard span{color:white;font-size:20px;letter-spacing:1px;padding: 11px 22px;display: block;}
.dashboard ul{list-style: none;padding: 0}
.dashboard ul li{color: white;padding: 6px 22px;display: block;font-size: 14pt;box-shadow: 1px 1px 2px black;;margin-top: 3px}
.dashboard ul li:hover{box-shadow: 1px 1px 2px green;cursor: pointer;background: #ADD8E6;color: black}
.dashboard ul li i{float: right;padding-top: 5px}
/* .dashboard:hover{box-shadow: 2px 2px 22px green} */
.admin-pic{position: relative;top: -88px;left: 33px}
.admin-name{position: relative;top: -166px;left: 166px;font-size: 13pt;}
.admin-pic img{width: 111px ;height: 111px}
/* .name{} */
.center{text-align: center;}
#mydiv:hover{box-shadow: 2px 2px 22px blue}
</style>
</head>
<body style="background: url(photo/main.jpg) fixed;">
<div class="background-image"></div>
<div class="hub-top">
<div class="logo flex pull-left">
<div><i class="glyphicon glyphicon-cloud"></i></div>
<div class="logoname treb"><span>Online Resume Builder </span></div>
</div>
<div class="login pull-right " style="margin-right: 44px">
<div><img src="photo/user.png" class="img-responsive" style="width: 55px;margin:auto;"></div>
<div class="treb" class="name "><span style="text-align: center;"><?php echo userName(); ?></span><br>
<a href="setting.php"><button class="btn btn-success btn-sm" style="padding: 1px 11px;font-size: 8pt">Setting <i class="fa fa-gear fa-fw"></i></button></a>
</div>
</div>
</div>
<div class="dashboard treb " style="background-color:transparent; opacity: inherit;">
<span class="dbname">Dashboad</span>
<ul>
<a href="index.php"><li><i class="fa fa-home fa-fw"></i> Home</li></a>
<a href="newCv.php"><li><i class="fa fa-edit fa-fw"></i> Build New CV</li></a>
<a href="savedCv.php"><li ><i class="fa fa-user-circle fa-fw"></i>Saved CV's</li></a>
<a href="contactUs.php" ><li ><i class="fa fa-phone fa-fw"></i> Contact Us</li></a>
<a href="setting.php"><li style="background:#739099"><i class="fa fa-gear fa-fw"></i>Account Setting</li></a>
<a href="logout.php"><li><i class="fa fa-sign-out fa-fw"></i> Logout</li></a>
</ul>
</div>
<div class="well well-sm" style="margin-left: 18%;padding-top: 122px;font-family: 'Itim', cursive;background-color: rgba(0, 0, 0, 0.4); opacity: inherit;border:none;">
<div class="panel panel-primary" style="width: 77%;margin:auto;background:transparent;">
<div class="panel-heading center" style="background-color:transparent;"><h3>Change Account Setting</h3></div>
<div class="panel-body center" style="background-color:transparent;">
<form method="POST">
<label style="color: #ADD8E6;">Name</label>
<input type="text" name="name" id=name-set value="<?php echo userName(); ?>" class='form-control' style='width: 55%;margin:auto' required>
<label style="color: #ADD8E6;">Username</label>
<input type="text" name="username" id=username-set value="<?php echo user(); ?>" class='form-control' style='width: 55%;margin:auto' required>
<label style="color: #ADD8E6;">Password</label>
<input type="text" name="password" id=pass-set value="<?php echo pass(); ?>" class='form-control' style='width: 55%;margin:auto' required>
<button id="update" class="btn btn-primary btn-block" style="width: 55%;margin: auto;margin-top:4px;" type="submit" name="update">Update</button>
</form><br>
</div>
</div>
</div>
</body>
</html>
<script>
$(document).ready(function(){
$("#update").click(function(){
var name=$("#name-set").val();
var uname=$("#username-set").val();
var pass=$("#pass-set").val();
if(name!="" &&uname!="" && pass!=""){
$.ajax({
type: "POST",
url: "updateprof.php",
data: {names:name,unames:uname,passs:pass},
success: function (response) {
alert(response);
}
});
}
})
})
</script>
<!-- <?php
// if (isset($_POST['update']))
// {
// echo "<script>alert('checking. hali is pr kam krne intzar kr')</script>";
// }
?> -->