property selling website php code

Upload: mayank-srivastav

Post on 18-Jul-2015

28 views

Category:

Documents


0 download

TRANSCRIPT

STUDENT NAME-------->MAYANK SRIVASTAV

You can check the running project through the following link---https://w1313623.users.ecs.westminster.ac.uk/home.html -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------file name----->aaa.txt (Comma delimated Text file)

"Property Name", Visits

"Post Code",

Price,

"Image File",

Product1 , src=""image1.jpg"">",

H30001, 2

101,

"",

H30002, 2

102,

"",

H30003, 2

103,

"",

H30004, 3

104,

"",

H30005, 1

105,

"home.html features of this project )

(Thats my first/front page .From here you can access all the

Home

HOME 24 X 7


Get Details By property Name Choose the property whose details are required&nbs p; Select Product1 Product2 Product3 Product4 Product5



Get Details By Product Price To get the details of all the properties, whose price are less than provided, please enter the Maximun Amount

Enter Maximun Amount ( in thousand )



Get Product Details By Search Here you can search your property by providing PRODUCT NAME or POST CODE

Enter Your Search Here

Example: product1, product2, H30001, H30002 etc.

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

file name---->plist.php (It contains all the information of a property)

Property List

PROPERTY DETAILS The Product choosen by you is : All properties of the chosen product is shown in Table below :

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

filename---->maximum.php (it will display all the properties below the maximum price entered by the user)

Maximum

LIST OF PRODUCTS WITH PROPERTIES
The amount Entered by you is thousand . Taken this as maximum amount, all products with price less than the amount provided are listed below :-



---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

file name---->available.php (Its a page from where you can add a visit to the property)

Search Page LIST OF PRODUCTS WITH PROPERTIES Taken thousand . as the maximum amount the products are :- Please select the PRODUCTS whose VISITS property is to be changed.

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

file name---->pchange.php ---------Name changed(visit.php) to the given instruction but its name is pchange.php)

(Its woking like visit.php according

(it will confirm that one visit has been added to the existing one) visit.php but I have used pchange.php)

(its name should be

Property Changed VISIT UPDATED The products whose property VISITS is increased by ONE is mention in table below :


--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

file name---->psearch.php (it will show the details of the property which is entered by the user through search)

Search Page

LIST OF PROPERTIES MATCHED WITH SEARCH TERM
The search term given by you is Taken this search term as PRODUCT NAME or POST CODE the matched products are listed below :-

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------EXTRA ------> file name ---->maxamount.js(java script) the amount column empty , we have use java script for this) (so that user should not leave

function validateForm() { var t = document.forms["form2"]["amount"].value;

if((t.length < 1) || (isNaN(t))) { alert("Enter Valid Amount"); return false; }

}

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

EXTRA-------> file name---->search.js(java script) (so that user should not leave the search column empty or should enter valid amount. we have use java script)

function validateForm1() {

var x = document.forms["form3"]["search"].value;

if (x==null || x== "") { alert("Please enter valid search term"); return false;

}

} ------------------------------------------------*****FINISH*****-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------