Preview: view_user.php
Size: 6.65 KB
/home/jambtst2015/public_html/giraffeng.com/admin/view_user.php
<?php include("includes/head.php"); ?>
<?php include("includes/header.php"); ?>
<?php
//include("functions.php");
$userId = $_REQUEST['userid'];
if($userId!=''){
$result=mysql_fetch_array(mysql_query("select * from user where id='".$userId."'"));
}
?>
<script type="text/javascript">
$(document).ready(function(){
setTimeout(function(){
$(".mydiv").fadeOut("slow", function () {
$(".mydiv").remove("slow");
});
}, 4000);
});
</script>
<div class="body_section">
<div class="body_container table_container table_container_nw" style="width:100%;">
<div class="container_bottom_section tbl_req_new" style="width:100%;">
<form name="myfrm" action="" method="post" id="formID" enctype="multipart/form-data">
<table width="1097px" border="0" cellspacing="0" cellpadding="0" bordercolor="#000000" style="border-collapse:collapse; margin:0 auto;">
<tr>
<?php if($userId!=''){ ?>
<td class="edit_nw" colspan="2">
<?php if($_REQUEST['success']=='1'){ ?>
<p class="mydiv" style="color:#090; float:left; font-family:Verdana, Geneva, sans-serif; font-size:13px; text-align:left;">User Details Added Successfully</p>
<?php } ?>
<?php if($_REQUEST['success']=='2'){ ?>
<p class="mydiv" style="color:#090; float:left; font-family:Verdana, Geneva, sans-serif; font-size:13px; text-align:left;">User Details Updated Successfully</p>
<?php } ?>
<?php if($result['user_id']!=1){
if($level==1){
?>
<?php }
?>
<?php } ?>
</td>
<?php } ?>
</tr>
<tr>
<td colspan="2">
<p class="client_table">User Details</p>
</td>
</tr>
<?php if(empty($error)){$error='';}
if($error!=''){
?>
<tr>
<td colspan="2">
<div class="error"><?php echo $error; ?></div>
</td>
</tr>
<?php } ?>
<tr>
<td>
<table width="100%" cellpadding="0" cellspacing="0" class="table_top2 table_client">
<tr style="background:#fff; ">
<td valign="top" width="49%">
<table class="table_fst frst_table_margin">
<tr style="background-color:#f9f9f9;">
<td width="170" align="left" valign="top" class="fieldtextnew view_requirement" style=" padding:0 0 0 10px; margin:0 0 2px;">Name :</td>
<td width="330" valign="top" class="fieldtextnewtext" style=" padding:0 0 0 10px; margin:0 0 2px;"><?php echo $result['name']?></td>
</tr>
<tr style="background-color:#f9f9f9;">
<td align="left" valign="middle" class="fieldtextnew view_requirement" style=" padding:0 0 0 10px; margin:0 0 2px;">Email :</td>
<td width="330" valign="top" class="fieldtextnewtext" style=" padding:0 0 0 10px; margin:0 0 2px;"><a href="mailto:<?php echo $result['email']; ?>" class="email_mail_view"><?php echo $result['email_id']; ?></a></td>
</tr>
<tr style="background-color:#f9f9f9;">
<td align="left" valign="middle" class="fieldtextnew view_requirement" style=" padding:0 0 0 10px;margin:0 0 2px;">Phone :</span></td>
<td width="330" valign="top" class="fieldtextnewtext" style=" padding:0 0 0 10px; margin:0 0 2px;"><?php if($result['phone']!='') { echo $result['phone'];if($result['extension_phone']!=''){ echo " (".$result['extension_phone'].")"; } }else{ echo "N/A"; } ?></td>
</tr>
<tr style="background-color:#f9f9f9;">
<td align="left" valign="middle" class="fieldtextnew view_requirement" style=" padding:0 0 0 10px; margin:0 0 2px;">Marks :</span></td>
<td width="330" valign="top" class="fieldtextnewtext" style=" padding:0 0 0 10px; margin:0 0 2px;"><?php echo $result['marks']; ?></td>
</tr>
</table>
</td>
<td valign="top" width="51%">
<table class="table_scnd user_table_margin">
<tr style="background-color:#f9f9f9;">
<td align="left" valign="middle" class="fieldtextnew view_requirement" style=" padding:0 0 0 10px; margin:0 0 2px;">Last Login :</span></td>
<td width="330" valign="top" class="fieldtextnewtext" style=" padding:0 0 0 10px; margin:0 0 2px;"><?php if($result['last_login']!=''){ echo getClass($result['last_login']); }else{ echo "N/A"; } ?></td>
</tr>
<tr style="background-color:#f9f9f9;">
<td width="170" align="left" valign="top" class="fieldtextnew view_requirement" style=" padding:0 0 0 10px; margin:0 0 2px;">Last Seen :</td>
<td width="330" valign="top" class="fieldtextnewtext" style=" padding:0 0 0 10px; margin:0 0 2px;"><?php if($result['last_seen']!=''){ echo $result['last_seen']; }else{ echo "N/A"; }?></td>
</tr>
<tr style="background-color:#f9f9f9;">
<td width="170" align="left" valign="top" class="fieldtextnew view_requirement" style=" padding:0 0 0 10px; margin:0 0 2px;">Mac Address :</td>
<td width="330" valign="top" class="fieldtextnewtext" style=" padding:0 0 0 10px; margin:0 0 2px;"><?php if($result['macaddress']!=''){ echo $result['macaddress']; }else{ echo "N/A"; }?></td>
</tr>
<tr style="background-color:#f9f9f9;">
<td width="170" align="left" valign="top" class="fieldtextnew view_requirement" style=" padding:0 0 0 10px; margin:0 0 2px;">Status :</td>
<td valign="top" class="fieldtextnewtext" style=" padding:0 0 0 10px; margin:0 0 2px;"><?php if($result['status']!='') { echo $result['status']; }else{ echo "N/A"; } ?></td>
</tr>
</table>
</td>
</tr>
<tr style="background:#fff;">
<td valign="top" width="49%">
</td>
<td valign="top" width="51%"> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2" align="center">
<?php if($userId!=''){ ?>
<?php /*?><input type="button" class="newadd" name="close" value="CLOSE" onClick="window.close();" /><?php */?>
<a href="user.php" style="text-decoration:none;"><input name="cancel" type="button" value="Back" class="submit" style=" margin-bottom:10px;" /></a>
<?php }else{ ?>
<a href="user_history.php?hid=<?php echo $_REQUEST['hid'];?>&page_main=<?=$_REQUEST['page']?>&name=<?=$_REQUEST['name']?>&email=<?=$_REQUEST['email']?>&username=<?=$_REQUEST['username']?>&order=<?=$_REQUEST['order']?>&title=<?=$_REQUEST['title']?>&status=<?=$_REQUEST['status']?>&rcv_reqs_email=<?=$_REQUEST['rcv_reqs_email']?>&submittals_emails=<?=$_REQUEST['submittals_emails']?>&rvc_hotlist_email=<?=$_REQUEST['rvc_hotlist_email']?>&submit2=<?=$_REQUEST['submit2']?>" style="text-decoration:none;"><input name="cancel" type="button" value="Back" class="submit" style=" margin-bottom:10px;" /></a>
<?php } ?>
</td>
</tr>
</table>
<div class="clear"></div>
</form>
</div>
</div>
</div>
<?php include("includes/footer.php"); ?>
Directory Contents
Dirs: 17 × Files: 180