settings.html.php 3.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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 style='float:left'><h5>Export my Data</h5></div><div style='float:right'><a href="#email" rel="prettyPhoto" >Manage</a></div>
  49. <div style="clear:both" ></div>
  50. <hr />
  51. <div style='float:left'>Download all the dirt we have on you</div><div style='float:right'> </div>
  52. <br class = "cl"/>
  53. <br />
  54. <div id="password" style="display: none;">
  55. <h2> Change Password </h2>
  56. <?= $this->form->create(null, array('url' => '/users/changePassword', 'id' => 'changepass')); ?>
  57. <?= $this->form->field('newpass', array('type' => 'password', 'label' => 'New Password:')); ?>
  58. <?= $this->form->field('confirm', array('type' => 'password', 'label' => 'Confirm Password:')); ?>
  59. <?= $this->form->submit('Change Password'); ?>
  60. <?= $this->form->end(); ?>
  61. </div>
  62. <div id="username" style="display: none;">
  63. <h2> Change Username </h2>
  64. <p> Under normal circumstances, the username cannot be changed. However, if you really need to change your username
  65. please contact our administration team for assistance. Thank you</p>
  66. </div>
  67. <div id="name" style="display: none;">
  68. <h2> Change Name </h2>
  69. <?= $this->form->create(); ?>
  70. <?= $this->form->field('Name', array('type' => 'textbox')); ?>
  71. <?= $this->form->submit('Save'); ?>
  72. <?= $this->form->end(); ?>
  73. </div>
  74. <div id="email" style="display: none;">
  75. <h2> Change Name </h2>
  76. <?= $this->form->create(); ?>
  77. <?= $this->form->field('email', array('type' => 'textbox', 'label' => 'E-Mail Address:')); ?>
  78. <?= $this->form->submit('Save'); ?>
  79. <?= $this->form->end(); ?>
  80. </div>
  81. <div style="clear:both"></div>
  82. <br class="cl">