Call Girls Delhi {Jodhpur} 9711199012 high profile service
E learning
1. E-Learning
E-Learning
A PROJECT REPORT
Submitted by
Talima Afreen
Tasmiya Arzoo
Shahana Zuber Ansari
for the award of the degree
of
Bachelor of Technology
IN
Computer Science and Engineering
INTEGRAL UNIVERSITY LUCKNOW
April 2016
2. E-Learning
INTEGRAL UNIVERSITY: LUCKNOW
UNDERTAKING
We, Talima Afreen, Tasmiya Arzoo and Shahana Zuber Ansari, student of
B.Tech. (CSE), hereby declare that the work detailed in this Project
entitled “E-Learning” submitted to the Department of Computer Science
and Engineering, Integral University, Lucknow for the award of the
Bachelor of Technology degree is our original work. We have neither
plagiarized nor submitted this work for the award of any other degree.
In case, this undertaking is found incorrect, We accept that my degree
may be unconditionally withdrawn.
Talima Afreen
Tasmiya Arzoo
Shahana Zuber Ansari
3. E-Learning
INTEGRAL UNIVERSITY:LUCKNOW
CERTIFICATE
This is to certify that the work contained in this project report entitled “E-
Learning” by Talima Afreen, Tasmiya Arzoo and Shahana Zuber Ansari
is a faithful record of work that has been carried out by the students,
under my supervision and the level of work is good for submission. To
the best of our knowledge, this work has not been submitted for award of
any degree or diploma to this University or elsewhere.
Manish Madhav Tripathi
Associate Professor
Computer Science and Engineering Department
Integral University, Dasauli, Kursi Road ,Lucknow
4. E-Learning
INTEGRAL UNIVERSITY:LUCKNOW
RECOMMENDATION
On the basis of the declaration submitted by Talima Afreen, Tasmiya
Arzoo, Shahana Zuber Ansari, internal assessment carried out by
department on date 19/04/2016 and the certificate issued by the Guide
Manish Madhav Tripathi the work entitle “E-Learning” submitted to
department of CSE, is recommended for final examination.
Jameel Ahmad Mrs. Kavita Agarwal
Project Coordinator Head
(Associate Professor) Department of CS/IT
5. E-Learning
INTEGRAL UNIVERSITY: LUCKNOW
ACKNOWLEDGEMENT
It gives us a great pleasure to present before you our project report on “E-
LEARNING” completed under the guidance of our HOD “Mrs.
KAVITA AGARWAL”department of Computer Science & Eng. Under
whose valuable guidance, contant interest and encouragement , which
have devoted his ever-precious time from her busy schedule and thus
helped in completing the project.
This co-operation is not only useful for this project but will be constant
source of inspiration for us in future life. We are also thankful to all
faculty member who help us intellectually in preparation of this project
directly or indirectly.
Last but not the least our gratefulness is there for our friends who gave
their constructive & helpful comments to make this report a success.
SHAHANA ZUBER ANSARI(1200112195)
TALIMA AFREEN(1200112227)
TASMIYA ARZOO(1200112229)
6. E-Learning
TABLE OF CONTENT
Chapter
No.
CONTENTS PAGE
No.
1 INTRODUCTION Vii
1.1. PURPOSE Vii
1.2. INTENDED AUDIENCE AND EVOLUTION OF
DOCUMENT
vii-viii
1.3. SCOPE OF THE DEVELOPMENT PROJECT Ix
1.4. DEFINITIONS, ACRONYMS, AND
ABBREVIATIONS
Ix
1.5. OVERVIEW X
2 PREVIOUS WORK Xi
2.1. EXISTING SYSTEM Xi-xii
2.2. OTHER SIMILAR ENTITY Xii
3 REQUIREMENT ANALYSIS xii-xviii
4 PROPOSED WORK
4.1. OBJECTIVE OF PROPOSED SYSTEM Xix
4.2. ADVANTAGE OF PROPOSED SYSTEM Xx
4.3. SCOPE OF PROPOSED SYSTEM Xx
5 HARDWARE AND SOFTWARE
SPECIFICATION
xxi-xxiv
5.1. HARDWARE REQUIREMENT Xxi
5.2. SOFTWARE REQUIREMENT Xxii
5.3. TECHNOLOGIES USED Xxii
5.3.1 FRONT END TOOLS Xxiii
5.3.2 BACK END TOOL xxiv
6 DESIGN xxv-xxx
6.1. DFD Xxv-xxvi
6.2. ER DIAGRAM Xxvii
6.3. DECISION TREE Xxviii
6.4. STRUCTURED ENGLISH Xxix
6.5. DESCRIPTION OF DESIGNING TOOLS xxx
7 OVERALL DESCRIPTION xxxi-xxxii
7. E-Learning
7.1. USER CLASSES AND CHARACTERISTICS Xxxi
7.2. OPERATING ENVIRONMENT Xxxi
7.3. DESIGN AND IMPLEMENTATIONS
CONSTRAINTS
xxxii
7.4. ASSUMPTION & DEPENDENCIES xxxii
8 TABLES USED IN THE PROJECT xxxiii-xxxvi
9 CODING BEHIND PAGE xxxvii-xcvii
10 SCREEN SHOTS OF THE PROJECT xcviii-civ
11 FUTURE WORK cv
12 CONCLUSION cvi
13
14
REFERENCES
BIO-DATA
cvi
cvii-cx
8. E-Learning
ABSTRACT
The paper presents an investigation into the role of virtual reality and web
technologies in the field of distance education. Within this frame, special
emphasis is given on the building of web-based virtual learning
environments so as to successfully fulfill their educational objectives.
Finally, an innovative virtual reality environment for distance education
is demonstrated. The proposed environment reproduces conditions of the
real learning process and enhances learning through a real-time
interactive simulator.
Virtual education is an emerging concept. Here the classes are not taken
face-to-face in a classroom but through an electronic medium as a
substitute. These virtual classrooms are gaining importance everyday and
very soon they are going to be an integral part of our world.
Taking up these virtual classes through an electronic medium is
termed as E-Learning. Today E-Learning is no more a technical word that
only a few people know. It is turning to be a part of everyone's life
whether a student, employee or a housewife all tend to use E-Learning in
one way or another. Larger organizations are turning towards E-Learning
solution for proving training digitally.
As the number of Internet access points are growing rapidly, E-Learning
is also gaining a new peak. This electronic medium serves best for
dissemination of information. E-Learning is proving itself as a boon for
students especially for the disabled who are not able to go and attend the
lectures. All these emphasize the need for developing Open Source
software that can be used to generate rich multimedia presentation.
9. E-Learning
INTRODUCTION
Today, we have moved to the digital age. It is now possible to
accomplish anything from shopping to socializing online. It is
Therefore only natural that learning should move to the digital form
too. Our product strives to achieve this transition of education from
manual classroom teaching to a virtual environment where a student can
learn at anytime from any place.
1.1 PURPOSE:
E-Learning aims to replace the role of a school and teachers by
providing students a virtual environment which makes it easy for them to
study. This is not only provides students the convenience of studying at
anytime they wish, but also facilitates distance learning. It enables a
school to cater to students from all across the globe without requiring
them to come to the country where the school is located. Even if applied
only within a particular region for security reasons, it would still save
time, costs and energy. Decreased road congestion and pollution would
be positive consequences of its application since millions of students
every day would not be travelling to and from school.
E-Learning does more than providing students an alternative to
attending school. It takes education to a whole new level where
education is a continuous process. It enables students to attend the school
of their choice without worrying about travelling or even boarding. A
student from India can study from Houston University without having to
travel there. Students from China, Australia and Italy can all be members
of the same class even while sitting in their own homes.
1.2 INTENDED AUDIENCE AND EVOLUTION OF DOCUMENT:
This document is meant for professors, students and developers who
consider virtual classroom as a useful means for distance education. This
10. E-Learning
document aims at explaining in an easy manner. It aims to introduce to
professors and students and also general users (For e.g. People working
in a company) the main features of E-Learning and how the developers
aim to achieve their goals. Future development objectives are also
discussed.
2.3 SCOPE OF THE DEVELOPMENT PROJECT:
E-Learning is a virtual classroom based on ASP.Net. It is being made in
response to a growing demand for eLearning software. This can be used
as a stand-alone model for education in a school or can be used to
supplement the existing system of a school. Either ways, it will be
accessible to all students of an institution and they can use it to view
tutorials or submit assignments/tests.
2.4 DEFINITIONS, ACRONYMS, AND ABBREVIATIONS:
E-learning: Refers to the Virtual Classroom software version 1.0
being developed.
E-Learning Management System: A software package to assist
administrator/teachers with the creation of online courses for their
students.
2.5 OVERVIEW:
This Software Requirements Specification specifies the requirements of
the E-Learning tool using which people can generate multimedia
presentations combining video, HTML, images and slides and publish it
as a web page that is viewable an all popular web browsers.
11. E-Learning
2.PREVIOUS WORK
2.1 EXISTING SYSTEM:
The existing education system requires students to reside near the
Institution they wish to study in. This is problematic when the college a
student wishes to attend is in another city or, worse, another country.
Costs automatically go up due to travelling and renting a room or paying
Hostel fee.
Further, students are supposed to simultaneously report to college
at a specific time each day. No provision is made for students who are
unable to attend college on time on a particular day. There is no way to
go through a lecture that has been missed. The best a student can do is
copy the notes taken by his friends.
A school building is a huge structure, requiring ample lighting and
cooling. Rooms, even when not in use, might be lit up. This leads to
inefficient use of energy, something which can be avoided with the use
of e-learning. Further, millions of students travelling to and from college
everyday automatically leads to congestion on the roads, which in turn
leads to increased pollution.
2.2 OTHER SIMILAR ENTITY:
After the analysis of other similar entities it has been found that
although they are working in their respective institutes but they still need
to be more refined and also be ADD-Ones with other facilities as well.
There are many works still left to work on, such as: Online Class Test,
Online Database of the particular student, Online payment of the fees,
Viewing and downloading of recorded Lectures.
12. E-Learning
3.PROBLEM IDENTIFICATION AND
FEASIBILITY STUDY
3.1 PROBLEM IDENTIFICATION:
As we know, we have moved to the digital age. It is now possible to
accomplish anything from shopping to socializing online. It is
therefore only natural that learning should move to the digital form
too. Our product strives to achieve this transition of education from
manual classroom teaching to a virtual environment where a student can
learn at anytime from any place.
This software aims to replace the role of a school and teachers by
providing students a virtual environment which makes it easy for them to
study. This not only provides students the convenience of studying at
anytime they wish, but also facilitates distance learning. It enables a
school to cater to students from all across the globe without requiring
them to come to the country where the school is located. Even if applied
only within a particular region for security reasons, it would still save
time, costs and energy. Decreased road congestion and pollution would
be positive consequences of its application since millions of students
every day would not be travelling to and from school.
E-Learning does more than providing students an alternative to
attending school. It takes education to a whole new level where
education is a continuous process. It enables students to attend the school
of their choice without worrying about travelling or even boarding. A
student from India can study from Houston University without having to
travel there. Students from China, Australia and Italy can all be members
of the same class even while sitting in their own homes.
13. E-Learning
3.2 FEASIBILITY STUDY:
(a)ECONOMIC FEASIBILITY:
The proposed system would save
millions of dollars in the education system. Money spent on providing
infrastructure which itself amounts to millions of dollars would
automatically saved. There would be further savings due to saving of
energy that was earlier being wasted in the building. Students would not
have to pay for travelling and lodging, or even food from outside. They
would further save on fees since most colleges would cut down on the
part of fees they charge for development of infrastructure and its
maintenance.
In contrast to the huge cash requirements of the existing system, the
proposed system is a simple online interface that can be accessed by
anyone at a minimal cost. The only expenditure, apart from the existing
ones on staff, will be on software maintenance staff.
(b)TECHNICAL FEASIBILITY:
The software only relies on a high-
speed internet connection on the student end to enable access to videos.
Even on a low-speed connection, a student can still read textual
materials.
The college would have to invest in secure servers and ensure proper
maintenance of the software. Both these are easily achievable at
low cost.
(c) OPERATIONAL FEASIBILITY:
The system will be used if it is
developed well, and then there will be resistance for users that
undetermined:
No major training and new skills are required as it is based on
DBMS model and Virtual Reality.
14. E-Learning
It will help in the time saving and fast processing and dispersal of
student’s requests.
New product will provide all the benefits of present system with
better performance.
Improved information, better management and collection of the
reports.
User support.
User involvement in the building of present system is sought to
keep in mind the user specific requirement and needs.
15. E-Learning
4. REQUIREMENT ANALYSIS
Problem Definition:
Since, we have investigated through many aspects of current teachings
system, and also into the merits-demerits which emerges out from it.
It is found that E-Learning aims to replace the role of a school and
teachers by providing students a virtual environment which makes it
easy for them to study. This not only provides students the convenience
of studying at anytime they wish, but also facilitates distance learning. It
enables a school to cater to students from all across the globe without
requiring them to come to the country where the school is located. Even
if applied only within a particular region for security reasons, it would
still save time, costs and energy. Decreased road congestion and
pollution would be positive consequences of its application since
millions of students every day would not be travelling to and from
school.
E-Learning does more than providing students an alternative to attending
school. It takes education to a whole new level where education is a
continuous process. It enables students to attend the school of their
choice without worrying about travelling or even boarding. A student
from India can study from Houston University without having to travel
there. Students from China, Australia and Italy can all be members of the
same class even while sitting in their own homes.
Analyst, working closely with the Teachers and the students, must study
the Counseling Process as follows:
These key questions:
What is being done?
How is it being done?
How frequent does it occur?
How great is the volume of interaction?
16. E-Learning
How well is the task being performed?
Does a problem exist?
If problems exist, how serious is it?
If a problem exists, what is the underlying cause?
Apart from this, almost all the aspects of teaching environment were
closely monitored in order to develop fine software. The other steps
which were carried out were:
Analysis of teaching materials.
Analysis of teaching methods.
Analysis of Class Test being conducted.
Interview the Teachers and the students.
Observe the overview of Administrative section.
Onsite observations.
Analysis of Scheduling of classes.
Analysis of Time Management.
OUTCOME OF THE REQUIREMENTS ANALYSIS:
After our team has done the analysis on the requirement, we find that
there are various requirements for the development of this project, they
have been divided into four sections, and they are as follow:
(1)VISITORS SECTION:
Home page
About us
Login Student
Login Teacher
Login Administrator
Current Courses
Current Faculties
Fee Structure
Why us
Upcoming Batches
Picture Gallery
Registration instructions
Registration Form
18. E-Learning
View Students Attendance
Voting
Prepare online Question paper
Offline queries
Teachers Forums
Log out
(4)Administrator’s Section
Add student
Remove student
Add Teacher
Remove Teacher
Add Course
Remove Course
Add Batch
Remove batch
Change Password
Manage attendance
Assign Teacher with Course
Generate Student’s Certificate
Manage student’s fee
Manage teacher’s salary
Log out
Note: These are all requirements which we gathered, we tried our best
to implement maximum of them, and remaining features can be
supplemented for Future upgradations.
19. E-Learning
5. PROPOSED WORK
E-Leanings a virtual classroom environment that provides students
with all the learning facilities provided to them in a school. Notes to
refer to, videos of lectures, online tests are the most important features of
the product.
5.1 OBJECTIVE OF PROPOSED SYSTEM:
E-Learning aims to provide students with:
Presentations, eBooks and other necessary notes.
Videos of lectures.
Online submission of assignments, projects and tests.
Ability to check their marks and details online.
It strives to facilitate distance learning and better interaction between
students from different geographical locations.
5.2 ADVANTAGE OF PROPOSED SYSTEM:
The new system provides students with the convenience of learning
at any time they wish and from any place. Reading in a comfortable
environment and a time suited to the particular student leads to better
understanding of the subject.
It also enables students to go through a particular lecture as many
times as they wish since they only have to replay a video.
Learning/revising a subject from a video is better than revising from a
book.
It automatically cuts down on costs for students since they do not
have to worry about travel and lodging. It also saves costs for an
institution since it no longer requires a huge building and the
infrastructure it would have otherwise had to build.
It also allows a new institution to get off the ground immediately,
instead of having to wait for years to simply build a building for its
students.
20. E-Learning
As a direct consequence, it will save time and energy for both
students and teachers. As an indirect consequence, it will decrease road
traffic and pollution.
5.3 SCOPE OF PROPOSED SYSTEM:
The proposed system can be used as an independent learning tool or in
conjunction with a school’s existing system. A school wouldn’t find it
too difficult to replace their existing system with the new one since it
only requires granting student’s access to the system.
If a school wishes for actual interaction between students and
faculty, or in an institution where presentations in front of live audiences
are required, this product can be used to supplement the existing system.
Student can do most of the learning from home and come to school for
only the interactive sessions. In the later combinational system, however,
the advantages of global education would be nullified.
21. E-Learning
6. HARDWARE AND SOFTWARE SPECIFICATION
6.1 HARDWARE REQUIREMENT:
Main Processor Pentium IV
Hard-disk Capacity 80 GB
RAM 1 GB
INTERNET CONNECT 256 Kbps
(These are the least configuration which should hold.)
6.2 SOFTWARE REQUIREMENT:
Operating System Windows 8
Backend tool SQL Server 2008
Front-end tool ASP.NET 3.5, JavaScript
Web Browser MS Internet Explorer 8.0
Note: With all the above requirements, the software is technically
feasible.
22. E-Learning
6.3 TECHNOLOGIES USED
6.3.1 FRONT END TOOLS:
HTML (Hyper Text Markup Language)
A markup language used to structure text and multimedia documents
and to set up hypertext links between documents, used extensively on the
World Wide Web. HTML is a designing language, not a programming
language. HTML is a markup language that uses a fixed set of markup
tags.
HTML itself is the set of customizable “markup” tags that are
inserted into HTML document govern its format, multimedia
content, and hyperlinks. Any HTML viewer can display such
documents but they are normally viewed using a Web browser.
HTML is a programming language in that an HTML document is a
program that, when “run” by a browser, displays its text as
hypermedia (multimedia with hyperlinks).
The “language” HTML is really only a collection of predefined
tags which, when inserted into regular text, tell a web browser how
to work.
JAVASCRIPT
JavaScript is a compact, object-based scripting language. It can
provide interactive web pages, validate from data, and make your web
page clearer. JavaScript is a lightweight interpreted scripting language.
The language is most well known for its use in websites. It was
23. E-Learning
originally developed by Brendan Each of Netscape Communications.
It adds interactive functions to HTML pages, which are otherwise
static. JavaScript is easier to use than Java, but not as powerful and
deals mainly with the elements on the Web page. On the client,
JavaScript is maintained as source code embedded into an HTML
page. On the Server, it is compiled into byte code (intermediate
language), similar Java programs.
ASP.NET
ASP Stands for Active Server Pages.
Microsoft ASP. Net is a technology that allows Programmer to
create Dynamic Web Application.
ASP. Net is a program that runs inside IIS.
IIS (Internet Information Services) is Microsoft’s Internet Server.
ASP. Net file can contain HTML, XML and scripts.
The .NET Framework is an architecture that’s makes it easier to
design.
The Common Language Runtime (CLR) provides a set of services
for all ASP.Net Languages.
PROGRAMMING LANGUAGE (C#)
C# is purely Object Oriented Language.
C# directly related to C, C++ and Java.
24. E-Learning
6.3.2 BACK END TOOL:
SQL SERVER 2008
Microsoft Server-2008 is a full featured Relational Database
Management System (RDBMS).
Online Transaction Processing (OLTP) system must be capable of
handling thousands of order placed at the same time.
MSSQL Server-2008 has variety of Tools.
Enterprise Manager.
Query Analyzer.
SQL Profile.
Service Manager.
Data Transformation Service.
Books Online.
30. E-Learning
7.5 DESCRIPTION OF DESIGNING TOOLS:
DATA FLOW DIAGRAM (DFD):
DFD are commonly used during problem analysis.
A DFD shows the flow of data through a system.
The DFD aims to capture the transformation that take place
within the System to the input data so that eventually the output
data is produced.
A DFD does not represent procedural information.
DFD is a logical design of the flow of information between the
modules.
The DFD shows the interaction of one module with the other module.
There are several level of DFD are used to describe the flow of
information
ENTITY RELATIONSHIP DIAGRAM:
ERD can express the overall logical structure of a database
graphically.
ERD are simple and clear qualities that may well account in large
part for the widespread use of the ER-Model.
The basic object that the ER model represents is an entity, which is
a “Thing” in the real world with an independent existence.
A particular entity will have a value for each of its attributes.
The attribute values that describe each entity become a major part
of the data stored in the database.
31. E-Learning
8. OVERALL DESCRIPTION
8.1 USER CLASSES AND CHARACTERISTICS:
Students: Students will have ability to read the data in “reading
materials” section. This includes videos, eBooks, notes etc. They will
also have the ability to modify and submit data in the “work” section
which will include tests, assignments, reports etc.
Teachers: Apart from the functionalities granted to students, teachers
will be able to upload data to the “materials” and “work” section. It will
be automatically categorized into the correct subject section by the
system depending on which teacher account has uploaded it. Teachers
can delete/modify data uploaded by themselves but not by other
teachers.
Administrator: An administrator has access to all parts of the
system.He possesses the power to delete any material. He will also have
access to the back-end of the system using which he can access
details of teachers and students.
8.2 OPERATING ENVIRONMENT:
The proposed product requires a web browser to work. It can work on
any operating system that contains a web browser with support for:
ASP.Net
Java Script
Flash or Silverlight (For Videos)
32. E-Learning
8.3 DESIGN AND IMPLEMENTATIONS CONSTRAINTS
Though schools would prefer it, the current development
environment makes it difficult for us to prevent unauthorized
download and distribution of files by students. To ensure that students do
not cheat on tests, it could be possible to use webcam technology to
ensure that no one else is in the room with the student. A biometric scan
should be done to verify the identity of the student. However, current
levels of sophistication of webcam technologies and biometric scans
restrict us from implementing these features in E-Learning1.0.
8.4 ASSUMPTION & DEPENDENCIES
The product relies on a high-speed internet connection on part of the
student. A high bandwidth is required for streaming videos.
54. E-Learning
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
public partial class admin_Inbox : System.Web.UI.Page
{
myClass1 ob = new myClass1();
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
ob.ds.Clear();
ob.cmd.CommandText = "select *from reg_admin where user_id='" +
Session["Admin"].ToString() + "' ";
ob.adp.Fill(ob.ds, "vt");
foreach (DataRow dr in ob.ds.Tables["vt"].Rows)
{
Image1.ImageUrl = dr["image_path"].ToString();
}
//***************
MultiView1.SetActiveView(View1);
ob.gridBinding(GridView1, "select *from inbox where recieverId='" +
Session["Admin"].ToString() + "' and status='True'");
}
}
protected void Button1_Click(object sender, EventArgs e)
{
int i = 0;
if (DropDownList1.SelectedIndex.ToString() == "0")
{
i = 1;
}
if (TextBox2.Text =="")
{
i = 1;
}
if (TextBox3.Text == "")
{
i = 1;
}
if (i == 1)
{
Label35.Text = "Invalid Message";
Label35.Visible = true;
}
else
{
ob.ds.Clear();
ob.cmd.CommandText = "select *from inbox where message_text='" + TextBox2.Text + "' and
senderType='Admin' ";
ob.adp.Fill(ob.ds, "vt");
if (ob.ds.Tables["vt"].Rows.Count > 0)
{
Label35.Text = "Already Sent";
Label35.Visible = true;
}
else
{
ob.ds.Clear();
ob.cmd.CommandText = "select *from inbox";
ob.adp.Fill(ob.ds, "vt");
ob.dr = ob.ds.Tables["vt"].NewRow();
ob.dr["recieverId"] = DropDownList2.SelectedItem.Text;
ob.dr["senderType"] = "Admin";
ob.dr["senderId"] = Session["Admin"].ToString();
ob.dr["subject"] = TextBox3.Text;
55. E-Learning
ob.dr["message_text"] = TextBox2.Text;
ob.dr["date"] = System.DateTime.Now.ToShortDateString();
ob.dr["status"] = "True";
ob.ds.Tables["vt"].Rows.Add(ob.dr);
ob.scb.DataAdapter = ob.adp;
ob.adp.Update(ob.ds.Tables["vt"]);
Label35.Text = "Successfull";
Label35.Visible = true;
}
}
}
protected void Button2_Click(object sender, EventArgs e)
{
MultiView1.SetActiveView(View1);
TextBox2.Text = "";
TextBox3.Text = "";
}
(d) Join Chatting:
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
public partial class admin_gotochat : System.Web.UI.Page
{
static int f = 0;
myClass1 ob = new myClass1();
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
ob.ds.Clear();
ob.cmd.CommandText = "select *from reg_admin where user_id='" +
Session["Admin"].ToString() + "'";
ob.adp.Fill(ob.ds, "vt");
foreach (DataRow dr in ob.ds.Tables["vt"].Rows)
{
Label26.Text= dr["city"].ToString();
Image1.ImageUrl = dr["image_path"].ToString();
}
Label25.Text = Session["Admin"].ToString();
if(DropDownList5.SelectedItem.Text=="Faculties")
{
Label28.Text = "Present Faculties";
Label28.Visible = true;
Label29.Text = "Absent Faculties";
Label29.Visible = true;
ob.gridBinding(GridView1, "select *from reg_faculty where onlineStatus='True' and status='True'");
ob.gridBinding(GridView2, "select *from reg_faculty where onlineStatus='False' and status='True'");
}
if (DropDownList2.SelectedItem.Text == "Students")
{
ob.ddlBinding(DropDownList3, "select *from faculty_allotment", "coarse_name", "");
ob.ddlBinding(DropDownList4, "select *from reg_student where onlineStatus='True' and
status='True' and course_applied='" + DropDownList3.SelectedItem.Text + "'", "user_id", "");
}}
56. E-Learning
(e) Create Course:
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
public partial class admin_createCourses : System.Web.UI.Page
{
myClass1 ob = new myClass1();
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
int i = 0;
Label9.Visible = false;
Label10.Visible = false;
ob.ds.Clear();
ob.cmd.CommandText = "select *from coarse1 where coarse_code='" + TextBox2.Text + "'";
ob.adp.Fill(ob.ds, "vt");
if (ob.ds.Tables["vt"].Rows.Count > 0)
{
Label9.Text = "Not Available";
Label9.Visible = true;
i = 1;
}
ob.ds.Clear();
ob.cmd.CommandText = "select *from coarse1 where coarse_name='" + TextBox1.Text + "'";
ob.adp.Fill(ob.ds, "vt");
if (ob.ds.Tables["vt"].Rows.Count > 0)
{
Label10.Text = "Not Available";
Label10.Visible = true;
i = 1;
}
if (i != 1)
{
ob.ds.Clear();
ob.cmd.CommandText = "select *from coarse1";
ob.adp.Fill(ob.ds, "vt");
ob.dr = ob.ds.Tables["vt"].NewRow();
ob.dr["coarse_code"] = TextBox2.Text.Trim();
ob.dr["coarse_name"] = TextBox1.Text;
ob.dr["coarse_duration"] = DropDownList1.Text;
ob.dr["fee"] = TextBox3.Text;
ob.dr["image_path"] = ViewState["image_path"].ToString();
ob.dr["status"] = "False";
ob.ds.Tables["vt"].Rows.Add(ob.dr);
ob.scb.DataAdapter = ob.adp;
ob.adp.Update(ob.ds.Tables["vt"]);
Label7.Text = TextBox1.Text + " " + "Added";
Label7.Visible = true;
}
}
}
57. E-Learning
(f) View All Courses:
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
public partial class admin_ViewAllCourses : System.Web.UI.Page
{
myClass1 ob = new myClass1();
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
ob.ds.Clear();
ob.cmd.CommandText = "select *from coarse1";
ob.adp.Fill(ob.ds,"vt");
DataList1.DataSource = ob.ds.Tables["vt"];
DataList1.DataBind();
ob.ddlBinding(DropDownList1, "select *from coarse1", "coarse_code", "");
}
}
protected void Button1_Click(object sender, EventArgs e)
{
Label3.Visible = false;
ob.con.Open();
ob.cmd.CommandText = "delete from coarse1 where coarse_code='" + DropDownList1.Text + "'";
ob.cmd.ExecuteNonQuery();
ob.con.Close();
Label3.Text = "Successfull";
Label3.Visible = true;
Response.Redirect("ViewAllCourses.aspx");
}
}
(g)View All Students:
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
public partial class admin_Student_ViewAll : System.Web.UI.Page
{
myClass1 ob = new myClass1();
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
ob.gridBinding(GridView1, "select *from reg_student where status='True'");
}
}
}
58. E-Learning
(h)View Attendence:
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
public partial class admin_viewAttendence : System.Web.UI.Page
{
myClass1 ob = new myClass1();
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
ob.ddlBinding(DropDownList1, "select *from faculty_allotment", "coarse_name", "");
ob.ddlBinding(DropDownList2, "select * from reg_student where course_applied='" +
DropDownList1.SelectedItem.Text + "'", "user_id", "");
if (DropDownList2.Text != "")
{
Label4.Text = DropDownList2.SelectedItem.Text;
ob.ds.Clear();
ob.cmd.CommandText = "select *from attendence where student_name='" +
DropDownList2.SelectedItem.Text + "'";
ob.adp.Fill(ob.ds, "vt");
foreach (DataRow dr in ob.ds.Tables["vt"].Rows)
{
Label6.Text = dr["classtime"].ToString();
}
ob.gridBinding(GridView1, "select *from attendence where student_name='" +
DropDownList2.SelectedItem.Text + "'");
}
Label5.Text = DropDownList1.SelectedItem.Text;
}
}
protected void Button1_Click(object sender, EventArgs e)
{
ob.ds.Clear();
ob.cmd.CommandText = "select *from attendence where student_name='" + Label4.Text + "'
and coarse_name='" + Label5.Text + "' and status='Present' ";
ob.adp.Fill(ob.ds, "vt");
if (ob.ds.Tables["vt"].Rows.Count > 0)
{
Label12.Text = "= " + Convert.ToString(ob.ds.Tables["vt"].Rows.Count) + " Days";
Label12.Visible = true;
}
else
{
Label12.Text = "= " + "0" + " Days";
Label12.Visible = true;
}}}
(i) View All Faculties:
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
59. E-Learning
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
public partial class admin_Faculties_ViewAll : System.Web.UI.Page
{
myClass1 ob = new myClass1();
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
ob.gridBinding(GridView1, "select *from reg_faculty where status='True'");
}
}
}
(j) View Feedback:
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
public partial class admin_ViewFeedback : System.Web.UI.Page
{
myClass1 ob = new myClass1();
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
ob.gridBinding(GridView1, "select *from feedback where status='True' and
reciever_name='" + Session["Admin"].ToString() + "' and sender_type='Student' and
reciever_type='Admin'");
ob.gridBinding(GridView2, "select *from feedback where status='True' and
reciever_name='" + Session["Admin"].ToString() + "' and sender_type='Faculty' and
reciever_type='Admin' ");
MultiView1.Visible = true;
MultiView1.SetActiveView(View1);
}
}
protected void Faculty_delete_all(object sender,EventArgs e)
{
CheckBox cc;
Label l;
foreach (GridViewRow gr in GridView2.Rows)
{
cc = (CheckBox)gr.FindControl("chkchild2");
if (cc.Checked)
{
l = (Label)gr.FindControl("lbl12");
ob.con.Open();
ob.cmd.CommandText = "delete from feedback where msg='" + l.Text + "' and
sender_type='Faculty' and reciever_type='Admin' ";
ob.cmd.ExecuteNonQuery();
ob.con.Close();
}
60. E-Learning
}
ob.gridBinding(GridView2, "select *from feedback where status='True' and reciever_name='"
+ Session["Admin"].ToString() + "' and sender_type='Faculty' and reciever_type='Admin'");
}
protected void view_all(object sender, EventArgs e)
{
ob.gridBinding(GridView1, "select *from feedback where reciever_name='" +
Session["Admin"].ToString() + "' and sender_type='Student' and reciever_type='Admin'");
}
protected void LinkButton2_Click(object sender, EventArgs e)
{
MultiView1.Visible = true;
MultiView1.SetActiveView(View2);
}
}
Faculty Section:
(a)Home Page:
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
public partial class faculty_welcome_faculty_ : System.Web.UI.Page
{
myClass1 ob = new myClass1();
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
ob.ds.Clear();
ob.cmd.CommandText = "select *from reg_faculty where user_id='" +
Session["Faculty"].ToString() + "' ";
ob.adp.Fill(ob.ds, "vt");
foreach (DataRow dr in ob.ds.Tables["vt"].Rows)
{
Image1.ImageUrl=dr["image_path"].ToString();
Label1.Text = dr["first_name"].ToString();
Label2.Text = dr["city"].ToString();
}
/********************/
ob.gridBinding(GridView1, "select *from announcement where tooUser='Faculty' order by
date desc");
}
}
protected void Button1_Click(object sender, EventArgs e)
{
ob.ds.Clear();
ob.cmd.CommandText = "select *from announcement where tooUser='Student' and
anncmntsText='" + TextBox1.Text + "'";
ob.adp.Fill(ob.ds, "vt");
if (ob.ds.Tables["vt"].Rows.Count > 0)
{
Label4.Text = "Already Sent";
Label4.Visible = true;
}
else
{
61. E-Learning
ob.con.Open();
ob.cmd.CommandText="insert into announcement values('Student','Faculty','"
+Session["Faculty"].ToString()+"','"+TextBox1.Text+"','"
+ System.DateTime.Now.ToShortDateString() + "')";
ob.cmd.ExecuteNonQuery();
ob.con.Close();
Label4.Text = "Successfull";
Label4.Visible = true;
}
}
(b)View Profile:
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
public partial class faculty_ViewProfile : System.Web.UI.Page
{
myClass1 ob = new myClass1();
int i = 0;
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
string r = "";
ob.ds.Clear();
ob.cmd.CommandText = "select *from reg_faculty where user_id='" +
Session["Faculty"].ToString() + "' ";
ob.adp.Fill(ob.ds, "vt");
foreach (DataRow dr in ob.ds.Tables["vt"].Rows)
{
Label2.Text = dr["user_id"].ToString();
Label4.Text = dr["first_name"].ToString();
Label6.Text = dr["last_name"].ToString();
Label8.Text = dr["password"].ToString();
Label10.Text = dr["gender"].ToString();
Label12.Text = dr["country"].ToString();
Label14.Text = dr["state"].ToString();
Label16.Text = dr["city"].ToString();
Label18.Text = dr["dob"].ToString();
Label20.Text = dr["marital_status"].ToString();
Label26.Text = dr["mobile_no"].ToString();
Label27.Text = dr["email_id"].ToString();
Label28.Text = dr["profession"].ToString();
r = dr["image_path"].ToString();
}
Image1.ImageUrl = r;
}
}
protected void Button1_Click1(object sender, EventArgs e)
{
string p = "";
if (RadioButton1.Checked)
{
p = RadioButton1.Text;
}
else
{
66. E-Learning
}
if (DropDownList1.SelectedItem.Text == "Admin")
{
ob.ddlBinding(DropDownList2, "select *from reg_admin", "user_id", "");
}
if (DropDownList1.SelectedItem.Text == "Faculty")
{
ob.ddlBinding(DropDownList2, "select *from reg_faculty", "user_id", "");
}
}
protected void LinkButton1_Click(object sender, EventArgs e)
{
MultiView1.Visible = true;
MultiView1.SetActiveView(View2);
}
protected void LinkButton2_Click(object sender, EventArgs e)
{
MultiView1.Visible = true;
MultiView1.SetActiveView(View1);
}
protected void select_all(object sender, EventArgs e)
{
CheckBox ch, cc;
ch = (CheckBox)GridView1.HeaderRow.FindControl("chkhead");
if (ch.Checked)
{
foreach (GridViewRow gr in GridView1.Rows)
{
cc = (CheckBox)gr.FindControl("chkchild");
cc.Checked = true;
}
}
else
{
foreach (GridViewRow gr in GridView1.Rows)
{
cc = (CheckBox)gr.FindControl("chkchild");
cc.Checked = false;
}
}
}
protected void do_delete(object sender, GridViewDeleteEventArgs e)
{
GridViewRow g = (GridViewRow)GridView1.Rows[e.RowIndex];
Label l;
l = (Label)g.FindControl("label34");
ob.con.Open();
ob.cmd.CommandText = "delete from inbox where message_text='" + l.Text + "'";
ob.cmd.ExecuteNonQuery();
ob.con.Close();
ob.gridBinding(GridView1, "select *from inbox where recieverId='" + Session["Faculty"].ToString()
+ "' and status='True'");
}
}
(d)My Class Time:
using System;
using System.Collections;
67. E-Learning
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
public partial class faculty_MyClassTime : System.Web.UI.Page
{
myClass1 ob = new myClass1();
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
ob.ds.Clear();
ob.cmd.CommandText = "select *from faculty_allotment where faculty_name='" +
Session["Faculty"].ToString() + "'";
ob.adp.Fill(ob.ds,"vt");
foreach (DataRow dr in ob.ds.Tables["vt"].Rows)
{
Label1.Text=dr["class_time"].ToString();
Label1.Visible = true;
}
ob.gridBinding(GridView1, "select *from faculty_allotment");
}}}
(e) Upload Contents:
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
public partial class faculty_UploadCoarseContents : System.Web.UI.Page
{
myClass1 ob = new myClass1();
protected void Page_Load(object sender, EventArgs e)
{
if(!IsPostBack)
{
RadioButton1.Checked = true;
MultiView1.SetActiveView(View1);
ob.ddlBinding(DropDownList2, "select *from coarse1", "coarse_code","");
ob.ddlBinding(DropDownList3, "select *from coarse1 where coarse_code='" +
DropDownList2.Text + "'", "coarse_name", "");
}
}
protected void DropDownList2_SelectedIndexChanged(object sender, EventArgs e)
{
ob.ddlBinding(DropDownList3, "select *from coarse1 where coarse_code='" +
DropDownList2.Text + "'", "coarse_name", "");
}
protected void Button1_Click(object sender, EventArgs e)
{
FileUpload1.SaveAs(Server.MapPath("~/faculty/contents/" + ViewState["p1"].ToString()));
69. E-Learning
Image2.Visible = true;
ViewState["p1"] = FileUpload3.FileName;
ViewState["p2"] = FileUpload4.FileName;
FileUpload4.SaveAs(Server.MapPath("~/faculty/image_content/" + ViewState["p2"].ToString()));
Image2.ImageUrl = "~/faculty/image_content/" + ViewState["p2"].ToString();
}
protected void save_paper(object sender, EventArgs e)
{
FileUpload3.SaveAs(Server.MapPath("~/faculty/contents/" + ViewState["p1"].ToString()));
Label16.Visible = false;
Label18.Visible = false;
ob.ds.Clear();
ob.cmd.CommandText = "select *from upload_course where book_name='" + TextBox2.Text
+ "' and content_type='Questionpaper'";
ob.adp.Fill(ob.ds, "vt");
if (ob.ds.Tables["vt"].Rows.Count > 0)
{
Label20.Text = "Already Added";
Label20.Visible = true;
Label23.Visible = false;
}
else
{
ob.ds.Clear();
ob.cmd.CommandText = "select *from upload_course";
ob.adp.Fill(ob.ds, "vt");
ob.dr = ob.ds.Tables["vt"].NewRow();
ob.dr["content_type"] = "Questionpaper";
ob.dr["course_code"] = DropDownList4.Text;
ob.dr["course_name"] = DropDownList5.Text;
ob.dr["book_name"] = TextBox2.Text;
ob.dr["content_path"] = "~/faculty/contents/" + ViewState["p1"].ToString();
ob.dr["contentImage_path"] = "~/faculty/image_content/" + ViewState["p2"].ToString();
ob.ds.Tables["vt"].Rows.Add(ob.dr);
ob.scb.DataAdapter = ob.adp;
ob.adp.Update(ob.ds.Tables["vt"]);
Label23.Text = TextBox2.Text + " " + "Added";
Label23.Visible = true;
Label20.Visible = false;
}
}
}
(f) View All e-Books:
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
public partial class faculty_ViewAllContents : System.Web.UI.Page
{
myClass1 ob = new myClass1();
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
ob.datalist_binding(DataList1,"select *from upload_course where content_type='E-Books'");
ob.ddlBinding(DropDownList1, "select *from upload_course where content_type='E-
Books'", "book_name", "");
}
70. E-Learning
}
protected void Button1_Click(object sender, EventArgs e)
{
Label3.Visible = false;
ob.con.Open();
ob.cmd.CommandText="delete from upload_course where book_name='"
+DropDownList1.Text
+"' and content_type='E-Books'";
ob.cmd.ExecuteNonQuery();
ob.con.Close();
Label3.Text = "Successfull";
Label3.Visible = true;
ob.datalist_binding(DataList1, "select *from upload_course where content_type='E-Books'");
ob.ddlBinding(DropDownList1, "select *from upload_course where content_type='E-Books'",
"book_name", "");
}
protected void DataList1_SelectedIndexChanged(object sender, EventArgs e)
{
}
}
(g)View Question Papers:
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
public partial class faculty_viewQuesPapers : System.Web.UI.Page
{
myClass1 ob = new myClass1();
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
ob.datalist_binding(DataList1, "select * from upload_course
where content_type='Questionpaper'");
ob.ddlBinding(DropDownList1, "select *from upload_course where
content_type='Questionpaper'", "book_name", "");
}
}
protected void Button1_Click(object sender, EventArgs e)
{
Label3.Visible = false;
ob.con.Open();
ob.cmd.CommandText = "delete from upload_course where book_name='" +
DropDownList1.Text + "' and content_type='Questionpaper'";
ob.cmd.ExecuteNonQuery();
ob.con.Close();
Label3.Text = "Successfull";
Label3.Visible = true;
ob.datalist_binding(DataList1, "select *from upload_course where
content_type='Questionpaper'");
ob.ddlBinding(DropDownList1, "select *from upload_course where
content_type='Questionpaper'", "book_name", "");
71. E-Learning
}
}
(h)View All Courses:
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
public partial class faculty_ViewAllCourses : System.Web.UI.Page
{
myClass1 ob = new myClass1();
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
ob.ds.Clear();
ob.cmd.CommandText = "select *from coarse1";
ob.adp.Fill(ob.ds, "vt");
DataList1.DataSource = ob.ds.Tables["vt"];
DataList1.DataBind();
}
}
}
(i) Go To Class:
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
public partial class faculty_JoinTeaching : System.Web.UI.Page
{
myClass1 ob = new myClass1();
static int q = 0;
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
ob.ds.Clear();
ob.cmd.CommandText = "select *from faculty_allotment where faculty_name='" +
Session["Faculty"].ToString() + "'";
ob.adp.Fill(ob.ds,"vt");
foreach (DataRow dr in ob.ds.Tables["vt"].Rows)
{
ViewState["crse"]=dr["coarse_name"].ToString();
Image1.ImageUrl = dr["img_path"].ToString();
ViewState["classTime"]=dr["class_time"].ToString();
Label26.Text = ViewState["crse"].ToString();
}
Label25.Text = Session["Faculty"].ToString();
ob.gridBinding(GridView1, "select *from reg_student where course_applied='" +
ViewState["crse"].ToString() + "' and onlineStatus='True' and status='True'");