From 1a7fa60f6cb2ee26843ca19e37bb4ff44104ad55 Mon Sep 17 00:00:00 2001 From: Bulletin Date: Thu, 29 Dec 2016 16:42:32 -0500 Subject: Added existing progress --- dash/css/dash.css | 160 +++++++++++++++++++++++++++++++++++++++++++++++++ dash/dash_common.php | 8 +++ dash/dash_employee.php | 28 +++++++++ dash/dash_employer.php | 9 +++ dash/footer.php | 10 ++++ dash/header.php | 51 ++++++++++++++++ dash/headless.php | 29 +++++++++ dash/img/location.svg | 38 ++++++++++++ dash/img/x_hover.png | Bin 0 -> 2882 bytes dash/img/x_hover2.png | Bin 0 -> 2735 bytes dash/img/x_raw.png | Bin 0 -> 2658 bytes dash/index.php | 18 ++++++ dash/js/dash.js | 16 +++++ dash/nav.php | 13 ++++ 14 files changed, 380 insertions(+) create mode 100644 dash/css/dash.css create mode 100644 dash/dash_common.php create mode 100644 dash/dash_employee.php create mode 100644 dash/dash_employer.php create mode 100644 dash/footer.php create mode 100644 dash/header.php create mode 100644 dash/headless.php create mode 100644 dash/img/location.svg create mode 100644 dash/img/x_hover.png create mode 100644 dash/img/x_hover2.png create mode 100644 dash/img/x_raw.png create mode 100644 dash/index.php create mode 100644 dash/js/dash.js create mode 100644 dash/nav.php (limited to 'dash') diff --git a/dash/css/dash.css b/dash/css/dash.css new file mode 100644 index 0000000..d46f352 --- /dev/null +++ b/dash/css/dash.css @@ -0,0 +1,160 @@ +@font-face { + font-family: 'Myriad Pro'; + src: url('../../ttf/myriad.ttf'); +} + +body { + margin: 0; + padding: 0; + background-image: linear-gradient(135deg, rgba(0,0,0,0.7) 10%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0)), + url('../../img/3.jpg'); + background-size: cover; + background-repeat: no-repeat; + background-attachment: fixed; +} +#nav { + height: 60px; + padding-top: 8px; + width: 100%; + position: absolute; + top: 0px; + left: 0px; + box-shadow: 0px 0px 5px rgba(0,0,0,0.75); + background-color: #ffffff; +} +#navlogo { + background-image: url('../../img/5.png'); + background-size: contain; + background-repeat: no-repeat; + margin-left: 8%; + width: 200px; + height: 48px; + float: left; +} +#navlinks { + margin-right: 8%; + float: right; + margin-left: 2em; + display: flex; + flex-direction: row; + flex-wrap: nowrap; + justify-content: flex-end; +} +#navlinks #sep { + display: inline-block; + width: 0.5px; + height: 52px; + border-radius: 5px; + margin-right: 1em; + background-color: #eeeeee; +} +#navlinks a { + font-family: 'Myriad Pro'; + font-size: 18px; + font-weight: normal; + text-decoration: none; + color: #000000; + padding: 17px 0px; + margin: 0px 0.5em; +} +#navlinks a:hover { + color: #fb4d00; + cursor: pointer; +} +.navblock { + padding: 15px 0px; + position: relative; + z-index: 1; +} +.subnav { + display: none; + background-color: #ffffff; + margin: 0; + padding: 0 0 0 2em; + list-style: none; +} +.navblock:hover .subnav { + display: block; +} +#content { + position: absolute; + top: 68px; + left: 0px; + right: 0px; + width: 100%; + margin: auto; + height: calc(100% - 88px); + border-radius: 2px; + font-family: 'Myriad Pro'; + overflow-x: hidden; + overflow-y: auto; +} +#footer { + position: absolute; + bottom: 0px; + left: 0px; + width: 100%; + height: 20px; + display: flex; + flex-direction: row; + flex-wrap: nowrap; + justify-content: space-around; + font-family: 'Myriad Pro'; +} +#footer p { + text-align: center; + font-size: 10pt; + margin: 0.33em 0; +} +.job p, .job h1 { + margin: 0; + text-align: center; +} +.job { + margin: 2em auto 1em auto; + width: 512px; + padding: 1em; + background-color: #ffffff; + box-shadow: 0px 0px 5px rgba(0,0,0,0.75); + border-radius: 3px; +} +.jobtitle a { + color: #000000; + text-decoration: none; + font-weight: bold; +} +.jobblurb { + padding: 1em; + margin: 1em 1em 0 1em !important; + background-color: #eeeeee; + border-radius: 3px; +} +.jobblurb a { + color: #000000; + text-decoration: none; + font-weight: bold; +} +.joblocation::before { + content: ''; + display: inline-block; + width: 12px; + height: 12px; + background-image: url('../img/location.svg'); + background-size: contain; + background-position: center center; + background-repeat: no-repeat; + margin-right: 3px; +} +.jobxbtn { + display: block; + width: 16px; + height: 16px; + float: right; + background-image: url('../img/x_hover2.png'); + background-size: contain; + background-repeat: no-repeat; +} +.jobxbtn:hover { + background-image: url('../img/x_hover.png'); + cursor: pointer; +} diff --git a/dash/dash_common.php b/dash/dash_common.php new file mode 100644 index 0000000..b87cd6d --- /dev/null +++ b/dash/dash_common.php @@ -0,0 +1,8 @@ + diff --git a/dash/dash_employee.php b/dash/dash_employee.php new file mode 100644 index 0000000..476ff1f --- /dev/null +++ b/dash/dash_employee.php @@ -0,0 +1,28 @@ +query('SELECT ads.*, categories.cat_name, SUM(ratings.stars) / COUNT(ratings.stars) AS rating FROM ads LEFT JOIN categories ON ads.cat = categories.id LEFT JOIN ratings ON ads.uid = ratings.rated GROUP BY ads.id LIMIT ' . 10*($page-1) . ', 10') or fatal($db->error); +while ($row = $result->fetch_assoc()) { +?> +
+ +

+

+Employer Not Rated

'.PHP_EOL; + else + echo '

'.$row['rating'].' Star Employer

'.PHP_EOL; +?> +

Pays $

+

[...]

+

+
+free(); +require('footer.php'); +?> diff --git a/dash/dash_employer.php b/dash/dash_employer.php new file mode 100644 index 0000000..28c5ed1 --- /dev/null +++ b/dash/dash_employer.php @@ -0,0 +1,9 @@ + +

+ diff --git a/dash/footer.php b/dash/footer.php new file mode 100644 index 0000000..963d525 --- /dev/null +++ b/dash/footer.php @@ -0,0 +1,10 @@ +close(); +?> + + + + diff --git a/dash/header.php b/dash/header.php new file mode 100644 index 0000000..d854074 --- /dev/null +++ b/dash/header.php @@ -0,0 +1,51 @@ + + + + + <?=htmlentities($title); ?> + + + + + + + + + + + + +
diff --git a/dash/headless.php b/dash/headless.php new file mode 100644 index 0000000..16693cd --- /dev/null +++ b/dash/headless.php @@ -0,0 +1,29 @@ +query('SELECT ads.*, categories.cat_name, SUM(ratings.stars) / COUNT(ratings.stars) AS rating FROM ads LEFT JOIN categories ON ads.cat = categories.id LEFT JOIN ratings ON ads.uid = ratings.rated GROUP BY ads.id LIMIT '.($clicks+10).', 1') or die(); +if ($result->num_rows) { + $row = $result->fetch_assoc(); +?> +
+ +

+

+Employer Not Rated

'.PHP_EOL; + else + echo '

'.$row['rating'].' Star Employer

'.PHP_EOL; +?> +

Pays $

+

[...]

+

+ +
+free(); +$db->close(); +?> diff --git a/dash/img/location.svg b/dash/img/location.svg new file mode 100644 index 0000000..76c8f49 --- /dev/null +++ b/dash/img/location.svg @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/dash/img/x_hover.png b/dash/img/x_hover.png new file mode 100644 index 0000000..6ad1fde Binary files /dev/null and b/dash/img/x_hover.png differ diff --git a/dash/img/x_hover2.png b/dash/img/x_hover2.png new file mode 100644 index 0000000..79a9121 Binary files /dev/null and b/dash/img/x_hover2.png differ diff --git a/dash/img/x_raw.png b/dash/img/x_raw.png new file mode 100644 index 0000000..e0dfed7 Binary files /dev/null and b/dash/img/x_raw.png differ diff --git a/dash/index.php b/dash/index.php new file mode 100644 index 0000000..77e58dc --- /dev/null +++ b/dash/index.php @@ -0,0 +1,18 @@ + diff --git a/dash/js/dash.js b/dash/js/dash.js new file mode 100644 index 0000000..39e9882 --- /dev/null +++ b/dash/js/dash.js @@ -0,0 +1,16 @@ +var xclicks = 0, a; +function xbtn (e) { + e.preventDefault(); + $(this).parents().filter('.job').hide(250); + $.get('headless.php?clicks='+xclicks, function (data) { + var $newjob = $($.parseHTML(data)); + window.a = $newjob; + $newjob.find('.jobxbtn').click(xbtn); + $newjob.appendTo($('#content')); + }); + xclicks++; +} + +$(function() { + $('.jobxbtn').click(xbtn); +}); diff --git a/dash/nav.php b/dash/nav.php new file mode 100644 index 0000000..9baf7ad --- /dev/null +++ b/dash/nav.php @@ -0,0 +1,13 @@ + -- cgit v1.2.3