Location: PHPKode > projects > Spam free PHP GuestBook > guestbook/gb/admin/include/edituser.php
<?php
/*
Copyright (c) 2008 http://ramui.com. All right reserved.
This product is protected by copyright and distributed under licenses restricting copying, distribution. Permission is granted to the public to download and use this script provided that this Notice and any statement of authorship are reproduced in every page on all copies of the script.
*/
$hmenu='<ul><li><a href="javascript:fwContact()">Contact</a></li>';
$hmenu.='<li><a href="javascript:fwBan()"><span id="fw_ban">';
if($row['level']==6){$hmenu.='Ban';}
if(($row['level']==7)||($row['level']==8)){$hmenu.='Confirm';}
if($row['level']==0){$hmenu.='Lift ban';}
$hmenu.='</span></a></li></li>';
$hmenu.='<li><a href="javascript:fwDelete()">Delete</a></li>';
$hmenu.='<li style="border:none;"><ul><li><a href="index.php?qur=3M">User list</a></li>';
$hmenu.=((empty($row['p']))? '<li>View all post(0) from this user</li>':'<li><a href="index.php?qur=2M6M1M'.$user_id.'M0M0">View all post('.$row['p'].') from this user</a></li>');
$hmenu.=((empty($row['c']))? '<li>View all comments(0) from this user</li>':'<li><a href="index.php?qur=9M6M1M'.$user_id.'M0M0M0">View all comments('.$row['c'].') from this user</a></li>');
$hmenu.='</ul></li></ul>';
?>
<form name="frmedit" id="frmedit" style="width:560px;margin:10px;" onsubmit="return false;">
<div id="hmenu"><?php echo $hmenu;?></div>
<div style="clear:both; padding:3px; font-size:14px;background:#eeeeee;margin:15px 0;"><b>User::<?php echo $row['user'];?>; Date of join::<?php echo date(DATE_ATOM, $row['date']);?></div>
<table id="fw_addcomment">
<tr><td id="feedback"></td></tr>
<tr><td style="padding: 10px 0;">
<b>Real name</b> (50 characters maximum):</td><td><input type="text" value="<?php echo $row['name'];?>" class="text" style="width:350px;height:24px;" name="name" id="name" size="20"></td></tr>
<tr><td style="padding: 10px 0;">
<b>Email</b> (100 characters maximum):</td><td><input type="text" class="text" value="<?php echo $row['email'];?>" style="width:350px;height:24px;" name="email" id="email" size="20"></td></tr>
<tr><td style="padding: 10px 0;">
<b>Website</b> (180 characters maximum):</td><td><input type="text" value="<?php echo $row['website'];?>" class="text" style="width:350px;height:24px;" name="website" id="website" size="20"></td></tr>
<tr><td colspan="2" style="padding:30px 0 0 0px;">
<input type="reset" class="fw_button" value="Reset" name="B1" onclick="resetForm()">&nbsp;&nbsp;<input type="button" class="fw_button" value="Submit" onClick="fwEdit()">
&nbsp;&nbsp;<input style="width:15px; border:none; margin:0;" type="checkbox" name="fw_allowemail"<?php echo ($row['allowemail']=='Y')? ' checked' : '';?> /> Receive email</td></tr>
</table></form>
<script type="text/javascript">
var uid=<?php echo $user_id;?>;
</script>
</div>
Return current item: Spam free PHP GuestBook