You are on page 1of 35

CALYPSO

It’s your Forum, Your sword!!

Presented By
- Somak Sengupta.
-Sucheta Mandal.
-Chiranjit Ghosh.
-Nilanjan Mitra.
-Subhramoy Sarkar.
-Poulomi Bose
ContENTs
• Abstract
• Objectives
• S/w & H/w requirements.
• Functional Requirements.
• Non Functional Requirement
• Data-Flow-Diagram.
• E-R Diagram.
• Database- Structure.
• Database Diagram.
• Code Samples.
• Snapshots of project.
• Future Scope.
• References.
Abstract View
This online forum is totally an ASP.NET based web application. It has
two different modes of interface as 1.Administrator and 2.User

. USERS’ AREA
People can sign up here first. Then being a member of the forum,
they can access their own account as well as the forums.

The total facility that a user gets, is listed below:


1. Creat Topics.
2. View Topics.
3. Add Comments and contradict others.
4. Update Own Profile
5. Rate the Topics.
ADMINISTATORS’ AREA.
1. The administrators have the total control over the
application. After the approval of the topics, created by
the users, they will be displayed in Forum.
2. The administrators have the total access over the
user database and the topic database.
OBJECTIVES
1. CALYPSO is mainly designed to give a space to
it’s users to raise their voice against the odds
and to support their choices. It also helps
them to publish their own issues.

2. People will be closer through the rhythm of


CALYPSO (West Indian music trend).
S/W REQUIREMENTS

1. Visual Studio 2008


2. Microsoft SQL Server 2005
3. .NET Framework 3.5
4. MS Word, MS Powerpoint

Operating System- Windows Xp &


Windows 7;
H/W REQUIREMENTS
• PROCESSOR: 1.6 GHz and above.
• MEMORY: 512 MB and above.
• HARD DISK: 40 GB and above.
FUNCTIONAL
REQUIREMENTS

OPENING ACCOUNT:: A new user must have to


sign up initially to get access to the website. Old
users can sign in directly with their user name,
password.

VIEW & UPDATE PROFILE:: The signed users can


view there profile status, topics created by him and
also update their profile.
MORES

CREATE TOPICS:: The users can create topics by


choosing from various categories. Also can upload
media files.

ADD COMMENTS & CONTRADICTIONS:: User can add


comments on the forum topics, & can also
contradicts one’s view.

RATING:: There is a special facility, offered to the


user, they can rate the topics.
NON Functional REQUIREMENTS

• IT IS PLATFORM INDIPENDENT.
E-R DIAGRAM
UserID AdminID
Password ADMIN Password
Name USER Name
E-mail
Image URL E-mail

Create Approve

TopicID
TopicName
Detail
TOPIC UserID
Creation Date
Contradict
Status
Topic No.
Gives Rating

Has

TopicID
SenderID TopicId
ReceiverID
Contradiction Has Opinion UserID
Comment
Comment
Contain URL
Post Date Post Date
DATABASE STRUCTURE
Admin
AdminID varchar(50)
Password varchar(50)
Name varchar(50)
EmailID varchar(50)

Adminprofile AdminID varchar(50)


Aboutmevarchar(MAX)
Mystylestate varchar(MAX)
Myduty varchar(MAX)

Userinfo UserID varchar(50)


Password varchar(50)
Name varchar(50)
Contact varchar(50)
EmailID varchar(50)
ImageURL varchar(MAX)
Profile UserID varchar(50)
Status varchar(MAX)
Aboutme varchar(MAX)
Myhobby varchar(MAX)
Myviewtowardspeople varchar(MAX)

Topic TopicID varchar(50)


TopicName varchar(MAX)
Details varchar(MAX)
UserID varchar(50)
Creationdate varchar(50)
Status varchar(50)
Topicno int
Rating int

Topictype Topictype varchar(50)


TopicID varchar(50)
Opinion TopicID varchar(50)
UserID varchar(50)
Comment varchar(MAX)
ContentURL varchar(MAX)
Postdate varchar(50)

Contradiction TopicID varchar(50)


SenderID varchar(50)
ReceiverID varchar(50)
Comment varchar(MAX)
Postdate varchar(50)
Code Sample
For Log In :
• if (TextBox2.Text != "")
{
ds = DBAccess.Fetchdata("SELECT * FROM Userinfo WHERE
UserID='" + id + "' AND Password='" + TextBox2.Text + "'");
if (ds.Tables[0].Rows.Count == 0)
Label1.Text = "Wrong I.D. or password";
else
{
Session["uid"] = TextBox1.Text;
Response.Redirect("userhome.aspx");
}
}
• For Creating a topic :
• DataSet ds;
int max = 0;
int n, i = 0;
ds = DBAccess.Fetchdata("SELECT Topicno FROM Topic");
n = int.Parse(ds.Tables[0].Rows.Count.ToString());
if (n > 0)
{
for (i = 0; i < n; i++)
{
if (int.Parse(ds.Tables[0].Rows[i][0].ToString()) > max)
{
max = int.Parse(ds.Tables[0].Rows[i][0].ToString());
}
}
}
string topicid = "topic_" + (max + 1).ToString();
string date = DateTime.Now.ToLongDateString();
int z = max + 1;
bool r = DBAccess.Savedata("INSERT INTO Topic VALUES ('" + topicid + "','" +
TextBox1.Text + "','" + TextBox2.Text + "','" + Session["uid"].ToString() + "','" + date +
"','" + "N" + "'," + z + "," + 0 + ")");
if (r == true)
{
bool x = DBAccess.Savedata("INSERT INTO Topictype VALUES ('" +
DropDownList1.SelectedItem.Text + "','" + topicid + "')");
Response.Redirect("userhome.aspx?ctpc=1");
}
• To display a topic :
• user = Session["uid"].ToString();
id = Request.QueryString["id"];
Label12.Text = id;
DataSet ds = DBAccess.Fetchdata("SELECT
TopicName,Details,UserID,Creationdate,ratting FROM Topic WHERE TopicID='" +
id + "'");
Label4.Text = ds.Tables[0].Rows[0][0].ToString();
Label5.Text = ds.Tables[0].Rows[0][1].ToString();
Label7.Text = ds.Tables[0].Rows[0][2].ToString();
Label8.Text = "on " + ds.Tables[0].Rows[0][3].ToString();
Label14.Text = ds.Tables[0].Rows[0][4].ToString();

For posting Comment :


• filename = id + "_" + user + "_" + DateTime.Now.Millisecond.ToString()
+ ".jpg";
FileUpload1.PostedFile.SaveAs(Server.MapPath("Topicmedia\\" +
filename));
url = "~/Topicmedia/" + filename;
bool r = DBAccess.Savedata("INSERT INTO Opinion VALUES ('" + id + "','"
+ user + "','" + TextBox1.Text + "','" + url + "','" +
DateTime.Now.ToLongDateString() + "')");
if (r)
Label11.Text = "Posted Successfully!!!“;
• To rate a topic :
• DataSet ds;
ds = DBAccess.Fetchdata("SELECT * FROM Topic WHERE TopicName='" +
Label4.Text + "'");
int t1;
t1 = int.Parse(ds.Tables[0].Rows[0][7].ToString());
if (RadioButton1.Checked == true)
{
t1 = t1 + 1;
bool x = DBAccess.Savedata("UPDATE Topic SET ratting=" + t1 + "
WHERE TopicID='" + Label12.Text + "'");
Response.Write("Rating Accepted!");
}
if (RadioButton2.Checked == true)
{
t1 = t1 - 1;
bool x = DBAccess.Savedata("UPDATE Topic SET ratting=" + t1 + "
WHERE TopicID='" + Label12.Text + "'");
Response.Write("Rating Accepted!!");
}
RadioButton1.Visible = false;
RadioButton2.Visible = false;
rate.Visible = false;
• To contradict :
• string receiver=((Label)e.Item.FindControl("Label13")).Text;
string tbox=((TextBox)e.Item.FindControl("TextBox2")).Text;
string sender = Session["uid"].ToString();
bool x = DBAccess.Savedata("INSERT INTO Contradiction VALUES('" +
Label12.Text + "','" + sender + "','" + receiver + "','" + tbox + "','" +
DateTime.Now.ToLongDateString() + "')");
if (x)
Response.Write("Posted!!!");

---- These are the important codes that made “CALYPSO”


unique.

Here are some snapshots of “CALYPSO” given below….


FUTURE SCOPE
• Some more upgradation can be done
on “CALYPSO”. Such as, we can put
the operations like “Add Friends”,
”Scrap your friend” etc. seen on the
famous community sites. Also we can
add user specific photo album etc.
REFERENCES
Books-

• “Introducing ASP.NET 3.5 with Visual Studio 2008” By Alex Mackey .


• “Beginning ASP.NET 3.5 in c#” by Wrox publication.
• Class notes of Mr. Ayan Chatterjee.

Internet Websites-
•www.google.com

•www.asp.net

•www.codango.com/aspnet

•www.msdn.microsoft.com

•www.w3schools.com/aspnet
-: QUERIES :-
~: Thank You :~

You might also like