From 2389d66da849798f8d4ec5f10e3b07c11da49185 Mon Sep 17 00:00:00 2001 From: Michael Francis Date: Sat, 28 May 2011 13:28:16 -0400 Subject: Initial Commit --- views/Profile/add.html.php | 4 ++++ views/Profile/edit.html.php | 6 ++++++ views/Profile/view.html.php | 19 +++++++++++++++++++ 3 files changed, 29 insertions(+) create mode 100644 views/Profile/add.html.php create mode 100644 views/Profile/edit.html.php create mode 100644 views/Profile/view.html.php (limited to 'views/Profile') 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 @@ +form->create($photo, array('type' = > 'file')); ?> +

Upload a photo

+ form->field('file', array('type' => 'file')); ?> + 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 @@ +form->create($profile); ?> + form->field('firstname', array('type' => 'text')); ?> + form->field('lastname', array('type' => 'text')); ?> + form->field('birthday', array('type' => 'text')); ?> + form->submit('save'); ?> +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 @@ +form->create($photo, array('type' => 'file')); ?> + + form->label("This is you"); ?> + +

Upload a photo

+ form->field('file', array('type' => 'file')); ?> + +form->end(); ?> +

username ?>

+
+profile views: profileViews ?>
+Last Online: lastLogin)) ? "Never" : date('m/d/y', $user->lastLogin->sec); ?>
+ + $value): ?> + : + + +html->link('Click to edit profile', "/profile/edit/$user->username"); ?> + \ No newline at end of file -- cgit v1.2.3