Sie sind auf Seite 1von 36

A

Project Report
on

E-VILLAGE

A project submitted in partial fulfillment of the requirements for


the diploma of

Computer Science & Engineering


Submitted BY
Yogesh kumar gupta, Vivek kumar , Rahul kumar

Under the guidance of


MR. RAHUL SINGH
(Lecturer Computer)

Submitted to

GOVERNMENT POLYTECHNIC ADAMPUR, TARABGANJ, GONDA

1
ACKNOWLEDGMENT

I would like to express my deep and sincere gratitude to my supervisor MR.


RAHUL SINGH (GOVERNMENT POLYTECHNIC ADAMPUR TARABGANJ
GONDA), who gave me his full support and encouraged me to work in an
innovative and challenging project . His wide knowledge and logical thinking
gave me right direction all the time.

I am deeply grateful my project co-ordinator his help and support provided at


every step of the project. Last but not the least, I thank to all Teacher/Staff of
GOVERNMENT POLYTECHNIC ADAMPUR TARABGANJ GONDA for their
support and co-operation.

VIVEK KUMAR

2
DECLARATION

This is to certify that the project report entitled “E- VILLAGE (a Village
Website)” is done by me is an authentic work carried out for the partrial
fulfillment of the requirements for the award of the Diploma in Computer
Science under the guidance of MR. RAHUL SINGH. The matter embodied in
this project work has not been submitted earlier for award of any degree or
diploma to the best of my knowledge and belief.

VIVEK KUMAR

3
INDEX

1. Introduction……………….
1.1 Overview of Orgnization

1.2 Objectives

2. System Analysis
2.1 SDLC phases
2.2 Feasibility Study
2.3 Report Approval
2.4 System Analysis
2.5 System Design
2.6 Coding
2.7 Testing
2.8 Implementation
2.9 Maintenance
2.10 ER-Diagram
2.11 Data Flow Diagram
3. Software Requirement Specification
3.1 Hardware Requirement
3.2 Software Requirement
3.3 Support Maintenance
4. System Design
5. Low Level Design
6. Description of Classes & Methods
7. Data Modeling
7.1 List of Table

4
7.2 Structure Of Table
8. Testing
9. Input Output Forms
9.1 Modularization Details
9.2 User Screen Shots
9.3 Admin Screen Shots
10. Future Scope
11. Conclusion

5
INTRODUCTION

E-village portal helps that one can take any information about that
particular village for which project is concerned. E-village portal can store
all the information dynamically about that village like population of that
village, voter list, APL list, BPL list, Antyodaya list, primary school, primary
health center etc.
One can contact directly to the Pradhan, Village development officer
(VDO), Lekhpal, Aanganwari, Asha bahu, ANM, Prerak, Panchayat mitra
etc through the list having the name and contact number of the above
persons in the portal.
One can also know about the govt. plannings as well as NGOs working for
that village in various areas like education, health, women empowerment
etc. Any villager can get information about his KHASRA number and all
other status through the E-village portal.
One can give feedback and also can complane .

6
OBJECTIVES

We had meeting with the concern persons like pradhan,employees and


officers of the tehsil and block level like SDM, VDO, Lekhpal, ABSA etc.
We also had a CHAUPAL with the villagers for knowing their problems and
requirements. The objective of this E-village project is to fulfill the various
requirements so that one can share all the information about a village.

1). To provide the information about geographical & transportable reach to


that village
2). Enabling knowledge sharing at lower economies.
3). To provide the list of voters and population.
4). To provide the name and contact number of the public representators.
4). To provide the name and contact number of the govt. representators.
5). List of antyodaya
6). List of APL and BPL card beneficiaries
7). To provide information about govt. programmes running on that village.
8). To provide information about the NGOs working on that village.
9).To provide information about the promotion of girl education like KANYA
VIDYA DHAN YOJNA
10). Easily accessible from any corner of the world if you have internet
connection.

7
SYSTEM ANALYSIS

Phases

System Development Life Cycle(SDLC) mainly consists of the following


7 phases.

Preliminary Investigation

This is the first phase of the system development life cycle. In this
phase we tend to find out the needs of the client-what exactly does the client
want ? Before the development of any system the important point is to know
the needs, objectives and scope of the system.

Feasibility Study

Feasility study is the second step of the system development life cycle.
Things are always easy at the beginning in any software process. In fact
nothing is in feasible with unlimited time and resourse.

The Feasibility study is conducted to check whether the candidate system is


feasible.

Request Approval

Request approval is the third phase of system development lifecycle. Request


approval is the phase in which all the requirements which would be provided

8
in the system are stated. The request approval is a sort of agreement between
the client and the company which is building this software.

System Analysis

System analysis is the phase following the phase of the request


approval. In this phase we tend to analyze the overall system which we have
to build. System analysis is the crucial part in SDLC.

System Design

System design means the designing of the system. The system can be
done in either of the fillowing two ways-

Logical system Design

Physical System Design

Coding

Coding is the phase in which a developer codes using any programming


languages. Coding constitutes only 20% of the whole project and which is
easier to write. The codingwor is also done in the teams development of the
system is usually done under the modular programming style, which can be
earthier top-down approach or bottom-up approach.

Testing

Testing is the phase in which the system that has been developed is
tested. Testing comprises of 60% of the overall development of the system.

9
Testing of the system is important because testing aims to uncover then
different errors in the system.

Implementation

Implementation process involved of installation software on user’s


side. Implementation process actually depends on type of a system & various.
Opting for suitable conversion approach is a step implementation. The
conversion process are as follows-

 Parallel Conversion
 Direct Conversion Approach
 Pilot Conversion Approach
 Phase In Conversion Approach

Maintenance

Merely Developing the system is not important but also maintenance is


important. The Company that has built the system provides for some time free
of cost maintenance to the client and after that period it is asuallly a paid
service.

10
ER-Diagram

An entity relationship model, also called an entity-relationship (ER)


diagram, is a graphical representation of entities and their relationships to
each other, typically used in computing in regard to the organization
of data within databases or information systems. An entity is a piece of data-
an object or concept about which data is stored.

 Entities which specify distinct real-word items in an application.


 Relationship, which connect entities and represent meaningful
dependencies between them.
 Attributes which specify properties of entities & relationships.

11
12
13
Data Flow Diagram

Data flow model is a graphical representation produced by data


flow modeling. Also referred to as a data flow diagram (DFD).

The process of identifying, modeling and documenting how data moves


around an information system. Data flow modeling
examines processes (activities that transform data from one form to
another), data stores (the holding areas for data), external entities (what sends
data into a system or receives data from a system, and data flows (routes by
which data can flow).
Data flow modeling is one of the foundations of the Structured Systems
Analysis and Design Method.
Data flow modeling also is called data flow diagramming

14
0 Level DFD

Villager Complain Admin

1 Level DFD

Villager Feedback Mgmt Feedback

Admin Notifecation Mgmt Notification

15
SOFTWARE REQUIREMENT SPECIFICATION

A requirment specification for a software system is a complete description of the


behavior of a system to be developed and it includes a set of uses cases that describe all the
intractions the users will have with the software. In addition to use cases, the SRS also contains
non-functional requirements.

The software requirement specification document enlists all necessary rewquirments for project
development. To derive the requirement we need to have clear and through understanding of the
products to be developed. This is prepared after detailed communication with project team and the
customer.

Hardware Requirement

For client side

 Internet Explorer 8, Chrome Or any Supported Browser


 Pentium 4
 256 MB RAM
 1GB Hardisk

For Server side

 Xenon based or higher end server


 4GB RAM
 200GB disk space

Software Requirement

 Client on Internet:Web Browser, Operating Sytem(any)


 Web Server: IIS7 or higher, Operating system (Windows )
 Application Framework:Microsoft .Net Framework 4.5
 Data Base Server: MS Sql Server

16
 Development End:Visual Studio 2012 ASP.NET, HTML, Javascript,
SQL Server Management Studio 2008, OS(Windows),Web server
(IIS 6 or Higher)

DATA MODELING

List of Table

1. Tbl_Complain
2. Tbl_Answer
3. Tbl_Notifications
4. Tbl_Feedback
5. Tbl_login

1. Tbl_Complain
Sr.No. Column Name Data type Data Size Remarks
1 Complain Id Varchar 10 PK
2 Complain Varchar 100
3 ComplainDT Varchar 50

2. Tbl_Answer
Sr.No. Column Name Data type Data Size Remarks
1 ComplainId Varchar 10 PK
2 AnswerID Varchar 50
3 Answer varchar MAX
4 AnswerDT varchar 50

17
3. Tbl_Notifications
Sr.No. Column Name Data type Data Size Remarks
1 NotificationId Int PK(AG)
2 Message Varchar MAX
3 NotificationDT Varchar 30

4. Tbl_Feedback
Sr.No. Column Name Data type Data Size Remarks
1 NAME Varchar 100
2 Email Varchar 100
3 mobileNo Varchar 20
4 Message Varchar Max

5. Tbl_login
Sr.No. Column Name Data type Data Size Remarks
1 AdminId Varchar 50
2 Pass Varchar 50

Low Level Design

. Low-level design (LLD) is a component-level design process that follows a step-


by-step refinement process. This process can be used for designing data structures,
required software architecture, source code and ultimately, performance algorithms.
Overall, the data organization may be defined during requirement analysis and then refined
during data design work. Post-build, each component is specified in detail.

The LLD phase is the stage where the actual software components are designed.

During the detailed phase the logical and functional design is done and the design of
application structure is developed during the high-level design phase.

18
Testing

Software testing is an investigation conducted to provide stakeholders with information


about the quality of the software product or service under test.[1] Software testing can also
provide an objective, independent view of the software to allow the business to appreciate
and understand the risks of software implementation. Test techniques include the process
of executing a program or application with the intent of finding software bugs (errors or
other defects), and verifying that the software product is fit for use.
Software testing involves the execution of a software component or system component to
evaluate one or more properties of interest. In general, these properties indicate the extent
to which the component or system under test

 meets the requirements that guided its design and development,


 responds correctly to all kinds of inputs,
 performs its functions within an acceptable time,
 is sufficiently usable,
 can be installed and run in its intended environments, and
 achieves the general result its stakeholders desire.

Description Of Class and Method:

DBManager.cs

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;

/// <summary>
/// Summary description for DBManager
/// </summary>
public class DBManager
{
SqlConnection con = new SqlConnection("Data Source=DESKTOP-
K0RUS8Q\\SQLEXPRESS;Initial Catalog=gpsDB;Integrated Security=True");
Public bool ExceuteInsertUpdateOrDelete(string YourCommand)
{

19
SqlCommand cmd = new SqlCommand(YourCommand, con);
if (ConnectionState.Closed == con.State)
{
con.Open();
}
int n = cmd.ExecuteNonQuery();
con.Close();
return n > 0 ? true : false;
}
public DataTable GetBulksRecord(string MyCommand)
{
SqlDataAdapter da = new SqlDataAdapter(MyCommand, con);
DataTable dt=new DataTable();
da.Fill(dt);
return dt;
}
}

EncryptionManager.cs

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for EncryptionManager
/// </summary>
public class EncryptionManager
{
public static string EncryptMyData(string plaintext)
{
string ciphertext = "";
int ch;
int i;
for (i = 0; i < plaintext.Length; i++)
{
ch = plaintext[i];
if (ch >= 65 && ch <= 90)
ch = 90 - ch + 65;
else if (ch >= 97 && ch <= 122)
ch = 122 - ch + 97;
else if (ch >= 48 && ch <= 57)
ch = 57 - ch + 48;
ciphertext = ciphertext + (char)ch;
}
return ciphertext;
}
}

20
USER SCREENSHOTS
Index cs .html

21
Schemas,cshtml

22
contect.cshtml

23
PhotoGallery.aspx

Login.cshtml

24
Feadback.cshtml

Index .cshtml
@{
ViewBag.Title = "Index";
}
<link href="~/css/bootstrap-theme.min.css" rel="stylesheet" />
<link href="~/css/bootstrap.min.css" rel="stylesheet" />

25
<link href="~/css/font-awesome.min.css" rel="stylesheet" />
<link href="~/css/hover-min.css" rel="stylesheet" />
<script src="~/js/jquery.js"></script>
<script src="~/js/bootstrap.min.js"></script>
<link href="~/Content/themes/main.css" rel="stylesheet" />
<div class="row">

<div class="slider">
<div id="carous.,bvm el-example-generic"class="carousel slide" data-ride="carousel">

<!-- Indicators -->


<ol class="carousel-indicators">
<li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
<li data-target="#carousel-example-generic" data-slide-to="1"></li>
<li data-target="#carousel-example-generic" data-slide-to="2"></li>
</ol>

<!-- Wrapper for slides -->


<div class="carousel-inner" role="listbox">
<div class="item active">
<img src="~/Content/images/abc.jpg"style="width:100%; height:450px" />
<div class="carousel-caption">
...
</div>
</div>
<div class="item">
<img src="~/Content/images/add3.jpg"style="width:100%; height:450px" />
<div class="carousel-caption">
...
</div>
</div>
<div class="item">
<img src="~/Content/images/IMG-20190508-WA0018.jpg" style="width:100%;
height:450px"/>
<div class="carousel-caption">
...
</div>
</div>
<div class="item">
<img src="~/Content/images/IMG-20190508-WA0022.jpg"style="width:100%; height:450px"
/>
<div class="carousel-caption">
...
</div>
</div>
<div class="item">
<img src="~/Content/images/img1.jpg"style="width:100%; height:450px" />
<div class="carousel-caption">
...
</div>
</div>

<div class="item">
<img src="~/Content/images/IMG-20190508-WA0019.jpg"style="width:100%; height:450px"
/>
<div class="carousel-caption">
...

26
</div>
</div>
</div>

<!-- Controls -->


<a class="left carousel-control" href="#carousel-example-generic" role="button" data-
slide="prev">
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="right carousel-control" href="#carousel-example-generic" role="button" data-
slide="next">
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>

</div>
<div class="notif">
<div class="news">
<center><h2>News</h2></center>
</div>
<div class="news2">
<marquee direction="up" onmouseover="this.stop();"
onmouseout="this.start();">
<a href="#"><p><label>*New</label> enter here
new news....?????</p></a>
<a href="#"><p><label>*New</label> enter here
new news....?????</p></a>
<a href="#"><p><label>*New</label> enter here
new news....?????</p></a>
<a href="#"><p><label>*New</label> enter here
new news....?????</p></a>
<a href="#"><p><label>*New</label> enter here
new news....?????</p></a>
<a href="#"><p><label>*New</label> enter here
new news....?????</p></a>
<a href="#"><p><label>*New</label> enter here
new news....?????</p></a>
<a href="#"><p><label>*New</label> enter here
new news....?????</p></a>
</marquee>
</div>
</div>
<!--Complaints button-->
<div>
<a href="#"><div class="complaints" onmouseover="this.stop()">
<div class="complaints_1">
<h3>User Panel For request & Complaints</h3>
</div>
<div class="complaints_2">
<img src="~/Content/images/arrow.gif" />
</div>
</div></a>
</div>
</div>

<div class="row" >

27
<div class="photo_1" >
<ul>
<a href="#">
<li >
<div class="images"><img
src="~/Content/images/pm.jpg"alt="image not heere!!!!"/></div>
<div class="title"><p><b>Name:</b>
Narendra Modi</p><br><p><b>Ocupation:</b> Prime Minister<br> of India</p></div>
</li>
</a>
<a href="#"><li>
<div class="images"><img
src="~/Content/images/cm.jpeg"alt="image not heere!!!!"/></div>
<div class="title"><p><b>Name:</b> Shri
Yogi Adityanath</p><br><p><b>Ocupation:</b> Chief Minister</p><br><p><b>State:</b> Uttar
Pradesh</p></div>
</li>
</a>
<a href="#">
<li>
<div class="images"><img
src="~/Content/images/dm.jpg"alt="image not heere!!!!"/></div>
<div class="title"><p><b>Name:</b> Enter
here</p><br><p><b>Ocupation:</b> District Minister</p><br><p><b>District:</b> Ambedkar
nagar</p><br><p><b>State:</b> Uttar Pradesh</p></div>
</li>
</a>
<a href="#">
<li style="height:auto">
<div class="images"><img
src="~/Content/images/pra.jpg"alt="image not heere!!!!"/></div>
<div
class="title"style="height:auto"><p><b>Name:</b>Vijay Singh</p><br><p><b>Ocupation:</b>
Gram Pradhan</p><br><p><b>District:</b> Ambedkar Nagar</p><br><p><b>State:</b> Uttar

Pradesh</p></div>
</li>
</a>
</ul>
</div>

</div>

Schemes.cs html
@{

ViewBag.Title = "Schemes";

28
}

<div class="row">

<div class="col-sm-1"></div>

<div class="col-sm-9 content" style="background:rgba(64, 62, 62, 0.26);background-


size:cover; margin:40px;padding:20px;height:450px">

@*<div class="loginbox" style="box-shadow:5px 10px 5px 5px gray;">*@

<img src="~/Content/images/img3.png"class="img">

<h1 style="font-family:'Microsoft Tai Le';font-weight:bold;font-


weight:bold;">Schemes</h1>

<p style="font-family:'Monotype Corsiva';font-size:20px;color:black;text- c vbnm:2px 3px


4px white;font-weight:bold; margin-left:40px"><br/>Sorry...!<br/><br/>

There are no Schemes available right now.<br/><br/>Will be Upload when Available.!!

</p>

</div>

</div> contect.cs html


@{
ViewBag.Title = "ContactUs";
}
<link href="~/Content/themes/ContactUs.css" rel="stylesheet" />
<div class="container-fluid">
<div class="row">
<div class="col-sm-12 content">

<div class="col-sm-5 content" style="background:rgba(64, 62, 62,


0.26);background-size:cover; margin:40px;padding:20px;height:450px">

@*<div class="loginbox" style="box-shadow:5px 10px 5px 5px gray;">*@


<img src="~/Content/images/contacto.png"class="img">
<h1 style="font-family:'Microsoft Tai Le';font-weight:bold;font-weight:bold;">Contact
Us</h1>
<p style="font-family:'Monotype Corsiva';font-size:20px;color:black;text-shadow:2px 3px
4px white;font-weight:bold; margin-left:40px"><br/>Teriya 224132,<br/>
Bhiti,<br/>
District:Ambedkar Nagar,<br/>

29
Uttar Pradesh<br/>
Contact: 7080796140<br/>
E-mail : vivekkumar2472@gmail.com<br/>
website : www.teriyavillage.com<br/>
</p>

</div>

<div class="col-sm-5 content" style="background:rgba(77, 75, 75, 0.07);


background-size:cover; margin:40px;padding:20px;">
<img src="~/Content/images/map12.png"width="100%" height="450px"
frameborder="0" style="border:0" allowfullscreen />

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

</asp:Content>

Photogallery.aspx
@{
ViewBag.Title = "PhotoGallery";
}
<link href="~/css/bootstrap-theme.min.css" rel="stylesheet" />
<link href="~/css/bootstrap.min.css" rel="stylesheet" />
<link href="~/css/font-awesome.min.css" rel="stylesheet" />
<link href="~/css/hover-min.css" rel="stylesheet" />
<link href="~/Content/Gallery.css" rel="stylesheet" />
<div class="row">
<div class="gallery">
<div class="container">
<div class="row rowss">
<div class="col-md-3 col-sm-3 col-lg-3 cols">
<img src="~/Content/images/IMG_20181018_191128.jpg"
style="width:100%;height:135px"/></div>
<div class="col-md-3 col-sm-3 col-lg-3 cols">
<img src="~/Content/images/IMG_20181019_160224.jpg"
style="width:100%;height:135px"/></div>
<div class="col-md-3 col-sm-3 col-lg-3 cols">
<img src="~/Content/images/IMG_20190327_172906.jpg"
style="width:100%;height:135px" /></div>
<div class="col-md-3 col-sm-3 col-lg-3 cols">
<img src="~/Content/images/IMG_20190327_173210.jpg"
style="width:100%;height:135px" /></div>
</div>
<div class="row rowss">
<div class="col-md-3 col-sm-3 col-lg-3 cols">
<img src="~/Content/images/IMG_20181019_123044.jpg"
style="width:100%;height:135px"/></div>
<div class="col-md-3 col-sm-3 col-lg-3 cols">

30
<img src="~/Content/images/IMG_20181019_171656.jpg"
style="width:100%;height:135px" /></div>
<div class="col-md-3 col-sm-3 col-lg-3 cols">
<img src="~/Content/images/IMG_20181019_171829.jpg"
style="width:100%;height:135px" /></div>
<div class="col-md-3 col-sm-3 col-lg-3 cols">
<img src="~/Content/images/IMG_20190327_175618.jpg"
style="width:100%;height:135px"/></div>
</div>
<div class="row rowss">
<div class="col-md-3 col-sm-3 col-lg-3 cols">
<img src="~/Content/images/IMG_20181019_123138.jpg"
style="width:100%;height:135px" /></div>
<div class="col-md-3 col-sm-3 col-lg-3 cols">
<img src="~/Content/images/IMG_20190327_175751.jpg"
style="width:100%;height:135px" /></div>
<div class="col-md-3 col-sm-3 col-lg-3 cols">
<img src="~/Content/images/IMG_20190327_175930.jpg"
style="width:100%;height:135px" /></div>
<div class="col-md-3 col-sm-3 col-lg-3 cols">
<img src="~/Content/images/IMG_20190327_180015.jpg"
style="width:100%;height:135px" /></div>
</div>
<div class="row rowss">
<div class="col-md-3 col-sm-3 col-lg-3 cols">
<img src="~/Content/images/IMG_20190327_181235.jpg"
style="width:100%;height:135px" /></div>
<div class="col-md-3 col-sm-3 col-lg-3 cols">
<img src="~/Content/images/IMG_20190327_181522.jpg"
style="width:100%;height:135px" /></div>
<div class="col-md-3 col-sm-3 col-lg-3 cols">
<img src="~/Content/images/IMG_20181019_171656.jpg"
style="width:100%;height:135px"/></div>
<div class="col-md-3 col-sm-3 col-lg-3 cols">
<img src="~/Content/images/IMG_20190327_172812.jpg"
style="width:100%;height:135px" /></div>
</div>
</div>
</div>
</div>
<script src="~/js/jquery.js"></script>
<script src="~/js/bootstrap.min.js"></script>

</asp:Content>

Login.cs html
@{
ViewBag.Title = "Login";
}

<div class="row" style="margin:10px;">


<div class="col-sm-12 content" style="background:url('/Content/images/drops-
of-water-578897__480.jpg');background-size:cover;">

31
<div class="col-sm-5 content" style="background:rgba(128, 128, 128,
0.05);margin:40px;padding:20px;">
<h2 class="text-center" style="font-
family:Algerian;color:maroon;text-shadow:5px 5px 5px gray; font-size:40px;">

Login Here !</h2>


<img src="../Content/images/login2.png"style="height:300px;"
class="img-responsive"/>

</div>
<div class="col-sm-5 content" style="background:rgba(88, 85, 85,
0.30);margin:40px;padding:20px;">
<img src="../Content/images/login.png"class="img">
<h1 style="font-family:'Microsoft Tai Le';font-weight:bold;font-weight:bold;">Admin
Login</h1>
<form action="/Home/Login" method="post">
<p style="font-family:'Monotype Corsiva';font-size:20px;color:black;text-shadow:2px 3px
4px white;font-weight:bold;">User Name</p>
<input type="text"name="txtuserid"placeholder="Enter your name"/>
<p style="font-family:'Monotype Corsiva';font-size:20px;color:black;text-shadow:2px 3px
4px white;font-weight:bold;">Password</p>
<input type="password"name="txtpass" placeholder="Enter 6 digit code"/>

<input type="submit"name=""value="Login" class="form-control" style="color:white;"/>


<a href="#" style="color:white;">forget password?</a><br/>
<a href="#" style="color:white;">Reset Password</a>
</form>

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

Notification.cshtml
<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/admin.master"
AutoEventWireup="true" CodeFile="Notification.aspx.cs" Inherits="Admin_Notification" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">


<style>
#k{
height:500px;
width:100%;

}
#k1 {
height:500px;
width:100%;
background:rgba(0,0,0,.8);
}
.txt {
height:100px;
width:300px;
}
.auto-style1 {
height: 45px;

32
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CPHMain" Runat="Server">
<div id="k">
<div id="k1"><br/><br/>
<div id="box"
style="height:350px;width:600px;background:rgba(255,255,255,.6);margin-left:25%;">
<h1 style="color:white;font-family:'Monotype Corsiva';font-
size:40px;"><center>Add Notification</center></h1><hr/>
<table style="margin-left:23%;color:white">
<%-- <tr>
<td class="auto-style1">Sr. No.<br/>
<asp:TextBox ID="Txtsrn" runat="server"></asp:TextBox>
</td>
<td class="auto-style1">
<asp:RequiredFieldValidator ID="RequiredFieldValidator1"
runat="server" ControlToValidate="Txtsrn" ErrorMessage="*"
ForeColor="Red"></asp:RequiredFieldValidator>
</td>--%>

<tr><td>Notification Name:<br/>
<asp:TextBox runat="server" ID="TxtNoti"
CssClass="txt"></asp:TextBox></td><td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2"
runat="server" ControlToValidate="TxtNoti" ErrorMessage="*"
ForeColor="Red"></asp:RequiredFieldValidator>
</td></tr>

<tr><td><br/><asp:Button ID="Button1" runat="server" Text="Add


Notification" CssClass="txt" BackColor="DarkOrange" ForeColor="white" height="40"
OnClick="Button1_Click"/>
<br />
</td><td>&nbsp;</td></tr>
</table>
</div>
</div>
</div>

<br />

<asp:GridView ID="GridView1" runat="server" AllowPaging="True"


AutoGenerateColumns="False" BackColor="#DEBA84" BorderColor="#DEBA84" BorderStyle="None"
BorderWidth="1px" CellPadding="3" CellSpacing="2" DataKeyNames="NotificationId"
DataSourceID="SqlDataSource1" Width="744px">
<Columns>
<asp:CommandField ShowDeleteButton="True"
ShowEditButton="True" />
<asp:BoundField DataField="NotificationId"
HeaderText="NotificationId" InsertVisible="False" ReadOnly="True"
SortExpression="NotificationId" />
<asp:BoundField DataField="Message" HeaderText="Message"
SortExpression="Message" />
<asp:BoundField DataField="NotificationDT"
HeaderText="NotificationDT" SortExpression="NotificationDT" />
</Columns>

33
<FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
<HeaderStyle BackColor="#A55129" Font-Bold="True"
ForeColor="White" />
<PagerStyle ForeColor="#8C4510" HorizontalAlign="Center" />
<RowStyle BackColor="#FFF7E7" ForeColor="#8C4510" />
<SelectedRowStyle BackColor="#738A9C" Font-Bold="True"
ForeColor="White" />
<SortedAscendingCellStyle BackColor="#FFF1D4" />
<SortedAscendingHeaderStyle BackColor="#B95C30" />
<SortedDescendingCellStyle BackColor="#F1E5CE" />
<SortedDescendingHeaderStyle BackColor="#93451F" />
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$
ConnectionStrings:gpsDBConnectionString %>" DeleteCommand="DELETE FROM
[Tbl_Notifications] WHERE [NotificationId] = @NotificationId" InsertCommand="INSERT INTO
[Tbl_Notifications] ([Message], [NotificationDT]) VALUES (@Message, @NotificationDT)"
SelectCommand="SELECT * FROM [Tbl_Notifications]" UpdateCommand="UPDATE
[Tbl_Notifications] SET [Message] = @Message, [NotificationDT] = @NotificationDT WHERE
[NotificationId] = @NotificationId">
<DeleteParameters>
<asp:Parameter Name="NotificationId" Type="Int32" />
</DeleteParameters>
<InsertParameters>
<asp:Parameter Name="Message" Type="String" />
<asp:Parameter Name="NotificationDT" Type="String" />
</InsertParameters>
<UpdateParameters>
<asp:Parameter Name="Message" Type="String" />
<asp:Parameter Name="NotificationDT" Type="String" />
<asp:Parameter Name="NotificationId" Type="Int32" />
</UpdateParameters>
</asp:SqlDataSource>

</asp:Content>

Feedback .cshtml
<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/admin.master"
AutoEventWireup="true" CodeFile="FeedbackMgmt.aspx.cs" Inherits="Admin_FeedbackMgmt" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">


</asp:Content>

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

<span style="color:red;font-size:25px;"> FEEDBACK</span><hr/>

<asp:GridView ID="GridView1" runat="server" AllowPaging="True"


AutoGenerateColumns="False" BackColor="#DEBA84" BorderColor="#DEBA84" BorderStyle="None"
BorderWidth="1px" CellPadding="3" CellSpacing="2" DataKeyNames="SrNo"
DataSourceID="SqlDataSource1">
<Columns>
<asp:CommandField ShowDeleteButton="True" />
<asp:BoundField DataField="SrNo" HeaderText="SrNo" InsertVisible="False"
ReadOnly="True" SortExpression="SrNo" />
<asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name" />

34
<asp:BoundField DataField="EmailId" HeaderText="EmailId"
SortExpression="EmailId" />
<asp:BoundField DataField="MobileNo" HeaderText="MobileNo"
SortExpression="MobileNo" />
<asp:BoundField DataField="Message" HeaderText="Message"
SortExpression="Message" />
</Columns>
<FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
<HeaderStyle BackColor="#A55129" Font-Bold="True" ForeColor="White" />
<PagerStyle ForeColor="#8C4510" HorizontalAlign="Center" />
<RowStyle BackColor="#FFF7E7" ForeColor="#8C4510" />
<SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
<SortedAscendingCellStyle BackColor="#FFF1D4" />
<SortedAscendingHeaderStyle BackColor="#B95C30" />
<SortedDescendingCellStyle BackColor="#F1E5CE" />
<SortedDescendingHeaderStyle BackColor="#93451F" />
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$
ConnectionStrings:gpsDBConnectionString %>" DeleteCommand="DELETE FROM [Tbl_Feedback]
WHERE [SrNo] = @SrNo" InsertCommand="INSERT INTO [Tbl_Feedback] ([Name], [EmailId],
[MobileNo], [Message]) VALUES (@Name, @EmailId, @MobileNo, @Message)"
SelectCommand="SELECT * FROM [Tbl_Feedback] ORDER BY [SrNo]" UpdateCommand="UPDATE
[Tbl_Feedback] SET [Name] = @Name, [EmailId] = @EmailId, [MobileNo] = @MobileNo,
[Message] = @Message WHERE [SrNo] = @SrNo">
<DeleteParameters>
<asp:Parameter Name="SrNo" Type="Int32" />
</DeleteParameters>
<InsertParameters>
<asp:Parameter Name="Name" Type="String" />
<asp:Parameter Name="EmailId" Type="String" />
<asp:Parameter Name="MobileNo" Type="String" />
<asp:Parameter Name="Message" Type="String" />
</InsertParameters>
<UpdateParameters>
<asp:Parameter Name="Name" Type="String" />
<asp:Parameter Name="EmailId" Type="String" />
<asp:Parameter Name="MobileNo" Type="String" />
<asp:Parameter Name="Message" Type="String" />
<asp:Parameter Name="SrNo" Type="Int32" />
</UpdateParameters>
</asp:SqlDataSource>
</asp:Content>

Future Scope
Following modification or upgrades can be done in system.

1. More than one company can be integrated through this software.


2. Web service can be used to know exact donation status of packets.
3. Client can check there donation delivery status online.

35
Conclusion

From Excellence to Eminence.To evolve into an academy of excellence to serve the


emerging knowledge-based society. To prepare competent engineers, imbibed with
spirit of professionalism and responsible citizenship in a competitive global
environment.

36

Das könnte Ihnen auch gefallen