/views/User_info/privacy.php
PHP | 266 lines | 199 code | 52 blank | 15 comment | 3 complexity | e8672d403984572ec3d9482f15b5c778 MD5 | raw file
- <?php
- ini_set("error_reporting", E_ALL & ~E_DEPRECATED);
- include_once '../../vendor/autoload.php';
- session_start();
- use App\webtech\User\User;
- use App\webtech\User\Utility;
- use App\webtech\User\Info;
- $object=new User();
- $id=Info::info();
- //$_POST['user_id']=$id;
- // var_dump($id);
- // die();
- if(Info::info()!=NULL){
- $obj = $object->privacy($id);
- // var_dump($obj);
- // die();
-
-
- // var_dump($objs);
- // die();
- ?>
- <!DOCTYPE HTML>
- <html>
- <head>
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <meta name="description" content="">
- <meta name="author" content="">
- <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
-
- <link href="css/bootstrap.min.css" rel="stylesheet">
- <!-- Custom CSS -->
- <link href="css/landing-page.css" rel="stylesheet">
- <!-- Custom Fonts -->
- <link href="font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
- <link href="https://fonts.googleapis.com/css?family=Lato:300,400,700,300italic,400italic,700italic" rel="stylesheet" type="text/css">
-
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
- <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
- <style>
- body{
-
- background-image: url("../../images/image3.png");
-
-
- }
-
- li a, .dropbtn {
- display: inline-block;
- color: white;
- text-align: center;
- padding: 14px 16px;
- text-decoration: none;
- }
- li a:hover, .dropdown:hover .dropbtn {
- background-color:greenyellow;
- }
- li.dropdown {
- display: inline-block;
- }
- .dropdown-content {
- display: none;
- position: absolute;
- background-color: #f9f9f9;
- min-width: 160px;
- box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
- }
- .dropdown-content a {
- color: black;
- padding: 12px 16px;
- text-decoration: none;
- display: block;
- text-align: left;
- }
- .dropdown-content a:hover {background-color: #f1f1f1}
- .dropdown:hover .dropdown-content {
- display: block;
- }
- input[type=text] {
- width: 250px;
- height: 35px;
- box-sizing: border-box;
- border: 2px solid #ccc;
- border-radius: 10px;
- font-size: 20px;
- background-color: white;
- background-image: url('searchicon.png');
- background-position: 10px 10px;
- background-repeat: no-repeat;
- padding: 12px 20px 12px 40px;
- -webkit-transition: width 0.4s ease-in-out;
- transition: width 0.4s ease-in-out;
- }
- input[type=password] {
- width: 250px;
- height: 35px;
- box-sizing: border-box;
- border: 2px solid #ccc;
- border-radius: 10px;
- font-size: 20px;
- background-color: white;
- background-image: url('searchicon.png');
- background-position: 10px 10px;
- background-repeat: no-repeat;
- padding: 12px 20px 12px 40px;
- -webkit-transition: width 0.4s ease-in-out;
- transition: width 0.4s ease-in-out;
- }
- /*
- input[type=text]:focus {
- width: 100%;
- }*/
- input[type=email] {
- width: 250px;
- height: 35px;
- box-sizing: border-box;
- border: 2px solid #ccc;
- border-radius: 10px;
- font-size: 20px;
- background-color: white;
- background-image: url('searchicon.png');
- background-position: 10px 10px;
- background-repeat: no-repeat;
- padding: 12px 20px 12px 40px;
- -webkit-transition: width 0.4s ease-in-out;
- transition: width 0.4s ease-in-out;
- }
- /*
- input[type=email]:focus {
- width: 100%;
- }*/
- input[type=submit]:hover{
- background-color: lightpink;
- color:black;
- font-size: 15px;
- }
- </style>
-
- </head>
- <body>
-
-
- <nav class="navbar navbar-default navbar-fixed-top topnav" role="navigation">
- <div class="container topnav">
- <!-- Brand and toggle get grouped for better mobile display -->
- <div class="navbar-header">
- <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
- <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 topnav" href="#">Home</a>
-
- </div>
- <!-- Collect the nav links, forms, and other content for toggling -->
- <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
- <ul class="nav navbar-nav navbar-right">
-
- <li class="dropdown">
- <a href="#" class="dropbtn">More Info</a>
- <div class="dropdown-content">
- <a href="create.php">Add again</a>
- <a href="home_page.php">Home</a>
- <a href="../Destination_info/index_stand.php">Stand List</a>
- <a href="trashed.php">Go to trashed page</a>
-
- <a href="profile.php" aling="right">View Profile</a>
-
-
-
- </div>
- </li>
- <li>
- <a href="logout.php">Log Out</a>
- </li>
-
- </ul>
- </div>
- <!-- /.navbar-collapse -->
- </div>
- <!-- /.container -->
- </nav>
-
-
-
- <!-- <div class="menubar">
- <ul>
-
- <li><a href="home_page.php">Home</a></li>
- <li><a href="profile.php" aling="right">View Profile</a></li>
- <li style="float: right"><a href="logout.php">Logout</a></li>
-
- <li><a href="admin_edit_profile.php?id=<?php Info::info();?>" aling="right">Profile Settings</a></li></ul>
-
- </div>-->
-
- <!-- <a href="logout.php?id=<?php Info::info();?>">Logout</a>
- <a href="home_page.php?id=<?php Info::info();?>">Home</a>
- <a href="account.php?id=<?php Info::info();?>">Profile Settings</a>
- <a href="profile.php?id=<?php Info::info();?>"> View Profile</a>-->
- <div style="padding-left: 550px;padding-bottom: 0px">
- <form action="privacy_update.php" method="POST">
-
- <?php
- foreach ($obj as $objs) {
-
- ?>
-
- <input type="hidden" name="id" value="<?php echo $objs['id']?>">
- <h3 style="padding-top: 40px">User_Name:</h3><br>
- <input type="text" name="user_name" value="<?php echo $objs['user_name']?>">
- <br>
-
- <h3>Email Address:</h3>
- <input type="email" name="email" value="<?php echo $objs['email']?>"><br>
-
- <br>
- <h3>Password:</h3>
- <input type="password" name="password"> <br>
- <br>
- <!-- <input type="password" name="password" value="<?php //$objs['password']?>"> New Password <br>
- <br>
- <input type="password" name="password" value="<?php //$objs['password']?>"> Confirm Password <br>-->
-
- <br>
- <br>
- <input type="submit" value="Update" style="border-radius: 20px;width: 100px;height: 40px;">
- </form>
- </div>
- <?php
- }?>
- <script src="js/jquery.js"></script>
- <!-- Bootstrap Core JavaScript -->
- <script src="js/bootstrap.min.js"></script>
- </body>
- </html>
- <?php
- }
- else{
- Utility::redirect();
- }
- ?>