├── Database and Website Design.pdf ├── README.md ├── css └── completesite.css ├── equipmentpage.html ├── homepage.html ├── images ├── apartment.jpg ├── house.jpg ├── house2.jpg ├── house3.jpg ├── house4.jpg ├── house5.jpg ├── house6.jpg └── html5val.png ├── js └── map.js ├── php ├── equipmentinsert.php ├── equipmentselect.php ├── propertyinsert.php ├── propertyselect.php ├── repairsinsert.php ├── repairsselect.php ├── tenantinsert.php ├── tenantselect.php ├── tradesmaninsert.php └── tradesmanselect.php ├── propertypage.html ├── readmefile.txt ├── repairspage.html ├── south_dublin_housing_council_repairs_basic_database.sql ├── tenantspage.html └── tradesmanpage.html /Database and Website Design.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenpfahy/web-applications-project/1bc3363093025e78997d8871ddb01763fef427b0/Database and Website Design.pdf -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # web-applications-project 2 | SOUTH DUBLIN HOUSING COUNCIL WEBSITE This is a repository for the project for the Web Applications module for the Higher Diploma in Science (Software Development). It is a client based website which was built using HTML5, CSS3 and JavaScript. The website is connected to a relational database via PHP which inserts, reads, updates, and deletes information entered by the user from the website into the relational database. The relational database used was created for the Database Design & Development Module. 3 | -------------------------------------------------------------------------------- /css/completesite.css: -------------------------------------------------------------------------------- 1 | body { 2 | font-family: Arial, Verdana, sans-serif; 3 | background-color:#222930; 4 | } 5 | #header { 6 | background-color:#b30000; 7 | color:white; 8 | text-align:center; 9 | padding:30px; 10 | border-style: solid; 11 | border-width: 5px; 12 | border-color: #222930; 13 | } 14 | 15 | #nav { 16 | line-height:30px; 17 | background-color:#80ffd4; 18 | height:1100px; 19 | width:100px; 20 | float:left; 21 | padding:30px; 22 | border-style: solid; 23 | border-width: 5px; 24 | border-color: #222930; 25 | } 26 | #section { 27 | width:800px; 28 | float:left; 29 | padding:10px; 30 | text-align:center; 31 | } 32 | #aside { 33 | line-height:30px; 34 | background-color:#80ffd4; 35 | height:1150px; 36 | width:250px; 37 | float:right; 38 | padding:5px; 39 | border-style: solid; 40 | border-width: 5px; 41 | border-color: #222930; 42 | } 43 | #footer { 44 | background-color:#b30000; 45 | color:white; 46 | clear:both; 47 | text-align:center; 48 | padding:30px; 49 | border-style: solid; 50 | border-width: 5px; 51 | border-color: #222930; 52 | } 53 | #southdublincounciladdress { 54 | text-align:middle; 55 | } 56 | #email{ 57 | text-align:right; 58 | } 59 | #phone { 60 | text-align:left; 61 | } 62 | 63 | a { 64 | color:#6666ff; 65 | font-weight: bold; 66 | } 67 | 68 | h1 { 69 | font-family: "Agency FB", arial, serif; 70 | font-weight: bold; 71 | font-size: 60px; 72 | color: #ffffff;} 73 | h2{ 74 | font-weight: bold; 75 | text-decoration: underline; 76 | color: #ff6666;} 77 | h3{ 78 | font-weight: bold; 79 | text-decoration: underline; 80 | text-align: center-left; 81 | color: #ffcc00;} 82 | h4{ 83 | color: #FF75A3;} 84 | h5{ 85 | color: #BFFF7E;} 86 | p{ 87 | color: #FFFFFF; 88 | text-align:left; 89 | } 90 | form{ 91 | color: #ffcc00; 92 | font-weight: bold; 93 | } 94 | -------------------------------------------------------------------------------- /equipmentpage.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | South Dublin Housing Council Equipment Page 7 | 8 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 22 | 23 | 24 | 25 | 26 | 34 | 35 | 36 | 37 | 38 |
39 |

EQUIPMENT DETAILS

40 | 41 |

42 | It is important that employees for South Dublin Housing Council have the right equipment to carry out repairs on our properties and that equipment is in excellent repair. 43 | If the right equipment is available to our employees this insures that the repairs job is carried out to the highest standard. 44 | When you use equipment it is important to check it's state of repair to insure that it is fit for it's intended purpose and that it can be replaced if needs be. 45 | If new equipment has been purchased for a repairs job it should be entered into the database so that the procurement section in South Dublin Housing Council can have a record of all of our equipment and monitor the state of repair of it's equipment. 46 |

47 | 48 |

49 | If there has been new equipment been bought or you are using existing equipment not listed in our database, then please type the equipment details into the following fields to update our online database. 50 |

51 | 52 |
53 | EQUIPMENT ID:
54 | 55 |
56 | TYPE:
57 | 58 |
59 | DESCRIPTION:
60 | 61 |
62 | VALUE:
63 | 64 |
65 | INSPECTION DATE:
66 | 67 |
68 | STATE OF REPAIR:
69 | Excellent 70 |
71 | Good 72 |
73 | Poor 74 |
75 | 76 |
77 | 78 |

79 | If the details you selected do not enter into our database you have probably entered the wrong data type or you have selected a equipment id which exists already in our database. 80 | All equipment is given a unique equipment id number. 81 | If the same numbers are inserted into the database and a record already exists with this number, your information will not be entered into the database. 82 | To check and see existing equipment id's in our database, click on the 'VIEW EXISTING EQUIPMENT DETAILS IN OUR DATABASE' link below. 83 |

84 | 85 | VIEW EXISTING EQUIPMENT DETAILS IN OUR DATABASE 86 |
87 | 88 |

89 | If your equipment details are already in the database or you want to add them at again at a later stage please click the link below. 90 | You can add the equipment details at a later stage by clicking on the 'EQUIPMENT' link. 91 |

92 | 93 | GO TO NEXT PAGE
94 |
95 | 96 | 97 | 98 | 99 |
100 | APARTMENTS IN RATHFARNHAM 101 | APARTMENTS IN THE DOCKS 102 | HOUSES IN DONABATE 103 | HOUSE IN CLONDALKIN 104 | HOUSE IN RANELAGH 105 | HOUSE IN BALLSBRIDGE 106 | APARTMENT IN BEACON SOUTH 107 |
108 | 109 | 110 | 111 | 112 | 126 | 127 | 128 | 129 | 130 | -------------------------------------------------------------------------------- /homepage.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | South Dublin Housing Council Homepage 7 | 8 | 9 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 37 | 38 | 39 | 47 | 48 | 49 | 50 |
51 |

MAINTENANCE AND REPAIRS SECTION

52 |

53 | South Dublin Housing Council is a large housing authority which operates a number of corporation housing estates and flat blocks in South Dublin. 54 | If a tenant's property is in need of repair the tenant can send in a request for repair either by telephone or in writing by letter or email. 55 | If the tenant is registered with South Dublin County Council they may be eligible for repairs on their property depending on the type of repair needed and the degree of urgency of the repair. 56 | If a tenant is approved for a repair on their property a tradesman is sent to their property to carry out the repair. The equipment used by the tradesman is supplied by South Dublin Housing Council and is stored in our equipment workshop. 57 |

58 | 59 |

DEGREE OF URGENCY

60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 |
CATEGORYTIMESCALEEXAMPLE
Emergency1-5 working daysCovering exposed live wires
Urgent10 working daysLeak under sink unit
Routine12 weeks or moreReplacing oven with new oven
Cyclical1-7 yearsPainting a the outside of a property
88 | 89 |

90 | This is a website designed for the use of the maintenance and repairs section of South Dublin Housing Council. 91 | There are five different sections on this website all of which can be used by employees to view information or update our online database. 92 | These sections are as as follows:
Tenant Section, Property Section, Repairs Section, Tradesman Section and Equipment Section. 93 |

94 | 95 |

Click the link below if you want to start viewing or updating our online database.

96 |
97 | VIEW OR UPDATE OUR DATABASE
98 |
99 |

SOUTH DUBLIN HOUSING COUNCIL'S DISCLAIMER

100 | 101 |

102 | This is a private website for South Dublin Housing Council and should only be accessed by the organisations staff for administration purposes only. 103 | South Dublin County Council fully respects the tenant's right to privacy and any information provided will be treated with the highest standard of security and confidentiality, strictly in accordance with the Data Protection Acts, 1988 & 2003 and used only for statistical and business purposes. 104 | It can only be accessed through South Dublin Housing Council's private intranet network, which will monitor the employees that access this service. 105 | Any misuse of information provided by this site or false information maliciously added to this site is seen as a serious offence. 106 | If an employee is found responsible of such an act this could lead to dismissal from South Dublin Housing Council or prosecution. 107 |

108 |
109 | 110 | 111 | 112 |
113 | APARTMENTS IN RATHFARNHAM 114 | APARTMENTS IN THE DOCKS 115 | HOUSES IN DONABATE 116 | HOUSE IN CLONDALKIN 117 | HOUSE IN RANELAGH 118 | HOUSE IN BALLSBRIDGE 119 | APARTMENT IN BEACON SOUTH 120 |
121 | 122 | 123 | 124 | 138 | 139 | 140 | 141 | 142 | -------------------------------------------------------------------------------- /images/apartment.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenpfahy/web-applications-project/1bc3363093025e78997d8871ddb01763fef427b0/images/apartment.jpg -------------------------------------------------------------------------------- /images/house.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenpfahy/web-applications-project/1bc3363093025e78997d8871ddb01763fef427b0/images/house.jpg -------------------------------------------------------------------------------- /images/house2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenpfahy/web-applications-project/1bc3363093025e78997d8871ddb01763fef427b0/images/house2.jpg -------------------------------------------------------------------------------- /images/house3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenpfahy/web-applications-project/1bc3363093025e78997d8871ddb01763fef427b0/images/house3.jpg -------------------------------------------------------------------------------- /images/house4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenpfahy/web-applications-project/1bc3363093025e78997d8871ddb01763fef427b0/images/house4.jpg -------------------------------------------------------------------------------- /images/house5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenpfahy/web-applications-project/1bc3363093025e78997d8871ddb01763fef427b0/images/house5.jpg -------------------------------------------------------------------------------- /images/house6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenpfahy/web-applications-project/1bc3363093025e78997d8871ddb01763fef427b0/images/house6.jpg -------------------------------------------------------------------------------- /images/html5val.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenpfahy/web-applications-project/1bc3363093025e78997d8871ddb01763fef427b0/images/html5val.png -------------------------------------------------------------------------------- /js/map.js: -------------------------------------------------------------------------------- 1 | // JavaScript source code 2 | function init() { 3 | var mapOptions = { 4 | center: new google.maps.LatLng(53.288804, -6.355706300000065), 5 | mapTypeId: google.maps.MapTypeId.ROADMAP, 6 | zoom: 10 7 | }; 8 | 9 | var myMap; myMap = new google.maps.Map(document.getElementById('map'), mapOptions); 10 | } 11 | 12 | function loadScript() { 13 | var script = document.createElement('script'); 14 | script.src = 'http://maps.googleapis.com/maps/api/js?sensor=false&callback=init'; 15 | document.body.appendChild(script); 16 | } 17 | 18 | window.onload = loadScript; -------------------------------------------------------------------------------- /php/equipmentinsert.php: -------------------------------------------------------------------------------- 1 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /php/equipmentselect.php: -------------------------------------------------------------------------------- 1 | 14 | 15 | EQUIPMENT_ID 16 | TYPE 17 | DESCRIPTION 18 | VALUE 19 | INSPECTION_DATE 20 | STATE_OF_REPAIR 21 | "; 22 | 23 | while($row = mysql_fetch_array($result)) //this creates a loop 24 | { 25 | echo ""; 26 | echo "" . $row['EQUIPMENT_ID'] . ""; 27 | echo "" . $row['TYPE'] . ""; 28 | echo "" . $row['DESCRIPTION'] . ""; 29 | echo "" . $row['VALUE'] . ""; 30 | echo "" . $row['INSPECTION_DATE'] . ""; 31 | echo "" . $row['STATE_OF_REPAIR'] . ""; 32 | echo ""; 33 | } 34 | echo ""; 35 | 36 | mysql_close($con); //closing connection 37 | ?> -------------------------------------------------------------------------------- /php/propertyinsert.php: -------------------------------------------------------------------------------- 1 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /php/propertyselect.php: -------------------------------------------------------------------------------- 1 | 14 | 15 | POSTCODE 16 | TENANT_ID 17 | ADDRESS 18 | REPAIR_ID 19 | "; 20 | 21 | while($row = mysql_fetch_array($result)) //this creates a loop 22 | { 23 | echo ""; 24 | echo "" . $row['POSTCODE'] . ""; 25 | echo "" . $row['TENANT_ID'] . ""; 26 | echo "" . $row['ADDRESS'] . ""; 27 | echo "" . $row['REPAIR_ID'] . ""; 28 | echo ""; 29 | } 30 | echo ""; 31 | 32 | mysql_close($con); //closing connection 33 | ?> -------------------------------------------------------------------------------- /php/repairsinsert.php: -------------------------------------------------------------------------------- 1 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /php/repairsselect.php: -------------------------------------------------------------------------------- 1 | 14 | 15 | REPAIR_ID 16 | TYPE 17 | URGENCY 18 | DETAILS 19 | DATE 20 | TIME 21 | TRADESMAN_ID 22 | "; 23 | 24 | while($row = mysql_fetch_array($result)) //this creates a loop 25 | { 26 | echo ""; 27 | echo "" . $row['REPAIR_ID'] . ""; 28 | echo "" . $row['TYPE'] . ""; 29 | echo "" . $row['URGENCY'] . ""; 30 | echo "" . $row['DETAILS'] . ""; 31 | echo "" . $row['DATE'] . ""; 32 | echo "" . $row['TIME'] . ""; 33 | echo "" . $row['TRADESMAN_ID'] . ""; 34 | echo ""; 35 | } 36 | echo ""; 37 | 38 | mysql_close($con); //closing connection 39 | ?> -------------------------------------------------------------------------------- /php/tenantinsert.php: -------------------------------------------------------------------------------- 1 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /php/tenantselect.php: -------------------------------------------------------------------------------- 1 | 14 | 15 | TENANT_ID 16 | REGISTER_NUMBER 17 | FIRST_NAME 18 | LAST_NAME 19 | CONTACT 20 | EMAIL 21 | "; 22 | 23 | while($row = mysql_fetch_array($result)) //this creates a loop 24 | { 25 | echo ""; 26 | echo "" . $row['TENANT_ID'] . ""; 27 | echo "" . $row['REGISTER_NUMBER'] . ""; 28 | echo "" . $row['FIRST_NAME'] . ""; 29 | echo "" . $row['LAST_NAME'] . ""; 30 | echo "" . $row['CONTACT'] . ""; 31 | echo "" . $row['EMAIL'] . ""; 32 | echo ""; 33 | } 34 | echo ""; 35 | 36 | mysql_close($con); //closing connection 37 | ?> -------------------------------------------------------------------------------- /php/tradesmaninsert.php: -------------------------------------------------------------------------------- 1 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /php/tradesmanselect.php: -------------------------------------------------------------------------------- 1 | 14 | 15 | TRADESMAN_ID 16 | FIRST_NAME 17 | LAST_NAME 18 | SKILL 19 | CONTACT 20 | EQUIPMENT_ID 21 | "; 22 | 23 | while($row = mysql_fetch_array($result)) //this creates a loop 24 | { 25 | echo ""; 26 | echo "" . $row['TRADESMAN_ID'] . ""; 27 | echo "" . $row['FIRST_NAME'] . ""; 28 | echo "" . $row['LAST_NAME'] . ""; 29 | echo "" . $row['SKILL'] . ""; 30 | echo "" . $row['CONTACT'] . ""; 31 | echo "" . $row['EQUIPMENT_ID'] . ""; 32 | echo ""; 33 | } 34 | echo ""; 35 | 36 | mysql_close($con); //closing connection 37 | ?> -------------------------------------------------------------------------------- /propertypage.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | South Dublin Housing Council Property Page 7 | 8 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 26 | 27 | 28 | 29 | 30 | 38 | 39 | 40 | 41 | 42 |
43 |

PROPERTY DETAILS

44 | 45 |

46 | Approved tenants are asked for their property details which are entered into our database for administration purposes. 47 |

48 | 49 |

50 | Type the property details into the following fields to update our online database. 51 |

52 | 53 |
54 | POSTCODE:
55 | 56 |
57 | TENANT_ID:
58 | 59 |
60 | ADDRESS:
61 | 62 |
63 | REPAIR_ID:
64 | 65 |
66 | 67 |
68 |
69 | If you do not know your postcode / eircode please click here to search for it. 70 |
71 | 72 |

73 | If the details you selected do not enter into our database you have probably entered the wrong data type or you have selected a postcode which exists already in our database. 74 | Each property is given a unique postcode. 75 | If the same postcode is inserted into the database and a record already exists with this postcode, your information will not be entered into the database. 76 | To check and see existing postcode's in our database, click on the 'VIEW EXISTING PROPERTY DETAILS IN OUR DATABASE' link below. 77 |

78 | 79 | VIEW EXISTING PROPERTY DETAILS IN OUR DATABASE 80 |
81 | 82 |

83 | Your details you selected may not have worked also because you have selected a tenant id or a repairs id which is not in our database. 84 | To check and see if your tenant id or repair id is in our database click on the 'VIEW EXISTING TENANT DETAILS IN OUR DATABASE' link or the 'VIEW EXISTING REPAIRS DETAILS IN OUR DATABASE' link. 85 |

86 | 87 | VIEW EXISTING TENANT DETAILS IN OUR DATABASE 88 |
89 | 90 | VIEW EXISTING REPAIRS DETAILS IN OUR DATABASE 91 |
92 | 93 |

94 | If your property details are already in the database or you want to add them at again at a later stage. 95 | You can add the property details at a later stage by clicking on the 'PROPERTY' link. 96 | To go back to our homepage, click the link below. 97 |

98 | 99 | GO TO HOMEPAGE
100 | 101 |

MAP OF SOUTH DUBLIN

102 | 103 | 106 | 107 | 108 |

Try searching our link to googlemaps to find your property.

109 |
110 | 111 |
112 | 113 | 114 | 115 | 116 |
117 | APARTMENTS IN RATHFARNHAM 118 | APARTMENTS IN THE DOCKS 119 | HOUSES IN DONABATE 120 | HOUSE IN CLONDALKIN 121 | HOUSE IN RANELAGH 122 | HOUSE IN BALLSBRIDGE 123 | APARTMENT IN BEACON SOUTH 124 |
125 | 126 | 127 | 128 | 129 | 144 | 145 | 146 | 147 | 148 | -------------------------------------------------------------------------------- /readmefile.txt: -------------------------------------------------------------------------------- 1 | Stephen Fahy 2 | G00172772 3 | WEB SITE DESIGN 4 | 13/12/2015 5 | 6 | This contains all the resources for my South Dublin Housing Council website. 7 | This consists of my six html5 webpages. 8 | There is a homepage, a tenants page, a property page, a repairs page, a tradesman page and an equipment page. 9 | Each webpage is linked to each other by a sidebar on every webpage with links to the other pages. 10 | You enter the website via the homepage which then can access all the other webpages of the website. 11 | In the projectmain file there is the css file whch contains the external css design for the website, 12 | a images file which contains the images for my website, a js file which contains the javascript for the website, 13 | and a php file which contains the php insert statements and select statements for each webpage except the homepage. 14 | 15 | The website is linked to a database via HTML5 forms and my php code on each webpage except the homepage. 16 | The database can be accessed by opening the south_dublin_housing_council_repairs file which contains the datafiles or 17 | by importing the south_dublin_housing_council_repairs.sql file into your phpadmin in mysql. 18 | 19 | The website is designed for South Dublin Housing Council's employees so that they can view and update the council's database. 20 | The employees access the website via the council's private intranet network which can be used in the main South Dublin Housing Council building in Tallaght 21 | or in other council buildings in South Dublin. 22 | The employees access the website via the homepage which accesses the other webpages. 23 | On the other 5 webpages employees can view the council's database or they can update it. 24 | 25 | The majority of the website css design was done in an external css file in completesite.css. 26 | There was internal css design done in the website such as the table on the homepage using the 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 22 | 23 | 24 | 25 | 26 | 34 | 35 | 36 | 37 | 38 |
39 |

REPAIRS DETAILS

40 | 41 |

42 | Repairs will be carried out on a property depending on the type of repair, the degree of urgency and if the tenant has paid their rent up to date and is a registered tenant. 43 | The tenants in a South Dublin County Council homes are responsible for repairs of a non-structural nature. 44 | When an employee is deciding if a repair should be carried out, the above points should be taken into consideration. 45 | If an employee decides that the repair will be carried out on a property then the repair details should be added to the database. 46 | It is important that a date and time is selected to carry out the work. 47 | It is also important that the degree of urgency is stated as this will determine how long it will take to respond to the job needed to be carried out. 48 | 49 |

50 | Type the repair details into the following fields to update our online database. 51 |

52 | 53 |
54 | REPAIR ID:
55 | 56 |
57 | TYPE:
58 | 59 |
60 | URGENCY:
61 | Emergency 62 |
63 | Urgent 64 |
65 | Routine 66 |
67 | Cyclical 68 |
69 | DETAILS:
70 | 71 |
72 | DATE:
73 | 74 |
75 | TIME:
76 | 77 |
78 | TRADESMAN_ID:
79 | 80 |
81 | 82 |
83 | 84 |

85 | If the details you selected do not enter into our database you have probably entered the wrong data type or you have selected a repair id which exists already in our database. 86 | Each repair is given a unique repair id. 87 | If the same repair id is inserted into the database and a record already exists with this repair id, your information will not be entered into the database. 88 | To check and see existing repair id's in our database, click on the 'VIEW EXISTING REPAIR DETAILS IN OUR DATABASE' link below. 89 |

90 | 91 | VIEW EXISTING REPAIRS DETAILS IN OUR DATABASE 92 |
93 | 94 |

95 | Your details you selected may not have worked also because you have selected a tradesman id which is not in our database. 96 | To check and see if your tradesman id is in our database click on the 'VIEW EXISTING TRADESMAN DETAILS IN OUR DATABASE' link. 97 |

98 | 99 | VIEW EXISTING TRADESMAN DETAILS IN OUR DATABASE 100 |
101 | 102 |

103 | If your repair details are already in the database or you want to add them at again at a later stage please click the link below. 104 | You can add the repairs details at a later stage by clicking on the 'REPAIRS' link. 105 |

106 | 107 | GO TO NEXT PAGE
108 |
109 | 110 | 111 | 112 | 113 |
114 | APARTMENTS IN RATHFARNHAM 115 | APARTMENTS IN THE DOCKS 116 | HOUSES IN DONABATE 117 | HOUSE IN CLONDALKIN 118 | HOUSE IN RANELAGH 119 | HOUSE IN BALLSBRIDGE 120 | APARTMENT IN BEACON SOUTH 121 |
122 | 123 | 124 | 125 | 126 | 140 | 141 | 142 | 143 | 144 | 145 | -------------------------------------------------------------------------------- /south_dublin_housing_council_repairs_basic_database.sql: -------------------------------------------------------------------------------- 1 | -- phpMyAdmin SQL Dump 2 | -- version 4.5.1 3 | -- http://www.phpmyadmin.net 4 | -- 5 | -- Host: 127.0.0.1 6 | -- Generation Time: Dec 13, 2015 at 01:17 PM 7 | -- Server version: 10.1.8-MariaDB 8 | -- PHP Version: 5.6.14 9 | 10 | SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; 11 | SET time_zone = "+00:00"; 12 | 13 | 14 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 15 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 16 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 17 | /*!40101 SET NAMES utf8mb4 */; 18 | 19 | -- 20 | -- Database: `south_dublin_housing_council_repairs` 21 | -- 22 | 23 | -- -------------------------------------------------------- 24 | 25 | -- 26 | -- Table structure for table `equipment` 27 | -- 28 | 29 | CREATE TABLE `equipment` ( 30 | `EQUIPMENT_ID` int(10) NOT NULL, 31 | `TYPE` varchar(20) NOT NULL, 32 | `DESCRIPTION` varchar(50) NOT NULL, 33 | `VALUE` decimal(15,2) NOT NULL, 34 | `INSPECTION_DATE` date NOT NULL, 35 | `STATE_OF_REPAIR` varchar(10) NOT NULL 36 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 37 | 38 | -- 39 | -- Dumping data for table `equipment` 40 | -- 41 | 42 | INSERT INTO `equipment` (`EQUIPMENT_ID`, `TYPE`, `DESCRIPTION`, `VALUE`, `INSPECTION_DATE`, `STATE_OF_REPAIR`) VALUES 43 | (1, 'Drill', 'DEWALT pistol drill kit', '16.00', '2015-09-15', 'Good'), 44 | (2, 'Adjustable wrench', 'Stanley 300mm MaxSteel', '14.00', '2015-10-08', 'Excellent'), 45 | (3, 'Angle Grinder', 'Makita GA4530KD 720W', '52.00', '2015-10-12', 'Poor'), 46 | (4, 'Ladder', 'SKY528 Heavy duty foldable', '120.00', '2015-10-13', 'Good'), 47 | (5, 'Voltmeter', 'Voltmeter', '10.00', '2015-08-25', 'Excellent'), 48 | (9, 'drill', 'Powerhouse 500', '20.00', '0000-00-00', 'Good'), 49 | (10, 'Shovel', 'Fiskars Heavy Duty Shovel', '20.00', '2015-12-01', 'Excellent'), 50 | (11, 'Hammer', 'Stanley claw hammer', '8.49', '2015-12-15', 'Good'), 51 | (12, 'Screwdriver', 'Stanley 10 piece screw driver set', '20.00', '2015-12-02', 'Good'), 52 | (13, 'wrench', 'Huskers 14 inch heavy duty pipe wrench', '12.48', '2015-12-12', 'Excellent'), 53 | (14, 'Saw', 'Stanley Heavy Duty 30 inch saw', '15.50', '2015-11-29', 'Excellent'); 54 | 55 | -- -------------------------------------------------------- 56 | 57 | -- 58 | -- Table structure for table `property` 59 | -- 60 | 61 | CREATE TABLE `property` ( 62 | `POSTCODE` varchar(10) NOT NULL, 63 | `TENANT_ID` int(20) NOT NULL, 64 | `ADDRESS` varchar(50) NOT NULL, 65 | `REPAIR_ID` int(10) NOT NULL 66 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 67 | 68 | -- 69 | -- Dumping data for table `property` 70 | -- 71 | 72 | INSERT INTO `property` (`POSTCODE`, `TENANT_ID`, `ADDRESS`, `REPAIR_ID`) VALUES 73 | ('D04 5N 807', 9, '54 Hazle Grove, Clondalkin', 5), 74 | ('D04 KN85', 5, '54 Sandymount Avenue', 3), 75 | ('D04 N2E9', 2, '89 Donnybrook Avenue', 5), 76 | ('D06 P2N5', 3, '85 Rathmines Road Lower', 4), 77 | ('D06 W1D7', 1, '22 Belgrave Square South', 1), 78 | ('D08 F6W2', 4, '75 Lombard Street East', 2), 79 | ('D12 A2B9', 12, '75 RUTLAND GROVE, DUBLIN 12', 6); 80 | 81 | -- -------------------------------------------------------- 82 | 83 | -- 84 | -- Table structure for table `repairs` 85 | -- 86 | 87 | CREATE TABLE `repairs` ( 88 | `REPAIR_ID` int(10) NOT NULL, 89 | `TYPE` varchar(30) NOT NULL, 90 | `URGENCY` varchar(20) NOT NULL, 91 | `DETAILS` varchar(50) NOT NULL, 92 | `DATE` date NOT NULL, 93 | `TIME` time(6) NOT NULL, 94 | `TRADESMAN_ID` int(20) NOT NULL 95 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 96 | 97 | -- 98 | -- Dumping data for table `repairs` 99 | -- 100 | 101 | INSERT INTO `repairs` (`REPAIR_ID`, `TYPE`, `URGENCY`, `DETAILS`, `DATE`, `TIME`, `TRADESMAN_ID`) VALUES 102 | (1, 'Plumbing', 'Urgent', 'Leak under sink unit', '2015-11-17', '14:45:00.000000', 3), 103 | (2, 'Electric', 'Emergency', 'Smoking fuse board', '2015-11-18', '15:00:00.000000', 3), 104 | (3, 'Plastering', 'Cyclical', 'Repairs to internal walls', '2015-02-01', '11:00:00.000000', 5), 105 | (4, 'Carpentry', 'Cyclical', 'Replace hall door', '2015-05-05', '10:00:00.000000', 1), 106 | (5, 'Plumbing', 'Routine', 'Replace toilet cistern', '2015-09-10', '12:00:00.000000', 3), 107 | (6, 'Woodwork', 'Cyclical', 'Replace damp skirting board', '2015-12-14', '11:00:00.000000', 7); 108 | 109 | -- -------------------------------------------------------- 110 | 111 | -- 112 | -- Table structure for table `tenant` 113 | -- 114 | 115 | CREATE TABLE `tenant` ( 116 | `TENANT_ID` int(20) NOT NULL, 117 | `REGISTER_NUMBER` int(20) NOT NULL, 118 | `FIRST_NAME` varchar(20) NOT NULL, 119 | `LAST_NAME` varchar(20) NOT NULL, 120 | `CONTACT` varchar(20) NOT NULL, 121 | `EMAIL` varchar(30) NOT NULL 122 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 123 | 124 | -- 125 | -- Dumping data for table `tenant` 126 | -- 127 | 128 | INSERT INTO `tenant` (`TENANT_ID`, `REGISTER_NUMBER`, `FIRST_NAME`, `LAST_NAME`, `CONTACT`, `EMAIL`) VALUES 129 | (1, 27854, 'DUSTIN', 'DONNELLY', '0896904260', 'ilovedublincoddle@gmail.com'), 130 | (2, 39657, 'GEORGE ', 'WALSH', '0872402093', 'thundercats@yahoo.com'), 131 | (3, 10550, 'MARY', 'FUREY', '0862483815', 'iamlegend@eircom.ie'), 132 | (4, 89386, 'AOIFE', 'DOYLE', '0851278643', 'meow@outlook.com'), 133 | (5, 42893, 'TOM', 'O GARA', '08767672841', 'soundman@Hotmail.com'), 134 | (8, 2147483647, 'BONO', 'VOX', '01234567', 'elevation@vertigo.ie'), 135 | (9, 608488585, 'Michael', 'Walls', '085 2789345', 'm.walls@yahoo.co.uk'), 136 | (10, 9959595, 'Lawrence', 'Mullen', '0879375639', 'arcobat@eircom.ie'), 137 | (11, 5678915, 'george', 'Boole', '08723478', 'george@gmail.com'), 138 | (12, 2147483647, 'Mary', 'Murray', '0895487325', 'murray1975@gmail.com'), 139 | (15, 40, 'JEFF', 'BRIDGES', '089583478', 'thedude@gmail.com'), 140 | (19, 667796969, 'STEPHEN', 'FAHY', '0872854939', 'sstephenpfahy@gmail.com'), 141 | (85, 2147483647, 'Badger', 'O Malley', '757575', 'badger@gmail.com'); 142 | 143 | -- -------------------------------------------------------- 144 | 145 | -- 146 | -- Table structure for table `tradesman` 147 | -- 148 | 149 | CREATE TABLE `tradesman` ( 150 | `TRADESMAN_ID` int(20) NOT NULL, 151 | `FIRST_NAME` varchar(15) NOT NULL, 152 | `LAST_NAME` varchar(20) NOT NULL, 153 | `SKILL` varchar(20) NOT NULL, 154 | `CONTACT` varchar(15) NOT NULL, 155 | `EQUIPMENT_ID` int(10) NOT NULL 156 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 157 | 158 | -- 159 | -- Dumping data for table `tradesman` 160 | -- 161 | 162 | INSERT INTO `tradesman` (`TRADESMAN_ID`, `FIRST_NAME`, `LAST_NAME`, `SKILL`, `CONTACT`, `EQUIPMENT_ID`) VALUES 163 | (1, 'Ronnie', 'Doyle', 'Carpenter', '0878404260', 1), 164 | (2, 'Ray', 'Dunphy', 'Tiler', '0852878541', 3), 165 | (3, 'Henry', 'Drew', 'Plumber', '0894937393', 2), 166 | (4, 'Stella', 'McGregor', 'Electrician', '0861876459', 5), 167 | (5, 'Henry', 'Dunne', 'Plasterer', '0877362952', 2), 168 | (6, 'HORRID', 'HENRY', 'PLUMBING', '0866153512', 13), 169 | (7, 'Stephen', 'Holt', 'Carpenter', '0898362534', 14); 170 | 171 | -- 172 | -- Indexes for dumped tables 173 | -- 174 | 175 | -- 176 | -- Indexes for table `equipment` 177 | -- 178 | ALTER TABLE `equipment` 179 | ADD PRIMARY KEY (`EQUIPMENT_ID`); 180 | 181 | -- 182 | -- Indexes for table `property` 183 | -- 184 | ALTER TABLE `property` 185 | ADD PRIMARY KEY (`POSTCODE`), 186 | ADD KEY `TENANT` (`TENANT_ID`), 187 | ADD KEY `REPAIRS_ID` (`REPAIR_ID`); 188 | 189 | -- 190 | -- Indexes for table `repairs` 191 | -- 192 | ALTER TABLE `repairs` 193 | ADD PRIMARY KEY (`REPAIR_ID`), 194 | ADD KEY `TRADESMAN_ID` (`TRADESMAN_ID`); 195 | 196 | -- 197 | -- Indexes for table `tenant` 198 | -- 199 | ALTER TABLE `tenant` 200 | ADD PRIMARY KEY (`TENANT_ID`); 201 | 202 | -- 203 | -- Indexes for table `tradesman` 204 | -- 205 | ALTER TABLE `tradesman` 206 | ADD PRIMARY KEY (`TRADESMAN_ID`), 207 | ADD KEY `EQUIPMENT` (`EQUIPMENT_ID`); 208 | 209 | -- 210 | -- Constraints for dumped tables 211 | -- 212 | 213 | -- 214 | -- Constraints for table `property` 215 | -- 216 | ALTER TABLE `property` 217 | ADD CONSTRAINT `property_ibfk_1` FOREIGN KEY (`TENANT_ID`) REFERENCES `tenant` (`TENANT_ID`), 218 | ADD CONSTRAINT `property_ibfk_2` FOREIGN KEY (`REPAIR_ID`) REFERENCES `repairs` (`REPAIR_ID`); 219 | 220 | -- 221 | -- Constraints for table `repairs` 222 | -- 223 | ALTER TABLE `repairs` 224 | ADD CONSTRAINT `repairs_ibfk_1` FOREIGN KEY (`TRADESMAN_ID`) REFERENCES `tradesman` (`TRADESMAN_ID`); 225 | 226 | -- 227 | -- Constraints for table `tradesman` 228 | -- 229 | ALTER TABLE `tradesman` 230 | ADD CONSTRAINT `tradesman_ibfk_1` FOREIGN KEY (`EQUIPMENT_ID`) REFERENCES `equipment` (`EQUIPMENT_ID`); 231 | 232 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 233 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 234 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 235 | -------------------------------------------------------------------------------- /tenantspage.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | South Dublin Housing Council Tenant Page 7 | 8 | 11 | 12 | 13 | 14 | 15 | 16 | 19 | 20 | 21 | 29 | 30 | 31 | 32 |
33 |

TENANT DETAILS

34 |

35 | When a tenant sends in a request for repair the tenant is checked against a valid register number. 36 | If they are a registered tenant they may be entitled to a repair to their property. 37 | If they are a registered tenant then enter their details into the database. 38 |

39 | 40 |

41 | Type the tenant details into the following fields to update our online database. 42 |

43 | 44 |
45 | TENANT ID:
46 | 47 |
48 | REGISTER NUMBER:
49 | 50 |
51 | FIRST NAME:
52 | 53 |
54 | LAST NAME:
55 | 56 |
57 | CONTACT:
58 | 59 |
60 | EMAIL:
61 | 62 |
63 | 64 |
65 |
66 | 67 |

68 | If the details you selected do not enter into our database you have probably entered the wrong data type or you have selected a tenant id or register number which exists already in our database. 69 | Each tenant is given a unique tenant id and register number. 70 | If the same numbers are inserted into the database and a record already exists with this number, your information will not be entered into the database. 71 | To check and see existing tenant id's and register number's in our database, click on the 'VIEW EXISTING TENANT DETAILS IN OUR DATABASE' link below. 72 |

73 | 74 | VIEW EXISTING TENANT DETAILS IN OUR DATABASE
75 |
76 | 77 |

78 | If your tenant details are already in the database or you want to add them at again at a later stage please click the link below. 79 | You can add the tenant details at a later stage by clicking on the 'TENANT' link. 80 |

81 | 82 | GO TO NEXT PAGE
83 |
84 | 85 | 86 | 87 |
88 | APARTMENTS IN RATHFARNHAM 89 | APARTMENTS IN THE DOCKS 90 | HOUSES IN DONABATE 91 | HOUSE IN CLONDALKIN 92 | HOUSE IN RANELAGH 93 | HOUSE IN BALLSBRIDGE 94 | APARTMENT IN BEACON SOUTH 95 |
96 | 97 | 98 | 99 | 100 | 114 | 115 | 116 | 117 | 118 | -------------------------------------------------------------------------------- /tradesmanpage.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | South Dublin Housing Council Tradesman Page 7 | 8 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 21 | 22 | 23 | 24 | 32 | 33 | 34 | 35 | 36 |
37 |

TRADESMAN DETAILS

38 | 39 |

It is important that we have the right tradesman with the right skills carrying out our repairs to our properties. 40 | This insures that the repairs are done to the highest standard possible. 41 | Please select the tradesman and equipment you need to carry out your repairs. 42 |

43 | 44 |

45 | Type the tradesman details into the following fields to search our online database. 46 |

47 | 48 |
49 | TRADESMAN ID:
50 | 51 |
52 | FIRST NAME:
53 | 54 |
55 | LAST NAME:
56 | 57 |
58 | SKILL:
59 | 60 |
61 | CONTACT:
62 | 63 |
64 | EQUIPMENT ID:
65 | 66 |
67 | 68 |
69 | 70 |

71 | If the details you selected do not enter into our database you have probably entered the wrong data type or you have selected a tradesman id which exists already in our database. 72 | Each tradesman is given a unique tradesman id. 73 | If the same tradesman id is inserted into the database and a record already exists with this tradesman id, your information will not be entered into the database. 74 | To check and see existing tradesman id's in our database, click on the 'VIEW EXISTING TRADESMAN DETAILS IN OUR DATABASE' link below. 75 |

76 | 77 | VIEW EXISTING TRADESMAN DETAILS IN OUR DATABASE 78 |
79 | 80 |

81 | Your details you selected may not have worked also because you have selected a equipment id which is not in our database. 82 | To check and see if your equipment id is in our database click on the 'VIEW EXISTING EQUIPMENT DETAILS IN OUR DATABASE' link. 83 |

84 | 85 | VIEW EXISTING EQUIPMENT DETAILS IN OUR DATABASE 86 |
87 | 88 |

89 | If your tradesman details are already in the database or you want to add them at again at a later stage please click the link below. 90 | You can add the tradesman details at a later stage by clicking on the 'TRADESMAN' link. 91 |

92 | 93 | GO TO NEXT PAGE
94 |
95 | 96 | 97 | 98 | 99 | 100 |
101 | APARTMENTS IN RATHFARNHAM 102 | APARTMENTS IN THE DOCKS 103 | HOUSES IN DONABATE 104 | HOUSE IN CLONDALKIN 105 | HOUSE IN RANELAGH 106 | HOUSE IN BALLSBRIDGE 107 | APARTMENT IN BEACON SOUTH 108 |
109 | 110 | 111 | 112 | 113 | 128 | 129 | 130 | 131 | 132 | --------------------------------------------------------------------------------