Skip to content

Commit b8d9adf

Browse files
authored
Merge pull request #3 from cmu-delphi/crowdcast/202014
Changes for week 202014
2 parents 08cd493 + 75a510a commit b8d9adf

File tree

9 files changed

+1502
-1129
lines changed

9 files changed

+1502
-1129
lines changed

site/common/database.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ function getRegions($dbh, &$output, $userID) {
337337
if(getEpiweekInfo($dbh, $temp) !== 1) {
338338
return getResult($temp);
339339
}
340-
$result = $dbh->query("SELECT r.`id`, r.`name`, r.`states`, r.`population`, CASE WHEN s.`user_id` IS NULL THEN FALSE ELSE TRUE END `completed` FROM ec_fluv_regions r LEFT JOIN ec_fluv_submissions s ON s.`user_id` = {$userID} AND s.`region_id` = r.`id` AND s.`epiweek_now` = {$temp['epiweek']['round_epiweek']} ORDER BY r.`id` ASC");
340+
$result = $dbh->query("SELECT r.`id`, r.`fluview_name`, r.`name`, r.`states`, r.`population`, CASE WHEN s.`user_id` IS NULL THEN FALSE ELSE TRUE END `completed` FROM ec_fluv_regions r LEFT JOIN ec_fluv_submissions s ON s.`user_id` = {$userID} AND s.`region_id` = r.`id` AND s.`epiweek_now` = {$temp['epiweek']['round_epiweek']} ORDER BY r.`id` ASC");
341341
$regions = array();
342342
while($row = $result->fetch_assoc()) {
343343
if ($row['name'] == "ny_minus_jfk") {
@@ -347,7 +347,8 @@ function getRegions($dbh, &$output, $userID) {
347347
}
348348

349349
$region = array(
350-
'id' => intval($row['id']),
350+
'id' => intval($row['id']),
351+
'fluview_name' => $row['fluview_name'],
351352
'name' => $region_name,
352353
'states' => $row['states'],
353354
'population' => intval($row['population']),

site/common/header.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
<span class="effect_fluv">&lt;COVID-19 Edition&gt;</span>
5353
</a>
5454
</div>
55-
<div class="box_subtitle">Epidemiological Forecasting by <span class="effect_delphi"><a class="delphi" target="_blank" rel="noopener" href="https://delphi.midas.cs.cmu.edu/">DELPHI</a></span></div>
55+
<div class="box_subtitle">Epidemiological Forecasting by <span class="effect_delphi"><a class="delphi" target="_blank" rel="noopener" href="https://delphi.cmu.edu/">DELPHI</a></span></div>
5656
</div>
5757
<?php
5858
if(!isset($skipLogin) || !$skipLogin) {
@@ -96,7 +96,7 @@
9696
createDivider('|');
9797
}
9898
print('<span class="effect_delphi">');
99-
createLink('DELPHI', 'https://delphi.midas.cs.cmu.edu/', true, 'delphi');
99+
createLink('DELPHI', 'https://delphi.cmu.edu/', true, 'delphi');
100100
print('</span>');
101101
?>
102102
</div>

site/css/style.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,11 @@
351351
padding-top: 10px;
352352
float: right;
353353
}
354+
355+
div.sidebar_entry i.fa {margin-right:5px}
356+
div.sidebar_region {margin-left:15px}
357+
div.sidebar_region i.fa {margin-right:5px}
358+
354359
div.box_scroll_test {
355360
width: 100%;
356361
height: 100%;

0 commit comments

Comments
 (0)