File manager - Edit - /home/familylifersmpc/htdocs/www.familylifersmpc.com/includes/Etopbar.php
Back
<style> .hd { color: Black; font-size: 160%; position: absolute; left: 15px; top: 17px; } </style> <style> .notification .badge { position: absolute; top: 0px; right: -10px; padding: 5px 10px; border-radius: 50%; background-color: gray; color: white; } @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> <?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) { $bgco = $result->BGCOLOR; $f1co = $result->COLOR1; $f2co = $result->COLOR2; ?> <?php $cnt = $cnt + 1; } } ?> <nav class="navbar top-navbar box-shadow" style="background-color:<?php echo htmlentities($bgco); ?>"> <div class="container-fluid"> <div class="row"> <div class="navbar-header no-padding"> <?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 $sid = $_SESSION['alogin']; $sql2 = "SELECT TYPE FROM superusers WHERE USERNAME='" . $sid . "'"; $query2 = $dbh->prepare($sql2); $query2->execute(); $results2 = $query2->fetchAll(PDO::FETCH_OBJ); if ($query2->rowCount() > 0) { foreach ($results2 as $result2) { if ($result2->TYPE == "USER") { ?> <a class="hd img-responsive" href="Eregform.php" style="font-size: 150%;color:<?php echo htmlentities($f1co); ?>"><b style="color:<?php echo htmlentities($f2co); ?>"> <?php echo htmlentities($result->COOPNAME1); ?></b> <?php echo htmlentities($result->COOPNAME2); ?></a> <a class="hd img-responsive mobile" href="Eregform.php" style="font-size: 220%;color:<?php echo htmlentities($f2co); ?>"><b> <?php echo htmlentities($result->ABBREVIATION); ?></b></a> <?php } else { ?> <a class="hd img-responsive" href="SysInfo.php" style="font-size: 150%;color:<?php echo htmlentities($f1co); ?>"><b style="color:<?php echo htmlentities($f2co); ?>"> <?php echo htmlentities($result->COOPNAME1); ?></b> <?php echo htmlentities($result->COOPNAME2); ?></a> <a class="hd img-responsive mobile" href="SysInfo.php" style="font-size: 220%;color:<?php echo htmlentities($f2co); ?>"><b> <?php echo htmlentities($result->ABBREVIATION); ?></b></a> <?php } } } ?> <?php $cnt = $cnt + 1; } } ?> <button type="button" 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 " style="color:<?php echo htmlentities($f2co); ?>"></i> </button> <button type="button" class="navbar-toggle mobile-nav-toggle notification"> <i class="fa fa-bars" style="color:<?php echo htmlentities($f2co); ?>"></i> </button> </div> <!-- /.navbar-header --> <div class="collapse navbar-collapse" id="navbar-collapse-1"> <!-- /.nav navbar-nav --> <ul class="nav navbar-nav navbar-right" data-dropdown-in="fadeIn" data-dropdown-out="fadeOut"> <li><a href="elogout.php" class="text-center" style="color:<?php echo htmlentities($f2co); ?>"><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.02 |
proxy
|
phpinfo
|
Settings