PHP Classes

File: app/Views/Profile/show.php

Recommend this page to a friend!
  Classes of Faris AL-Otabi   Task App   app/Views/Profile/show.php   Download  
File: app/Views/Profile/show.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Task App
Create and manage tasks to be done
Author: By
Last change:
Date: 1 month ago
Size: 1,065 bytes
 

Contents

Class file image Download
<?= $this->extend("base"); ?>

<?= $this->section("title"); ?>Show Profile<?= $this->endSection(); ?>

<?= $this->section("content"); ?>

<h1 class="title">Profile</h1>

<?php if ($user->profile_image) : ?>
<img src="<?= site_url('/profile/image') ?>" width="200" height="200" alt="" />

    <div>
        <a class="button is-danger" href="/profileimage/delete">Delete Image</a>
    </div>
<?php else : ?>
<img src="<?= site_url('/images/blank.jpg') ?>" width="200" height="200" alt="" />
<?php endif; ?>

<div class="content">
    <dl>
        <dt class="has-text-weight-bold">Username:</dt>
        <dd><?= esc($user->username); ?></dd>
        <dt class="has-text-weight-bold">Email Address:</dt>
        <dd><?= esc($user->email); ?></dd>
    </dl>
</div>

<a class="button is-link" href="<?= site_url('/profile/edit'); ?>">Edit</a>
<a class="button is-link" href="<?= site_url('/profile/editpassword'); ?>">Update Password</a>
<a class="button is-link" href="<?= site_url('/profileimage/edit'); ?>">Update Profile Image</a>

<?= $this->endSection(); ?>