Campustream 1.0
A social network MQP for WPI
application/views/account/settings/profile.php
Go to the documentation of this file.
00001 <h1>Edit Profile</h1>
00002 
00003 <div id="settings-desc">
00004         <p>Here you can edit all of the details of your account and personalize it as much as you want.</p>
00005 </div>
00006 
00007 <div id="profile-settings">
00008         <div class="settings-left">
00009                 <form action="/settings/update_profile" method="post">
00010                         <table id="profile-settings-table">
00011                                 <tr>
00012                                         <td>Name</td>
00013                                         <td><input class="profile-setting" type="text" name="name" value="<?=$user->name?>" /></td>
00014                                 </tr>
00015                                 <tr>
00016                                         <td>Email</td>
00017                                         <td style="color: #555555"><?=$user->email?></td>
00018                                 </tr>
00019                                 <tr>
00020                                         <td>Website</td>
00021                                         <td><input class="profile-setting" type="text" name="website" value="<?=$user->website?>" /></td>
00022                                 </tr>
00023                                 <tr>
00024                                         <td>Bio</td>
00025                                         <td>
00026                                                 <textarea name="bio" id="profile-setting-bio"><?=$user->bio?></textarea>
00027                                         </td>
00028                                 </tr>
00029                                 <tr>
00030                                         <td>Class Year</td>
00031                                         <td><input class="profile-setting" type="text" name="class_year" value="<?=$user->class_year ? $user->class_year : ''?>" /></td>
00032                                 </tr>
00033                                 <tr>
00034                                         <td>College Majors</td>
00035                                         <td><input class="profile-setting" type="text" name="college_majors" value="<?=$user->college_majors?>" /></td>
00036                                 </tr>
00037                                 <tr>
00038                                         <td>College Minors</td>
00039                                         <td><input class="profile-setting" type="text" name="college_minors" value="<?=$user->college_minors?>" /></td>
00040                                 </tr>
00041                                 <tr>
00042                                         <td></td>
00043                                         <td><input type="submit" value="Save Profile" id="profile-save" class="fancy-button-grey" /></td>
00044                                 </tr>
00045                         </table>
00046                 </form>
00047         </div>
00048         
00049         <div class="settings-right">
00050                 <div id="profile-settings-photo">
00051                         <div id="settings-photo">
00052                                 <img src="<?=$user->avatar_url('medium')?>" alt="<?=$user->username?>" />
00053                         </div>
00054                         <div id="settings-photo-controls">
00055                                 <p>Update your profile photo</p>
00056                                 <form action="/settings/profile_photo/update" enctype="multipart/form-data" method="post">
00057                                         <input type="file" name="photo" />
00058                                         <input type="submit" class="fancy-button-grey" value="Update Photo" />
00059                                 </form>
00060                                 
00061                                 <? if($user->has_avatar): ?>
00062                                 <p>... or remove your photo</p>
00063                                 <form action="/settings/profile_photo/remove" method="post">
00064                                         <input type="hidden" name="form_auth" value="<?=md5("fjLDI*YF:S:F&**TF" . $user->username)?>" />
00065                                         <input type="submit" class="fancy-button-grey" value="Remove Photo" />
00066                                 </form>
00067                                 <? endif; ?>
00068                         </div>
00069                         
00070                         <div style="clear:both;"></div>
00071                         
00072                         <div id="profile-settings-email">
00073                                 <input type="hidden" id="email-form-auth" value="<?=md5("fjLDI*YF:S:F&**TF" . $user->username)?>" />
00074                                 <table>
00075                                         <tr>
00076                                                 <td>Notification Emails</td>
00077                                                 <td><input type="checkbox" id="notification-emails" <?=($user->email_enabled) ? 'checked="checked"' : ''?> /></td>
00078                                         </tr>
00079                                 </table>
00080                         </div>
00081                 </div>
00082         </div>
00083         
00084         <div style="clear:both;"></div>
00085 </div>