<script>
  function isNumber(evt) {
    evt = (evt) ? evt : window.event;
    var charCode = (evt.which) ? evt.which : evt.keyCode;
    if (charCode > 31 && (charCode < 48 || charCode > 57)) {
        return false;
    }
    return true;
  }
  
  function isNumber2(evt) {
      evt = (evt) ? evt : window.event;
      var charCode = (evt.which) ? evt.which : evt.keyCode;
      if(charCode == 46){
    	 return true;
      } else if (charCode > 31 && (charCode < 48 || charCode > 57 )) {
    	return false;
      }
      return true;
  }
</script>

<header class="main-header">
        <!-- Logo -->
        <a href="index.php" class="logo">
        <!-- mini logo for sidebar mini 50x50 pixels -->
        <!-- <span class="logo-mini"><b>P</b>rojects</span> -->
        <!-- logo for regular state and mobile devices -->
          
        <!-- <span class="logo-lg"><b>PROJECTS</b></span> -->
        <!-- <span class="logo-lg" style=" float: left; margin-left: 10px;"><i class="fa fa-desktop"></i> &nbsp; PROJECTS</span> -->
        </a>
        <!-- Header Navbar: style can be found in header.less -->
        <nav class="navbar navbar-static-top" role="navigation">
          <!-- Sidebar toggle button-->
          <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
            <span class="sr-only"></span>
          </a>
          
          <div class="navbar-custom-menu">
            <ul class="nav navbar-nav">
                     
              <li class="dropdown user user-menu">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                  <img src="../images/users/<?php echo $_SESSION['user_photo']; ?>" class="user-image" alt="User Image">
                  <span class="hidden-xs"><?php echo $_SESSION['user_name']; ?></span>
                </a>
                <ul class="dropdown-menu">
                  <!-- User image -->
                  <li class="user-header">
                    <img src="../images/users/<?php echo $_SESSION['user_photo']; ?>" class="img-circle" alt="User Image">
                    <p>
                     <?php echo $_SESSION['user_name']; ?>
                      <!--<small>Member since Nov. 2015</small> -->
                    </p>
                  </li>
                 
                  <!-- Menu Footer-->
                  <li class="user-footer">
                    <div class="pull-left">
                     <a href="settings.php" class="btn btn-default btn-flat">Settings</a> 
                    </div>
                    <div class="pull-right">
                      <a href="fra_logout.php" class="btn btn-default btn-flat">Sign out</a>
                    </div>
                  </li>
                </ul>
              </li>
            
              <li> &nbsp; &nbsp; </li>
        
            </ul>
          </div>
        </nav>
</header>

<script>
  function isNumber(evt) {
    evt = (evt) ? evt : window.event;
    var charCode = (evt.which) ? evt.which : evt.keyCode;
    if (charCode > 31 && (charCode < 48 || charCode > 57)) {
        return false;
    }
    return true;
  }
</script>