LH : Moved images file into db folder
|
@ -10,7 +10,8 @@ DROP TABLE owners IF EXISTS;
|
||||||
CREATE TABLE vets (
|
CREATE TABLE vets (
|
||||||
id INTEGER IDENTITY PRIMARY KEY,
|
id INTEGER IDENTITY PRIMARY KEY,
|
||||||
first_name VARCHAR(30),
|
first_name VARCHAR(30),
|
||||||
last_name VARCHAR(30)
|
last_name VARCHAR(30),
|
||||||
|
profile_pic BLOB
|
||||||
);
|
);
|
||||||
CREATE INDEX vets_last_name ON vets (last_name);
|
CREATE INDEX vets_last_name ON vets (last_name);
|
||||||
|
|
||||||
|
@ -39,7 +40,8 @@ CREATE TABLE owners (
|
||||||
last_name VARCHAR(30),
|
last_name VARCHAR(30),
|
||||||
address VARCHAR(255),
|
address VARCHAR(255),
|
||||||
city VARCHAR(80),
|
city VARCHAR(80),
|
||||||
telephone VARCHAR(20)
|
telephone VARCHAR(20),
|
||||||
|
profile_pic BLOB
|
||||||
);
|
);
|
||||||
CREATE INDEX owners_last_name ON owners (last_name);
|
CREATE INDEX owners_last_name ON owners (last_name);
|
||||||
|
|
||||||
|
@ -48,7 +50,8 @@ CREATE TABLE pets (
|
||||||
name VARCHAR(30),
|
name VARCHAR(30),
|
||||||
birth_date DATE,
|
birth_date DATE,
|
||||||
type_id INTEGER NOT NULL,
|
type_id INTEGER NOT NULL,
|
||||||
owner_id INTEGER NOT NULL
|
owner_id INTEGER NOT NULL,
|
||||||
|
profile_pic BLOB
|
||||||
);
|
);
|
||||||
ALTER TABLE pets ADD CONSTRAINT fk_pets_owners FOREIGN KEY (owner_id) REFERENCES owners (id);
|
ALTER TABLE pets ADD CONSTRAINT fk_pets_owners FOREIGN KEY (owner_id) REFERENCES owners (id);
|
||||||
ALTER TABLE pets ADD CONSTRAINT fk_pets_types FOREIGN KEY (type_id) REFERENCES types (id);
|
ALTER TABLE pets ADD CONSTRAINT fk_pets_types FOREIGN KEY (type_id) REFERENCES types (id);
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
INSERT INTO vets VALUES (1, 'James', 'Carter');
|
INSERT INTO vets VALUES (1, 'James', 'Carter', NULL);
|
||||||
INSERT INTO vets VALUES (2, 'Helen', 'Leary');
|
INSERT INTO vets VALUES (2, 'Helen', 'Leary', NULL);
|
||||||
INSERT INTO vets VALUES (3, 'Linda', 'Douglas');
|
INSERT INTO vets VALUES (3, 'Linda', 'Douglas', NULL);
|
||||||
INSERT INTO vets VALUES (4, 'Rafael', 'Ortega');
|
INSERT INTO vets VALUES (4, 'Rafael', 'Ortega', NULL);
|
||||||
INSERT INTO vets VALUES (5, 'Henry', 'Stevens');
|
INSERT INTO vets VALUES (5, 'Henry', 'Stevens', NULL);
|
||||||
INSERT INTO vets VALUES (6, 'Sharon', 'Jenkins');
|
INSERT INTO vets VALUES (6, 'Sharon', 'Jenkins', NULL);
|
||||||
|
|
||||||
INSERT INTO specialties VALUES (1, 'radiology');
|
INSERT INTO specialties VALUES (1, 'radiology');
|
||||||
INSERT INTO specialties VALUES (2, 'surgery');
|
INSERT INTO specialties VALUES (2, 'surgery');
|
||||||
|
@ -22,30 +22,30 @@ INSERT INTO types VALUES (4, 'snake');
|
||||||
INSERT INTO types VALUES (5, 'bird');
|
INSERT INTO types VALUES (5, 'bird');
|
||||||
INSERT INTO types VALUES (6, 'hamster');
|
INSERT INTO types VALUES (6, 'hamster');
|
||||||
|
|
||||||
INSERT INTO owners VALUES (1, 'George', 'Franklin', '110 W. Liberty St.', 'Madison', '6085551023');
|
INSERT INTO owners VALUES (1, 'George', 'Franklin', '110 W. Liberty St.', 'Madison', '6085551023', NULL);
|
||||||
INSERT INTO owners VALUES (2, 'Betty', 'Davis', '638 Cardinal Ave.', 'Sun Prairie', '6085551749');
|
INSERT INTO owners VALUES (2, 'Betty', 'Davis', '638 Cardinal Ave.', 'Sun Prairie', '6085551749', NULL);
|
||||||
INSERT INTO owners VALUES (3, 'Eduardo', 'Rodriquez', '2693 Commerce St.', 'McFarland', '6085558763');
|
INSERT INTO owners VALUES (3, 'Eduardo', 'Rodriquez', '2693 Commerce St.', 'McFarland', '6085558763', NULL);
|
||||||
INSERT INTO owners VALUES (4, 'Harold', 'Davis', '563 Friendly St.', 'Windsor', '6085553198');
|
INSERT INTO owners VALUES (4, 'Harold', 'Davis', '563 Friendly St.', 'Windsor', '6085553198', NULL);
|
||||||
INSERT INTO owners VALUES (5, 'Peter', 'McTavish', '2387 S. Fair Way', 'Madison', '6085552765');
|
INSERT INTO owners VALUES (5, 'Peter', 'McTavish', '2387 S. Fair Way', 'Madison', '6085552765', NULL);
|
||||||
INSERT INTO owners VALUES (6, 'Jean', 'Coleman', '105 N. Lake St.', 'Monona', '6085552654');
|
INSERT INTO owners VALUES (6, 'Jean', 'Coleman', '105 N. Lake St.', 'Monona', '6085552654', NULL);
|
||||||
INSERT INTO owners VALUES (7, 'Jeff', 'Black', '1450 Oak Blvd.', 'Monona', '6085555387');
|
INSERT INTO owners VALUES (7, 'Jeff', 'Black', '1450 Oak Blvd.', 'Monona', '6085555387', NULL);
|
||||||
INSERT INTO owners VALUES (8, 'Maria', 'Escobito', '345 Maple St.', 'Madison', '6085557683');
|
INSERT INTO owners VALUES (8, 'Maria', 'Escobito', '345 Maple St.', 'Madison', '6085557683', NULL);
|
||||||
INSERT INTO owners VALUES (9, 'David', 'Schroeder', '2749 Blackhawk Trail', 'Madison', '6085559435');
|
INSERT INTO owners VALUES (9, 'David', 'Schroeder', '2749 Blackhawk Trail', 'Madison', '6085559435', NULL);
|
||||||
INSERT INTO owners VALUES (10, 'Carlos', 'Estaban', '2335 Independence La.', 'Waunakee', '6085555487');
|
INSERT INTO owners VALUES (10, 'Carlos', 'Estaban', '2335 Independence La.', 'Waunakee', '6085555487', NULL);
|
||||||
|
|
||||||
INSERT INTO pets VALUES (1, 'Leo', '2010-09-07', 1, 1);
|
INSERT INTO pets VALUES (1, 'Leo', '2010-09-07', 1, 1, NULL);
|
||||||
INSERT INTO pets VALUES (2, 'Basil', '2012-08-06', 6, 2);
|
INSERT INTO pets VALUES (2, 'Basil', '2012-08-06', 6, 2, NULL);
|
||||||
INSERT INTO pets VALUES (3, 'Rosy', '2011-04-17', 2, 3);
|
INSERT INTO pets VALUES (3, 'Rosy', '2011-04-17', 2, 3, NULL);
|
||||||
INSERT INTO pets VALUES (4, 'Jewel', '2010-03-07', 2, 3);
|
INSERT INTO pets VALUES (4, 'Jewel', '2010-03-07', 2, 3, NULL);
|
||||||
INSERT INTO pets VALUES (5, 'Iggy', '2010-11-30', 3, 4);
|
INSERT INTO pets VALUES (5, 'Iggy', '2010-11-30', 3, 4, NULL);
|
||||||
INSERT INTO pets VALUES (6, 'George', '2010-01-20', 4, 5);
|
INSERT INTO pets VALUES (6, 'George', '2010-01-20', 4, 5, NULL);
|
||||||
INSERT INTO pets VALUES (7, 'Samantha', '2012-09-04', 1, 6);
|
INSERT INTO pets VALUES (7, 'Samantha', '2012-09-04', 1, 6, NULL);
|
||||||
INSERT INTO pets VALUES (8, 'Max', '2012-09-04', 1, 6);
|
INSERT INTO pets VALUES (8, 'Max', '2012-09-04', 1, 6, NULL);
|
||||||
INSERT INTO pets VALUES (9, 'Lucky', '2011-08-06', 5, 7);
|
INSERT INTO pets VALUES (9, 'Lucky', '2011-08-06', 5, 7, NULL);
|
||||||
INSERT INTO pets VALUES (10, 'Mulligan', '2007-02-24', 2, 8);
|
INSERT INTO pets VALUES (10, 'Mulligan', '2007-02-24', 2, 8, NULL);
|
||||||
INSERT INTO pets VALUES (11, 'Freddy', '2010-03-09', 5, 9);
|
INSERT INTO pets VALUES (11, 'Freddy', '2010-03-09', 5, 9, NULL);
|
||||||
INSERT INTO pets VALUES (12, 'Lucky', '2010-06-24', 2, 10);
|
INSERT INTO pets VALUES (12, 'Lucky', '2010-06-24', 2, 10, NULL);
|
||||||
INSERT INTO pets VALUES (13, 'Sly', '2012-06-08', 1, 10);
|
INSERT INTO pets VALUES (13, 'Sly', '2012-06-08', 1, 10, NULL);
|
||||||
|
|
||||||
INSERT INTO visits VALUES (1, 7, '2013-01-01', 'rabies shot');
|
INSERT INTO visits VALUES (1, 7, '2013-01-01', 'rabies shot');
|
||||||
INSERT INTO visits VALUES (2, 8, '2013-01-02', 'rabies shot');
|
INSERT INTO visits VALUES (2, 8, '2013-01-02', 'rabies shot');
|
||||||
|
|
Before Width: | Height: | Size: 82 KiB After Width: | Height: | Size: 82 KiB |
Before Width: | Height: | Size: 63 KiB After Width: | Height: | Size: 63 KiB |
Before Width: | Height: | Size: 73 KiB After Width: | Height: | Size: 73 KiB |
Before Width: | Height: | Size: 77 KiB After Width: | Height: | Size: 77 KiB |
Before Width: | Height: | Size: 60 KiB After Width: | Height: | Size: 60 KiB |
Before Width: | Height: | Size: 56 KiB After Width: | Height: | Size: 56 KiB |
Before Width: | Height: | Size: 73 KiB After Width: | Height: | Size: 73 KiB |
Before Width: | Height: | Size: 41 KiB After Width: | Height: | Size: 41 KiB |
|
@ -43,13 +43,6 @@
|
||||||
</mvc:message-converters>
|
</mvc:message-converters>
|
||||||
</mvc:annotation-driven>
|
</mvc:annotation-driven>
|
||||||
|
|
||||||
<!-- all resources inside folder src/main/webapp/resources are mapped so they can be refered to inside JSP files
|
|
||||||
(see header.jsp for more details) -->
|
|
||||||
<mvc:resources mapping="/resources/**" location="/resources/"/>
|
|
||||||
|
|
||||||
<!-- uses WebJars so Javascript and CSS libs can be declared as Maven dependencies (Bootstrap, jQuery...) -->
|
|
||||||
<mvc:resources mapping="/webjars/**" location="classpath:/META-INF/resources/webjars/"/>
|
|
||||||
|
|
||||||
<mvc:view-controller path="/" view-name="index" />
|
<mvc:view-controller path="/" view-name="index" />
|
||||||
|
|
||||||
<!-- serve static resources (*.html, ...) from src/main/webapp/
|
<!-- serve static resources (*.html, ...) from src/main/webapp/
|
||||||
|
|
|
@ -10,65 +10,16 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-6">
|
<div data-ng-repeat="vet in vets | limitTo : 12" class="col-md-3">
|
||||||
<div class="thumbnail">
|
|
||||||
<img src="http://placehold.it/600x345" alt="Generic placeholder image">
|
|
||||||
<div class="caption">
|
|
||||||
<h3>Thumbnail label</h3>
|
|
||||||
<p>Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts. </p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-3">
|
|
||||||
<div class="thumbnail">
|
<div class="thumbnail">
|
||||||
<img src="http://placehold.it/600x600" alt="Generic placeholder image">
|
<img src="http://placehold.it/600x600" alt="Generic placeholder image">
|
||||||
<div class="caption">
|
<div class="caption">
|
||||||
<h3>Thumbnail label</h3>
|
<h3 ng-bind="'Dr. ' + vet.firstName + ' ' + vet.lastName">Veterinarian Name</h3>
|
||||||
<p>Even the all-powerful Pointing has no control about the blind texts it is an almost unorthographic life One day however a small line of blind text by the name of Lorem Ipsum.</p>
|
<p>Even the all-powerful Pointing has no control about the blind texts it is an almost unorthographic life One day however a small line of blind text by the name of Lorem Ipsum.</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-3">
|
|
||||||
<div class="thumbnail">
|
|
||||||
<img src="http://placehold.it/600x600" alt="Generic placeholder image">
|
|
||||||
<div class="caption">
|
|
||||||
<h3>Thumbnail label</h3>
|
|
||||||
<p>Mountains, she had a last view back on the skyline of her hometown Bookmarksgrove, the headline of Alphabet Village and the subline of her own road, the Line Lane.</p>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!-- /row -->
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-3">
|
|
||||||
<div class="thumbnail">
|
|
||||||
<img src="http://placehold.it/600x600" alt="Generic placeholder image">
|
|
||||||
<div class="caption">
|
|
||||||
<h3>Thumbnail label</h3>
|
|
||||||
<p>Even the all-powerful Pointing has no control about the blind texts it is an almost unorthographic life One day however a small line of blind text by the name of Lorem Ipsum.</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-3">
|
|
||||||
<div class="thumbnail">
|
|
||||||
<img src="http://placehold.it/600x600" alt="Generic placeholder image">
|
|
||||||
<div class="caption">
|
|
||||||
<h3>Thumbnail label</h3>
|
|
||||||
<p>Mountains, she had a last view back on the skyline of her hometown Bookmarksgrove, the headline of Alphabet Village and the subline of her own road, the Line Lane.</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-6">
|
|
||||||
<div class="thumbnail">
|
|
||||||
<img src="http://placehold.it/600x345" alt="Generic placeholder image">
|
|
||||||
<div class="caption">
|
|
||||||
<h3>Thumbnail label</h3>
|
|
||||||
<p>The Big Oxmox advised her not to do so, because there were thousands of bad Commas, wild Question Marks and devious Semikoli.</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!-- /row -->
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-4 col-md-offset-4">
|
<div class="col-md-4 col-md-offset-4">
|
||||||
<p><a class="btn btn-primary btn-lg btn-block" href="/veterinarians">View More »</a></p>
|
<p><a class="btn btn-primary btn-lg btn-block" href="/veterinarians">View More »</a></p>
|
||||||
|
|