Jump to content

[help] small help I think


darish

Recommended Posts

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.

Edited by QuickOldCar
Link to comment
Share on other sites

 

<?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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.