Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include('lock.php');
- ?>
- <html>
- <head>
- <title>Settings</title>
- </head>
- <style>
- ul {
- text-align: left;
- display: inline;
- margin: 0;
- padding: 15px 4px 17px 0;
- list-style: none;
- -webkit-box-shadow: 0px 2px 7px 0px rgba(50, 50, 50, 0.75);
- -moz-box-shadow: 0px 2px 7px 0px rgba(50, 50, 50, 0.75);
- box-shadow: 0px 2px 7px 0px rgba(50, 50, 50, 0.75);
- }
- ul li {
- font: bold 12px/18px Throw My Hands Up in the Air;
- font-size: 15px;
- display: inline-block;
- margin-right: -4px;
- position: relative;
- padding: 15px 20px;
- background: #D00000;
- cursor: pointer;
- -webkit-transition: all 0.2s;
- -moz-transition: all 0.2s;
- -ms-transition: all 0.2s;
- -o-transition: all 0.2s;
- transition: all 0.2s;
- }
- ul li:hover {
- background: #555;
- color: #fff;
- }
- ul li ul {
- padding: 0;
- position: absolute;
- top: 48px;
- left: 0;
- width: 150px;
- -webkit-box-shadow: none;
- -moz-box-shadow: none;
- box-shadow: none;
- display: none;
- opacity: 0;
- visibility: hidden;
- -webkit-transiton: opacity 0.2s;
- -moz-transition: opacity 0.2s;
- -ms-transition: opacity 0.2s;
- -o-transition: opacity 0.2s;
- -transition: opacity 0.2s;
- }
- ul li ul li {
- background: #555;
- display: block;
- color: #fff;
- text-shadow: 0 -1px 0 #000;
- }
- ul li ul li:hover { background: #666; }
- ul li:hover ul {
- display: block;
- opacity: 1;
- visibility: visible;
- }
- #header{
- background-color: #D00000;
- text-align: center;
- position: fixed;
- top: 0%;
- left: 0%;
- right: 0%;
- height: 8%;
- -webkit-box-shadow: 0px 3px 12px 0px rgba(50, 50, 50, 0.75);
- -moz-box-shadow: 0px 3px 12px 0px rgba(50, 50, 50, 0.75);
- box-shadow: 0px 3px 12px 0px rgba(50, 50, 50, 0.75);
- }
- #left_box{
- background-color: #ffffff;
- position: fixed;
- width: 20%;
- top: 10%;
- left: 0%;
- height: 100%;
- }
- a{
- font-size: 15px;
- }
- .box
- {
- width: 80%;
- padding:10px;
- border:2px solid gray;
- position: fixed;
- top: 12%;
- left: 15%;
- height: 50%;
- font-family: Arial;
- }
- label{
- font-family: Arial;
- }
- #display_float{
- float: right;
- }
- input[type=text], textarea {
- width: 160px;
- -webkit-transition: all 0.30s ease-in-out;
- -moz-transition: all 0.30s ease-in-out;
- -ms-transition: all 0.30s ease-in-out;
- -o-transition: all 0.30s ease-in-out;
- outline: none;
- padding: 3px 0px 3px 3px;
- margin: 5px 1px 3px 0px;
- border: 1px solid #DDDDDD;
- }
- input[type=text]:focus, textarea:focus {
- box-shadow: 0 0 5px rgba(81, 203, 238, 1);
- padding: 3px 0px 3px 3px;
- margin: 5px 1px 3px 0px;
- border: 1px solid rgba(81, 203, 238, 1);
- }
- </style>
- <body>
- <div id="left_box"><br>
- <img src="Images/general_setting.png" height="18" width="18"><a href="general_settings.php" style="text-decoration: none; color: #000000; font-family: Arial";> General</a><br><br>
- <img src="Images/photo_setting.png" height="18" width="18"><a href="photo_settings.php" style="text-decoration: none; color: #000000; font-family: Arial";> Photos</a><br><br>
- </div>
- <div class="box">
- <h1 style="font-family: consolas">Change your name</h1><hr>
- <div id="change_name">
- <label><strong>Your current name: </strong></label>
- <?php
- include('change_setting_db.php');
- while($row = mysqli_fetch_array($result))
- {
- echo $row['first_name']." ".$row['last_name'];
- }
- ?><br><br>
- <form>
- <label><strong>First name: </strong></label>
- <input type="text" name="first_name">
- <label><strong>Last name: </strong></label>
- <input type="text" name="last_name">
- </form>
- <?php
- $con=mysqli_connect("localhost","root","Bhawanku", "members");
- // Check connection
- if (mysqli_connect_errno())
- {
- echo "Failed to connect to MySQL: " . mysqli_connect_error();
- }
- $result = mysqli_query($con,"SELECT * FROM admin");
- while($row = mysqli_fetch_array($result))
- {
- }
- mysqli_query($con,"UPDATE admin SET first_name='$_POST[first_name]' AND last_name='$_POST[last_name]' WHERE id='$row[id]' ");
- mysqli_close($con);
- ?>
- </div>
- </div>
- <div id="header">
- <ul><a href="home.php" style="text-decoration: none; color: #000000;"><li>Home</li></a>
- <li>Notification</li>
- <li>
- Profile
- <ul>
- <li>All members</li>
- <a href="profile.php" style="text-decoration: none; color: #ffffff"><li>My profile</li></a>
- </ul>
- </li>
- <li>
- Settings
- <ul>
- <a href="setting.php" style="text-decoration: none; color: #ffffff"><li>Account settings</li></a>
- <a href="logout.php" style="text-decoration: none; color: #ffffff"><li>Logout</li></a>
- <li>About</li>
- </ul>
- </li>
- </ul>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement