$auth = XMEC::authenticate_user(); if ($id != "") { $res = new XMEC_user($id); if ($res->fetchInfo()) { $pres_addr = $res->getAddress('PRESENT'); $comp_addr = $res->getAddress('COMPANY'); $perm_addr = $res->getAddress('PERMANENT'); ?> <BODY bgcolor=#FFFFFF> <LINK rel=stylesheet href="style.css" type="text/css"> <TABLE bgcolor=#FFFFFF cellspacing=0 width=370 align=center ><TR><TD> <TABLE bgcolor=#FFFFFF cellspacing=0 cellpadding=5 width=100% align=center border=1> <TR><TD class=record bgcolor=#FFDFB0 width=370 align=left> <strong>XMEC Record</strong></TD><TD class=record bgcolor=#FFDFB0 width=370 align=right>No. RQ00<?php echo htmlentities($res->get('id')); ?> 9K</TD></TR> <TR> <TD class=record bgcolor=#FFDFB0 width=370 align=left>Engineering Dept</TD> <TD class=record bgcolor=#FFDFB0 width=370 align=right><?php echo htmlentities($res->get('branch')); ?> </TD> </TR> <TR> <TD class=record bgcolor=#FFDFB0 width=370 align=left>Year of Joining</TD> <TD class=record bgcolor=#FFDFB0 width=370 align=right><?php echo htmlentities($res->get('year')); ?> </TD>
<?php } ?> } </script> <LINK rel=stylesheet href="style.css" type="text/css"> </HEAD> <BODY bgcolor="#ffffff" topmargin=0 leftmargin=0 marginheight = "0" marginwidth = "0"> <form name=f1 method=POST> <TABLE align=left border=0 cellPadding=0 cellSpacing=0 width="615" height="100%"> <TR> <TD valign=top width=445><IMG src="images/head_profile.gif"> <P><b>Changing preferences for <?php echo $user->get('full_name'); ?> </b> <?php if ($pass_st != "" || $email_st != "" || $addr_st != "") { echo "<br><FONT face=arial size=2 color=\"#FF0000\">Failed updating preferences: {$pass_st} {$email_st} {$addr_st}</font><br>"; } else { if ($action == "update") { echo "<br><FONT face=arial size=2 color=\"#00FF00\">Successfully updated preferences</font><br>"; } } ?> </P><BR> <P><b>Change Password </b><BR> You can change your password and the next time you login in, the system will accept the new password. Please use a distinctive word (more than 8 letters). </P>
<TR><TD valign=top width=615> <TABLE border=0 cellPadding=0 cellSpacing=0 background=""> <TR> <TD colSpan=4 height=35> <FONT face=Verdana size=2 color="#000000"><STRONG>PERSONAL INFORMATION</STRONG></FONT> <FONT face=arial size=1 color="#FF0000">(All the fields shown in Bold are mandatory fields)</FONT> </TD> </TR> <TR> <TD colspan=4 height=20> </TD> </TR> <TR> <TD height=35><STRONG><FONT face=Verdana size=2>First Name</FONT> </STRONG> </TD> <TD><FONT face=Verdana size=2><INPUT name=TBFname style ="HEIGHT: 19px; WIDTH: 143px" value="<?php echo htmlentities($user->get('first_name')); ?> "></FONT></TD> <TD> <P><FONT face=Verdana size=2>Middle Name </FONT> <A href="javascript:showlayer('4');"><img src="images/lens.gif" border=0></A> </P></TD> <TD><FONT face=Verdana size=2><INPUT name=TBMname style="HEIGHT: 19px; WIDTH: 146px" value="<?php echo htmlentities($user->get('middle_name')); ?> "></FONT></TD> </TR> <TR> <TD height=35><STRONG><FONT face=Verdana size=2> Surname</FONT> </STRONG> </TD> <TD><FONT face=Verdana size=2><INPUT name=TBLname
$action = chop($HTTP_POST_VARS["todo"]); if ($REQUEST_METHOD == "GET") { $action = chop($HTTP_GET_VARS["todo"]); } $id = chop($HTTP_POST_VARS["id"]); if ($REQUEST_METHOD == "GET") { $id = chop($HTTP_GET_VARS["id"]); } $tmp_user = new XMEC_user(); if ($id != "") { $tmp_user->setID($id); if (!$tmp_user->fetchInfo()) { echo "<html><h1>Error getting user info !!</html>"; exit; } $to_address = $tmp_user->get('personal_email'); } else { echo "<html><h1>No ID selected !!</html>"; exit; } ?> <TABLE cellSpacing=0 cellPadding=4 width=90% align=center border=0> <TR> <TD width=6%><BR></TD> <TD width=90% height=40 class=head><B>XMEC Mail</B></TD> </TR> <TR><TD colspan=2> <!--Box Starts--> <TABLE cellSpacing=0 cellPadding=0 border=0 width=90% align=center> <TBODY>
$user = $me; $admin = FALSE; if ($me->isAdmin() && isset($id) && $id != "" && $_s == 1) { $admin = TRUE; $user = new XMEC_user($id); if (!$user->fetchInfo()) { echo "<html><h1>ID not found !</html>"; exit; } } $pemail_pref = $user->getPref('personal_email'); $oemail_pref = $user->getPref('official_email'); $curr_visib = $user->getAddressVisibility('PRESENT'); $comp_visib = $user->getAddressVisibility('COMPANY'); $perm_visib = $user->getAddressVisibility('PERMANENT'); $webpage = $user->get('webpage'); $forwarding_addr = $user->get('forwarding_addr'); $alias = $user->get('forwarding_addr'); $pass_st = ""; $email_st = ""; $addr_st = ""; if ($action == "update") { $need_update = FALSE; // Password change.. if (!empty($passwd1) || !empty($passwd2) || !empty($passwd3)) { if (!$admin && $passwd1 == "") { $pass_st = "Please enter the old password"; } else { if (passwd2 != "" && $passwd3 != "") { if ($passwd2 != $passwd3) { $pass_st = "Passwords doesn't match";
<TABLE align=left border=0 cellPadding=10 cellSpacing=0 width="615"> <TR><TD valign=top width=615> <TABLE border=0 cellPadding=0 cellSpacing=0 background=""> <TR> <TD colSpan=4 height=35 class=head>PERSONAL INFORMATION (All the fields shown in Red are mandatory fields) </TD> </TR> <TR> <TD colspan=4 height=20> </TD> </TR> <TR> <TD height=35 class=fhead>First Name</TD> <TD><INPUT class=box name=TBFname value="<?php echo htmlentities($user->get('first_name')); ?> "></TD> <TD class=fbody> <P>Middle Name </P></TD> <TD><INPUT class=box name=TBMname value="<?php echo htmlentities($user->get('middle_name')); ?> "></TD> </TR> <TR> <TD height=35 class=fhead>Surname</TD> <TD><INPUT class=box name=TBLname value="<?php echo htmlentities($user->get('last_name')); ?>