-
Notifications
You must be signed in to change notification settings - Fork 1
/
change_password_code.php
39 lines (36 loc) · 2.16 KB
/
change_password_code.php
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
<?php
$changePassword = new Website("change_password","","Sokoban - Change Password","default.css");
//------Creating the form and the table
$passwordTable = new Table("passwordTable");
$passwordTable->addData("Password: ");
$passwordTable->addData("<input id='password' name='password' type='password' />");
$passwordTable->addData(" ");
$passwordTable->commitData();
$passwordTable->addData("Re-enter Password: ");
$passwordTable->addData("<input id='password2' name='password2' type='password' />");
$passwordTable->addData(" ");
$passwordTable->commitData();
$passwordTable->addData(" ");
$passwordTable->addData("<input type='submit' value='Submit'>");
$passwordTable->addData(" ");
$passwordTable->commitData();
$passwordTable->finishTable();
$changePassword->createDiv("header","<h1>Sokoban - Change Password</h1>",$changePassword);
$changePassword->createDiv("blankspace"," ",$changePassword);
$changePassword->createDiv("navBar","$links",$changePassword);
$changePassword->createDiv("leftContent","$nav6l$nav7l",$changePassword);
$changePassword->createDiv("centerContent","<form id='password' action='controller.php?function=changePassword' method='POST'>".$passwordTable->returnTable()."</form>",$changePassword);
$changePassword->createDiv("rightContent"," ",$changePassword);
//------Gets the value of the divs
$divHeader = $changePassword->getDivContentByKey('header');
$divBlankSpace = $changePassword->getDivContentByKey('blankspace');
$divNavBar = $changePassword->getDivContentByKey('navBar');
$divLeftContainer = $changePassword->getDivContentByKey('leftContent');
$divCenterContainer = $changePassword->getDivContentByKey('centerContent');
$divRightContainer = $changePassword->getDivContentByKey('rightContent');
$changePassword->createDiv("bodyContainer","$divLeftContainer$divCenterContainer$divRightContainer",$changePassword);
$divBodyContainer = $changePassword->getDivContentByKey('bodyContainer');
$changePassword->createDiv("container","$divHeader$divBlankSpace$divNavBar$divBodyContainer",$changePassword);
$divContainer = $changePassword->getDivContentByKey('container');
$changePassword->addContent($divContainer);
?>