summaryrefslogtreecommitdiffstats
path: root/views/Profile
diff options
context:
space:
mode:
authorMichael Francis <edude03@gmail.com>2011-05-28 13:28:16 -0400
committerMichael Francis <edude03@gmail.com>2011-05-28 13:28:16 -0400
commit2389d66da849798f8d4ec5f10e3b07c11da49185 (patch)
treee22556d12982395b469a23420c662662e3e064cc /views/Profile
downloadotakuhub-2389d66da849798f8d4ec5f10e3b07c11da49185.tar.xz
Initial Commit
Diffstat (limited to 'views/Profile')
-rw-r--r--views/Profile/add.html.php4
-rw-r--r--views/Profile/edit.html.php6
-rw-r--r--views/Profile/view.html.php19
3 files changed, 29 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..c6c0ed1
--- /dev/null
+++ b/views/Profile/view.html.php
@@ -0,0 +1,19 @@
+<?= $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; ?> \ No newline at end of file