我想显示单击时选择的侧面菜单项

时间:2015-03-17 17:20:05

标签: php

<?php require 'conn.php'; ?>
<!DOCTYPE php>
<php lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="Dashboard">
    <meta name="keyword" content="Dashboard, Bootstrap, Admin, Template, Theme, Responsive, Fluid, Retina">

    <title>DASHGUM - FREE Bootstrap Admin Template</title>

    <!-- Bootstrap core CSS -->
    <link href="assets/css/bootstrap.css" rel="stylesheet">
    <!--external css-->
    <link href="assets/font-awesome/css/font-awesome.css" rel="stylesheet" />
    <link rel="stylesheet" type="text/css" href="assets/css/zabuto_calendar.css">
    <link rel="stylesheet" type="text/css" href="assets/js/gritter/css/jquery.gritter.css" />
    <link rel="stylesheet" type="text/css" href="assets/lineicons/style.css">    

    <!-- Custom styles for this template -->
    <link href="assets/css/style.css" rel="stylesheet">
    <link href="assets/css/style-responsive.css" rel="stylesheet">


    <!-- php5 shim and Respond.js IE8 support of php5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/libs/php5shiv/3.7.0/php5shiv.js"></script>
      <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>

<body>

<section id="container" >
      <!-- **********************************************************************************************************************************************************
      TOP BAR CONTENT & NOTIFICATIONS
      *********************************************************************************************************************************************************** -->
      <!--header start-->
      <header class="header black-bg">
              <div class="sidebar-toggle-box">
                  <div class="fa fa-bars tooltips" data-placement="right" data-original-title="Toggle Navigation"></div>
              </div>
            <!--logo start-->
            <a href="index.php" class="logo"><b></b></a>
            <!--logo end-->

            <div class="top-menu">
                <ul class="nav pull-right top-menu">
                    <li><a class="logout" href="login.php">Logout</a></li>
                </ul>
            </div>
        </header>
      <!--header end-->

      <!-- **********************************************************************************************************************************************************
      MAIN SIDEBAR MENU
      *********************************************************************************************************************************************************** -->
      <!--sidebar start-->
      <aside>
          <div id="sidebar"  class="nav-collapse ">
              <!-- sidebar menu start-->
              <ul class="sidebar-menu" id="nav-accordion">

                  <p class="centered"><a href="profile.php"><img src="assets/img/ui-sam.jpg" class="img-circle" width="60"></a></p>
                  <h5 class="centered"></h5>

                  <li class="mt">
                      <a class="active" href="index.php">
                          <i class="fa fa-dashboard"></i>
                          <span>Dashboard</span>
                      </a>
                  </li>
                  <li class="mt2">
                      <a href="category.php">
                          <i class="fa fa-plus-square"></i>
                          <span>Category</span>
                      </a>
                  </li>
                  <li class="mt2">
                      <a href="sub-category.php">
                          <i class="fa fa-minus-square"></i>
                          <span>Sub Category</span>
                      </a>
                  </li>

                  <li class="sub-menu">
                      <a href="javascript:;" >
                          <i class="fa fa-globe"></i>
                          <span>Location</span>
                      </a>
                      <ul class="sub">
                          <li><a  href="country.php">Country</a></li>
                          <li><a  href="state.php">State</a></li>
                          <li><a  href="city.php">City</a></li>
                      </ul>
                  </li>

                  <li class="sub-menu">
                      <a href="javascript:;" >
                          <i class="fa fa-clipboard"></i>
                          <span>Template</span>
                      </a>
                      <ul class="sub">
                          <li><a  href="template.php"><i class="fa fa-upload"></i>Upload</a></li>
                          <li><a  href="View_template.php"><i class="fa fa-qrcode"></i>View</a></li>
                      </ul>
                  </li>


                        <li class="mt2">
                      <a href="user.php">
                          <i class="fa fa-user"></i>
                          <span>Users</span>
                      </a>
                  </li>

                   <li class="mt2">
                      <a href="site_content.php">
                        <i class="fa fa-th-large"></i>
                          <span>Site Content</span>
                      </a>
                  </li>
                   <li class="mt2">
                      <a href="we_offer.php">
                          <i class="fa fa-thumbs-up"></i>
                          <span>We Offer</span>
                      </a>
                  </li>
              </ul>
              <!-- sidebar menu end-->
          </div>
      </aside>
      <!--sidebar end-->

我有这段代码,但我不知道如何显示所选的菜单栏项。这是我的侧栏代码。我在索引页面调用此页面。有一个名为active的类,在仪表板上调用.so仪表板始终默认选中。但我想显示单击时选择的菜单栏项。它是一个现成的模板。

0 个答案:

没有答案