NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io


<?php

session_start();
if(!isset($_SESSION["username"])){
echo "<script>window.location = 'login.php'</script>";
}
echo "";


$username_profile_change=$_SESSION['username'];


$db_profile_change=mysqli_connect('localhost','root','','creation');


$query_profile_change="SELECT * FROM `profile` WHERE `username`='$username_profile_change'";

$temp_pro_change=mysqli_query($db_profile_change,$query_profile_change);
$row_pro_change=mysqli_fetch_array($temp_pro_change);

$name=$row_pro_change['name'];
$nerd_name=$row_pro_change['nerd_name'];
$branch=$row_pro_change['branch'];
$email_id=$row_pro_change['email_id'];
$contactno=$row_pro_change['contact_no'];
$profile_pic=$row_pro_change['profile_pic'];

$geek_array=array();
$club_array=array();
$geek_array[]=$row_pro_change['geekness0'];
$geek_array[]=$row_pro_change['geekness1'];
$geek_array[]=$row_pro_change['geekness2'];
$geek_array[]=$row_pro_change['geekness3'];
$geek_array[]=$row_pro_change['geekness4'];
$geek_array[]=$row_pro_change['geekness5'];
$geek_array[]=$row_pro_change['geekness6'];
$geek_array[]=$row_pro_change['geekness7'];
$geek_array[]=$row_pro_change['geekness8'];
$geek_array[]=$row_pro_change['geekness9'];


$club_array[]=$row_pro_change['tech_club_1'];
$club_array[]=$row_pro_change['tech_club_2'];
$club_array[]=$row_pro_change['tech_club_3'];



include 'all_geekness.php';
include 'all_techclub.php';
?>

<html>

<head>
<title>Profile Settings</title>
<link rel="icon" type="image/png" href="images/favicon.png"/>
<link rel="stylesheet" type="text/css" href="boxes.css" />
<script type="text/javascript" src="heatup.js"></script>
<script type="text/javascript" src="jquery.reveal.js"></script>
<script type="text/javascript" src="jquery-1.9.1.js"></script>
<link rel="stylesheet" href="styles/bootstrap.min.css" type="text/css" />
<link rel="stylesheet" href="styles/bootstrap.css" type="text/css" />
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.js" ></script>
<script src="js/bootstrap.min.js" > </script>
<script src="js/bootstrap-filestyle.min.js"> </script>
<link rel="stylesheet" href="styles/dashboard.css" type="text/css" />
<link rel="stylesheet" href="styles/bootstrap.css" type="text/css" />

<script type="text/javascript">
$(document).ready(function(){
var limit_geek = 11;
var limit_club = 4;
$('input.geekness-checkbox').on('change', function(evt) {
if($(this).parents('.table').find(':checked').length >= limit_geek) {
this.checked = false;
alert("Please choose only 10 choices.");}
});

$('input.techclub-checkbox').on('change', function(evt) {
if($(this).parents('.table').find(':checked').length >= limit_club) {
this.checked = false;
alert("Please choose only 3 choices.");}
});

});
</script>


</head>

<body>

<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header"> <a class="navbar-brand" href="#">IIT Indore</a> </div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav navbar-right">
<li><a href="wall.php"><span class="glyphicon glyphicon-th-large"></span> Wall </a></li>
<li><a href="geek_search.php"><span class="glyphicon glyphicon-question-sign"></span> Search Geekness</a></li>
<li><a href="db_search.php"><span class="glyphicon glyphicon-search"></span>&nbsp;Search Database</a></li>
<li><a href="profile.php"><span class="glyphicon glyphicon-user"></span> My Page</a></li>
<li><a href="profile_change.php"><span class="glyphicon glyphicon-cog"></span>Settings</a></li>
<li><a href="logout.php"><span class="glyphicon glyphicon-off"></span> Logout</a></li>
</ul>

</div>
</div>
</div>
<br><br><br><br>


<div class="form">

<form action="profile_changer.php" method="post" enctype="multipart/form-data" >
<table class="table" id="table1">
<tr><td><label>Update Profile</label></td></tr>
<tr>
<td valign="top"><label for="file">Name:</label></td>
<td valign="top"><input type="text" value="<?php echo $name;?>" name="profile_change_name" id="file"></td>
<td valign="top"> <label for="file">Nerd Name:</label></td>
<td valign="top"><input type="text" value="<?php echo $nerd_name;?>" name="profile_change_nerd_name" id="file"></td>
</tr>
<tr>
<td valign="top"><label for="file">Branch:</label></td>
<td valign="top"> <input type="text" value="<?php echo $branch;?>" name="profile_change_branch" id="file"></td>
<td valign="top"> <label for="file">E-mail ID:</label></td>
<td valign="top"> <input type="text" value="<?php echo $email_id;?>" name="profile_change_email_id" id="file"></td>
</tr>
<tr>
<td valign="top"><label for="file">Contact No.:</label></td>
<td valign="top"> <input type="text" value="<?php echo $contactno;?>" name="profile_change_contact_no" id="file"></td>
<td valign="top"> <label for="file">Change Profile Picture:</label></td>
<td valign="top"> <input type="file" value="<?php echo $profile_pic;?>" name="profile_change_pic" id="file"></td>
</tr>

<tr>
<td colspan='6'><a href="password_change.php" >Change Password</a></td>
</tr>
<tr><td> <br></td></tr>
</table>
<table class="table" id="table2">
<tr><td><label>Select Your 10 Best Geekiness!* </label> </td></tr>
<?php
$track=1;
for($a=0;$a<3;$a++){
?>

<tr>

<td valign="top"><input <?php if(in_array($geekness_list[$track-1],$geek_array)){echo "checked"; }?> class="geekness-checkbox"type="checkbox" name="aladeen[]" value="<?php echo $geekness_list[$track-1];?>"><?php echo $geekness_list[$track-1];$track++;?></td>
<td valign="top"><input <?php if(in_array($geekness_list[$track-1],$geek_array)){echo "checked"; }?> class="geekness-checkbox"type="checkbox" name="aladeen[]" value="<?php echo $geekness_list[$track-1];?>"><?php echo $geekness_list[$track-1];$track++;?></td>
<td valign="top"><input <?php if(in_array($geekness_list[$track-1],$geek_array)){echo "checked"; }?> class="geekness-checkbox"type="checkbox" name="aladeen[]" value="<?php echo $geekness_list[$track-1];?>"><?php echo $geekness_list[$track-1];$track++;?></td>
<td valign="top"><input <?php if(in_array($geekness_list[$track-1],$geek_array)){echo "checked"; }?> class="geekness-checkbox"type="checkbox" name="aladeen[]" value="<?php echo $geekness_list[$track-1];?>"><?php echo $geekness_list[$track-1];$track++;?></td>
</tr>

<?php } ?>
<tr>
<td> <br>
<br>
</table>
<table class="table" id="table3">
<label>Select Your 3 Favourite Clubs!*</label></td></tr>
<?php
$t=1;
for ($i=0; $i <3 ; $i++) {
?>
<tr><td valign="top"><input <?php if(in_array($techclub_list[$t-1],$club_array)){echo "checked";} ?> class="techclub-checkbox" type="checkbox" name="aladeen1[]" value="<?php echo $techclub_list[$t-1]; ?>"><?php echo $techclub_list[$t-1];$t++;?></td>
<td valign="top"><input <?php if(in_array($techclub_list[$t-1],$club_array)){echo "checked";} ?> class="techclub-checkbox" type="checkbox" name="aladeen1[]" value="<?php echo $techclub_list[$t-1]; ?>"><?php echo $techclub_list[$t-1];$t++;?></td>
</tr>
<?php } ?>

<tr>
<td colspan="6" style="text-align:center"><input type="submit" name="submit" value="Submit"></td>
</tr>
<tr><td></td></tr>
</table>





</form>
</div>



</body>
</html>
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.