darish Posted May 15, 2015 Share Posted May 15, 2015 http://prntscr.com/74p4rr , where it says "ver: todos - Ativos - Suspendidos" ... it means "view: All - Active - Suspended" in english , and I want http://prntscr.com/74p59l to when I select "all" it shows like a white, cuz its selected ... the same with "active and suspended" ... I can explain better if u dont get it :S Link to comment https://forums.phpfreaks.com/topic/296339-help-small-help-i-think/ Share on other sites More sharing options...
QuickOldCar Posted May 15, 2015 Share Posted May 15, 2015 You can use css to change the color of a button or link depending their events. .button:hover { background: #008000; } a:visited { background: #ffffff; } You can also use javascript and functions with onclick,mouseover,etc... http://lmgtfy.com/?q=javascript+button+change+color Post whatever related code you have, otherwise is just guessing. Link to comment https://forums.phpfreaks.com/topic/296339-help-small-help-i-think/#findComment-1511967 Share on other sites More sharing options...
NetGuru87 Posted May 17, 2015 Share Posted May 17, 2015 Yeah - CSS should do the trick. If you put your code in a fiddle I quickly do the css code for you and pass a link to it :-) Link to comment https://forums.phpfreaks.com/topic/296339-help-small-help-i-think/#findComment-1512091 Share on other sites More sharing options...
darish Posted May 18, 2015 Author Share Posted May 18, 2015 <?php @session_start(); if($_SESSION['uname']=="") header("location:login.php?err=Please Login First"); ?><?php session_start(); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content="Karmanta - Bootstrap 3 Responsive Admin Template"> <meta name="author" content="GeeksLabs"> <meta name="keyword" content="Karmanta, Dashboard, Admin, Template, Theme, Bootstrap, Responsive, Retina, Minimal"> <link rel="shortcut icon" href="img/favicon.png"> <title>7milimetros Admin</title> <!-- Bootstrap CSS --> <link href="css/bootstrap.min.css" rel="stylesheet"> <!-- bootstrap theme --> <link href="css/bootstrap-theme.css" rel="stylesheet"> <!--external css--> <!-- font icon --> <link href="css/elegant-icons-style.css" rel="stylesheet" /> <link href="assets/font-awesome/css/font-awesome.css" rel="stylesheet" /> <!-- Custom styles --> <link href="css/style.css" rel="stylesheet"> <link href="css/style-responsive.css" rel="stylesheet" /> <!-- HTML5 shim and Respond.js IE8 support of HTML5 --> <!--[if lt IE 9]> <script src="js/html5shiv.js"></script> <script src="js/respond.min.js"></script> <script src="js/lte-ie7.js"></script> <![endif]--> </head> <body> <!-- container section start --> <section id="container" class=""> <!--header start--> <?php include "header.php"; ?> <!--header end--> <!--sidebar start--> <aside> <?php include "aside.php"; ?> </aside> <!--sidebar end--> <!--main content start--> <section id="main-content"> <section class="wrapper"> <!-- page start--> <div class="row"> <div class="col-lg-12"> <section class="panel"> <header class="panel-heading"><div class="letra">Clientes Registados</div> <div class="morças"><div align="center"><form action="registere_suspended.php"><button type="submit" class="btn btn-primary">Suspendidos</button></form></div></div> <div class="morça"><div align="center"><form action="registere_active.php"><button type="submit" class="btn btn-primary"> Ativos </button></form></div></div> <div class="morça"><div align="center"><form action="registere_user.php"><button type="submit" class="btn btn-primary"> Todos </button></form></div></div> <div class="morço">Ver:</div> </form> <table class="table table-striped table-advance table-hover"> <tbody> <tr> <th><i class="icon_profile"></i> Nome</th> <th><i class="icon_mobile"></i> Numero</th> <th><i class="icon_mail"></i> Email</th> <th><i class="icon_building"></i> Cidade - Empresa</th> <th><i class="icon_map_alt"></i> Morada</th> <th><i class="icon_calendar"></i> Status</th> <th><i class="icon_cogs"></i> Ação</th> </tr> <?php include "config.php"; $qry=mysql_query("select * from register"); while($get=mysql_fetch_array($qry)) { $a_i=$get['active']; if($a_i=='0') { $a_i_f="Suspendido"; } else { $a_i_f="Ativo"; } $email=$get['email']; $fname=$get['fname']; $lname=$get['lname']; $mobile=$get['mobile']; $city=$get['city']; $company=$get['company']; $address=$get['address']; ?> <tr> <td><?php echo $get['fname']; ?> <?php echo $get['lname']; ?></td> <td><?php echo $get['mobile']; ?></td> <td><?php echo $get['email']; ?></td> <td><?php echo $get['city']; ?> - <?php echo $get['company']; ?></td> <td><?php echo $get['address']; ?></td> <td><?php echo $a_i_f; ?></td> <td><div class="btn-group"><a class="btn btn-success" href="register_edit.php?id=<?php echo $get['id']; ?>"><i class="icon_tool"></i></a><a class="btn btn-danger" href="register_delete.php?id=<?php echo $get['id']; ?>"><i class="icon_close_alt2"></i></a></div></td> </tr><?php } ?> </tbody> </table> </section> </div> </div> <!-- page end--> </section> </section> <!--main content end--> </section> <!-- container section end --> <!-- javascripts --> <script src="js/jquery.js"></script> <script src="js/bootstrap.min.js"></script> <!-- nice scroll --> <script src="js/jquery.scrollTo.min.js"></script> <script src="js/jquery.nicescroll.js" type="text/javascript"></script><!--custome script for all page--> <script src="js/scripts.js"></script></body> </html> So this is all my "all" page , what I need to change to appears white in the "all" ? Link to comment https://forums.phpfreaks.com/topic/296339-help-small-help-i-think/#findComment-1512121 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.