• No results found

Implementation

In document Final Fyp Print (Page 75-84)

Description: The page illustrate above is home page for the website which contains login button. Menu bar which contains Home , About us and Contact us

Coding:

</asp:Content>

<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">

<h2>

Welcome to the

WEBSPACE-intranet&nbsp

<asp:Menu ID="NavigationMenu" runat="server" CssClass="menu" EnableViewState="false" IncludeStyleBlock="false" Orientation="Horizontal"> <asp:MenuItem NavigateUrl="~/LogInPage.aspx" ToolTip="Home" Text="Login"></asp:MenuItem> </Items> </asp:Menu>

<asp:Panel ID="Panel1" runat="server" BackImageUrl="~/apiitmain.PNG" Height="191px">

About Page

Description: The page illustrated above tells about university employability , technology , innovation , professional and fun

Coding: <asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent"> <style type="text/css"> .style2 </style> </asp:Content>

<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent"> <h2> About Us</h2> <p>

<img alt="" class="style2" src="about.PNG" /></p> <p>

Login Page

Description: The image illustrated above shows the APIIT Intranet login system. The user needs to enter the username and fingerprint image to login into the system Coding: Dim U1 As Char

Dim connection As SqlConnection = New SqlConnection

connection.ConnectionString = ("Data

Source=.\SQLEXPRESS;AttachDbFilename=C:\Users\Ivneet\Desktop\Ivneet_Singh _FYP_Final_Version1.1.2\App_Data\FingerprintDatabase.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True")

Dim command As SqlCommand = New SqlCommand

command.CommandText = ("SELECT Username,Fingerprint FROM FingerprintDetailsTable WHERE Username = '" & TextBox1.Text & "'AND Fingerprint = '" & FileUpload1.FileName & "'")

command.Connection = connection connection.Open()

Dim reader As SqlDataReader = command.ExecuteReader() If reader.Read = True Then

U1 = TextBox1.Text

Server.Transfer("StaffPage.aspx")

ElseIf TextBox1.Text = "admin" And FileUpload1.FileName = "110_4.tif" Then

Server.Transfer("AdminPage.aspx") Else

MsgBox("Access Denied ,Try Again!") TextBox1.Text = ""

End If

Username: This field should not be

emptyResult Chart & table

Finger pattern: Enroll fingerprint image from database

If username and fingerprint is not null then login into system

Cancel: This button will cancel the current operation

Secondary Login Page

Admin Login

Username: This field should not be empty

Security question: From dropdown list user need to select the question Security: This field should not be empty

Password: This field should not be empty

If username and

fingerprint is not null then login into system

If username, password and security answer is not null then login into system

Description: The image illustrative above shows the services provided to the

administrator for adding new staff , search for staff and delete the staff Coding: <asp:Content ID="Content1" ContentPlaceHolderID="HeadContent"

Runat="Server"> </asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">

<p>

welcome admin </p>

<asp:Menu ID="NavigationMenu" runat="server" CssClass="menu" EnableViewState="false" IncludeStyleBlock="false"

Orientation="Horizontal"> <Items>

<asp:MenuItem

NavigateUrl="~/AddStaff.aspx" ToolTip="Home" Text="Add New Staff"></asp:MenuItem>

<asp:MenuItem NavigateUrl="~/SearchStaff.aspx" Text="Search Staff Details"/>

<asp:MenuItem Text="Delete Staff Details" Value="Contact" NavigateUrl="~/DeleteStaff.aspx">

</asp:MenuIt </Items>p:Menu>

<asp:Button ID="Button1" runat="server" BackColor="White" BorderColor="#003366"

ForeColor="#003366" Text="Logout" /> </asp:Content>

Add new Staff

Description: The image illustrated above shows the fields required to register new staff into the APIIT intranet system. The administrator will have the rights to register new staff into the database.

Coding: Dim myconn1 As SqlConnection = New SqlConnection

myconn1.ConnectionString = ("Data

Source=.\SQLEXPRESS;AttachDbFilename=C:\Users\Ivneet\Desktop\Ivneet_Singh _FYP_Final_Version1.1.2\App_Data\FingerprintDatabase.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True")

Dim scomma1 As SqlCommand = New SqlCommand scomma1.Connection = myconn1

scomma1.CommandText = ("INSERT INTO

FingerprintDetailsTable(Username, Password, SecurityQuestion, SecurityAnswer,Fingerprint) VALUES('" & TextBox1.Text & "','" & TextBox2.Text & "','" & DropDownList2.Text & "','" & TextBox4.Text & "','" & FileUpload1.FileName & "') ")

myconn1.Open()

Dim sdr1 As SqlDataReader = scomma1.ExecuteReader If True Then

MsgBox("Saved in Database") Else

MsgBox("Access Denied ,Try Again!")

User needs to enter their name

Users need to enter their password for

registration

Users need to choose any security question for login

For the chosen security question user needs to mention the answer in this field

Adding fingerprint image to a database for new user

To add a new user into the database, press this button

Search Staff

Description: The image illustrated above search already registered staff details from the database

Coding: Data

Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\FingerprintDatabas e.mdf;Integrated Security=True;User Instance=True

Search from fingerprint_table where username= ” ” If true then search result else display=”no match found”

This button will navigate admin back to service page

This button will search for staff in the database

Delete Staff

Description: The image illustrated above is to delete the already registered staff from the database.

Coding: Dim myconn1 As SqlConnection = New SqlConnection myconn1.ConnectionString = ("Data

Source=.\SQLEXPRESS;AttachDbFilename=C:\Users\Ivneet\Desktop\Ivneet_Singh_F YP_Final_Version1.1.2\App_Data\FingerprintDatabase.mdf;Integrated

Security=True;Connect Timeout=30;User Instance=True") Dim scomma1 As SqlCommand = New SqlCommand scomma1.Connection = myconn1

scomma1.CommandText = ("DELETE FROM FingerprintDetailsTable WHERE Username = '" & TextBox1.Text & "'")

myconn1.Open()

Dim sdr1 As SqlDataReader = scomma1.ExecuteReader MsgBox("Deleted From Database")

This button will navigate admin back to service page

This button will search for staff in the database

This button will delete the staff from database

Staff Services Page

Description: The image illustrated above shows the services provided to staff in APIIT Intranet

Coding: <asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">

<p>

<strong>Welcome Staf&nbsp;;

<asp:Button ID="Button1" runat="server" Text="Logout" /> </p>

<asp:Panel ID="Panel2" runat="server" BackImageUrl="~/intranet.PNG"

Height="363px" style="margin-left: 0px" Width="901px"> </asp:Panel>

<p>

</strong></p>

<asp:Panel ID="Panel1" runat="server"> </asp:Panel>

In document Final Fyp Print (Page 75-84)

Related documents