예제 #1
0
                  </li>
                  <li class="dropdown">
                      <a href="#" class="glyphicon glyphicon-book dropdown-toggle" data-toggle="dropdown"> TUTORIAL <span class="caret"></span></a>
                      <ul class="dropdown-menu" role="menu">
                          <li><a href="tutorial.php" class="fa fa-search">  Data TUTORIAL</a></li>
                          <li><a href="tambah_tutorial.php" class="fa fa-plus-square">  Tambah TUTORIAL</a></li>
                      </ul>
                  </li>
                  <li><a href="profil.php" class="glyphicon glyphicon-bookmark"> PROFIL</a></li>
              </ul>
            </div>
            <div class="navbar-custom-menu">
              <ul class="nav navbar-nav">
                <?php 
$jumlah_confirm = jumlah_confirm($id_user);
$result_confirm = query_confim($id_user);
?>
                
                <li class="dropdown messages-menu">
                  <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                    <i class="fa  fa-download"></i>
                    <span class="label label-success"><?php 
echo $jumlah_confirm;
?>
</span>
                  </a>
                  <ul class="dropdown-menu">
                      <li class="header"> you have <?php 
echo $jumlah_confirm;
?>
 confirm</li>
예제 #2
0
function jumlah_confirm($id_user)
{
    return mysql_num_rows(query_confim($id_user));
}