Skip to content
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

Nav and Footer #303

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file modified .github/ISSUE_TEMPLATE/Feature_request.md
100644 → 100755
Empty file.
Empty file modified .github/ISSUE_TEMPLATE/bug_report.md
100644 → 100755
Empty file.
Empty file modified .github/PULL_REQUEST_TEMPLATE.md
100644 → 100755
Empty file.
Empty file modified .github/config.yml
100644 → 100755
Empty file.
Empty file modified .github/workflows/Issue-assign.yml
100644 → 100755
Empty file.
Empty file modified .github/workflows/autoblack.yml
100644 → 100755
Empty file.
Empty file modified .gitignore
100644 → 100755
Empty file.
Empty file modified .htaccess
100644 → 100755
Empty file.
Empty file modified Dockerfile
100644 → 100755
Empty file.
Empty file modified LICENSE
100644 → 100755
Empty file.
Empty file modified README.md
100644 → 100755
Empty file.
Empty file modified build.md
100644 → 100755
Empty file.
Empty file modified css/404.css
100644 → 100755
Empty file.
Empty file modified css/backToTop.css
100644 → 100755
Empty file.
Empty file modified css/blueContentTable.css
100644 → 100755
Empty file.
Empty file modified css/button-style.css
100644 → 100755
Empty file.
Empty file modified css/customFileInput.css
100644 → 100755
Empty file.
Empty file modified css/form-style.css
100644 → 100755
Empty file.
Empty file modified css/greenContentTable.css
100644 → 100755
Empty file.
Empty file modified css/searchBar.css
100644 → 100755
Empty file.
Empty file modified css/table-style.css
100644 → 100755
Empty file.
Empty file modified docker-compose.yml
100644 → 100755
Empty file.
Empty file modified docs/CONTRIBUTING.md
100644 → 100755
Empty file.
Empty file modified docs/CreatePR.md
100644 → 100755
Empty file.
Empty file modified docs/build.md
100644 → 100755
Empty file.
Empty file modified docs/newContributors.md
100644 → 100755
Empty file.
Empty file modified docs/shortNotest.md
100644 → 100755
Empty file.
Empty file modified functions/README.md
100644 → 100755
Empty file.
Empty file modified functions/cmdLine.func.php
100644 → 100755
Empty file.
Empty file modified functions/json.func.php
100644 → 100755
Empty file.
Empty file modified functions/scoring.func.php
100644 → 100755
Empty file.
Empty file modified functions/scoringFunctions.md
100644 → 100755
Empty file.
Empty file modified generate_json/cmpGraph.php
100644 → 100755
Empty file.
Empty file modified generate_json/jsonDump.php
100644 → 100755
Empty file.
Empty file modified global_match/findGlobalMatch.php
100644 → 100755
Empty file.
Empty file modified global_match/hovering.py
100644 → 100755
Empty file.
Empty file modified global_match/jsonConversion.py
100644 → 100755
Empty file.
Empty file modified global_match/learnings.txt
100644 → 100755
Empty file.
Empty file modified global_match/precomputation.py
100644 → 100755
Empty file.
Empty file modified global_match/requirements.txt
100644 → 100755
Empty file.
Empty file modified global_match/solution.py
100644 → 100755
Empty file.
Empty file modified global_match/steps.md
100644 → 100755
Empty file.
Empty file modified images/avatar.jpg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified images/blank-avatar.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified images/blue-avatar.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified images/card-with-images-data.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified images/darkBackground.jpg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified images/form-background.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified images/kidney.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified images/kidney_chain.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified images/red-avatar.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified images/user.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified include/addAdmin.php
100644 → 100755
Empty file.
Empty file modified include/deleteData.inc.php
100644 → 100755
Empty file.
Empty file modified include/findPairwiseMatch.inc.php
100644 → 100755
Empty file.
4 changes: 3 additions & 1 deletion include/footer.inc.php
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

<div class="container-fluid fixed-bottom" style=" background-image: linear-gradient(to right top, #2f2034, #373049, #3d415e, #405472, #416785);">
<p class="text-center m-0 py-3 text-light">| Copyright <?php echo date("Y") ?> @kidney-exchange |</p>
</div>
<!-- bootstrap js -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta3/dist/js/bootstrap.bundle.min.js"
integrity="sha384-JEW9xMcG8R+pH31jmWH6WWP0WintQrMb4s7ZOdauHnUtxwoG2vI5DkLtS3qm9Ekf"
Expand Down
Empty file modified include/functions.inc.php
100644 → 100755
Empty file.
Empty file modified include/getHosp.inc.php
100644 → 100755
Empty file.
Empty file modified include/getPairData.inc.php
100644 → 100755
Empty file.
Empty file modified include/hlaValues.inc.php
100644 → 100755
Empty file.
Empty file modified include/kidney_chain.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified include/login.inc.php
100644 → 100755
Empty file.
Empty file modified include/logout.inc.php
100644 → 100755
Empty file.
Empty file modified include/matchFunctions.inc.php
100644 → 100755
Empty file.
Empty file modified include/signup.inc.php
100644 → 100755
Empty file.
Empty file modified include/toggleStatus.inc.php
100644 → 100755
Empty file.
Empty file modified include/updatePair.inc.php
100644 → 100755
Empty file.
Empty file modified js/backToTop.js
100644 → 100755
Empty file.
Empty file modified js/editPairForm.js
100644 → 100755
Empty file.
Empty file modified js/fixRowspanHover.js
100644 → 100755
Empty file.
Empty file modified js/pairData.js
100644 → 100755
Empty file.
Empty file modified js/reg-form.js
100644 → 100755
Empty file.
Empty file modified js/showpassword.js
100644 → 100755
Empty file.
Empty file modified js/validateHosp.js
100644 → 100755
Empty file.
Empty file modified pages/404.php
100644 → 100755
Empty file.
30 changes: 20 additions & 10 deletions pages/dataOverview.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,8 @@

/* On screens that are 992px or less, set the background color to blue */
@media screen and (max-width: 992px) {
.smallhide
{
display:none;
}
th,td
{
width:25vw !important;
}


th
{
font-size:17px;
Expand All @@ -43,13 +37,29 @@
color:#fff !important;
}
}
.table-wrapper{
margin: 7% 0;
}
@media screen and (max-width: 992px) {

.content-table td, .content-table th
{
padding:0;
}

.table-wrapper{
margin: 7% 0%;
border: 2px solid
}

}
</style>


<?php include("../templates/navBar.php") ?>

<div class="container-fluid mt-5 py-5 px-0 idtable">
<table>
<div class="table-wrapper table-responsive">
<table class="content-table table-condensed">
<tr>
<th>Pair ID</th>
<th>Patient ID</th>
Expand Down
Empty file modified pages/dataSearch.php
100644 → 100755
Empty file.
47 changes: 35 additions & 12 deletions pages/dataSummary.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,10 @@
<style>
/* --------------------Background--------------------------- */

body{
background-color: seashell;
background-repeat: no-repeat;
background-size: cover;
}
body {
height: 100vh;
background-image: linear-gradient(to right bottom, #0c1138, #131c45, #192752, #20335f, #273f6c, #274b76, #28567f, #2b6287, #316f8b, #3d7b8e, #4e8690, #619193);
}

/* ------------------------Table styles------------------------- */
#patientTable {
Expand All @@ -38,14 +37,20 @@
font-size: 30px;
margin: 50px auto 10px auto;
}
@media screen and (max-width: 992px) {
.navbar , .content-table ,#footer
{
width: 235vw !important;

.table-wrapper{
margin: 4%;
}
@media screen and (max-width: 992px) {

.content-table td, .content-table th
{
padding:6px;
padding:0;
}

.table-wrapper{
margin: 4%;
border: 2px solid
}

}
Expand All @@ -62,14 +67,27 @@
line-height: 40px;
color: #fff;
}

.nav-item .nav-link , .dropdown-item
{
color:#fff;
font-weight:400;
background:none;
padding:20px 0 !important;
text-transform: uppercase;
font-size:1.1rem;
letter-spacing: 2px;
}
</style>
<div class="nav-container">
<?php include("../templates/navBar.php") ?>
</div>
<!-- Back to top button -->
<a id="button" style="text-decoration:none"></a>
<h2 class="heading">Patients</h2>
<table class="content-table" id="patientTable">
<div class="table-wrapper table-responsive">

<table class="content-table table-condensed" id="patientTable">
<tr>
<th>ID</th>
<th>Name</th>
Expand Down Expand Up @@ -116,8 +134,12 @@
<?php endforeach; ?>
</table>

</div>


<h2 class="heading">Donors</h2>
<table class="content-table" id="donorTable">
<div class="table-wrapper table-responsive">
<table style="margin: 7% auto;" class="content-table" id="donorTable">
<tr>
<th>ID</th>
<th>Name</th>
Expand Down Expand Up @@ -153,5 +175,6 @@
<?php endforeach; ?>

</table>
</div>
<script src="../js/backToTop.js"></script>
<?php include_once("../include/footer.inc.php") ?>
Empty file modified pages/displayGlobalMatch.php
100644 → 100755
Empty file.
Empty file modified pages/displayPairwiseMatch.php
100644 → 100755
Empty file.
Empty file modified pages/displayRegHosp.php
100644 → 100755
Empty file.
Empty file modified pages/editPairForm.php
100644 → 100755
Empty file.
Empty file modified pages/form-process.php
100644 → 100755
Empty file.
Empty file modified pages/globalMatch.php
100644 → 100755
Empty file.
72 changes: 47 additions & 25 deletions pages/jsonData.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -29,58 +29,80 @@
}
/* -------------------------CSS Grids-----------------------------*/

.grid-container {
margin-top: 50px;
display: grid;
grid-template-columns: auto auto auto;
padding: 30px;
background-color: rgba(239, 225, 220, 0.8);
}

.grid-item {
padding: 20px;
font-size: 25px;
text-align: left;
font-family: "Open Sans"
}

.left {
text-align: left;
}
.row,.col{
padding: 3%;
}

.head{
font-size: 3.5vh;
}
.doubleSpan {
grid-column-end: span 2;
}

.wrapper{
height: 90vh;
}


.wrapper .container{
background: #769f9c;
}
@media screen and (max-width:450px) {
.head{
font-size: 4.5vw;
}
.button{
font-size: 3.5vw;
}

.button{
padding: 0;
width: fit-content;
}
}

</style>

<div class="nav-container">
<?php include("../templates/navBar.php") ?>
</div>

<div class="wrapper">
<div class="wrapper d-flex justify-content-center align-items-center">

<div class="grid-container">
<div class="grid-item">Database Dump</div>
<div class="grid-item doubleSpan">
<div class="container">
<div class="row">
<div class="col head">Database Dump</div>
<div class="col doubleSpan">
<form method="post" action="/kidney-exchange/generate_json/jsonDump.php" class="search">
<input type="submit" class="button searchBtn" name="submit" value="Download">
</form>
</div>
<div class="grid-item">Compatibility Graph </div>
<div class="grid-item doubleSpan">
</div>
<div class="row">
<div class="col head">Compatibility Graph </div>
<div class="col doubleSpan">
<form method="post" action="/kidney-exchange/generate_json/cmpGraph.php" class="search">
<input type="submit" class="button searchBtn" name="submit" value="Download">
</form>
</div>
<div class="grid-item">Data upload (Yet to be implemented...)</div>
<div class="grid-item">
<form method="post" action="#" class="search">
<input type="file" class="custom-file-input" name="json" id="json">
<input type="submit" class="button searchBtn" name="submit" value="Upload">
</div>
</div>

<div class="row">
<div class="col head">Data upload (Yet to be implemented...)</div>
<div class="col">
<form method="post" action="#" class="row search">
<input type="file" class="col custom-file-input" name="json" id="json">
<input type="submit" style="width: auto;" class=" col button searchBtn" name="submit" value="Upload">
</form>
</div>
</div>
</div>

<?php
if(isset($_GET['error'])) {
Expand Down
Empty file modified pages/login.php
100644 → 100755
Empty file.
Empty file modified pages/message.php
100644 → 100755
Empty file.
Empty file modified pages/pairData.php
100644 → 100755
Empty file.
Empty file modified pages/pairwiseMatch.php
100644 → 100755
Empty file.
4 changes: 2 additions & 2 deletions pages/reg-form.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -796,8 +796,8 @@
</div>

<div id='btn-block'>
<button type="button" id='prev-btn'>Previous</button>
<button type="button" id='next-btn'>Next</button>
<button type="button" style="width: auto;" id='prev-btn'>Previous</button>
<button type="button" style="width: auto;" id='next-btn'>Next</button>
</div>

</form>
Expand Down
Empty file modified pages/register_hospital.php
100644 → 100755
Empty file.
Empty file modified pages/signup.php
100644 → 100755
Empty file.
Empty file modified templates/d_hla.php
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion templates/db-connect.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
die("Connection failed: " . mysqli_connect_error());
}

?>
?>
Empty file modified templates/edit_dHla.php
100644 → 100755
Empty file.
Empty file modified templates/edit_rHla.php
100644 → 100755
Empty file.
Empty file modified templates/header.php
100644 → 100755
Empty file.
16 changes: 13 additions & 3 deletions templates/navBar.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@
{
background-color: #2d3358;
}
.navbar>.container{
width: 100%!important;
max-width: 100%!important;
}
/* On screens that are 992px or less, set the background color to blue */
@media screen and (max-width: 992px) {

Expand Down Expand Up @@ -80,6 +84,14 @@
font-family: "Open Sans";
padding:14px;
}

}

@media screen and (max-width: 350px) {
.navbar-brand{
font-size: 5vw;
}

}
</style>
<nav class="navbar navbar-expand-lg">
Expand All @@ -90,9 +102,7 @@
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav ms-auto mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link" href="/kidney-exchange/">Home</a>
</li>

<?php
if (isset($_SESSION['userId'])) {
echo '<li class="nav-item dropdown">
Expand Down
Empty file modified templates/r_hla.php
100644 → 100755
Empty file.