-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replaced index startpage (with buttons) for a persistent NavBar on top.
- Loading branch information
1 parent
02883e1
commit c79a978
Showing
2 changed files
with
84 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,7 @@ | |
} | ||
</style> | ||
</head> | ||
<?php require_once('navbar.php'); ?> | ||
<body> | ||
<section class="pt-5"> | ||
<div class="container-fluid"> | ||
|
@@ -243,6 +244,7 @@ | |
<title>View Record</title> | ||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous"> | ||
</head> | ||
<?php require_once('navbar.php'); ?> | ||
<body> | ||
<section class="pt-5"> | ||
<div class="container-fluid"> | ||
|
@@ -321,6 +323,7 @@ | |
<title>View Record</title> | ||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous"> | ||
</head> | ||
<?php require_once('navbar.php'); ?> | ||
<body> | ||
<section class="pt-5"> | ||
<div class="container-fluid"> | ||
|
@@ -398,6 +401,7 @@ | |
<title>Create Record</title> | ||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous"> | ||
</head> | ||
<?php require_once('navbar.php'); ?> | ||
<body> | ||
<section class="pt-5"> | ||
<div class="container-fluid"> | ||
|
@@ -529,6 +533,7 @@ | |
<title>Update Record</title> | ||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous"> | ||
</head> | ||
<?php require_once('navbar.php'); ?> | ||
<body> | ||
<section class="pt-5"> | ||
<div class="container-fluid"> | ||
|
@@ -586,34 +591,50 @@ | |
EOT; | ||
|
||
$startfile = <<<'EOT' | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Select CRUD pages</title> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Cruddiy Admin</title> | ||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous"> | ||
<style type="text/css"> | ||
.page-header h2{ | ||
margin-top: 0; | ||
} | ||
table tr td:last-child a{ | ||
margin-right: 5px; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<fieldset> | ||
<center> | ||
<legend>Available CRUD pages</legend> | ||
<div class="form-group"> | ||
{TABLE_BUTTONS} | ||
<!-- TABLE_BUTTONS --> | ||
</div> | ||
</center> | ||
</fieldset> | ||
<script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script> | ||
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js" integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI" crossorigin="anonymous"></script> | ||
</body> | ||
</html> | ||
<script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script> | ||
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js" integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI" crossorigin="anonymous"></script> | ||
<style type="text/css"> | ||
.page-header h2{ | ||
margin-top: 0; | ||
} | ||
table tr td:last-child a{ | ||
margin-right: 5px; | ||
} | ||
</style> | ||
</head> | ||
<?php require_once('navbar.php'); ?> | ||
</html> | ||
EOT; | ||
|
||
$navbarfile = <<<'EOT' | ||
<nav class="navbar navbar-expand-lg navbar-light bg-light"> | ||
<a class="navbar-brand nav-link disabled" href="#">Admin</a> | ||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"> | ||
<span class="navbar-toggler-icon"></span> | ||
</button> | ||
<div class="collapse navbar-collapse" id="navbarSupportedContent"> | ||
<ul class="navbar-nav mr-auto"> | ||
<li class="nav-item dropdown"> | ||
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> | ||
Select Page | ||
</a> | ||
<div class="dropdown-menu" aria-labelledby="navbarDropdown"> | ||
{TABLE_BUTTONS} | ||
<!-- TABLE_BUTTONS --> | ||
</div> | ||
</li> | ||
</ul> | ||
</div> | ||
</nav> | ||
EOT; | ||
|
||
|