切换按钮不切换

时间:2017-03-27 10:33:24

标签: php html

<?php
session_start();
error_reporting(1);
+require("../config.php");
 extract($_SESSION);
 if($student=="")
 {
 header('location:../index.php');
 }
$q=mysqli_query($con,"select * from student where email='".$student."'"); 
$stu= mysqli_fetch_array($q);
 ?>
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="../../favicon.ico">
    <title>Crash Courses</title>
<link rel="shortcut icon" type="image/x-icon" href="../images/result2.png">
    <!-- Bootstrap core CSS -->
    <link href="../css/bootstrap.min.css" rel="stylesheet" type="text/css">
    <!-- Custom styles for this template -->
    <link href="../css/dashboard.css" rel="stylesheet" type="text/css">
    <!-- Bootstrap theme -->
    <link href="../css/bootstrap-theme.min.css" rel="stylesheet" type="text/css">
  </head>
  <body>
  <nav class="navbar navbar-inverse navbar-fixed-top" style="background:#f5f5f5;border-bottom:1px solid #ccc">
      <div class="container-fluid">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="#" style="color:#337ab7"><?php echo "Hello  ! ".$stu['name'];?></a>



        </div>
        <div id="navbar" class="navbar-collapse collapse">
          <ul class="nav navbar-nav navbar-right">

        <?php 
        if(file_exists("img/$student"))
        {
        $arr=scandir("img/$student");
        $img=$arr[2];
        $path="img/".$student."/".$img.'?'.time();
        ?>
        <li><a title="Upload Profile pic" href="index.php?option=upload_profile_pic" style="color:#FFFFFF"><img style="border-radius:20px" src="<?php echo $path;?>" width="30"/></a></li>
        <?php 
        }
        else{
        ?>

        <li><a title="Upload Profile pic" href="index.php?option=upload_profile_pic" style="color:#FFFFFF"><img src="img/user.png" style="border-radius:20px" width="30" /></a></li>
            <?php } ?>

            <li><a  href="logout.php" style="color:#337ab7"><span class="glyphicon glyphicon-log-out"></span> Logout</a></li>
          </ul>

        </div>
      </div>
    </nav>
</body>
</html>


----------

在移动视图中使用时,切换按钮似乎没有响应。切换按钮是结构状态,根本不响应。

0 个答案:

没有答案