File manager - Edit - /home/familylifersmpc/htdocs/www.familylifersmpc.com/includes/topbar.php
Back
<?php $sql = "SELECT * FROM tblsettings"; $query = $dbh->prepare($sql); $query->execute(); $results = $query->fetchAll(PDO::FETCH_OBJ); $cnt = 1; if ($query->rowCount() > 0) { foreach ($results as $result) { ?> <?php $BGCOLOR = $result->BGCOLOR; $COLOR1 = $result->COLOR1; $COLOR2 = $COLOR2; ?> <?php $cnt = $cnt + 1; } } ?> <style> .hd { position: absolute; left: 15px; top: 17px; } </style> <style> .notification .badge { position: absolute; top: 0px; right: -10px; padding: 5px 10px; border-radius: 50%; background-color: White; color: <?php echo htmlentities($BGCOLOR); ?>; } @media screen and (max-height: 450px) { .sidenav { padding-top: 15px; } .sidenav a { font-size: 18px; } } @media (max-width:500px) { img#optionalstuff { display: none; } .ds { width: 35% } } .img-responsive.mobile { display: none; } @media only screen and (max-device-width: 480px) { .img-responsive { display: none; } .img-responsive.mobile { display: block; } } </style> <nav class="navbar top-navbar bg-white box-shadow" style="background-color: <?php echo htmlentities($BGCOLOR); ?>"> <div class="container-fluid"> <div class="row"> <div class="navbar-header no-padding" style="background-color: <?php echo htmlentities($BGCOLOR); ?>"> <?php $sql = "SELECT * FROM tblsettings"; $query = $dbh->prepare($sql); $query->execute(); $results = $query->fetchAll(PDO::FETCH_OBJ); $cnt = 1; if ($query->rowCount() > 0) { foreach ($results as $result) { ?> <a class="hd img-responsive" href="dashboard.php" style="color: <?php echo htmlentities($COLOR1); ?>; font-size: 150%;"><b style="color: <?php echo htmlentities($COLOR2); ?>;"> <?php echo htmlentities($result->COOPNAME1); ?></b> <?php echo htmlentities($result->COOPNAME2); ?></a> <a class="hd img-responsive mobile" href="dashboard.php" style="color: <?php echo htmlentities($COLOR2); ?>; font-size: 220%;"><b> <?php echo htmlentities($result->ABBREVIATION); ?></b></a> <?php $cnt = $cnt + 1; } } ?> <button type="button" style="color: <?php echo htmlentities($COLOR2); ?>" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-collapse-1" aria-expanded="false"> <span class="sr-only">Toggle navigation</span> <i class="fa fa-ellipsis-v color-Navy"></i> </button> <button type="button" class="navbar-toggle mobile-nav-toggle notification" style="color: <?php echo htmlentities($COLOR2); ?>"> <?php $sql = "SELECT * FROM tblnotif WHERE USERID='" . $sid . "' AND CLICKED = 0 ORDER BY ID DESC"; $query = $dbh->prepare($sql); $query->execute(); $results = $query->fetchAll(PDO::FETCH_OBJ); $cnt = 0; $sound = 0; $totalresults = $query->rowCount(); ?> <?php if ($query->rowCount() > 0) { ?> <span class="badge"><?php echo htmlentities($totalresults); ?></span> <?php } else { ?> <?php } ?> <i class="fa fa-bars color-Yellow"></i> </button> </div> <!-- /.navbar-header --> <div class="collapse navbar-collapse" id="navbar-collapse-1" style="background-color:<?php echo htmlentities($BGCOLOR); ?>"> <!-- /.nav navbar-nav --> <ul class="nav navbar-nav navbar-right" data-dropdown-in="fadeIn" data-dropdown-out="fadeOut" style="color:<?php echo htmlentities($COLOR1); ?>"> <li><a href="logout.php" class="text-center" style="color:<?php echo htmlentities($COLOR2); ?>"><i class="fa fa-sign-out"></i> Logout</a></li> </ul> <!-- /.nav navbar-nav navbar-right --> </div> <!-- /.navbar-collapse --> </div> <!-- /.row --> </div> <!-- /.container-fluid --> </nav>
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.27 |
proxy
|
phpinfo
|
Settings