| Current Path : /var/www/html/mmishra/indem/rgiit/rgiit/x/html/ |
| Current File : /var/www/html/mmishra/indem/rgiit/rgiit/x/html/p1.php |
<html>
<head>
<style type="text/css">
.name
{
background-color:#000000;
color:#ffffff;
}
.footer
{
color:white;
}
#header {
FONT-SIZE: 93%; BACKGROUND: #dae0d2 url('./images/bg.gif') repeat-x 50% bottom; FLOAT: left; WIDTH: 100%; LINE-HEIGHT: normal
}
#header UL {
PADDING-RIGHT: 10px; PADDING-LEFT: 65px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 10px; LIST-STYLE-TYPE: none
}
#header LI {
PADDING-RIGHT: 0px; PADDING-LEFT: 9px;BACKGROUND: url('./images/left.gif') no-repeat left top; FLOAT: left; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px
}
#header A {
PADDING-RIGHT: 15px; DISPLAY: block; PADDING-LEFT: 6px; FONT-WEIGHT: bold; BACKGROUND: url('./images/right.gif') no-repeat right top; FLOAT: left; PADDING-BOTTOM: 4px; COLOR: #6C5C4C; PADDING-TOP: 5px; TEXT-DECORATION: none
}
#header A {
FLOAT: none
}
#header A:hover {
COLOR: #333
}
.main
{
border-collapse:collapse;
}
</style>
<?php ob_start();
session_start();
//echo $_SESSION['userpassword'];
?>
<BODY bgcolor=#EDEDCD>
<img src="asd.JPG" width=1000>
<center>
<table width="93%" height="80" border="0" class="main">
<tr>
<param name="movie" value="../banner_home.swf">
<param name="quality" value="high">
</object>
<div id="header">
<ul>
<!-- CSS Tabs -->
<li><a href="index.php">Home</a></li>
<li><a href="admin.html">Administration</a></li>
<li><a href="acedemic.html">Academic</a></li>
<li><a href="admis.html">Admission</a></li>
<li><a href="stud.html">Students</a></li>
<li><a href="rd.html">R & D</a></li>
<li><a href="fac.html">Facilities</a></li>
<li><a href="place.html">Placement</a></li>
<li><a href="contect.html">Contact</a></li>
</ul>
</div></td>
</font>
</td>
<img src="./stripfi.jpg" width=1000>
</table>
</center>
<?
//ob_start();
//SESSION_START();
$userid="pchaturvedi_rb05";
//echo "userid is ".$userid;
//echo $_SESSION['userpassword'];
//$userid =$_POST['userid'];
// $passwd=$_SESSION['userpassword'];
//$attr2["cn"]= $_POST['newpasswd'];
$attr3["Nickname"]= $_POST['newpasswd1'];
$attr4["FatherName"]= $_POST['newpasswd2'];
$attr5["mail"]= $_POST['newpasswd3'];
$attr6["DateofBirth"]= $_POST['newpasswd4'];
$attr7["WebPages"]= $_POST['newpasswd5'];
$attr8["mobile"]= $_POST['newpasswd6'];
$attr9["BloodGroup"]= $_POST['newpasswd7'];
$attr10["CurrentAddress"]= $_POST['newpasswd8'];
$attr11["PermanentAddress"]= $_POST['newpasswd9'];
$attr12["Hobbies"]= $_POST['newpasswd10'];
$attr13["Projects"]= $_POST['newpasswd11'];
$attr14["LanguagesKnown"]= $_POST['newpasswd12'];
$attr15["PlatformsUsed"]= $_POST['newpasswd13'];
$attr16["SoftwaresUsed"]= $_POST['newpasswd14'];
$attr17["Achievements"]= $_POST['newpasswd15'];
//$attr17["l"]= $_POST['newpasswd25'];
//$attr18["Achievements"]= $_POST['newpasswd15'];
//print "<h1>LDAP Authentication for " . $userid. " </h1><p>";
//print "<center><font color=#800000><h1>Your Data Is Successfully Submitted </h1></font></center><p>";
print "<center><font color=#800000 ><h1>Welcome To " . $userid . " Profile </h1></font></center><p>";
$ldapserver = ldap_connect("172.16.1.5:389");
if(!$ldapserver)
{
print "<br>connection error";
exit(0);
}
$bind = ldap_bind($ldapserver,"dc=rgiita,dc=ac,dc=in","94507718240");
if(!$bind)
{
print "<br>bind error";
exit(0);
}
//$base_dn = "DC=rgiita,DC=ac,DC=in";
$filter = "uid=" . $userid;
$inforequired = array(
"nickname",
"description",
"PermanentAddress",
"uid",
"mail",
"givenName",
"sn",
"cn", "mobile","userPassword","DateOfBirth","st","BloodGroup","l","CurrentAddress",
"WebPages","FatherName","LanguagesKnown","PlatformsUsed","Hobbies","Projects","SoftwaresUsed","Achievements");
//echo "hi";
$result = ldap_search($ldapserver,$user_dn,$filter,$inforequired);
$info = ldap_get_entries($ldapserver,$result);
//echo $info[0][1];
//$attr["cn"][3] = "ri";
//echo "no";
$user_dn=$info[0]["dn"];
$pass=$_SESSION['userpassword'];
//echo $info[0]["dn"];
//echo $_SESSION['uid'] ;
//echo $pass;
$bind = ldap_bind($ldapserver,$user_dn,$pass);
//print "<center><font color=#800000 ><h4>UserName</h4></font></center><p>";
if($bind==TRUE){//echo "</br>bind";
//$lm=ldap_mod_replace($ldapserver,$user_dn,$attr3);
//$lm=ldap_mod_replace($ldapserver,$user_dn,$attr4);
//$lm=ldap_mod_replace($ldapserver,$user_dn,$attr5);
//$lm=ldap_mod_replace($ldapserver,$user_dn,$attr6);
//$lm=ldap_mod_replace($ldapserver,$user_dn,$attr7);
//$lm=ldap_mod_replace($ldapserver,$user_dn,$attr8);
//$lm=ldap_mod_replace($ldapserver,$user_dn,$attr9);
//$lm=ldap_mod_replace($ldapserver,$user_dn,$attr10) ;
//$lm=ldap_mod_replace($ldapserver,$user_dn,$attr11);
//$lm=ldap_mod_replace($ldapserver,$user_dn,$attr12) ;
//$lm=ldap_mod_replace($ldapserver,$user_dn,$attr13) ;
//$lm=ldap_mod_replace($ldapserver,$user_dn,$attr14) ;
//$lm=ldap_mod_replace($ldapserver,$user_dn,$attr15);
// $lm=ldap_mod_replace($ldapserver,$user_dn,$attr16) ;
//$lm=ldap_mod_replace($ldapserver,$user_dn,$attr17);
//$lm=ldap_mod_replace($ldapserver,$user_dn,$attr18)
if($bind==TRUE){
//echo "data modify and yr new data is as";
if($info["count"] == 0)
{
print "<p>No information available";
}
else{
print "<center><b><i><font color=#800000 size=4> " . $info[0]["cn"][0]. " ". $info[0]["sn"][0]."</font></i></center><p>";
print "<center><b><font color=#330066 size=1 > " . $info[0]["l"][0]. " </font></center><p>";
if($info[0]["st"]["count"]==TRUE){
print "<center><font color=#336600><i>Enrollnment No: </font></center>";
print "<center><font color=#330066 >".$info[0]["st"][0]; "</font></center><p>";
echo "</br>";echo "</br>";
}
if($info[0]["nickname"]["count"]==TRUE){
print "<center><font color=#336600 ><i>Nickname: </i></font></center>";
print "<center><font color=#330066 >".$info[0]["nickname"][0]; "</font></center>";
echo "</br>";echo "</br>";
}
if($info[0]["fathername"]["count"]==TRUE){
print "<center><font color=#336600 ><i>Father's Name: </i></font></center>";
print "<center><font color=#330066 >".$info[0]["fathername"][0]; "</font></center>";
echo "</br>";echo "</br>";
}
if($info[0]["mail"]["count"]==TRUE){
print "<center><font color=#336600 ><i>Email: </i></font></center>";
print "<center><font color=#330066 >".$info[0]["mail"][0]; "</font></center>";
echo "</br>";echo "</br>";
}
if($info[0]["dateofbirth"]["count"]==TRUE){
print "<center><font color=#336600 ><i>Date Of Birth: </i></font></center>";
print "<center><font color=#330066 >".$info[0]["dateofbirth"][0]; "</font></center>";
echo "</br>";echo "</br>";
}
if($info[0]["webpages"]["count"]==TRUE){
print "<center><font color=#336600 >Web Page: </i></font></center>";
print "<center><font color=#330066 >".$info[0]["webpages"][0]; "</font></center>";
echo "</br>";echo "</br>";
}
if($info[0]["mobile"]["count"]==TRUE){
print "<center><font color=#336600 ><i>Telephon No: </i></font></center>";
print "<center><font color=#330066 >".$info[0]["mobile"][0]; "</font></center>";
echo "</br>";echo "</br>";
}
if($info[0]["bloodgroup"]["count"]==TRUE){
print "<center><font color=#336600 ><i>Blood Group: </i></font></center>";
print "<center><font color=#330066 >".$info[0]["bloodgroup"][0]; "</font></center>";
echo "</br>";echo "</br>";
}
if($info[0]["currentaddress"]["count"]==TRUE){
print "<center><font color=#336600 ><i>Current Address: </i></font></center>";
print "<table width=700><td><center><b><font color=#330066 style=bold>".$info[0]["currentaddress"][0]; "</font></center></td></b><p></table>";
echo "</br>";echo "</br>";
}
if($info[0]["permanentaddress"]["count"]==TRUE){
print "<center><font color=#336600 ><i>Permanent Address: </i></font></center>";
print "<table width=700><td><center><b><font color=#330066 style=bold>".$info[0]["permanentaddress"][0]; "</font></center></td></b><p></table>";
echo "</br>";echo "</br>";
}
if($info[0]["hobbies"]["count"]==TRUE){
print "<center><font color=#336600 align=center><b><i>Hobbies: </i></font></center>";
print "<table width=700><td><center><b><font color=#330066 style=bold>".$info[0]["hobbies"][0]; "</font></center><td></b><p></table>";
echo "</br>";echo "</br>";
}
if($info[0]["projects"]["count"]==TRUE){
print "<center><font color=#336600 ><b><i>Projects: </i></font></center>";
print "<table width=700><b><td><center><b><font color=#330066 style=bold>".$info[0]["projects"][0]; "</font></center><td></b><p></table>";
echo "</br>";echo "</br>";
}
if($info[0]["languagesknown"]["count"]==TRUE){
print "<center><font color=#336600 ><b><i>Languages Known: </i></font></center>";
print "<table width=700><td><center><b><font color=#330066 style=bold>".$info[0]["languagesknown"][0]; "</font></center></td></b><p></table>";
echo "</br>";echo "</br>";
}
if($info[0]["platformsused"]["count"]==TRUE){
print "<center><font color=#336600 ><b><i>Platforms Used: </i></font></center>";
print "<table width=700><b><td><center><b><font color=#330066 style=bold>".$info[0]["platformsused"][0]; "</font></center><td></b><p></table>";
echo "</br>";echo "</br>";
}
if($info[0]["softwaresused"]["count"]==TRUE){
print "<center><font color=#336600 ><b><i>Softwares Used: </i></font></center>";
print "<table width=700><b><td><center><b><font color=#330066 style=bold>".$info[0]["softwaresused"][0]; "</font></center><td></b><p></table>";
echo "</br>";echo "</br>";
}
if($info[0]["achievements"]["count"]==TRUE){
print "<center><font color=#336600 ><b><i>Achievements: </i></font></center>";
print "<table rows=15 cols=50><font color=#330066 style=bold>".$info[0]["achievements"][0]; "</font></center><td></b><p></table>";
echo "</br>";echo "</br>";
}
else{
}
print "</br></br><table table border=0 width=40% class=normal cellpadding=5px align=center><tr>
<td>" .$info[$i]["nickname"][0]; "</td></tr>";
//."<tr><td>Father's name:</td>
//. "<th>E-Mail:"
//. "<th>Date Of Birth"
// . "<th>Web Page:"
// . "<th>Telephone No.:"
// . "<th>Blood Group:
// . <th>Current Address:"
// . "<th>Permanent Address:"
// . "<th>Hobbies:"
// . "<th>Projects:"
// . "<th>Langues Known:"
// . "<th>Platform Used:"
// . "<th>Achievements:";
for($i=0;$i<$info["count"];$i++)
{
/*print "<center><font color=#800000 size=4 ><b>Name:</b></font></center><p>";
print "<center><font color=#GREEN><h5> <table border=10>" .$info[0]["cn"][0] . " </h5></font></table></center><p>";
/*print "<center><font color=#800000 size=4 ><b>Nickname:</b></font></center><p>";
print "<center><font color=#GREEN><h5> " .$info[$i]["nickname"][0] . " </h5></font></center><p>";
/*
print "<center><font color=#800000 size=4 ><b>Father's Name:</b></font></center><p>";
print "<center><font color=#800000><h5> " . $info[$i]["fathername"][0]. " </h5></font></center><p>";
print "<center><font color=#800000 size=4 ><b>E-Mail:</b></font></center><p>";
print "<center><font color=#800000><h5> " . $info[$i]["mail"][0] . " </h5></font></center><p>";
print "<center><font color=#800000 size=4 ><b>Date Of Birth</b></font></center><p>";
print "<center><font color=#800000><h5> " . $info[$i]["dateofbirth"][0] . " </h5></font></center><p>";
/*print "<center><font color=#800000 size=4 ><b>Web Page:</b></font></center><p>";
print "<center><font color=#800000><h5> " . $info[$i]["webpages"][0]. " </h5></font></center><p>";
print "<center><font color=#800000 size=4 ><b>Telephone No.:</b></font></center><p>";
print "<center><font color=#800000><h5> " . $info[$i]["mobile"][0]. " </h5></font></center><p>";
print "<center><font color=#800000 size=4 ><b>Blood Group:</b></font></center><p>";
print "<center><font color=#800000><h5> " . $info[$i]["bloodgroup"][0]. " </h5></font></center><p>";
print "<center><font color=#800000 size=4 ><b>Current Address:</b></font></center><p>";
print "<center><font color=#800000><h5> " . $info[$i]["currentaddress"][0]. " </h5></font></center><p>";
print "<center><font color=#800000 size=4 ><b>Permanent Address:</b></font></center><p>";
print "<center><font color=#800000><h5> " . $info[$i]["permanentaddress"][0] . " </h5></font></center><p>";
print "<center><font color=#800000 size=4 ><b>Hobbies:</b></font></center><p>";
print "<center><font color=#800000><h5> " . $info[$i]["hobbies"][0]. " </h5></font></center><p>";
print "<center><font color=#800000 size=4 ><b>Projects:</b></font></center><p>";
print "<center><font color=#800000><h5> " . $info[$i]["projects"][0] . " </h5></font></center><p>";
print "<center><font color=#800000 size=4 ><b>Langues Known:</b></font></center><p>";
print "<center><font color=#800000><h5> " . $info[$i]["languagesknown"][0]. " </h5></font></center><p>";echo "</br>";
print "<center><font color=#800000 size=4 ><b>Platform Used:</b></font></center><p>";
print "<center><font color=#800000><h5> " . $info[$i]["platformsused"][0]. " </h5></font></center><p>";echo "</br>";
print "<center><font color=#800000 size=4 ><b>Achievements:</b></font></center><p>";
print "<center><font color=#800000><h5> " . $info[0]["achievements"][0] . " </h5></font></center><p>";echo "</br>";
*/
//$row[$i] = "<tr>"
// . "<td>" . $info[0]["givenname"][0]
// . "<td>" . $info[0]["sn"][0]
//. "<td>" . $info[0]["department"][0]
//. "<td>" . $info[$i]["employeetype"][0]
//. "<td>" . $info[$i]["mail"][0]
//. "<td>" . $info[$i]["cn"][0];
//$row[$i] = "<td>"
// . "<td>" .$info[$i]["cn"][0];
//. "<td>" . $info[$i]["nickname"][0];
// . "<td>" . $info[$i]["fathername"][0]
//. "<td>" . $info[$i]["mail"][0]
// . "<td>" . $info[$i]["dateofbirth"][0]
//. "<td>" . $info[$i]["webpages"][0]
//. "<td>" . $info[$i]["mobile"][0]
// . "<td>" . $info[$i]["bloodgroup"][0]
//. "<td>" . $info[0]["currentaddress"][0]
//. "<td>" . $info[0]["permanentaddress"]//[0]
//. "<td>" . $info[0]["hobbies"][0]
//. "<td>" . $info[0]["projects"][0]
//. "<td>" . $info[0]["platformsused"][0]
//. "<td>" . $info[0]["languagesknown"][0]
// . "<td>" . $info[0]["achievements"][0];
}
sort($row);
for($i=0;$i<$info["count"];$i++){ print $row[$i] . "\n";
print "</table>";
echo '<form action=logout.php method=post>
<input type=submit value="logout">
</form> ';
}
}
}
else{
//echo "data is not modify";
}
}
else {//echo "</br>not bind";
print "<center><font color=#800000><h1>You Are Unable To Bind </h1></font></center><p>";}
?>
</br> </br><center><table border=7 width=966 ><tr>
<td colspan=4 bgcolor=#CCCC99 height=6> <marquee onMouseOver="this.stop()" onMouseOut="this.start()" scrollamount="3" scrolldelay="22" style="color: rgb(255, 255, 255); font-family: Verdana;" ><font size=1 color=#80000>
</font></marquee></td>
</tr>
<td bgcolor=#800000 colspan="4" height=10 align="center" ><font color="white">
RNDT [ RGIIT Network development Team ]     Website Team   
Hindi version    Site Map</font></td></tr>
</table></center>
</body>
</html>