diff options
Diffstat (limited to 'views/Users')
-rw-r--r-- | views/Users/Photos/index.html.php | 7 | ||||
-rw-r--r-- | views/Users/confirm.html.php | 1 | ||||
-rw-r--r-- | views/Users/feed.html.php | 45 | ||||
-rw-r--r-- | views/Users/index.html.php | 12 | ||||
-rw-r--r-- | views/Users/login.html.php | 7 | ||||
-rw-r--r-- | views/Users/logintest.html.php | 1 | ||||
-rw-r--r-- | views/Users/openid.html.php | 4 | ||||
-rw-r--r-- | views/Users/post.html.php | 3 | ||||
-rw-r--r-- | views/Users/profile.html.php | 9 | ||||
-rw-r--r-- | views/Users/signup.html.php | 17 | ||||
-rw-r--r-- | views/Users/step2.html.php | 12 | ||||
-rw-r--r-- | views/Users/test.html.php | 0 |
12 files changed, 118 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..d37b0a6 --- /dev/null +++ b/views/Users/feed.html.php @@ -0,0 +1,45 @@ +<h1>Welcome <?= $user->username ?></h1> +<div class="post"> +<?= $this->form->create(null, array('action' => 'post')); ?> + <?= $this->form->field('body', array('type' => 'textarea')); ?> + <?= $this->form->submit('Post!'); ?> +<?= $this->form->end(); ?> +</div> +<h2> Here are some posts:</h2> + +<?php if($feed): ?> +<?php foreach ($feed as $post): ?> +<div class="date"> + <span class="month"><a href="#" title="">Nov</a></span> + <span class="day"><a href="#" title="">8</a></span> + </div> <!-- .date --> + + + + <div class="post post-link"> + <!--<h3><a href="#" title="http://" >My favorite web site</a></h3>--> + + <p><?php echo $post->body ?></p> + + + + <div class="postmeta"> + + <p class="posttime"><a href="#" title="http://demo.tumblr.com/post/234/my-favorite-web-site">Posted <?=date('m/d/y', $post->datetime->sec) ?></a></p> + + + + <p class="notes"><a href="#" title="http://demo.tumblr.com/post/234/my-favorite-web-site#permalink-notes">1,256 notes</a></p> + + + + + + </div> <!-- .postmeta --> + </div> <!-- .post --> + <div class="clear newpost"></div> +<?php endforeach; ?> +<?php else: ?> +<p>Woops! You have no posts, why not post something and get the party started!</p> +<?php endif; ?> +
\ 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..58aa0b0 --- /dev/null +++ b/views/Users/signup.html.php @@ -0,0 +1,17 @@ +<?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('password', array('type' => 'password')); ?> + <?=$this->form->field('email'); ?> + <!-- This needs to be moved to the admin panel + <?=$this->form->select('level', array('User' => 'User', 'Mod' => 'Mod', 'Admin' => 'Admin', 'root' => 'Root'), array('value' => 1)); ?> + --> + <?=$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 |