Beruflich Dokumente
Kultur Dokumente
Effectu par :
On va introduire dans ce rapport les diffrentes tapes quon a suivi avec des exemples et des images :
Master Page :
Page 1
Dans cette page on a mis un contentplaceholder dans lequel vont ouvrir les pages secondaires du website. Lautre partie ne change pas de page en page. Elle contient des links vers des pages contenant : Des informations sur les professeurs ; Des conseils pour la beaut ; Les sponsors ; Des informations concernant les concurrentes avec un gallery ; Le box du login et logout ; Des informations a propos des jures ; Un bouton home menant a la page principale ; Un contact us pour nous donner tous les commentaires. Deux panels servent a la dmarche dauthentification : La premire contient le username et le password avec un login button qui est visible par dfaut. Si lauthentification est correcte ce dernier panel sera invisible et un autre contenant le logout button apparait.
MasterPage.master.cs :
using using using using using using using using using using System; System.Data; System.Configuration; System.Collections; System.Web; System.Web.Security; System.Web.UI; System.Web.UI.WebControls; System.Web.UI.WebControls.WebParts; System.Web.UI.HtmlControls;
public partial class MasterPage : System.Web.UI.MasterPage { string userid; protected void Page_Load(object sender, EventArgs e) { if (Session["user"] == null) {
Page 2
Page 3
MasterPage.master.aspx
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>.:: Miss Lebanon 2009 ::.</title> <link href="style.css" rel="stylesheet" type="text/css" /> <script language="javascript" type="text/javascript"> // <!CDATA[ function P1_onclick() { } function Text1_onclick() { } // ]]> </script> </head> <body> <form id="form1" runat="server"> <div id="topheader"> <div class="topmenu_area"><a href="Default.aspx" class="home">Home</a> <a href="Aboutus.aspx" class="about">About</a> <a href="jurylist.aspx" class="search">Jury</a> </div> <div class="banner_textarea" style="width: 494px"> <p class="banner_head">A lucky girl will be wearing a crown and the title of Miss Lebanon 2009 this Year! Who will this beauty be? </p> <p>Miss Lebanon is the only national beauty contest that awards prizes worth more than half a million US dollars to its winners. Keep on joining this website to vote for your favorite participant.</p> </div> <div class="search_menu_banner"> <div class="menu_area"><a href="gallery.aspx" class="addidea">Gallery</a> <a href="news.aspx" class="loginhere">News</a> <a href="comments.aspx" class="comments">Comments</a> <a href="Contactus.aspx" class="contact">Contact Us </a></div> </div> </div> <div id="body_area"> <div class="left"> <div class="morelinks_top"></div>
Page 4
Page 5
Page 6
Page 7
Page 8
Default :
Default est la page principale du site et qui est la premire a tre ouverte lors de lexcution du programme. Elle contient un texte qui nous explique a propos du site.
Default.aspx
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" Title="Untitled Page" %> <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
Page 9
Default.apx.cs
using using using using using using using using using using System; System.Data; System.Configuration; System.Collections; System.Web; System.Web.Security; System.Web.UI; System.Web.UI.WebControls; System.Web.UI.WebControls.WebParts; System.Web.UI.HtmlControls;
public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } }
Page 10
Jurelogin
Suite a lauthentification on aboutit a une page nomme Juree_Login o apparait la photo du jure qui est logged in avec des informations de ce dernier qui sont prsents suite a une connexion a la data base. Un bouton liste des concurrents est prsent au-dessous de ces informations menant a la page concurrents
Juree_Login.aspx
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Juree_Login.aspx.cs" Inherits="Juree_Login" Title="Untitled Page" %> <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <p dir="ltr"><font face="Arial" color ="#3b3b3b" size="3"> <asp:Image ID="Image1" runat="server" Width="150" Height="180" /></font></p> <p dir="ltr">
Page 11
</font> </p> <asp:Button ID="Button1" runat="server" Text="List of the contestants" OnClick="Button1_Click" /> </asp:Content>
Juree_Login.aspx.cs
using using using using using using using using using using System; System.Data; System.Configuration; System.Collections; System.Web; System.Web.Security; System.Web.UI; System.Web.UI.WebControls; System.Web.UI.WebControls.WebParts; System.Web.UI.HtmlControls;
public partial class Juree_Login : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { if (Session["user"] == null) { Response.Redirect("Error_Login.aspx"); } user u = (user)Session["user"]; Label1.Text = "Nom: " + u.nom + " "; Label2.Text = "Prenom: " + u.prenom + " "; Label3.Text = "Sexe: " + u.sexe + " "; Label4.Text = "Profession: " + u.profession + " "; Label5.Text = "Telephone: " + u.telephone + " "; Label6.Text = "E-Mail: " + u.mail + " "; Label7.Text = "Adresse: " + u.adresse + " "; Image1.ImageUrl = u.image; } protected void Button1_Click(object sender, EventArgs e) {
Page 12
Concurrents :
Cette page contient un grid view qui amne de la data base toutes les concurrentes prsentes avec les informations slectionnes de chacune. Le link select nous mne a une page nomme miss qui contient des informations de chaque concurrentes selon le link slectionn.
Concurrent.aspx:
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="concurrent.aspx.cs" Inherits="concurent" Title="Untitled Page" %>
Page 13
Concurrent.aspx.cs
using using using using using using using using using using using System; System.Data; System.Configuration; System.Collections; System.Web; System.Web.Security; System.Web.UI; System.Web.UI.WebControls; System.Web.UI.WebControls.WebParts; System.Web.UI.HtmlControls; System.Collections.Generic;
public partial class concurent : System.Web.UI.Page { string conid; protected void Page_Load(object sender, EventArgs e) { Database db = new Database("Enquete.mdb"); string query = "Select * from Concurrent"; DataSet ds = db.select(query); DataTable dt = ds.Tables[0]; string queryEtape = "Select DISTINCT(etapeID) from Resultat"; DataSet dsEtape = db.select(queryEtape); DataTable dtEtape = dsEtape.Tables[0]; string queryEtape2 = "Select etapeID from Resultat"; DataSet dsEtape2 = db.select(queryEtape2); DataTable dtEtape2 = dsEtape2.Tables[0]; ArrayList arOne = new ArrayList(); List<ArrayList> listAll = new List<ArrayList>(); string etapIDForResult = ""; if (dtEtape.Rows.Count > 1 || dtEtape2.Rows.Count == 30) {
Page 14
Page 15
string qFinal = "Select conid, nom, prenom, lieu_naiss, date_naiss from Concurrent where "; if (Convert.ToInt32(etapIDForResult.Substring(0, 1).ToString()) == 2) { for (int i = 0; i < listAllSorted.Count - 3; i++) { if (i == 0) { qFinal = qFinal + "conid = '" + listAllSorted[i][1].ToString() + "' "; } else { qFinal = qFinal + "or conid = '" + listAllSorted[i][1].ToString() + "' "; } } } else if (Convert.ToInt32(etapIDForResult.Substring(0, 1).ToString()) == 3) { for (int i = 0; i < listAllSorted.Count - 5; i++) { if (i == 0) { qFinal = qFinal + "conid = '" + listAllSorted[i][1].ToString() + "' "; } else { qFinal = qFinal + "or conid = '" + listAllSorted[i][1].ToString() + "' "; } } } else if (Convert.ToInt32(etapIDForResult.Substring(0, 1).ToString()) == 4) { for (int i = 0; i < listAllSorted.Count - 7; i++) { if (i == 0) { qFinal = qFinal + "conid = '" + listAllSorted[i][1].ToString() + "' "; } else { qFinal = qFinal + "or conid = '" + listAllSorted[i][1].ToString() + "' "; } }
Page 16
} private int getConNoteByID(string conId, string etapeID) { Database db = new Database("Enquete.mdb"); string q = "Select Notes from Resultat where conId = '" + conId + "' and etapeID = '" + etapeID + "'"; DataSet ds = db.select(q); DataTable dt = ds.Tables[0]; int finalNote = 0; if (dt.Rows.Count > 0) { for (int i = 0; i < dt.Rows.Count; i++) { finalNote = finalNote + Convert.ToInt32(dt.Rows[i][0].ToString()); } finalNote = finalNote / dt.Rows.Count; } return finalNote; } protected void GridView1_SelectedIndexChanged(object sender, EventArgs e) { Session["conid"] = GridView1.SelectedRow.Cells[1].Text; if (Session["conid"] != null) { user connecteduser = (user)Session["user"]; Database db = new Database("Enquete.mdb"); DataSet ds1 = db.select("SELECT DISTINCT(etapeID) FROM Resultat"); DataTable dt1 = ds1.Tables[0]; DataSet ds2 = db.select("SELECT etapeID FROM Resultat");
Page 17
Response.Redirect("miss.aspx?conid" + conid); } } }
Page 18
Miss :
Cette page permet de voire une photo de la concurrentes slectionne avec toutes les informations ncessaires pour le vote suivies dun bouton vote menant la page ddie au vote.
Miss.aspx
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="miss.aspx.cs" Inherits="miss1" Title="Untitled Page" %> <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <script language="javascript" type="text/javascript"> // <!CDATA[ function TABLE1_onclick() { } // ]]> </script>
Page 19
<br /><br /> <asp:Image ID="Image1" runat="server" width="163px" Height="172px" /> <table id="TABLE1" onclick="return TABLE1_onclick()"> <tr> <td> <asp:Label ID="Label9" runat="server" Text="First Name"></asp:Label></td> <td><asp:Label ID="Label1" runat="server"></asp:Label><br /> </td></tr> <tr><td> <asp:Label ID="Label10" runat="server" Text="Last Name"></asp:Label></td> <td> <asp:Label ID="Label2" runat="server" Text="Label"></asp:Label> </td></tr> <tr><td> <asp:Label ID="Label11" runat="server" Text="Place of birth"></asp:Label></td> <td> <asp:Label ID="Label3" runat="server" Text="Label"></asp:Label> </td></tr> <tr><td> <asp:Label ID="Label12" runat="server" Text="Date of birth"></asp:Label></td> <td> <asp:Label ID="Label4" runat="server"></asp:Label> </td> </tr> <tr><td> <asp:Label ID="Label13" runat="server" Text="Profession"></asp:Label></td> <td> <asp:Label ID="Label5" runat="server" Text="Label"></asp:Label></td> </tr> <tr><td> <asp:Label ID="Label14" runat="server" Text="Height"></asp:Label></td> <td> <asp:Label ID="Label6" runat="server" Text="Label"></asp:Label> </td></tr> <tr><td> <asp:Label ID="Label15" runat="server" Text="Hair Color"></asp:Label></td> <td> <asp:Label ID="Label7" runat="server" Text="Label"></asp:Label> </td></tr> <tr><td> <asp:Label ID="Label16" runat="server" Text="Eye Color"></asp:Label></td> <td> <asp:Label ID="Label8" runat="server" Text="Label"></asp:Label> </td></tr> </table> <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Vote" Width="65px" /> </asp:Content>
Page 20
Miss.aspx.cs
using using using using using using using using using using System; System.Data; System.Configuration; System.Collections; System.Web; System.Web.Security; System.Web.UI; System.Web.UI.WebControls; System.Web.UI.WebControls.WebParts; System.Web.UI.HtmlControls;
public partial class miss1 : System.Web.UI.Page { string conid; string aaa; protected void Page_Load(object sender, EventArgs e) { this.Button1.Enabled = true; if (Session["user"] == null) { this.Button1.Visible = false; } aaa = Request.Params.Get("id"); if (aaa == null) { conid = Session["conid"].ToString(); Database db = new Database("Enquete.mdb"); DataSet ds = db.select("SELECT * FROM Concurrent where conid='" + conid + "'"); Label1.Text = ds.Tables[0].Rows[0][1].ToString(); Label2.Text = ds.Tables[0].Rows[0][2].ToString(); Label3.Text = ds.Tables[0].Rows[0][3].ToString(); Label4.Text = ds.Tables[0].Rows[0][4].ToString(); Label5.Text = ds.Tables[0].Rows[0][6].ToString(); Label6.Text = ds.Tables[0].Rows[0][10].ToString(); Label7.Text = ds.Tables[0].Rows[0][11].ToString(); Label8.Text = ds.Tables[0].Rows[0][12].ToString(); Image1.ImageUrl = ds.Tables[0].Rows[0][7].ToString(); } else { Database db = new Database("Enquete.mdb"); if (aaa == "x0010") { DataSet ds = db.select("SELECT * FROM Concurrent where conid='x010'"); Label1.Text = ds.Tables[0].Rows[0][1].ToString(); Label2.Text = ds.Tables[0].Rows[0][2].ToString();
Page 21
protected void Button2_Click(object sender, EventArgs e) { if (aaa == null) { Database ao = new Database("Enquete.mdb"); DataSet ds = ao.select("select * from Concurrent where conid='" + conid + "'"); DataTable dt = ds.Tables[0]; int i = 2; if (dt.Rows[0]["Image"].ToString() == "images/image1.jpg") { while (i < 3) { Image1.ImageUrl = "images/nadinenjeim/image" + i; i++; } this.Button1.Enabled = false; } } else {
Page 22
Vote :
Page 23
La page vote permet au user de voter pour chaque concurrente selon chaque critre. Trois critres sont prsents permettant llimination de quelques filles suite a la prsentation du rsultat. Un bouton submit permet la disposition des donnes dans la data base et mne a une page tape voting.
Vote.aspx
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="vote.aspx.cs" Inherits="vote" Title="Untitled Page" %> <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <div class="tick_head">Voting: <span class="tick_head1">Steps and Criterias</span></div><br /><br /><br /><br /> <table style="width: 241px; height: 137px" border="0"> <tr> <td style="width: 3px; height: 150px; vertical-align: top;" align="left" valign="top"><asp:Label ID="lblCrit1" runat="server" /> <asp:Label ID="lblCrit1Id" runat="server" Visible="False" /></td> <td style="width: 3px; height: 150px;" valign="top"> <asp:RadioButton ID="RadioButton1" runat="server" GroupName="1" Text="excellent" /><br /> <asp:RadioButton ID="RadioButton3" runat="server" GroupName="1" Text="tresbien" /> <asp:RadioButton ID="RadioButton4" runat="server" GroupName="1" Text="bien" /> <asp:RadioButton ID="RadioButton5" runat="server" GroupName="1" Text="moyen" /> <asp:RadioButton ID="RadioButton6" runat="server" GroupName="1" Text="mauvais" /> <asp:RadioButton ID="RadioButton2" runat="server" GroupName="1" Text="nonreponse" /> </td> <td style="width: 3px; height: 150px;" align="left" valign="top"><asp:Label ID="lblCrit2" runat="server" /> <asp:Label ID="lblCrit2Id" runat="server" Text="Label" Width="54px" Visible="False"></asp:Label></td> <td style="width: 3px; height: 150px;" valign="top"><asp:RadioButton ID="RadioButton7" runat="server" GroupName="2" Text="excellent" OnCheckedChanged="RadioButton7_CheckedChanged" /><asp:RadioButton ID="RadioButton8" runat="server" GroupName="2" Text="tresbien" OnCheckedChanged="RadioButton8_CheckedChanged" /><br /> <asp:RadioButton ID="RadioButton9" runat="server" GroupName="2" Text="bien" OnCheckedChanged="RadioButton9_CheckedChanged" /><br /> <asp:RadioButton ID="RadioButton10" runat="server" GroupName="2" Text="moyen" OnCheckedChanged="RadioButton10_CheckedChanged" /><br />
Page 24
Vote.aspx.cs
using System; using System.Data; using System.Configuration;
Page 25
public partial class vote : System.Web.UI.Page { string etapeID = ""; protected void Page_Load(object sender, EventArgs e) { if (Session["etapeID"] != null) { etapeID = Session["etapeID"].ToString(); } else { etapeID = "2 -Beaute"; } user u = (user)Session["user"]; Database db = new Database("Enquete.mdb"); DataSet ds = db.select("SELECT etapeID FROM Resultat"); DataSet ds1 = db.select("SELECT userid FROM Resultat"); DataSet ds3 = db.select("SELECT userid FROM [user]"); DataTable dt = ds.Tables[0]; DataTable dt1 = ds1.Tables[0]; DataTable dt3 = ds3.Tables[0]; int b = Convert.ToInt32(dt1.Rows.Count); if (dt.Rows.Count <= 30) { DataSet ds2 = db.select("SELECT* FROM critere where etapeID='" + etapeID + "'");//like ('2%')"); DataTable dt2 = ds2.Tables[0]; lblCrit1.Text = dt2.Rows[0][2].ToString(); lblCrit1Id.Text = dt2.Rows[0][0].ToString(); lblCrit2.Text = dt2.Rows[1][2].ToString(); lblCrit2Id.Text = dt2.Rows[1][2].ToString(); lblCrit4.Text = dt2.Rows[2][2].ToString(); lblCrit4Id.Text = dt2.Rows[2][2].ToString(); } else if ((dt.Rows.Count > 30) && (dt.Rows.Count < 51)) {
Page 26
DataSet ds2 = db.select("SELECT* FROM critere where etapeID ='" + etapeID + "'");//like ('3%')"); DataTable dt2 = ds2.Tables[0]; int a = dt2.Rows.Count; lblCrit1.Text = dt2.Rows[0][2].ToString(); lblCrit1Id.Text = dt2.Rows[0][0].ToString(); lblCrit2.Text = dt2.Rows[1][2].ToString(); lblCrit2Id.Text = dt2.Rows[1][2].ToString(); lblCrit4.Text = dt2.Rows[2][2].ToString(); lblCrit4Id.Text = dt2.Rows[2][2].ToString(); } else if ((dt.Rows.Count > 51)) { DataSet ds2 = db.select("SELECT* FROM critere where etapeID ='" + etapeID + "'"); //like ('4%')"); DataTable dt2 = ds2.Tables[0]; lblCrit1.Text = dt2.Rows[1][2].ToString(); lblCrit1Id.Text = dt2.Rows[0][0].ToString(); lblCrit2.Text = dt2.Rows[0][2].ToString(); lblCrit2Id.Text = dt2.Rows[1][2].ToString(); lblCrit4.Text = dt2.Rows[2][2].ToString(); lblCrit4Id.Text = dt2.Rows[2][2].ToString(); } else { Response.Redirect("etapevoting.aspx"); } } protected void Button1_Click(object sender, EventArgs e) { if (RadioButton1.Checked) { Database db = new Database("Enquete.mdb"); user u = (user)Session["user"]; string conID = Session["conid"].ToString(); string query = "insert into resultat (criId,excellent,userid,etapeID,conID, Notes) values('" + lblCrit1Id.Text.ToString() + "',1," + u.userid + ",'" + etapeID + "', '" + conID + "', 10)"; db.insert(query); }
Page 27
+ "', '" +
+ "', '" +
+ "', '" +
+ "', '" +
+ "', '" +
Page 28
Page 29
e)
e)
} protected void RadioButton15_CheckedChanged(object sender, EventArgs e) { Database db = new Database("Enquete.mdb"); user u = (user)Session["user"]; string conID = Session["conid"].ToString(); string query = "insert into resultat (criId,bien,userid,etapeID,conID, Notes) values('" + lblCrit2Id.Text.ToString() + "',1," + u.userid + ",'" + etapeID + "', '" + conID + "', 6)"; db.insert(query); }
Page 30
e)
} protected void RadioButton18_CheckedChanged(object sender, EventArgs e) { Database db = new Database("Enquete.mdb"); user u = (user)Session["user"]; string conID = Session["conid"].ToString(); string query = "insert into resultat (criId,nonreponse,userid,etapeID,conID, Notes) values('" + lblCrit2Id.Text.ToString() + "',1," + u.userid + ",'" + etapeID + "', '" + conID + "', 0)"; db.insert(query); } }
Page 31
Etape voting :
Cette page est une page de sparation entre la page du vote et celle du rsultat dans laquelle un message se prsente pour informer lutilisateur quil attende le vote des autre utilisateurs afin de pouvoir afficher le rsultat final et un link vers la page concurrent pour pouvoir voter aux autres concurrentes. Suite au vote de tous les users pour toutes les concurrentes, un bouton rsultat initialement invisible apparait menant a la page des rsultats.
Etapevoting.aspx.cs
using using using using using using using using using using System; System.Data; System.Configuration; System.Collections; System.Web; System.Web.Security; System.Web.UI; System.Web.UI.WebControls; System.Web.UI.WebControls.WebParts; System.Web.UI.HtmlControls;
Page 32
public partial class erreurlogin : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { user u = (user)Session["user"]; Database db = new Database("Enquete.mdb"); DataSet ds1 = db.select("SELECT * FROM Resultat"); DataSet ds2 = db.select("SELECT * FROM Resultat WHERE etapeID ='3Mesure et poids'"); DataSet ds3 = db.select("SELECT * FROM Resultat WHERE etapeID ='4 Questions generales'"); DataTable dt1 = ds1.Tables[0]; DataTable dt2 = ds3.Tables[0]; DataTable dt3 = ds3.Tables[0]; if (dt1.Rows.Count < 30) { Button1.Visible = false; Label1.Visible = true; } else if ((dt1.Rows.Count > 30) && (dt1.Rows.Count < 51)) { Button1.Visible = false; Label1.Visible = true; } else if ((dt3.Rows.Count > 51) && (dt1.Rows.Count < 66)) { Button1.Visible = false; Label1.Visible = true; } else { Button1.Visible = true; Label1.Visible = false; } } protected void Button1_Click(object sender, EventArgs e) { Response.Redirect("resultat.aspx"); } protected void LinkButton1_Click(object sender, EventArgs e) { } }
Page 33
Etapevoting.aspx
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="etapevoting.aspx.cs" Inherits="erreurlogin" Title="Untitled Page" %> <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <div class="tick_head">Voting:<span class="tick_head1">Results</span></div><br /><br /><br /> <asp:Label ID="Label1" runat="server" Height="50px" Text="Your vote has been casted, please wait while the other juries give their vote" Width="514px"> </asp:Label> <br /><br /><asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Results!" /> <br /><br /><a href="concurrent.aspx">Click here</a> at any time to see the contestants. </asp:Content>
Rsultat :
Page 34
Cette page reprsente un grid view dans lequel sont affiches les sept filles restantes dans ce concours. En cliquant sur select on aboutit a la page miss qui nous permet daboutir de nouveau a la page du vote mais cette fois pour ltape 2. Et ainsi de suite jusqu' lannonce des trois premires gagnantes du concours.
Resultat.aspx
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="resultat.aspx.cs" Inherits="resultat" Title="Untitled Page" %> <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <asp:GridView ID="GridView1" runat="server" BackColor="#DEBA84" BorderColor="#DEBA84" BorderStyle="None" BorderWidth="1px" CellPadding="3" CellSpacing="2" AutoGenerateSelectButton="True" OnSelectedIndexChanged="GridView1_SelectedIndexChanged" Width="500px" AllowSorting="True" Height="212px" > <FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" /> <RowStyle BackColor="#FFF7E7" ForeColor="#8C4510" /> <PagerStyle ForeColor="#8C4510" HorizontalAlign="Center" /> <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" /> <HeaderStyle BackColor="#A55129" Font-Bold="True" ForeColor="White" /> </asp:GridView> </asp:Content>
Resultat.aspx.cs
using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using System.Collections; using System.Web.UI.MobileControls; using System.Collections.Generic; public partial class resultat : System.Web.UI.Page { DataTable dt5 = new DataTable(); protected void Page_Load(object sender, EventArgs e) {
Page 35
Page 36
Page 37
from
Page 38
About us :
Aboutus.aspx:
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Aboutus.aspx.cs" Inherits="Aboutus" Title="Untitled Page" %> <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <div class="tick_head">Welcome to <span class="tick_head1">"Miss Lebanon on line"</span> competition!</div> <p dir="ltr"><font face="Arial" color ="#3b3b3b" size="3"> For over 30 years, Miss Lebanon Committee has been devoted to bringing you everything that you need in relation to the world of Beauty Pageants.<br /> Lebanon has won many International Beauty Titles in the past. To name but a few, Miss Universe in 1972, Ms Globe in 2000, Miss International in 2002, Miss Model of the World in 2005, Mr. Teen of The World in 2005, Mr. International in 2006.<br /> Miss Lebanon is the only national beauty contest that awards big prizes worth over half a million US dollars to its winners. <br /> We Strictly DENY any relation to other fake websites pretending to represent any beauty contests taking place in Lebanon such as Miss Lebanon, Miss Lebanon Emigrant, Mr. Lebanon and all other official titles given.<br />
Page 39
Aboutus.aspx.cs
using using using using using using using using using using System; System.Data; System.Configuration; System.Collections; System.Web; System.Web.Security; System.Web.UI; System.Web.UI.WebControls; System.Web.UI.WebControls.WebParts; System.Web.UI.HtmlControls;
public partial class Aboutus : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void LinkButton1_Click(object sender, EventArgs e) { Response.Redirect("Contactus.aspx"); } }
Page 40
Beautytip.aspx:
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Beautytip.aspx.cs" Inherits="Beautytip" Title="Untitled Page" %> <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <br /> <br /> <br /> <asp:LinkButton ID="LinkButton1" runat="server" OnClick="LinkButton1_Click" Font-Bold="True" Font-Size="Large">Body care</asp:LinkButton> || <asp:LinkButton ID="LinkButton2" runat="server" OnClick="LinkButton2_Click" Font-Bold="True" Font-Size="Large">Eye care</asp:LinkButton> || <asp:LinkButton ID="LinkButton3" runat="server" OnClick="LinkButton3_Click" Font-Bold="True" Font-Size="Large">Lip care</asp:LinkButton><br /> <asp:Panel ID="Panel1" runat="server" Visible="False" Width="691px"> <br /><br /> <div class="tick_head">Body care<br /><br /><br /> </div> <br /><br /><br /><br /> -Mix six-teaspoon petroleum jelly, two-teaspoon glycerin and two-teaspoon lemon juice.<br />
Page 41
Page 42
Beautytip.aspx.cs:
using using using using using using using using using using System; System.Data; System.Configuration; System.Collections; System.Web; System.Web.Security; System.Web.UI; System.Web.UI.WebControls; System.Web.UI.WebControls.WebParts; System.Web.UI.HtmlControls;
public partial class Beautytip : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void LinkButton1_Click(object sender, EventArgs e) { Panel1.Visible = true; Panel2.Visible = false; Panel3.Visible = false; } protected void LinkButton2_Click(object sender, EventArgs e) { Panel1.Visible = false; Panel2.Visible = true; Panel3.Visible = false; } protected void LinkButton3_Click(object sender, EventArgs e) { Panel1.Visible = false; Panel2.Visible = false; Panel3.Visible = true; } }
Page 43
Comments.aspx
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="comments.aspx.cs" Inherits="comments" Title="Untitled Page" %> <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <div class="tick_head">Comments<span class="tick_head1"> Area</span></div> <br /> <br /> <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="AccessDataSource1" Width="494px" OnSelectedIndexChanged="GridView1_SelectedIndexChanged" CellPadding="1" CellSpacing="2"> <RowStyle BorderWidth="0px" /> <Columns> <asp:BoundField DataField="namee" HeaderText="Name" SortExpression="namee" /> <asp:BoundField DataField="comments" HeaderText="Comments" SortExpression="comments" /> </Columns> </asp:GridView>
Page 44
comments.aspx.cs
using using using using using using using using using using System; System.Data; System.Configuration; System.Collections; System.Web; System.Web.Security; System.Web.UI; System.Web.UI.WebControls; System.Web.UI.WebControls.WebParts; System.Web.UI.HtmlControls;
public partial class comments : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void GridView1_SelectedIndexChanged(object sender, EventArgs e) { } }
Page 45
Commentsuccess.aspx
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="commentsuccess.aspx.cs" Inherits="commentsuccess" Title="Untitled Page" %> <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <div class="tick_head">Thank you for your <span class="tick_head1">FeedBack</span></div><br /><br /><br /><br /><br /> Your comment has been casted.<br /> Thank you for your patience, hope you enjoyed our website and dont forget to visit our <a href="gallery.aspx">Gallery</a>! </asp:Content>
Commentsuccess.aspx.cs
using using using using using using using System; System.Data; System.Configuration; System.Collections; System.Web; System.Web.Security; System.Web.UI;
Page 46
Gallery.aspx
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="gallery.aspx.cs" Inherits="gallery" Title="Untitled Page" %> <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <div class="tick_head">Welcome to <span class="tick_head1">the contestants</span> Photo Gallery!</div> <asp:Literal ID="Literal1" runat="server"></asp:Literal> </asp:Content>
Page 47
Gallery.aspx.cs
using using using using using using using using using using using System; System.Data; System.Configuration; System.Collections; System.Web; System.Web.Security; System.Web.UI; System.Web.UI.WebControls; System.Web.UI.WebControls.WebParts; System.Web.UI.HtmlControls; System.Data.OleDb;
public partial class gallery : System.Web.UI.Page { string reqs; protected void Page_Load(object sender, EventArgs e) { Database ao = new Database("Enquete.mdb"); int i = 0; int j=1; reqs = "<table><tr>"; DataSet ds = ao.select("select * from Concurrent"); DataTable dt = ds.Tables[0]; while (j-1<dt.Rows.Count) { if (i < 5) { reqs += "<td>"; reqs += "<a href=miss.aspx?id=x00" + j + ">"; reqs += "<image src=" + dt.Rows[j-1]["Image"].ToString() + " width ='100' height ='150'></img>"; reqs += "</a>"; reqs += "</td>"; i++; j++; } else { i = 0; reqs += "</tr>"; reqs += "<tr>"; reqs += "<td>"; reqs += "<a href=miss.aspx?id=x00" + j + ">"; reqs += "<image src=" + dt.Rows[j - 1]["Image"].ToString() + " width ='100' height ='150'>";
Page 48
Contactus.aspx
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Contest.aspx.cs" Inherits="Contest" Title="Untitled Page" %> <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <br /><br /> <div class="tick_head"> Facts & Information about Miss Lebanon<br /> </div>
Page 49
Contactus.aspx.cs
using using using using using using using using using using System; System.Data; System.Configuration; System.Collections; System.Web; System.Web.Security; System.Web.UI; System.Web.UI.WebControls; System.Web.UI.WebControls.WebParts; System.Web.UI.HtmlControls;
public partial class contactus : System.Web.UI.Page { int s; protected void Page_Load(object sender, EventArgs e) { } protected void TextBox1_TextChanged(object sender, EventArgs e) { } protected void TextBox2_TextChanged(object sender, EventArgs e) {
Page 50
} protected void TextBox3_TextChanged(object sender, EventArgs e) { } protected void TextBox4_TextChanged(object sender, EventArgs e) { } protected void TextBox5_TextChanged(object sender, EventArgs e) { } protected void TextBox6_TextChanged(object sender, EventArgs e) { } protected void TextBox7_TextChanged(object sender, EventArgs e) { } protected void Button1_Click(object sender, EventArgs e) { contact c = new contact(); c.namee = TextBox1.Text; c.email = TextBox2.Text; c.address = TextBox3.Text; c.phone = TextBox4.Text; c.subject = TextBox5.Text; c.comments = TextBox6.Text; c.tel = TextBox7.Text; if (c.test()) { s = 1; } else { s = 0; } if (s == 1) { Response.Redirect("commentsuccess.aspx"); } } }
Page 51
Contest.aspx
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Contest.aspx.cs" Inherits="Contest" Title="Untitled Page" %> <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <br /><br /> <div class="tick_head"> Facts & Information about Miss Lebanon<br /> </div> <div> <p dir="ltr"><font face="Arial" color ="#3b3b3b" size="2"> <br /><br /><br /> Miss Lebanon is the most important and the official beauty contest in Lebanon.<br /> While the contest dates back to even before the 1960s.<br /> The last few years, the show undertook major changes, <br /> when the contest took the form of a reality television show thanks to LBC which hosts this beauty contest.<br /> Miss Lebanon is the only national beauty contest that awards big prizes worth over half a million US dollars to its winners.<br /> Thanks to the Lebanese Broadcasting Corporation (LBC) who has been hosting Miss Lebanon Contest for many years,<br />
Page 52
Contest.aspx.cs
using using using using using using using using using using System; System.Data; System.Configuration; System.Collections; System.Web; System.Web.Security; System.Web.UI; System.Web.UI.WebControls; System.Web.UI.WebControls.WebParts; System.Web.UI.HtmlControls;
public partial class Contest : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } }
Page 53
Jurylist.aspx
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="comments.aspx.cs" Inherits="comments" Title="Untitled Page" %> <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <div class="tick_head">Jury's<span class="tick_head1"> List</span></div> <br /> <br /> <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="AccessDataSource1" Width="531px" OnSelectedIndexChanged="GridView1_SelectedIndexChanged" CellPadding="1" CellSpacing="2"> <RowStyle BorderWidth="0px" /> <Columns> <asp:BoundField DataField="prenom" HeaderText="Prenom" SortExpression="prenom" /> <asp:BoundField DataField="nom" HeaderText="Nom" SortExpression="nom" /> <asp:BoundField DataField="sexe" HeaderText="Sexe" SortExpression="sexe" /> <asp:BoundField DataField="profession" HeaderText="Profession" SortExpression="profession" />
Page 54
Jurylist.aspx.cs
using using using using using using using using using using System; System.Data; System.Configuration; System.Collections; System.Web; System.Web.Security; System.Web.UI; System.Web.UI.WebControls; System.Web.UI.WebControls.WebParts; System.Web.UI.HtmlControls;
public partial class jurylist : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } }
Page 55
Membersarea.aspx
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Membersarea.aspx.cs" Inherits="Membersarea" Title="Untitled Page" %> <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <div class="tick_head">Teachers</div> <p dir="ltr"><font face="Arial" color ="#3b3b3b" size="3"> <br /><br /><br /> -Rigina Finianos Director of Bal Des Debutants Company<br /> -Papou Lahoud The international and lebanese fashion designer.<br /> -Sylvio Tabet The international and lebanese fashion director.<br /> -Dr. Sami Helou Doctor and Specialist in cosmetic surgery.<br /> -Magui Farah journalist.<br /> -Mona Fares Head of the unit of tourist improvment in the council of tourism.<br /> -Antoine Kerbaj Lebanese actor and Director of the actors syndicate.<br /> -Jean Louis Mangui Interior Design and decoration.<br /> -Nayla De Freige Vice president of the "L'orient le jour".<br /> </font></p></asp:Content>
Page 56
Membersarea.aspx.cs
using using using using using using using using using using System; System.Data; System.Configuration; System.Collections; System.Web; System.Web.Security; System.Web.UI; System.Web.UI.WebControls; System.Web.UI.WebControls.WebParts; System.Web.UI.HtmlControls;
public partial class Membersarea : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } }
News.aspx
<%@ Page Language=C# MasterPageFile=~/MasterPage.master AutoEventWireup=true CodeFile=News.aspx.cs Inherits=News Title=Untitled Page %> <asp:Content ID=Content1 ContentPlaceHolderID=ContentPlaceHolder1 Runat=Server> <div class=tick_head><a href=gabriellebourached.aspx><span class=tick_head1>Gabrielle Bou Rached</span></a></div><br /><br /><br /><br /><br /> Gabrielle Bou Rached was crowned Miss Campus of USJ University Beirut, she represented her country in Miss Asia <div class=tab_readmore> <p align=right class=tab_head><a href=gabriellebourached.aspx class=readmore>Read More </a></p> </div> <div class=tick_head><a href=christinasawaya.aspx><span class=tick_head1>Christina Sawaya</span></a></div><br /><br /><br /><br /><br /> Christina Sawaya went on to win <div class=tab_readmore> <p align=right class=tab_head><a href=christinasawaya.aspx class=readmore>Read More </a></p> </div>
Page 58
News.aspx.cs
using using using using using using using using using using System; System.Data; System.Configuration; System.Collections; System.Web; System.Web.Security; System.Web.UI; System.Web.UI.WebControls; System.Web.UI.WebControls.WebParts; System.Web.UI.HtmlControls;
public partial class News : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } }
Page 59
Sponsors.aspx
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="sponsors.aspx.cs" Inherits="sponsors" Title="Untitled Page" %> <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <div class="tick_head">Sponsors<br /><br /><br /> </div> <table> <tr> <td style="height: 134px; width: 170px;"> <asp:Image ID="Image1" runat="server" ImageUrl="~/images/sponsor12.jpg" Height="100px" Width="150px" /></td> <td style="height: 134px; width: 170px;"> <asp:Image ID="Image2" runat="server" ImageUrl="~/images/z1.jpg" Height="100px" Width="150px" /></td> <td style="height: 134px"> <asp:Image ID="Image3" runat="server" ImageUrl="~/images/sponsor4.jpg" Height="100px" Width="150px" /></td> </tr> <tr> <td style="width: 170px"> <asp:Image ID="Image4" runat="server" ImageUrl="~/images/sponsor22.jpg" Height="100px" Width="150px" /></td> <td>
Page 60
Sponsors.aspx.cs
using using using using using using using using using using System; System.Data; System.Configuration; System.Collections; System.Web; System.Web.Security; System.Web.UI; System.Web.UI.WebControls; System.Web.UI.WebControls.WebParts; System.Web.UI.HtmlControls;
public partial class sponsors : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } }
Page 61
Error_Login.aspx
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Error_Login.aspx.cs" Inherits="Error_Login" Title="Untitled Page" %> <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <div class="tick_head">Access<span class="tick_head1"> Denied</span></div><br /><br /><br /><br /><br /> <font color="red">You do not have access to this page as you are not logged in.</font> </asp:Content>
Error_Login.aspx.cs
using using using using using using using System; System.Data; System.Configuration; System.Collections; System.Web; System.Web.Security; System.Web.UI;
Page 62
Merci davance !
Page 63