settings.html.php 3.5 KB

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