Admission Calendar Page

Given below is Source Code of admissionCalender.php file. Here information about admission date, last date, late fee etc. will be displayed.

Save the file with name admissionCalender.php in folder of your project name you created. Like onlineadmissionproject

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
<head>
      <title>Welcome To Online Admission</title>
      <link rel="STYLESHEET" type="text/css" href="styles/student_forms.css" />
</head>
<body>
<?php include("header.php");?>
<!-- Form Code Start -->
<div class='mainDiv'>
<font size="5" name="sans-serif"><div class="heading" align="center">Distance Learning University Admission Calender</div></font></br></br>
<div align="center">Last date for receipt of application with late fee of Rs.200/-</div></br></br>
<div align="center">
<table>
<tr>
<td></td>
<td>January Cycle</td>
<td>&nbsp&nbsp&nbsp&nbsp</td>
<td>July Cycle</td>
</tr>
<tr>
<td>Application Form Available Online</td>
<td>01 June</td>
<td></td>
<td>01 December</td>
</tr>
<tr>
<td>Last Date of applying Online</td>
<td>31 October</td>
<td></td>
<td>30 April</td>
</tr>
<tr>
<td>Application for applying Online with Late Fee of Rs.200/-</td>
<td>01 November</td>
<td></td>
<td>01 May</td>
</tr>
<tr>
<td>Last Date of Receipt of Application form at Regional Centre</td>
<td>30 November</td>
<td></td>
<td>31 May</td>
</tr>
</table>
</div>
</br></br>
</div>
<?php include("footer.php");?>
</body>
</html>



Online Admission Project in PHP

Database Schema of Online Admission Project

Database Schema of online admission project.

Here you'll find the query to create database and it's tables.
Given below is query :

create database onlineadmission;

create table student_detail
(
application_number INT NOT NULL AUTO_INCREMENT,
enrolmentno INT,
name CHAR(50),
gardian_name CHAR(50),
relation_with_gardian CHAR(50),
dob CHAR(50),
nationality CHAR(50),
gender CHAR(50),
category CHAR(50),
territory CHAR(50),
marital_status CHAR(50),
religion CHAR(50),
minority CHAR(50),
social_status CHAR(50),
kashmiri_migrant CHAR(50),
ph_handicap CHAR(50),
handicap_nature CHAR(50),
other_handicap CHAR(50),
employee_status CHAR(50),
address CHAR(50),
city CHAR(50),
state CHAR(50),
pincode INT,
telephoneno INT,
mobileno CHAR(10),
email_id CHAR(50),
applicaiton_status CHAR(50),
sc_code_choosed1 CHAR(50),
sc_code_choosed2 CHAR(50),
sc_code_choosed3 CHAR(50),
    PRIMARY KEY (application_number)
);

CREATE TABLE student_other_details
(
application_number INT NOT NULL PRIMARY KEY,
board_code CHAR(50),
main_subjects CHAR(50),
year_passing INT,
division CHAR(50),
marks_percentage INT
);

CREATE TABLE registration_details
(
application_number INT NOT NULL PRIMARY KEY,
bank_name CHAR(50),
dd_amt INT,
dd_date date,
dd_number INT,
place_issued CHAR(50),
payable_at CHAR(50)
);

CREATE TABLE program_details
(
application_number INT NOT NULL PRIMARY KEY,
enrolmentno INT,
program_code CHAR(50),
rc_code CHAR(50),
sc_alloted CHAR(50),
medium CHAR(50),
registered_year_or_sem CHAR(10)
);

CREATE TABLE student_request
(
enrolmentno INT NOT NULL PRIMARY KEY,
address CHAR(50),
city CHAR(50),
state CHAR(50),
pincode INT,
study_center CHAR(150),
address_status INT,
sc_status INT
);

CREATE TABLE student_registration
(
enrolmentno INT NOT NULL PRIMARY KEY,
registered_year_sem CHAR(15),
bankname CHAR(100),
ddamount INT,
ddnumber INT,
dddate date,
placeissued CHAR(20),
payableat CHAR(20),
status INT
);

CREATE TABLE student_login
(
enrolmentno INT NOT NULL PRIMARY Key,
username CHAR(50),
password CHAR(50)
);

CREATE TABLE admin_table
(
username CHAR(50) NOT NULL PRIMARY KEY,
password CHAR(50)
);

insert into admin_table values('admin','admin');

Database Structure of online admission Project :


Online Admission Project Home Page

Given code is used to design the home page of the online admission project. Online Admission Project is designed using HTML and PHP(Front End) and for Backend MySql is used.

Given code includes the header.php filed and footer.php file and Images.

Save the code given below with name index.php in folder of your project name you created. Like onlineadmissionproject

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
<head>
      <title>Welcome To Online Admission</title>
      <link rel="STYLESHEET" type="text/css" href="styles/student_forms.css" />
    <script type="text/javascript">
        var image=new Array("images/admn.jpg",
        "images/online_admission_form.png","images/OnlineAdmissionLogo.jpg","images/online-admission.png"
        ,"images/OnlineAdmissionLogo.jpg");
        var timeout={};
        function changeimage(dvX){
            var dvi=document.getElementById(dvX);
            if(!dvi.count || dvi.count == image.length )
            dvi.count=0;
            dvi.src=image[dvi.count];
            dvi.alt=image[dvi.count];
            dvi.count=dvi.count+1;
            timeout=setTimeout('changeimage("'+dvX+'")',3500);
        }
    </script>
</head>
<body onload="changeimage('changer')">
<?php include("header.php");?>
<div class='mainDiv'>
    <div><font size="4" name="sans-serif" color="white"><div class="heading" align="center"><b>Welcome To Distance Education University Online Admission Form</b></div></div></font></br></br>
    <table>
        <tr>
            <td><a href="student/login.php"><img src="images/student_login.png"></a></td>
        </tr>
        <tr>
            <td width="300">
                <div><a href="admissionCalender.php"><img src="images/admCal.png"></a></div>
                <div><a href="regionalCenter.php"><img src="images/rcenter.png"></a></div>
                <div><a href="studycenters.php"><img src="images/scenter.png"></a></div>
                <div><a href="regionalCenter.php"><img src="images/locstudycenter.png"></a></div>
                <div><a href="generalInfo.php"><img src="images/genIns.png"></a></div>
                <div><a href="clarification.php" ><img src="images/clarification.png"></a></div>
                </br></br>
            </div>
            </td>
            <td width="350" align="right">
                <div><a href="instructions.php" ><img src="t1" alt="test1" id="changer"/></a>
                </div>
            </td>
        </tr>
    </table>   
</div>
<?php include("footer.php");?>
</body>
</html>

Output:



Other File header and footer files or Images which will be used here in this project find here below : -

 Header.php and Footer.php File for Online Admission Project

Other Images For Online Admission project Written in PHP

Header.php and Footer.php File for Online Admission Project

Given code below is used for the header image of the online admission project.

Save the file with name header.php in folder of your project name you created. Like onlineadmissionproject

<div style="margin:auto;width:850px;border-color:#98bf21;">
    <img src="images/banner.png">
</div>

Find the image here given :




Save the given code below with name footer.php this file is used for the header image of the online admission project.


</br>
<div style="margin:auto;width:850px;border-color:#98bf21;height:125px;" align="left">
    <img src="images/footer.png">
</div>

Footer Image Find Here :


Blinking Directions

This program prints the << and >> text on screen to display the direction lef and right it looks like it's blinking but it displays the text using a loop. Given below is the program.

#include<stdio.h>
#include<conio.h>
#include<dos.h>
void main()
{
clrscr();
  while(!kbhit())
  {
    delay(500);
    textcolor(RED);
    gotoxy(5,10);
    cprintf("    <<   <<   <<   <<   <<   <<   <<>>   >>   >>   >>   >>   >>   ");
    delay(500);
    textcolor(BLUE);
    gotoxy(5,10);
    cprintf("  <<   <<   <<   <<   <<   <<   <<    >>   >>   >>   >>   >>   >>  ");
    delay(500);
    textcolor(YELLOW);
    gotoxy(5,10);
    cprintf("<<   <<   <<   <<   <<   <<   <<        >>   >>   >>   >>   >>   >>");
  }
}

Output : 

Unix Clock

This is a simple Unix Digital Clock to display Unix Time Stamp. It is written in Java Script and html given below it code.


  :: GMT
 


<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<style type="text/css">#rightcolumn{display:none;}#contentcolumn{margin-right:0px;}</style>

<h1 title="Displays the current epoch / unix timestamp time">Unix Clock</h1>
<style type="text/css">
@font-face
{
font-family:'BebasNeueRegular';src:url('/css/bebas-neue-fontfacekit/BebasNeue-webfont.eot');src:url('/css/bebas-neue-fontfacekit/BebasNeue-webfont.eot?#iefix') format('embedded-opentype'),url('/css/bebas-neue-fontfacekit/BebasNeue-webfont.woff') format('woff'),url('/css/bebas-neue-fontfacekit/BebasNeue-webfont.ttf') format('truetype'),url('/css/bebas-neue-fontfacekit/BebasNeue-webfont.svg#BebasNeueRegular') format('svg');font-weight:normal;font-style:normal;
}
.clock
{
background:#000000;width:500px;margin:0 auto;margin-top:30px;padding:30px;border:2px solid #999999;color:#ffffff;border-radius:20px;text-align:center;display:block;
}
#Time
{
font-family:'BebasNeueRegular',Arial,Helvetica,sans-serif;font-size:23px;line-height:normal;text-align:center;text-shadow:0 0 5px #00c6ff;
}
#point
{
padding-left:3px;padding-right:3px;
}
#EpochClock
{
font-size:90px;text-shadow:0 0 10px #00c6ff;
}
</style>
<script type="text/javascript">
$(document).ready(function()
{
var monthNames = [ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ];
var dayNames= ["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]

var newDate = new Date();
newDate.setDate(newDate.getDate());
$('#Date').html(dayNames[newDate.getUTCDay()] + ' ' + monthNames[newDate.getUTCMonth()] + ' ' + newDate.getUTCDate() + ' ' + newDate.getUTCFullYear());

setInterval( function()
{
var d = new Date();
var hours = d.getUTCHours();
$("#hours").html(( hours < 10 ? "0" : "" ) + hours);
var minutes = d.getUTCMinutes();
$("#min").html(( minutes < 10 ? "0" : "" ) + minutes);
var seconds = d.getUTCSeconds();
$("#sec").html(( seconds < 10 ? "0" : "" ) + seconds);
var epoch = Math.floor(d.getTime()/1000.0);
$("#EpochClock").html(epoch);
    }, 1000);

});
</script>
<div class="clock">
<span id="Time">
<span id="Date"></span>&nbsp;
<span id="hours"></span><span id="point">:</span><span id="min"></span><span id="point">:</span><span id="sec"> </span> GMT
<br clear="both"/><span id="EpochClock">&nbsp;</span>
</span>
</div>






HTML Color Codes

Color Names

You can use this color names if you have a color blindness or if you prefer to have more descriptive color names.

Red color names

 IndianRedCD5C5C 
 LightCoralF08080 
 Salmon FA8072 
 DarkSalmonE9967A 
 LightSalmonFFA07A 
 Crimson DC143C 
 Red FF0000 
 FireBrickB22222 
 DarkRed 8B0000 

Pink color names

 Pink FFC0CB 
 LightPinkFFB6C1 
 HotPink FF69B4 
 DeepPink FF1493 
 MediumVioletRedC71585 
 PaleVioletRed DB7093 

Orange color names

 LightSalmon FFA07A 
 Coral FF7F50 
 Tomato FF6347 
 OrangeRedFF4500 
 DarkOrangeFF8C00 
 Orange FFA500 

Yellow color names

 Gold FFD700 
 Yellow FFFF00 
 LightYellowFFFFE0 
 LemonChiffon FFFACD 
 LightGoldenrodYellowFAFAD2 
 PapayaWhipFFEFD5 
 Moccasin FFE4B5 
 PeachPuffFFDAB9 
 PaleGoldenrod EEE8AA 
 Khaki F0E68C 
 DarkKhakiBDB76B 

Purple color names

 Lavender E6E6FA 
 Thistle D8BFD8 
 Plum DDA0DD 
 Violet EE82EE 
 Orchid DA70D6 
 Fuchsia FF00FF 
 Magenta FF00FF 
 MediumOrchid BA55D3 
 MediumPurple 9370DB 
 Amethyst 9966CC 
 BlueViolet8A2BE2 
 DarkViolet9400D3 
 DarkOrchid9932CC 
 DarkMagenta8B008B 
 Purple 800080 
 Indigo 4B0082 
 SlateBlue6A5ACD 
 DarkSlateBlue 483D8B 
 MediumSlateBlue7B68EE 

Green color names

 GreenYellowADFF2F 
 Chartreuse7FFF00 
 LawnGreen7CFC00 
 Lime 00FF00 
 LimeGreen32CD32 
 PaleGreen98FB98 
 LightGreen90EE90 
 MediumSpringGreen00FA9A 
 SpringGreen00FF7F 
 MediumSeaGreen 3CB371 
 SeaGreen 2E8B57 
 ForestGreen228B22 
 Green 008000 
 DarkGreen006400 
 YellowGreen9ACD32 
 OliveDrab6B8E23 
 Olive 808000 
 DarkOliveGreen 556B2F 
 MediumAquamarine66CDAA 
 DarkSeaGreen 8FBC8F 
 LightSeaGreen 20B2AA 
 DarkCyan 008B8B 
 Teal 008080 

Blue color names

 Aqua 00FFFF 
 Cyan 00FFFF 
 LightCyanE0FFFF 
 PaleTurquoise AFEEEE 
 Aquamarine7FFFD4 
 Turquoise40E0D0 
 MediumTurquoise48D1CC 
 DarkTurquoise 00CED1 
 CadetBlue5F9EA0 
 SteelBlue4682B4 
 LightSteelBlue B0C4DE 
 PowderBlueB0E0E6 
 LightBlueADD8E6 
 SkyBlue 87CEEB 
 LightSkyBlue 87CEFA 
 DeepSkyBlue00BFFF 
 DodgerBlue1E90FF 
 CornflowerBlue 6495ED 
 MediumSlateBlue7B68EE 
 RoyalBlue4169E1 
 Blue 0000FF 
 MediumBlue0000CD 
 DarkBlue 00008B 
 Navy 000080 
 MidnightBlue 191970 

Brown color names

 Cornsilk FFF8DC 
 BlanchedAlmond FFEBCD 
 Bisque FFE4C4 
 NavajoWhiteFFDEAD 
 Wheat F5DEB3 
 BurlyWoodDEB887 
 Tan D2B48C 
 RosyBrownBC8F8F 
 SandyBrownF4A460 
 GoldenrodDAA520 
 DarkGoldenrod B8860B 
 Peru CD853F 
 ChocolateD2691E 
 SaddleBrown8B4513 
 Sienna A0522D 
 Brown A52A2A 
 Maroon 800000 

White color names

 White FFFFFF 
 Snow FFFAFA 
 Honeydew F0FFF0 
 MintCreamF5FFFA 
 Azure F0FFFF 
 AliceBlueF0F8FF 
 GhostWhiteF8F8FF 
 WhiteSmokeF5F5F5 
 Seashell FFF5EE 
 Beige F5F5DC 
 OldLace FDF5E6 
 FloralWhiteFFFAF0 
 Ivory FFFFF0 
 AntiqueWhite FAEBD7 
 Linen FAF0E6 
 LavenderBlush FFF0F5 
 MistyRoseFFE4E1 

Grey color names

 GainsboroDCDCDC 
 LightGreyD3D3D3 
 Silver C0C0C0 
 DarkGray A9A9A9 
 Gray 808080 
 DimGray 696969 
 LightSlateGray 778899 
 SlateGray708090 
 DarkSlateGray 2F4F4F 
 Black 000000 

Session Example


This program is used for session example in php. Session is used to store information, or change settings for a user session it holds the information about one single user, and those are available for all pages in one  application.


SessionExample.php here you will post your data in form and all data will be get stored in session variables.

<?php
session_start();
  if($_POST[request])
{
  $_SESSION['name'] = $_POST['nm'];
  $_SESSION['email'] = $mail=$_POST['mail'];
  $_SESSION['usrnm'] = $_POST['user'];
  $_SESSION['pswd'] = $_POST['pwd'];
  echo "<script type='text/javascript'>window.location.href='sesionpage.php'</script>";
}

?>
<html>
<head>
<title>Session Example</title>
<style>
  input[type="text"]
  {
    margin-top:5px;margin-left:8px;border: solid #00BFFF;border-radius:25px;
  }
  input[type="password"]
  {
    margin-top:5px;margin-left:8px;border: solid #00BFFF;border-radius:25px;
  }
  input[type="submit"]
  {
    height:50px;margin-left:65px;margin-bottom:10px;border: thick #56aa64;border-radius:25px;border: solid #00BFFF;
  }
</style>
</head>
<body width="600" >
<div style="width:200px;margin-left:100px; margin-top:50px;background-color:#56aa64;border-radius:25px;border: solid #00BFFF;">
  <form method="post">
    <br>&nbsp;Name<br>
    <input  type="text" name="nm"><br><br>
    &nbsp;Email ID<br>
    <input type="text" name="mail"><br><br>
    &nbsp;Username<br>
    <input type="text" name="user"><br><br>
    &nbsp;Password<br>
    <input type="password" name="pwd"><br>
    <br>
    <input type="submit" name="request" value="Submit">
  </form>
</div>
</body>
</html>

Output : 




sesionpage.php this page will display the data stored in session variables.

<?php
session_start();
$name = $_SESSION['name'];
$email = $_SESSION['email'];
$user = $_SESSION['usrnm'];
$pwd = $_SESSION['pswd'];
echo '<html>
  <head>
    <title>Session Variables</title>
  </head>
  <body width="600" >
    <div style="width:250px;margin-left:100px; margin-top:50px;background-color:#56aa64;border-radius:25px;border: solid #00BFFF;">
    <br>&nbsp;&nbsp;Name : '.$name.'<br><br>&nbsp;&nbsp;Email ID : '.$email.'<br>           <br>&nbsp;&nbsp;Username : '.$user.'<br><br>&nbsp;&nbsp;Password : '.$pwd.'<br>&nbsp;
    </div>
  </body>
</html>';
?>

Output :