Skip to content

Well dev #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 50 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
f804dfc
v2 ffq logic
irvins Feb 6, 2018
5728e93
showing all reports for all arms on the report page
irvins Feb 6, 2018
1c43ef0
update IRB, 2nd year logic for FFQ, and reports, section text under …
irvins Feb 8, 2018
e1f56fe
make name capital case in upper right corner dropdown
irvins Feb 8, 2018
eba9068
wIP new report page stuff and home page side nav.
irvins Feb 15, 2018
079bfc4
WIP well score scaling
irvins Feb 20, 2018
27a2ca4
removed an error dealing with trailing spaces
Feb 20, 2018
88bde30
Merge branch 'well-dev' of https://github.com/susom/redcap-API-portal…
Feb 20, 2018
cbd547e
long score calc logic
irvins Feb 20, 2018
1a6e8a9
fixed a bug regarding smoking # and duration for min data
Feb 20, 2018
13dc489
seperateing reports by year.
irvins Feb 21, 2018
c971f1f
Added radar chart
Feb 21, 2018
3899ca0
Merge branch 'well-dev' of https://github.com/susom/redcap-API-portal…
Feb 21, 2018
1a085ba
updated long score calculation
irvins Feb 21, 2018
1540da3
changed folder location
Feb 21, 2018
5490c79
changed filepath to correct results
Feb 21, 2018
94536f3
fixed scoring function for long score
irvins Feb 22, 2018
5995bdc
removed extra print _rr from scoringfunctions php
irvins Feb 22, 2018
b503200
removed printrr
Feb 22, 2018
0f92e21
WIP reports page + RADAR
irvins Feb 24, 2018
4cdd64d
woops fixed some variable names
irvins Feb 24, 2018
9845887
moving copy of PDF file into well2
irvins Feb 24, 2018
36a2bf9
cleaning up scoring_functions
irvins Feb 25, 2018
2bba95b
Merge branch 'well-dev' of https://github.com/susom/redcap-API-portal…
Feb 26, 2018
992a056
reports
Feb 26, 2018
193ba60
removed index.html
Feb 26, 2018
59937d1
reports page nav fix
irvins Feb 26, 2018
5d4ec56
passing in dynamic csv file to the angular app. angular sucks
irvins Feb 27, 2018
424f745
pushing folder to repo
irvins Feb 27, 2018
018a9f3
local hosting angular d3 libraries
irvins Feb 27, 2018
74e7682
updating js links
irvins Feb 27, 2018
1664ce3
small tweaks to report page / radar chart
irvins Feb 27, 2018
6d84159
well score = 0 messaging, alert message delay until js loaded, and m…
irvins Mar 2, 2018
48aae50
Created description tags
Mar 5, 2018
291a71d
updated domain mapping
Mar 5, 2018
2d3741a
initial base resources page
Mar 5, 2018
969221c
merge
Mar 5, 2018
65e256d
updated for resource page
Mar 5, 2018
0cdcc82
updated descriptions to fix , error
Mar 5, 2018
ee69f47
substituted , for ; in desc_
Mar 5, 2018
42c0378
last update to this file, display error
Mar 5, 2018
e15a032
some radar chart updates /text "
irvins Mar 5, 2018
68c39b1
Merge branch 'well-dev' of github.com:susom/redcap-API-portal into we…
irvins Mar 5, 2018
dd746ea
short scale completed survey in nav wasnt showing, now it is
irvins Mar 5, 2018
b80df9e
at least show the main core questions if not all 11 of them
irvins Mar 5, 2018
9bbfb9e
on core survey completion, show all 11 surveys worth of compelted q …
irvins Mar 5, 2018
a9c7f21
changing survey nav wording
irvins Mar 5, 2018
7eaded1
Created Resources page, default view
Mar 6, 2018
482450e
Merge branch 'well-dev' of https://github.com/susom/redcap-API-portal…
Mar 6, 2018
f97087d
replaced well2 within the wellV1 project with a sub module, in the e…
irvins Mar 6, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ well2/models/my_settings.php
.DS_Store
.svn
test.php

PDF/certs/*
well2/RadarUserCSV/*
well2/PDF/certs/*


3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "well2"]
path = well2
url = https://github.com/susom/WELL_PORTAL_V2.git
Empty file modified LICENSE
100644 → 100755
Empty file.
10 changes: 7 additions & 3 deletions PDF/generatePDFcertificate.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,14 @@

$pdf->SetXY(($_w/2)-($_wtext/2), ($_h/2));
$pdf->Write(0, $txt);
$filename = array();
$userfolder = $loggedInUser->id . "_" . $loggedInUser->firstname . "_" . $loggedInUser->lastname;
if (!file_exists("../PDF/certs/$userfolder")) {
mkdir("../PDF/certs/$userfolder", 0777, true);
}
$filename = array();
$filename[] = $loggedInUser->id;
$filename[] = $loggedInUser->firstname;
$filename[] = $loggedInUser->lastname;
$filename[] = Date("Y");
$filename ="../PDF/certs/".implode("_",$filename).".pdf";
$filename[] = $arm_year;
$filename ="../PDF/certs/$userfolder/".implode("_",$filename).".pdf";
$pdf->Output($filename,'F');
Empty file modified README.md
100644 → 100755
Empty file.
119 changes: 119 additions & 0 deletions Radarstyle.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@


body {
font-family: "Open Sans", sans-serif;
font-size: 12px;
font-weight: 400;
padding-top: 10px;
padding-bottom: 100px;
}
html {
overflow-y: scroll;
}
h1 {
color: steelblue;
font-weight: 800;
font-size: 1.7em;
}
h2 {
color: steelblue;
font-size: 1.3em;
padding-bottom: 10px;
}
h3 {
color: gray;
font-size: 1.2em;
padding-bottom: 10px;
}
footer a,
footer a:hover, footer a:visited {
color: #D2A000;
}
.text-small {
font-size: 12px;
font-style: italic;
}
footer {
color: white;
padding-top: 5px;
border-top: 1px solid gray;
font-size: 12px;
position: fixed;
left: 0;
bottom: 0;
height: 50px;
width: 100%;
background: black;
text-align: center;
}
pre {
height: 200px;
font-size: 9px;
overflow-y: scroll;
}
.form-control-inline {
display: inline;
width: 40px;
margin-right: 5px;
}
.visualization {
}
.configuration {
position:relative;
font-size: 0.8em;
width: 217px;
border: 1px solid #ddd;
padding-left: 20px;
margin-bottom: 20px;
left:80px;
}
.checkbox {
margin-left: 20px;
}
/* Customizable classes used in D3 vis, uncomment to customize
.svg-vis {
background-color: gray;
opacity: 0.5;
}
.verticesTooltip {
position: absolute;
color: red;
font-size: 12px;
width: 100px;
height: auto;
padding: 5px;
border: 2px solid gray;
border-radius: 5px;
pointer-events: none;
opacity: 0;
background: #f4f4f;
}
.level-lines {
stroke: red;
stroke-width: 1px;
}
.level-labels {
fill: red;
font-size: 12px;
}
.axis-lines {
stroke: blue;
stroke-width: 2px;
}
.axis-labels {
fill: blue;
font-size: 12px;
}
.polygon-vertices {
fill-opacity: 0.6;
}
.polygon-areas {
fill-opacity: 0.6;
}
.legend-tiles {
fill-opacity: 0.3;
}
.legend-labels {
font-size: 15px;
}
*/
Empty file modified account_setup.php
100644 → 100755
Empty file.
Empty file modified admin_login.php
100644 → 100755
Empty file.
Empty file modified admin_login_tw.php
100644 → 100755
Empty file.
Empty file modified cert_of_completion.pdf
100644 → 100755
Empty file.
Empty file modified consent.php
100644 → 100755
Empty file.
Empty file modified forgot_password.php
100644 → 100755
Empty file.
5 changes: 2 additions & 3 deletions index.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
include("models/inc/language_select.php");
?>
<div class="well">
<p class="login_reg">test
<p class="login_reg">
<a href="login.php<?php echo $lang_req ?>" class="btn btn-success"><?php echo lang("ACCOUNT_LOGIN_PAGE") ?></a>
<a href="register.php<?php echo $lang_req ?>" class="btn btn-success"><?php echo lang("ACCOUNT_REGISTER_PAGE") ?></a>
</p>
Expand All @@ -24,5 +24,4 @@
</div>
<?php
include("models/inc/gl_footer.php");
?>

?>
Empty file modified index2.php
100644 → 100755
Empty file.
Empty file modified login.php
100644 → 100755
Empty file.
4 changes: 2 additions & 2 deletions register.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@

// use the email as the username if configured
$username = $portal_config['useEmailAsUsername'] ? $email : trim($_POST["username"]);
$password = md5("somelongthingsurewhynot" + $username); //USE A TEMP PASSWORD FOR NOW
$password = md5("somelongthingsurewhynot" . $username); //USE A TEMP PASSWORD FOR NOW

$fname = (!empty($_POST["firstname"]) ? $_POST["firstname"] : null ) ;
$lname = (!empty($_POST["lastname"]) ? $_POST["lastname"] : null) ;
$zip = (!empty($_POST["zip"]) ? intval($_POST["zip"]) :null ) ;
Expand Down
1 change: 1 addition & 0 deletions well2
Submodule well2 added at b7fd86
Binary file removed well2/Buzzer.mp3
Binary file not shown.
Binary file removed well2/Ding.mp3
Binary file not shown.
114 changes: 0 additions & 114 deletions well2/GRIT_sisyphus.php

This file was deleted.

24 changes: 0 additions & 24 deletions well2/MAT_assessment.php

This file was deleted.

Loading