view.html.php 708 B

12345678910111213141516171819
  1. <?= $this->form->create($photo, array('type' => 'file')); ?>
  2. <?php if($photo): ?>
  3. <?= $this->form->label("This is you"); ?>
  4. <?php else: ?>
  5. <h1>Upload a photo</h1>
  6. <?= $this->form->field('file', array('type' => 'file')); ?>
  7. <?php endif; ?>
  8. <?= $this->form->end(); ?>
  9. <h1> <?= $user->username ?> </h1>
  10. <hr/>
  11. profile views: <?= $user->profileViews ?><br/>
  12. Last Online: <?= (empty($user->lastLogin)) ? "Never" : date('m/d/y', $user->lastLogin->sec); ?><br/>
  13. <?php if (!empty($profile)): ?>
  14. <?php foreach($profile as $key => $value): ?>
  15. <?= $key ?> : <?= $value ?>
  16. <?php endforeach; ?>
  17. <?php else: ?>
  18. <?= $this->html->link('Click to edit profile', "/profile/edit/$user->username"); ?>
  19. <?php endif; ?>