Location: PHPKode > scripts > Ramui web hosting directory script > Ramui web hosting directory script/gb/admin/include/edituser.php
<?php
/*
Copyright (c) 2011 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='<table id="menu"><tr><td width="100px"><a href="javascript:fwContact(\''.$row['email'].'\')">Contact</a></td>';
$hmenu.='<td width="100px"><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></td>';
$hmenu.='<td width="100px"><a href="javascript:fwDelete()">Delete user</a></td>';
$hmenu.='<td width="100px"><a href="index.php?qur=3M">User list</a></td>';
$hmenu.='<td style="border-right:none;"></td></tr></table>';
echo $hmenu;
?>
<form name="frmedit" id="frmedit" style="width:100%;margin:10px 0;" onsubmit="return false;">
<table id="fw_addcomment" style="width:100%;margin-top:20px;">
<tr><td id="feedback"></td></tr>
<tr><td style="padding:5px 10px;width:150px;"><b>User:</b></td><td style="padding: 5px 0;"><?php echo $row['user'];?></td></tr>
<tr><td style="padding:5px 10px;width:150px;"><b>Date of join:</b></td><td style="padding: 5px 0;"><?php echo gmdate("M d, H:i", $row['date']);?></td></tr>
<tr><td style="padding:5px 10px;width:150px;">
<b>Real name</b>:<br />(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:5px 10px;">
<b>Email</b>:<br />(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:5px 10px;">
<b>Website</b>:<br />(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:10px 0;"><div style="clear:both;background:#eeeeee;padding:10px;border:1px solid #aaaaaa;">
No of comments: <?php echo (empty($row['c']))? '0': $row['c'].' <a href="index.php?qur=9M6M1M'.$user_id.'M0M0M0">View all comments from '.$row['user'].'</a>';?><br /><br />
No of post: <?php echo (empty($row['p']))? '0': $row['p'].' <a href="index.php?qur=2M6M1M'.$user_id.'M0M0">View all post from '.$row['user'].'</a>';?>
</div></td></tr>
<tr><td colspan="2" style=";padding:20px 30px;">
<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: Ramui web hosting directory script