PageRenderTime 47ms CodeModel.GetById 22ms RepoModel.GetById 1ms app.codeStats 0ms

/views/User_info/privacy.php

https://gitlab.com/Zinnurain/destination_finder_beta
PHP | 266 lines | 199 code | 52 blank | 15 comment | 3 complexity | e8672d403984572ec3d9482f15b5c778 MD5 | raw file
  1. <?php
  2. ini_set("error_reporting", E_ALL & ~E_DEPRECATED);
  3. include_once '../../vendor/autoload.php';
  4. session_start();
  5. use App\webtech\User\User;
  6. use App\webtech\User\Utility;
  7. use App\webtech\User\Info;
  8. $object=new User();
  9. $id=Info::info();
  10. //$_POST['user_id']=$id;
  11. // var_dump($id);
  12. // die();
  13. if(Info::info()!=NULL){
  14. $obj = $object->privacy($id);
  15. // var_dump($obj);
  16. // die();
  17. // var_dump($objs);
  18. // die();
  19. ?>
  20. <!DOCTYPE HTML>
  21. <html>
  22. <head>
  23. <meta name="viewport" content="width=device-width, initial-scale=1">
  24. <meta charset="utf-8">
  25. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  26. <meta name="viewport" content="width=device-width, initial-scale=1">
  27. <meta name="description" content="">
  28. <meta name="author" content="">
  29. <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
  30. <link href="css/bootstrap.min.css" rel="stylesheet">
  31. <!-- Custom CSS -->
  32. <link href="css/landing-page.css" rel="stylesheet">
  33. <!-- Custom Fonts -->
  34. <link href="font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
  35. <link href="https://fonts.googleapis.com/css?family=Lato:300,400,700,300italic,400italic,700italic" rel="stylesheet" type="text/css">
  36. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
  37. <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
  38. <style>
  39. body{
  40. background-image: url("../../images/image3.png");
  41. }
  42. li a, .dropbtn {
  43. display: inline-block;
  44. color: white;
  45. text-align: center;
  46. padding: 14px 16px;
  47. text-decoration: none;
  48. }
  49. li a:hover, .dropdown:hover .dropbtn {
  50. background-color:greenyellow;
  51. }
  52. li.dropdown {
  53. display: inline-block;
  54. }
  55. .dropdown-content {
  56. display: none;
  57. position: absolute;
  58. background-color: #f9f9f9;
  59. min-width: 160px;
  60. box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  61. }
  62. .dropdown-content a {
  63. color: black;
  64. padding: 12px 16px;
  65. text-decoration: none;
  66. display: block;
  67. text-align: left;
  68. }
  69. .dropdown-content a:hover {background-color: #f1f1f1}
  70. .dropdown:hover .dropdown-content {
  71. display: block;
  72. }
  73. input[type=text] {
  74. width: 250px;
  75. height: 35px;
  76. box-sizing: border-box;
  77. border: 2px solid #ccc;
  78. border-radius: 10px;
  79. font-size: 20px;
  80. background-color: white;
  81. background-image: url('searchicon.png');
  82. background-position: 10px 10px;
  83. background-repeat: no-repeat;
  84. padding: 12px 20px 12px 40px;
  85. -webkit-transition: width 0.4s ease-in-out;
  86. transition: width 0.4s ease-in-out;
  87. }
  88. input[type=password] {
  89. width: 250px;
  90. height: 35px;
  91. box-sizing: border-box;
  92. border: 2px solid #ccc;
  93. border-radius: 10px;
  94. font-size: 20px;
  95. background-color: white;
  96. background-image: url('searchicon.png');
  97. background-position: 10px 10px;
  98. background-repeat: no-repeat;
  99. padding: 12px 20px 12px 40px;
  100. -webkit-transition: width 0.4s ease-in-out;
  101. transition: width 0.4s ease-in-out;
  102. }
  103. /*
  104. input[type=text]:focus {
  105. width: 100%;
  106. }*/
  107. input[type=email] {
  108. width: 250px;
  109. height: 35px;
  110. box-sizing: border-box;
  111. border: 2px solid #ccc;
  112. border-radius: 10px;
  113. font-size: 20px;
  114. background-color: white;
  115. background-image: url('searchicon.png');
  116. background-position: 10px 10px;
  117. background-repeat: no-repeat;
  118. padding: 12px 20px 12px 40px;
  119. -webkit-transition: width 0.4s ease-in-out;
  120. transition: width 0.4s ease-in-out;
  121. }
  122. /*
  123. input[type=email]:focus {
  124. width: 100%;
  125. }*/
  126. input[type=submit]:hover{
  127. background-color: lightpink;
  128. color:black;
  129. font-size: 15px;
  130. }
  131. </style>
  132. </head>
  133. <body>
  134. <nav class="navbar navbar-default navbar-fixed-top topnav" role="navigation">
  135. <div class="container topnav">
  136. <!-- Brand and toggle get grouped for better mobile display -->
  137. <div class="navbar-header">
  138. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
  139. <span class="sr-only">Toggle navigation</span>
  140. <span class="icon-bar"></span>
  141. <span class="icon-bar"></span>
  142. <span class="icon-bar"></span>
  143. </button>
  144. <a class="navbar-brand topnav" href="#">Home</a>
  145. </div>
  146. <!-- Collect the nav links, forms, and other content for toggling -->
  147. <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
  148. <ul class="nav navbar-nav navbar-right">
  149. <li class="dropdown">
  150. <a href="#" class="dropbtn">More Info</a>
  151. <div class="dropdown-content">
  152. <a href="create.php">Add again</a>
  153. <a href="home_page.php">Home</a>
  154. <a href="../Destination_info/index_stand.php">Stand List</a>
  155. <a href="trashed.php">Go to trashed page</a>
  156. <a href="profile.php" aling="right">View Profile</a>
  157. </div>
  158. </li>
  159. <li>
  160. <a href="logout.php">Log Out</a>
  161. </li>
  162. </ul>
  163. </div>
  164. <!-- /.navbar-collapse -->
  165. </div>
  166. <!-- /.container -->
  167. </nav>
  168. <!-- <div class="menubar">
  169. <ul>
  170. <li><a href="home_page.php">Home</a></li>
  171. <li><a href="profile.php" aling="right">View Profile</a></li>
  172. <li style="float: right"><a href="logout.php">Logout</a></li>
  173. <li><a href="admin_edit_profile.php?id=<?php Info::info();?>" aling="right">Profile Settings</a></li></ul>
  174. </div>-->
  175. <!-- <a href="logout.php?id=<?php Info::info();?>">Logout</a>
  176. <a href="home_page.php?id=<?php Info::info();?>">Home</a>
  177. <a href="account.php?id=<?php Info::info();?>">Profile Settings</a>
  178. <a href="profile.php?id=<?php Info::info();?>"> View Profile</a>-->
  179. <div style="padding-left: 550px;padding-bottom: 0px">
  180. <form action="privacy_update.php" method="POST">
  181. <?php
  182. foreach ($obj as $objs) {
  183. ?>
  184. <input type="hidden" name="id" value="<?php echo $objs['id']?>">
  185. <h3 style="padding-top: 40px">User_Name:</h3><br>
  186. <input type="text" name="user_name" value="<?php echo $objs['user_name']?>">
  187. <br>
  188. <h3>Email Address:</h3>
  189. <input type="email" name="email" value="<?php echo $objs['email']?>"><br>
  190. <br>
  191. <h3>Password:</h3>
  192. <input type="password" name="password"> <br>
  193. <br>
  194. <!-- <input type="password" name="password" value="<?php //$objs['password']?>"> New Password <br>
  195. <br>
  196. <input type="password" name="password" value="<?php //$objs['password']?>"> Confirm Password <br>-->
  197. <br>
  198. <br>
  199. <input type="submit" value="Update" style="border-radius: 20px;width: 100px;height: 40px;">
  200. </form>
  201. </div>
  202. <?php
  203. }?>
  204. <script src="js/jquery.js"></script>
  205. <!-- Bootstrap Core JavaScript -->
  206. <script src="js/bootstrap.min.js"></script>
  207. </body>
  208. </html>
  209. <?php
  210. }
  211. else{
  212. Utility::redirect();
  213. }
  214. ?>