settings.html.php 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <h2> Settings </h2>
  2. <div style='float:left'>Name</div><?php if (!isset($user->Name)): ?> <div style='float:right'><a href='#name' rel='prettyPhoto'>Set</a></div><?php endif; ?>
  3. <div style="clear:both" />
  4. <hr />
  5. <div style='float:left'>Your real name</div><div style='float:right'><?= isset($user->Name) ? $user->Name : "Not Set"; ?> </div>
  6. <br class = "cl"/>
  7. <br />
  8. <div style='float:left'>Username</div><div style='float:right'><a href="#username" rel='prettyPhoto'>Change</a></div>
  9. <div style="clear:both" />
  10. <hr />
  11. <div style='float:left'>How you're known on the site</div><div style='float:right'><?= $user->username ?> </div>
  12. <br class = "cl"/>
  13. <br />
  14. <div style='float:left'>E-Mail Address</div><div style='float:right'><a href="#email" rel="prettyPhoto" >Change</a></div>
  15. <div style="clear:both" />
  16. <hr />
  17. <div style='float:left'>The Address we'll contact you at</div><div style='float:right'><?= isset($user->email) ? $user->email : "Not Set"; ?> </div>
  18. <br class = "cl"/>
  19. <br />
  20. <div style='float:left'>Password</div><div style='float:right'><a href="#password" rel="prettyPhoto">Change</a></div>
  21. <div style="clear:both" />
  22. <hr />
  23. <div style='float:left'>The password you login with</div>
  24. <br class = "cl"/>
  25. <br />
  26. <?php //Eventually change this to submit onClick with javascript so we can get rid of the submit button :TODO: ?>
  27. <?= $this->form->create($user->settings); ?>
  28. <div style='float:left'>Privacy Mode</div>
  29. <div style="clear:both" />
  30. <hr />
  31. <div style='float:left'>Only allow friends to see your posts?</div><div style='float:right'><?= $this->form->checkbox('private'); ?> </div>
  32. </div>
  33. <?= $this->form->submit('Save Settings'); ?>
  34. <?= $this->form->end(); ?>
  35. <br class = "cl"/>
  36. <br />
  37. <div style='float:left'>Linked Accounts</div><div style='float:right'>Change</div>
  38. <div style="clear:both" />
  39. <hr />
  40. <div style='float:left'>Your OpenID</div><div style='float:right'>Not Set</div>
  41. <br class = "cl"/>
  42. <br />
  43. <div id="password" style="display: none;">
  44. <h2> Change Password </h2>
  45. <?= $this->form->create(null, array('url' => '/users/changePassword', 'id' => 'changepass')); ?>
  46. <?= $this->form->field('newpass', array('type' => 'password', 'label' => 'New Password:')); ?>
  47. <?= $this->form->field('confirm', array('type' => 'password', 'label' => 'Confirm Password:')); ?>
  48. <?= $this->form->submit('Change Password'); ?>
  49. <?= $this->form->end(); ?>
  50. </div>
  51. <div id="username" style="display: none;">
  52. <h2> Change Username </h2>
  53. <p> Under normal circumstances, the username cannot be changed. However, if you really need to change your username
  54. please contact our administration team for assistance. Thank you</p>
  55. </div>
  56. <div id="name" style="display: none;">
  57. <h2> Change Name </h2>
  58. <?= $this->form->create(); ?>
  59. <?= $this->form->field('Name', array('type' => 'textbox')); ?>
  60. <?= $this->form->submit('Save'); ?>
  61. <?= $this->form->end(); ?>
  62. </div>
  63. <div id="email" style="display: none;">
  64. <h2> Change Name </h2>
  65. <?= $this->form->create(); ?>
  66. <?= $this->form->field('email', array('type' => 'textbox', 'label' => 'E-Mail Address:')); ?>
  67. <?= $this->form->submit('Save'); ?>
  68. <?= $this->form->end(); ?>
  69. </div>
  70. <div style="clear:both" />
  71. </div>
  72. </div>
  73. <br class="cl">
  74. </div>