Header.php: indent code.

Hui-CodeIndentation
Lan Hui 2021-10-18 23:34:13 +08:00
parent 933a328b7e
commit ac6956d58c
1 changed files with 135 additions and 131 deletions

View File

@ -13,7 +13,6 @@ if (mysqli_connect_errno()) {
?> ?>
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
@ -28,10 +27,8 @@ if (mysqli_connect_errno()) {
<script src="./css/bootsrap.min.js" type="text/javascript"></script> <script src="./css/bootsrap.min.js" type="text/javascript"></script>
<script src="./css/jquery.datetimepicker.min.js" type="text/javascript"></script> <script src="./css/jquery.datetimepicker.min.js" type="text/javascript"></script>
</head> </head>
<body> <body>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark" style="padding-left:150px;padding-right:150px;margin:auto;"> <nav class="navbar navbar-expand-lg navbar-dark bg-dark" style="padding-left:150px;padding-right:150px;margin:auto;">
@ -48,8 +45,7 @@ if (mysqli_connect_errno()) {
<!-- <a class='nav-link' href='~\..\Visitors.php'> <i class='fa fa-globe'></i> Visitor Portal <span class='sr-only'>(current)</span></a> --> <!-- <a class='nav-link' href='~\..\Visitors.php'> <i class='fa fa-globe'></i> Visitor Portal <span class='sr-only'>(current)</span></a> -->
</li> </li>
<?php <?php
if(isset($_SESSION["user_fullname"])) if (isset($_SESSION["user_fullname"])) {
{
echo " <a class='nav-link' href='~\..\Courses.php'><i class='fa fa-book'></i> Courses <span class='sr-only'>(current)</span></a>"; echo " <a class='nav-link' href='~\..\Courses.php'><i class='fa fa-book'></i> Courses <span class='sr-only'>(current)</span></a>";
?> ?>
@ -83,17 +79,15 @@ if ($_SESSION['user_type'] == "Lecturer") {
</div> </div>
</nav> </nav>
<style> <style>
.nav-item { .nav-item {
border-color: #00ff66; border-color: #00ff66;
} }
.nav-tabs { .nav-tabs {
border-color: #00ff66; border-color: #00ff66;
} }
.btn-default { .btn-default {
border: 2px solid #00ff66; border: 2px solid #00ff66;
width: 100%; width: 100%;
@ -110,56 +104,66 @@ if ($_SESSION['user_type'] == "Lecturer") {
.alert { .alert {
font-weight: bold; font-weight: bold;
} }
h1,h2,h3,h4{color:#03407B;}
h1,
h2,
h3,
h4 {
color: #03407B;
}
a { a {
color: #03407B; color: #03407B;
} }
.break-word { .break-word {
word-wrap: break-word; word-wrap: break-word;
white-space: -moz-pre-wrap !important; /* Mozilla, since 1999 */ white-space: -moz-pre-wrap !important;
white-space: -pre-wrap; /* Opera 4-6 */ /* Mozilla, since 1999 */
white-space: -o-pre-wrap; /* Opera 7 */ white-space: -pre-wrap;
white-space: pre-wrap; /* css-3 */ /* Opera 4-6 */
word-wrap: break-word; /* Internet Explorer 5.5+ */ white-space: -o-pre-wrap;
white-space: -webkit-pre-wrap; /* Newer versions of Chrome/Safari*/ /* Opera 7 */
white-space: pre-wrap;
/* css-3 */
word-wrap: break-word;
/* Internet Explorer 5.5+ */
white-space: -webkit-pre-wrap;
/* Newer versions of Chrome/Safari*/
word-break: break-all; word-break: break-all;
white-space: normal; white-space: normal;
} }
.ui-widget-content.ui-dialog {
.ui-widget-content.ui-dialog
{
border: 2px solid #03488B; border: 2px solid #03488B;
} }
.ui-dialog > .ui-widget-header {background: #03488B; color:white}
.ui-button{ background: #03488B; color:white } .ui-dialog>.ui-widget-header {
background: #03488B;
color: white
}
.ui-button {
background: #03488B;
color: white
}
</style> </style>
<script> <script>
function updatePass(id) function updatePass(id) {
{
var pass = prompt("Enter your new password : ", "Enter a strong password"); var pass = prompt("Enter your new password : ", "Enter a strong password");
if(!confirm('Are you sure you want to reset your password?')) if (!confirm('Are you sure you want to reset your password?')) {
{
return; return;
} }
window.location.href = "\Script.php\?action=passchange&uid=" + id + "&pass=" + pass; window.location.href = "\Script.php\?action=passchange&uid=" + id + "&pass=" + pass;
} }
function blockUser(id,status) function blockUser(id, status) {
{ if (!confirm('Are you sure you want to change user status?')) {
if(!confirm('Are you sure you want to change user status?'))
{
return; return;
} }
window.location.href = "\Script.php\?action=statuschange&uid=" + id + "&status=" + status; window.location.href = "\Script.php\?action=statuschange&uid=" + id + "&status=" + status;