(file) Return to user-profile.php CVS log (file) (dir) Up to [RizwankCVS] / geekymedia_web / photo / sspadmin

 1 rizwank 1.1 <?php
 2             require "./inc/head.php";
 3             ?>
 4             <?php include "./inc/doctype.php"; ?>
 5             <head>
 6             <?php include "./inc/charset.php"; ?>
 7             <title>SSP Admin :: User Profile</title>
 8             <?php include "./inc/head_elem.php"; ?>
 9             </head>
10             
11             <body>
12             	<div id="container">
13             		
14             		<?php include "./inc/h1.php"; ?>
15             		<?php
16             			$aid = $_GET['aid'];
17             			$query = "SELECT * FROM $utbl WHERE id=$uid";
18             			$result = mysql_query($query);
19             			$row = mysql_fetch_array($result);
20             			$pwd = $row['pwd'];
21             			
22 rizwank 1.1 		?>
23             		
24             		<h2>Edit User Profile</h2>
25             		<p>NOTE: After updating your profile, you will be automatically logged out so that you can sign in with your new information.</p>
26             		
27             		<?php 
28             		if ($m==1)
29             			echo '<p class="update-msg"><small>Update Successful!</small></p>';
30             		else if ($m==2)
31             			echo '<p class="update-msg"><small>Passwords Did Not Match! Please Try Again.</small></p>';
32             		?>
33             
34             		<form action="edit-user-exe.php" method="post">
35             		<fieldset>User Name:<br />
36             			<input name="usr" type="text" value="<?php echo $currentUser; ?>" /></fieldset>
37             		<fieldset>Password:<br />
38             			<input name="pwd" type="password" value="<?php echo $pwd; ?>" /></fieldset>
39             		<fieldset>Password Again:<br />
40             			<input name="pwd2" type="password" value="<?php echo $pwd; ?>" /></fieldset>
41             		
42             		<fieldset><input type="submit" value="Update User Profile" /></fieldset>
43 rizwank 1.1 		<input type="hidden" name="uid" value="<?php echo $uid; ?>" />
44             		</form>
45             		
46             		<h2>Edit Gallery Name</h2>
47             		<?php 
48             		if ($m==3)
49             			echo '<p class="update-msg"><small>Gallery Name Updated!</small></p>';
50             		
51             		?>
52             		<form action="edit-gallery-exe.php" method="post">
53             		<fieldset>Gallery Name:<br />
54             			<input name="gn" type="text" value="<?php echo $gName; ?>" /></fieldset>
55             			<fieldset><input type="submit" value="Update Gallery Name" /></fieldset>
56             			<input type="hidden" name="uid" value="<?php echo $uid; ?>" />
57             		</form>
58             		
59             	</div>
60             	
61             	
62             </body>
63             </html>

Rizwan Kassim
Powered by
ViewCVS 0.9.2