diff options
author | raylu <raylu@mixpanel.com> | 2011-07-02 16:51:32 -0700 |
---|---|---|
committer | raylu <raylu@mixpanel.com> | 2011-07-02 16:51:32 -0700 |
commit | 83483a1826d1d05e2f9733746f35fef1939b8c0a (patch) | |
tree | a2c382bfc4e3f5b8554604f0595e51119547fa43 /views/profile | |
parent | 495e795089e2839474a653733dd0adf2c6c43105 (diff) | |
download | otakuhub-83483a1826d1d05e2f9733746f35fef1939b8c0a.tar.xz |
lowercase
Diffstat (limited to 'views/profile')
-rw-r--r-- | views/profile/add.html.php | 4 | ||||
-rw-r--r-- | views/profile/edit.html.php | 6 | ||||
-rw-r--r-- | views/profile/view.html.php | 31 |
3 files changed, 41 insertions, 0 deletions
diff --git a/views/profile/add.html.php b/views/profile/add.html.php new file mode 100644 index 0000000..76744b9 --- /dev/null +++ b/views/profile/add.html.php @@ -0,0 +1,4 @@ +<?= $this->form->create($photo, array('type' = > 'file')); ?> +<h1>Upload a photo</h1> + <?= $this->form->field('file', array('type' => 'file')); ?> + <? $this->form->end(); ?>
\ No newline at end of file diff --git a/views/profile/edit.html.php b/views/profile/edit.html.php new file mode 100644 index 0000000..6e0a2b2 --- /dev/null +++ b/views/profile/edit.html.php @@ -0,0 +1,6 @@ +<?= $this->form->create($profile); ?> + <?= $this->form->field('firstname', array('type' => 'text')); ?> + <?= $this->form->field('lastname', array('type' => 'text')); ?> + <?= $this->form->field('birthday', array('type' => 'text')); ?> + <?= $this->form->submit('save'); ?> +<?= $this->form->end(); ?>
\ No newline at end of file diff --git a/views/profile/view.html.php b/views/profile/view.html.php new file mode 100644 index 0000000..341f4a9 --- /dev/null +++ b/views/profile/view.html.php @@ -0,0 +1,31 @@ +<?= $this->form->create($photo, array('type' => 'file')); ?> + <?php if($photo): ?> + <?= $this->form->label("This is you"); ?> + <?php else: ?> + <h1>Upload a photo</h1> + <?= $this->form->field('file', array('type' => 'file')); ?> + <?php endif; ?> +<?= $this->form->end(); ?> +<h1> <?= $user->username ?> </h1> +<hr/> +profile views: <?= $user->profileViews ?><br/> +Last Online: <?= (empty($user->lastLogin)) ? "Never" : date('m/d/y', $user->lastLogin->sec); ?><br/> +<?php if (!empty($profile)): ?> + <?php foreach($profile as $key => $value): ?> + <?= $key ?> : <?= $value ?> + <?php endforeach; ?> +<?php else: ?> +<?= $this->html->link('Click to edit profile', "/profile/edit/$user->username"); ?> +<?php endif; ?> + +<h2>Recently Watched</h2> +<hr /> +<table class="table"> +<?php $count = (count($history > 10)) ? 10 : count($history); +for ($i = 0; $i < $count; $i++): ?> +<tr> +<td><?= $this->html->link($history[$i]["series_title"], '/animelist/$user->username/opinion'); ?></td> +<td><?= $history[$i]["my_finish_date"] ?></td> +</tr> +<?php endfor; ?> +</table>
\ No newline at end of file |