-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathedit_profile.php
97 lines (89 loc) · 3.67 KB
/
edit_profile.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<?php
/*!
* **************************************************************
**************** ProQuiz V2.0.0b ******************************
***************************************************************/
/* documentation at: http://proquiz.softon.org/documentation/
/* Designed & Maintained by
/* - Softon Technologies
/* Developer
/* - Manzovi
/* For Support Contact @
/* - [email protected]
/* version 2.0.0 beta (2 Feb 2011)
/* Licensed under GPL license:
/* http://www.gnu.org/licenses/gpl.html
*/
?><div id="newquiz" style="margin-top: 50px;">
<form action="<?php echo "functions.php?action=edit_profile&type=".$_GET['type']; ?>" enctype="multipart/form-data" method="post" id="profile_edit">
<?php if($_GET['type']=='username'){ ?>
<fieldset>
<legend>Username</legend>
<ul>
<li>
<label for="edit_username"><span class="required">Enter the Username</span></label>
<input type="text" id="edit_username" name="username" value="<?php echo $_SESSION['UA_DETAILS']['username']; ?>" />
</li>
</ul>
</fieldset>
<?php }elseif($_GET['type']=='email'){ ?>
<fieldset>
<legend>Email</legend>
<ul>
<li>
<label for="edit_email"><span class="required">Enter Your Email</span></label>
<input type="text" id="edit_email" name="email" value="<?php echo $_SESSION['UA_DETAILS']['email']; ?>" />
</li>
</ul>
</fieldset>
<?php }elseif($_GET['type']=='password'){ ?>
<fieldset>
<legend>Password</legend>
<ul>
<li>
<label for="edit_password"><span class="required">Enter Your Password</span></label>
<input type="password" id="edit_password" name="password" value="" />
</li>
<li>
<label for="edit_password"><span class="required">Confirm Your Password</span></label>
<input type="password" id="edit_cpassword" name="cpassword" value="" />
</li>
</ul>
</fieldset>
<?php }elseif($_GET['type']=='other'){ ?>
<fieldset>
<legend>Profile</legend>
<ul>
<li>
<label for="fname"><span class="required">First Name</span></label>
<input id="fname" name="fname" class="text required" type="text" value="<?php echo $_SESSION['UA_DETAILS']['fname']; ?>" />
</li>
<li>
<label for="lname"><span class="required">Last Name</span></label>
<input id="lname" name="lname" class="text required" type="text" value="<?php echo $_SESSION['UA_DETAILS']['lname']; ?>" />
</li>
<li>
<label for="profile"><span class="required">Profile Details</span></label>
<textarea class="text" maxlength="200" name="profile" id="profile" ><?php echo $_SESSION['UA_DETAILS']['profile']; ?></textarea>
</li>
<li>
<label for="dob"><span class="required">Date Of Birth</span></label>
<input id="dob" name="dob" class="required" type="text" value="<?php echo $_SESSION['UA_DETAILS']['dob']; ?>" />
</li>
<li>
<label for="gender"><span class="required">Gender</span></label>
<span><input type="radio" name="gender" class="required" value="m" <?php if($_SESSION['UA_DETAILS']['gender']=='m'){ echo 'checked="checked"'; }?>/> Male</span>
<span><input type="radio" name="gender" class="required" value="f" <?php if($_SESSION['UA_DETAILS']['gender']=='f'){ echo 'checked="checked"'; }?>/> Female</span>
</li>
<li>
<label for="modlgn_photo">Profile Photo</label>
<input type="file" name="photo" accept="gif|jpg|png" id="modlgn_photo" />
</li>
</ul>
</fieldset>
<?php } ?>
<fieldset class="submit">
<input type="submit" class="sbutton" value="Done" />
</fieldset>
</form>
</div>