diff --git a/app/pages/profile.php b/app/pages/profile.php index 65c825d..fac476e 100644 --- a/app/pages/profile.php +++ b/app/pages/profile.php @@ -1,12 +1,20 @@ getUserDetails($user); -include '../app/templates/profile.php'; +switch ($action) { + case 'edit': + include '../app/templates/profile-edit.php'; + break; + + default: + include '../app/templates/profile.php'; +} ?> diff --git a/app/templates/profile-edit.php b/app/templates/profile-edit.php new file mode 100644 index 0000000..b5c7a5d --- /dev/null +++ b/app/templates/profile-edit.php @@ -0,0 +1,74 @@ + + +
Profile of = $userDetails[0]['username'] ?>
+ ++ Edit +
+ diff --git a/public_html/static/all.css b/public_html/static/all.css index 0819941..ed53298 100644 --- a/public_html/static/all.css +++ b/public_html/static/all.css @@ -157,3 +157,17 @@ .sidebar-content a { text-decoration: none; } + +/* profile */ +.scroll-box { + width: 100%; + height: 250px; + padding: 10px; + border: 0; + background-color: #f8f9fa; + white-space: pre-wrap; + overflow-y: scroll; + resize: none; + font-family: inherit; + font-size: 14px; +}