view.html.php 1.0 KB

12345678910111213141516171819202122232425262728293031
  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; ?>
  20. <h2>Recently Watched</h2>
  21. <hr />
  22. <table class="table">
  23. <?php $count = (count($history > 10)) ? 10 : count($history);
  24. for ($i = 0; $i < $count; $i++): ?>
  25. <tr>
  26. <td><?= $this->html->link($history[$i]["series_title"], '/animelist/$user->username/opinion'); ?></td>
  27. <td><?= $history[$i]["my_finish_date"] ?></td>
  28. </tr>
  29. <?php endfor; ?>
  30. </table>