/Signup/view/bitm/seip14/Signup/profileedit.php

https://gitlab.com/Zamal/My-Web2-php · PHP · 249 lines · 244 code · 3 blank · 2 comment · 20 complexity · 27abc135d23e982b8e435e3b637f4c13 MD5 · raw file

  1. <?php
  2. include_once '../../../../vendor/autoload.php';
  3. use App\bitm\seip14\Signup\Signup;
  4. $obj=new Signup();
  5. $mydata = $obj->show();
  6. //echo "<pre>";
  7. //print_r($mydata);
  8. ?>
  9. <html>
  10. <head>
  11. <title>Profile Edit</title>
  12. <link rel="stylesheet" type="text/css" href="style.css">
  13. </head>
  14. <body id="p_body-color">
  15. <div id="p_warpar">
  16. <div id="p_content">
  17. <div id="p_link">
  18. <ul>
  19. <li><a href="index.php">Home Page</a></li>
  20. <li><a href="Register.php">Register</a></li>
  21. <li><a href="logout.php">Logout</a></li>
  22. <li><a href="changepassword.php">Change Password</a></li>
  23. </ul>
  24. </div>
  25. <div id="p_head3">
  26. <h3>Now Can You Fill up Your Profile </h3>
  27. </div>
  28. <div id="p_login_reg">
  29. <form method="POST" action="profileupdate.php" enctype="multipart/form-data">
  30. <table border="0">
  31. <input type="file" name="image"/>
  32. <tr>
  33. <td>Full name:</td>
  34. <td>
  35. <input type="text" name="fullname" placeholder="enter your fullname" value="<?php
  36. if(!empty($mydata['full_name'])){
  37. echo $mydata['full_name'];
  38. }
  39. ?>">
  40. </td>
  41. </tr>
  42. <tr>
  43. <td>Father name:</td>
  44. <td>
  45. <input type="text" name="fathername" placeholder="enter your father name" value="<?php
  46. if(!empty($mydata['father_name'])){
  47. echo $mydata['father_name'];
  48. }
  49. ?>">
  50. </td>
  51. </tr>
  52. <tr>
  53. <td>Mother name:</td>
  54. <td>
  55. <input type="text" name="mothername" placeholder="enter your mother name" value="<?php
  56. if(!empty($mydata['mother_name'])){
  57. echo $mydata['mother_name'];
  58. }
  59. ?>">
  60. </td>
  61. </tr>
  62. <tr>
  63. <td>Date of Birth:</td>
  64. <td>
  65. <input type="text" name="birthdate" placeholder="enter your birthdate" value="<?php
  66. if(!empty($mydata['birthdate'])){
  67. echo $mydata['birthdate'];
  68. }
  69. ?>">
  70. </td>
  71. </tr>
  72. <tr>
  73. <td>Your gender:</td>
  74. <td>
  75. <input type="text" name="gender" placeholder="enter your gender" value="<?php
  76. if(!empty($mydata['gender'])){
  77. echo $mydata['gender'];
  78. }
  79. ?>">
  80. </td>
  81. </tr>
  82. <tr>
  83. <td>Your Mobile num:</td>
  84. <td>
  85. <input type="number" name="mobile" placeholder="enter your mobile number" value="<?php
  86. if(!empty($mydata['mobile_num'])){
  87. echo $mydata['mobile_num'];
  88. }
  89. ?>">
  90. </td>
  91. </tr>
  92. <tr>
  93. <td>Your Occapation:</td>
  94. <td>
  95. <input type="text" name="occapation" placeholder="enter your occapation" value="<?php
  96. if(!empty($mydata['occapation'])){
  97. echo $mydata['occapation'];
  98. }
  99. ?>">
  100. </td>
  101. </tr>
  102. <tr>
  103. <td>Your Education status:</td>
  104. <td>
  105. <input type="text" name="edstatus" placeholder="enter your education status" value="<?php
  106. if(!empty($mydata['education_status'])){
  107. echo $mydata['education_status'];
  108. }
  109. ?>">
  110. </td>
  111. </tr>
  112. <tr>
  113. <td>Your Religion:</td>
  114. <td>
  115. <input type="text" name="religion" placeholder="enter your religion" value="<?php
  116. if(!empty($mydata['religion'])){
  117. echo $mydata['religion'];
  118. }
  119. ?>">
  120. </td>
  121. </tr>
  122. <tr>
  123. <td>Your merital status:</td>
  124. <td>
  125. <input type="text" name="merital" placeholder="enter your merital status" value="<?php
  126. if(!empty($mydata['merital_status'])){
  127. echo $mydata['merital_status'];
  128. }
  129. ?>">
  130. </td>
  131. </tr>
  132. <tr>
  133. <td>Your current status:</td>
  134. <td>
  135. <input type="text" name="currentstatus" placeholder="enter your current status" value="<?php
  136. if(!empty($mydata['current_status'])){
  137. echo $mydata['current_status'];
  138. }
  139. ?>">
  140. </td>
  141. </tr>
  142. <tr>
  143. <td>Nationality:</td>
  144. <td>
  145. <input type="text" name="nationality" placeholder="enter your nationality" value="<?php
  146. if(!empty($mydata['nationality'])){
  147. echo $mydata['nationality'];
  148. }
  149. ?>">
  150. </td>
  151. </tr>
  152. <tr>
  153. <td>Biography:</td>
  154. <td>
  155. <input type="text" name="biography" placeholder="enter your biography" value="<?php
  156. if(!empty($mydata['biography'])){
  157. echo $mydata['biography'];
  158. }
  159. ?>">
  160. </td>
  161. </tr>
  162. <tr>
  163. <td>National Id Num:</td>
  164. <td>
  165. <input type="number" name="nid" placeholder="enter your National Id Number" value="<?php
  166. if(!empty($mydata['national_id'])){
  167. echo $mydata['national_id'];
  168. }
  169. ?>">
  170. </td>
  171. </tr>
  172. <tr>
  173. <td>Passport Num:</td>
  174. <td>
  175. <input type="number" name="passport" placeholder="enter your Passport Number" value="<?php
  176. if(!empty($mydata['passport_num'])){
  177. echo $mydata['passport_num'];
  178. }
  179. ?>">
  180. </td>
  181. </tr>
  182. <tr>
  183. <td>Fax Num:</td>
  184. <td>
  185. <input type="number" name="faxnum" placeholder="enter your Fax Number" value="<?php
  186. if(!empty($mydata['fax_num'])){
  187. echo $mydata['fax_num'];
  188. }
  189. ?>">
  190. </td>
  191. </tr>
  192. <tr>
  193. <td>Height:</td>
  194. <td>
  195. <input type="text" name="height" placeholder="enter your Height" value="<?php
  196. if(!empty($mydata['height'])){
  197. echo $mydata['height'];
  198. }
  199. ?>">
  200. </td>
  201. </tr>
  202. <tr>
  203. <td>Addresses:</td>
  204. <td>
  205. <input type="text" name="address" placeholder="enter your Addresses" value="<?php
  206. if(!empty($mydata['addresses'])){
  207. echo $mydata['addresses'];
  208. }
  209. ?>">
  210. </td>
  211. </tr>
  212. <tr>
  213. <td>Web URL:</td>
  214. <td>
  215. <input type="text" name="weburl" placeholder="enter your Web URL" value="<?php
  216. if(!empty($mydata['web_url'])){
  217. echo $mydata['web_url'];
  218. }
  219. ?>">
  220. </td>
  221. </tr>
  222. <tr>
  223. <td>Other:</td>
  224. <td>
  225. <input type="text" name="other" placeholder="enter your other" value="<?php
  226. if(!empty($mydata['other'])){
  227. echo $mydata['other'];
  228. }
  229. ?>">
  230. </td>
  231. </tr>
  232. <tr>
  233. <td>
  234. <span style="float:right;"> <input type="submit" name="submit" value="update"></span>
  235. </td>
  236. </tr>
  237. </table>
  238. </form>
  239. <div id="p_footer">
  240. <h3>https://gitlab.com/Zamal/My-Web2-php</h3>
  241. </div>
  242. </div>
  243. </div>
  244. </div>
  245. </body>
  246. </html>