summaryrefslogtreecommitdiffstats
path: root/views/users
diff options
context:
space:
mode:
authorraylu <raylu@mixpanel.com>2011-07-02 16:51:32 -0700
committerraylu <raylu@mixpanel.com>2011-07-02 16:51:32 -0700
commit83483a1826d1d05e2f9733746f35fef1939b8c0a (patch)
treea2c382bfc4e3f5b8554604f0595e51119547fa43 /views/users
parent495e795089e2839474a653733dd0adf2c6c43105 (diff)
downloadotakuhub-83483a1826d1d05e2f9733746f35fef1939b8c0a.tar.xz
lowercase
Diffstat (limited to 'views/users')
-rw-r--r--views/users/Photos/index.html.php7
-rw-r--r--views/users/confirm.html.php1
-rw-r--r--views/users/feed.html.php49
-rw-r--r--views/users/index.html.php12
-rw-r--r--views/users/login.html.php7
-rw-r--r--views/users/logintest.html.php1
-rw-r--r--views/users/openid.html.php4
-rw-r--r--views/users/post.html.php3
-rw-r--r--views/users/profile.html.php9
-rw-r--r--views/users/signup.html.php14
-rw-r--r--views/users/step2.html.php12
-rw-r--r--views/users/test.html.php0
12 files changed, 119 insertions, 0 deletions
diff --git a/views/users/Photos/index.html.php b/views/users/Photos/index.html.php
new file mode 100644
index 0000000..ba0fd60
--- /dev/null
+++ b/views/users/Photos/index.html.php
@@ -0,0 +1,7 @@
+<?php if (count($photo) == 0): ?>
+<?= $this->html->link("photo::add", "Add a photo"); ?>
+<?php else: ?>
+<?php foreach($photo as $photos): ?>
+<img src="$photo" ?>
+<?php endforeach; ?>
+<?php endif; ?> \ No newline at end of file
diff --git a/views/users/confirm.html.php b/views/users/confirm.html.php
new file mode 100644
index 0000000..cd0a6a7
--- /dev/null
+++ b/views/users/confirm.html.php
@@ -0,0 +1 @@
+<p>Thanks for signing up. Please check your email to confirm your registration. If you lost you key click <a href = "/signup/reconfirm">here </a> to have it resent</p>
diff --git a/views/users/feed.html.php b/views/users/feed.html.php
new file mode 100644
index 0000000..142fe7a
--- /dev/null
+++ b/views/users/feed.html.php
@@ -0,0 +1,49 @@
+<!-- page container -->
+<!-- page title -->
+<h2 class="ribbon blue full" ><?= $user->username ?>'s Feed <span>Here's what's poppin'</span> </h2>
+<div class="triangle-ribbon blue" ></div>
+<br class="cl" >
+ <!-- sidebar -->
+ <aside>
+ <ul class="sidebar-nav" >
+ <li class="first current" ><a href="#" >Feed</a></li>
+ <li class="" ><a href="#" >Direct Message</a></li>
+ </ul>
+ </aside>
+ <!-- Page Content -->
+
+<div id="page-content" class="two-col container_12" >
+<?= $this->form->create(null, array('action' => 'post')); ?>
+ <?= $this->form->field('body', array('type' => 'textarea')); ?>
+ <?= $this->form->submit('Post!', array('class' => 'button', 'style' => 'float:right')); ?>
+<?= $this->form->end(); ?>
+<br class ="cl">
+
+ <?php if(isset($feed)): ?>
+ <?php foreach($feed as $post): ?>
+ <div class="grid_4"><img class="inlinepic" src="/img/about.jpg" alt="" /></div>
+ <div class="grid_8">
+ <h4><?= $post->username ?></h4>
+ <p><?php echo $post->body; ?> </p>
+ <h5 class="inline">Skills:</h5>
+ <ul class="tags">
+ <li>HTML</li>
+ <li>CSS</li>
+ <li>JS/jQuery</li>
+ </ul>
+ <h5 class="inline">Social:</h5>
+ <ul class="social">
+ <li><a href="#"><img class="tooltip" src="/img/social/16/twitter.png" title="Follow me on Twitter" alt="twitter" /></a></li>
+ <li><a href="#"><img class="tooltip" src="/img/social/16/facebook.png" title="My Facebook profile" alt="facebook" /></a></li>
+ <li><a href="#"><img class="tooltip" src="/img/social/16/linkedin.png" title="My LinkedIn profile" alt="linkedin" /></a></li>
+ <li><a href="#"><img class="tooltip" src="/img/social/16/skype.png" title="Call me on Skype" alt="skype" /></a></li>
+ </ul>
+ </div>
+ <br class="cl">
+ <?php endforeach; ?>
+ <?php else: ?>
+ <p>Woops! There's no posts yet. Make some friends and get the party started!</p>
+ <?php endif; ?>
+ </div>
+ <br class="cl" />
+ <br class="cl" /> \ No newline at end of file
diff --git a/views/users/index.html.php b/views/users/index.html.php
new file mode 100644
index 0000000..4705d1c
--- /dev/null
+++ b/views/users/index.html.php
@@ -0,0 +1,12 @@
+<?php if (empty($users)): ?>
+ <h1>No Users Found!</h1>
+<?php else: ?>
+<?php foreach($users as $user): ?>
+<user>
+ <h1><?=$user->username ?> </h1>
+ <p>Salted Password: <?=$user->password ?></p>
+ <p>Salt: <?=$user->salt ?></p>
+ <p>Joined on: <?=date('m/d/y', $user->joinedOn->sec) ?></p>
+<user>
+<?php endforeach; ?>
+<?php endif; ?> \ No newline at end of file
diff --git a/views/users/login.html.php b/views/users/login.html.php
new file mode 100644
index 0000000..0bfb2c5
--- /dev/null
+++ b/views/users/login.html.php
@@ -0,0 +1,7 @@
+<?=$this->flashMessage->output(); ?>
+<?=$this->form->create(); ?>
+ <?=$this->form->field('username'); ?>
+ <?=$this->form->field('password', array('type' => 'password')); ?>
+ <?=$this->form->field('remember', array('type' => 'checkbox')); ?>
+ <?=$this->form->submit('Login!'); ?>
+<?=$this->form->end(); ?> \ No newline at end of file
diff --git a/views/users/logintest.html.php b/views/users/logintest.html.php
new file mode 100644
index 0000000..f1f91c4
--- /dev/null
+++ b/views/users/logintest.html.php
@@ -0,0 +1 @@
+<?= var_dump($data); ?> \ No newline at end of file
diff --git a/views/users/openid.html.php b/views/users/openid.html.php
new file mode 100644
index 0000000..9a6e588
--- /dev/null
+++ b/views/users/openid.html.php
@@ -0,0 +1,4 @@
+<?= $this->form->create(); ?>
+ <?= $this->form->field('identity', array('type' => 'text')); ?>
+ <?= $this->form->submit('Login'); ?>
+<?= $this->form->end(); ?> \ No newline at end of file
diff --git a/views/users/post.html.php b/views/users/post.html.php
new file mode 100644
index 0000000..5f2c237
--- /dev/null
+++ b/views/users/post.html.php
@@ -0,0 +1,3 @@
+<?= $this->form->create($post); ?>
+ <?= $this->form->field("body", array('type' => 'textarea')); ?>
+<?= $this->form->end(); ?> \ No newline at end of file
diff --git a/views/users/profile.html.php b/views/users/profile.html.php
new file mode 100644
index 0000000..a29304d
--- /dev/null
+++ b/views/users/profile.html.php
@@ -0,0 +1,9 @@
+<h1><?=$user->name; ?></h1>
+<?= $this->form->create($photo, array('type' => 'file')); ?>
+ <?php if($photo->exists()): ?>
+ <?= $this->form->label("This is you"); ?>
+ <?php else: ?>
+ <p>Upload a photo</p>
+ <?= $this->form->field('file', array('type' => 'file')); ?>
+ <?php endif; ?>
+<?= $this->form->end(); ?> \ No newline at end of file
diff --git a/views/users/signup.html.php b/views/users/signup.html.php
new file mode 100644
index 0000000..4112bdd
--- /dev/null
+++ b/views/users/signup.html.php
@@ -0,0 +1,14 @@
+<?php if (isset($key)): ?>
+Confirmation Link: <a href="<?=$link ?>/<?=$key->key ?>"> Link </a>
+<?php else: ?>
+<?php if(isset($user)): ?>
+<?=$this->form->create($user); ?>
+<?php else: ?>
+<?=$this->form->create(); ?>
+<?php endif; ?>
+ <?=$this->form->field('username'); ?>
+ <?=$this->form->field('newpass', array('type' => 'password', 'label' => 'password')); ?>
+ <?=$this->form->field('email'); ?>
+ <?=$this->form->submit('Signup!'); ?>
+<?=$this->form->end(); ?>
+<?php endif; ?> \ No newline at end of file
diff --git a/views/users/step2.html.php b/views/users/step2.html.php
new file mode 100644
index 0000000..dfdcffa
--- /dev/null
+++ b/views/users/step2.html.php
@@ -0,0 +1,12 @@
+<?=$this->flashMessage->output(); ?>
+<?=$this->form->create(); ?>
+ <?=$this->form->field('Name'); ?>
+ <!-- put a label here -->
+ <?=$this->form->text("What's your birthday>"); ?>
+ <?=$this->form->field('day', array('type' => 'text')); ?>
+ <?=$this->form->field('month', array('type' => 'text')); ?>
+ <?=$this->form->field('year', array('type' => 'text')); ?>
+ <?=$this->form->field('location', array('type' => 'text')) ?>
+ <?=$this->form->select('gender', array('Male' => 'Male', 'Female' => 'Female')); ?>
+ <?=$this->form->submit('Create my account!'); ?>
+<?=$this->form->end(); ?> \ No newline at end of file
diff --git a/views/users/test.html.php b/views/users/test.html.php
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/views/users/test.html.php