Ejemplo n.º 1
0
            <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="#">ФГУ ДЭП 13</a>
        </div>
        <div id="navbar" class="collapse navbar-collapse">
          <ul class="nav navbar-nav">
            <li <?php 
echo echoActiveClassIfRequestMatches("defectsTable");
?>
> <a href="defectsTable.php">Таблица дефектов</a></li>
            <li <?php 
echo echoActiveClassIfRequestMatches("map");
?>
> <a href="map.php">Карта дефектов</a></li>
            <li><a href="#reports">Отчеты</a></li>
            <li><a href="#contact">О проекте</a></li>
          </ul>
        </div><!--/.nav-collapse -->
      </div>
    </nav>

<?php 
function echoActiveClassIfRequestMatches($requestUri)
{
    $current_file_name = basename($_SERVER['REQUEST_URI'], ".php");
    if ($current_file_name == $requestUri) {
        echo "class=\"active\"";
Ejemplo n.º 2
0
				<li <?php 
        echo echoActiveClassIfRequestMatches("admin");
        ?>
><a href="/dashboard/admin">Dashboard</a></li>
<?php 
    } else {
        ?>
				<li <?php 
        echo echoActiveClassIfRequestMatches("dashboard");
        ?>
><a href="/dashboard">Dashboard</a></li>
<?php 
    }
    ?>
				<li <?php 
    echo echoActiveClassIfRequestMatches("edit");
    ?>
><a href="/users/edit">Profile</a></li>
<?php 
}
?>
			</ul>
			<ul class="nav navbar-nav navbar-right">
<?php 
if ($this->session->userdata("logged_in") == 0) {
    ?>
              <li><a href="/signin">Sign in</a></li>
<?php 
} else {
    ?>
              <li><a href="/users/logout_user">Log off</a></li>
Ejemplo n.º 3
0
           <li <?php 
modifyUrlAndClass("Invitation");
?>
>
       <a  href="common_signup.php" >Invitation</a>
      </li>
      <!--
      <li  <?php 
modifyUrlAndClass("services");
?>
>
       <a href="common_services.php" >Services</a>
      </li>
      -->
      <li>
       <a class="page-scroll" href=<?php 
echoActiveClassIfRequestMatches("index", "contact");
?>
>Contact</a>
      </li>
     </ul>
     
     
     
    </div><!--/ Navigation end -->
   </div><!--/ Row end -->
  </div><!--/ Container end -->
 </nav>
</header><!--/ Header end -->
<!-- END MAIN NAV -->
Ejemplo n.º 4
0
        <?php 
    if ($user->inRole(2)) {
        ?>
        <li class="dropdown">
            <a id="dLabel" data-toggle="dropdown"  data-target="#" href="#">Manage <span class="caret"></span></a>
            <ul class="dropdown-menu multi-level" role="menu" aria-labelledby="dropdownMenu">
              <li <?php 
        echoActiveClassIfRequestMatches("stagemanager");
        ?>
><a href="stagemanager.php" ><i class="fa fa-random fa-fw"></i> Stage Manager</a></li>
              <li <?php 
        echoActiveClassIfRequestMatches("actionmanager");
        ?>
><a href="actionmanager.php" ><i class="fa fa-table fa-fw"></i> Action Manager</a></li>
              <li <?php 
        echoActiveClassIfRequestMatches("activitymanager");
        ?>
><a href="activitymanager.php" ><i class="fa fa-fw fa-bolt"></i></i> Activity Manager</a></li>
              <li class="divider"></li>
              <li><a href="addexclution.php" ><i class="fa fa-times"></i> Exclude Content</a></li>
              
            </ul>
        </li>
        <?php 
    }
    ?>
        <!-- MANAGE END -->
      <?php 
}
?>
      </ul>
Ejemplo n.º 5
0
    <h4 style="margin-bottom: 0">Invalid credentials. Try again!</h4><h5 style="margin-bottom: 0"> Click <a href="#">here</a> if you forgot your login information.</h5>
  </div>
</form>';
// user is logged in.
$logged_in = '<h4 id="welcome-message">Welcome, ' . $_SESSION['username'] . '</h4></div>
  <input type="submit" class="btn btn-sm btn-primary" 
  name="button" id="button" value="Logout" />';
$logged_in_nav_left = '<ul class="nav navbar-nav">
        <li ' . echoActiveClassIfRequestMatches("index") . '><a href="http://149.166.29.173/sales_side/index.php">Home</a></li>
        <li ' . echoActiveClassIfRequestMatches("about") . '><a href="http://149.166.29.173/sales_side/about.php">About</a></li>
        <li ' . echoActiveClassIfRequestMatches("dashboard") . '><a href="http://149.166.29.173/sales_side/dashboard.php">Dashboard</a></li>
      </ul>';
$logged_out_nav_left = '<ul class="nav navbar-nav">
        <li ' . echoActiveClassIfRequestMatches("index") . '><a href="http://149.166.29.173/sales_side/index.php">Home</a></li>
        <li ' . echoActiveClassIfRequestMatches("about") . '><a href="http://149.166.29.173/sales_side/about.php">About</a></li>
        <li ' . echoActiveClassIfRequestMatches("registration") . '><a href="http://149.166.29.173/sales_side/registration.php">Sign Up!</a></li>
      </ul>';
if ($_GET['login'] == 'logout') {
    // User requests logout
    $_SESSION['login'] = false;
} else {
    if ($_SESSION['login'] == true) {
        // Valid Login
        $form = $logged_in;
        $leftnav = $logged_in_nav_left;
    } else {
        if ($_GET['login'] == 'error') {
            // User login name not found.
            $form = $logged_out_error;
            $leftnav = $logged_out_nav_left;
        } else {
Ejemplo n.º 6
0
              <li <?php 
echo echoActiveClassIfRequestMatches("about");
?>
><a href="about.php"><?php 
echo $about;
?>
</a></li>
              <li <?php 
echo echoActiveClassIfRequestMatches("mapsandstatistics");
?>
><a href="mapsandstatistics.php"><?php 
echo $mapsandstatistics;
?>
</a></li>
              <li <?php 
echo echoActiveClassIfRequestMatches("dataaccess");
?>
><a href="dataaccess.php"><?php 
echo $data;
?>
</a></li>
			  <li><a href="http://envirocar.github.io/" target="_blank" title="<?php 
echo $softwareTitle;
?>
"><?php 
echo $software;
?>
</a></li>
              <?php 
if (!is_logged_in()) {
    ?>
Ejemplo n.º 7
0
								<li <?php 
        echo echoActiveClassIfRequestMatches("Facturas");
        ?>
><a href="">Facturas</a></li>
								<li <?php 
        echo echoActiveClassIfRequestMatches("Comisiones_Saloneros");
        ?>
><a
									href="">Comisiones Saloneros</a></li>
							</ul></li>
					<?php 
    }
}
?>
				<li <?php 
echo echoActiveClassIfRequestMatches("ayuda");
?>
><a
							href="ayuda.php">Ayuda <i class="glyphicon glyphicon-wrench"></i></a></li>


					</ul>

					<!--Login-->
					<!--  navbar-right -->
			<?php 
include 'Login.php';
?>


		</div>
Ejemplo n.º 8
0
    <div class="navbar navbar-default navbar-fixed-top" role="navigation">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
            <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="index.php">Surwave</a>
          <img src="./assets/img/logo2.png" style="max-height: 30px; margin-top: 7.5px;">
        </div>
        <div class="navbar-collapse collapse navbar-right">
          <ul class="nav navbar-nav">
            <li <?php 
echo echoActiveClassIfRequestMatches("index");
?>
><a href="index.php">HOME</a></li>
            <?php 
//Added a condition to the if clause.
if (isset($_SESSION['login']) and $_SESSION['login'] == "1") {
    echo '<li class="nav-item"><a href="profile.php">MY ACCOUNT</a></li>';
    echo '<li class="nav-item"><a href="logout.php">LOGOUT</a></li>';
} else {
    echo '<li class="nav-item"><a href="login.php">CORPORATE PORTAL</a></li>';
}
?>
          </ul>
        </div><!--/.nav-collapse -->
      </div>
    </div>
Ejemplo n.º 9
0
    echo $page[3];
    ?>
 <?php 
    echo $page[0];
    ?>
</a></li>
                <?php 
}
?>
                <?php 
if (!empty($plugins)) {
    foreach ($plugins as $plugin_item) {
        $plugin_url = array($plugin_item['plugin_url']);
        ?>
                        <li<?php 
        echoActiveClassIfRequestMatches($plugin_url);
        ?>
><a href="<?php 
        echo BASE_URL . '/' . $plugin_item['plugin_url'];
        ?>
"><span class="glyphicon glyphicon-plus" aria-hidden="true"></span> <?php 
        echo $plugin_item['plugin_title'];
        ?>
</a></li>
                <?php 
    }
}
?>
            </ul>

            <footer id="gw_footer">
Ejemplo n.º 10
0
                            <li <?php 
echo echoActiveClassIfRequestMatches("2015-most-viewed-non-music-videos");
?>
><a href="2015-most-viewed-non-music-videos.php">Non-Music Videos</a></li>
                        </ul>
                    </div>

                    <div class="col-md-4">
                        <ul class="dropdown-menu">
                            <li><a href="#"><strong>Other</strong></a></li>
                            <li <?php 
echo echoActiveClassIfRequestMatches("most-viewed-non-english-videos");
?>
><a href="most-viewed-non-english-videos.php">Non-English Videos</a></li>
                            <li <?php 
echo echoActiveClassIfRequestMatches("oldest-videos");
?>
><a href="oldest-videos.php">Oldest Videos</a></li>
                        </ul>
                    </div>

                </div>
            </div>
        </li>
      </ul>

    </div><!-- /.navbar-collapse -->
  </div><!-- /.container-fluid -->
</nav>

Ejemplo n.º 11
0
                <li class="<?php 
echoActiveClassIfRequestMatches("schedule");
?>
"><a href="schedule.php">Schedule</a>
                </li>
                <li class="<?php 
echoActiveClassIfRequestMatches("rankings");
?>
"><a href="rankings.php">Rankings</a>
                <li class="<?php 
echoActiveClassIfRequestMatches("scorecard");
?>
"><a href="scorecard.php">Scorecard</a>
                </li>
                <li class="<?php 
echoActiveClassIfRequestMatches("results");
?>
">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">Results<span
                            class="caret"></span></a>
                    <ul class="dropdown-menu" role="menu">
                        <?php 
for ($i = 1; $i <= CommonVariables::$currentTimePeriod - 1; ++$i) {
    ?>
                            <li><a href="results.php?week=<?php 
    echo $i;
    ?>
">Week <?php 
    echo $i;
    ?>
</a></li>
Ejemplo n.º 12
0
    <body>
       <ul class="nav nav-tabs">
          <li role="presentation" <?php 
echo echoActiveClassIfRequestMatches("index");
?>
 ><a href="index.php"><span class="glyphicon glyphicon-list"></span> List Content</a></li>
          <li role="presentation" <?php 
echo echoActiveClassIfRequestMatches("create_file");
?>
 ><a href="create_file.php"><span class="glyphicon glyphicon-file"></span> Create File</a></li>
          <li role="presentation" <?php 
echo echoActiveClassIfRequestMatches("create_dir");
?>
 ><a href="create_dir.php"><span class="glyphicon glyphicon-folder-open"></span>   Create Folder</a></li>
          <li role="presentation" <?php 
echo echoActiveClassIfRequestMatches("upload_file");
?>
  ><a href="upload_file.php"><span class="glyphicon glyphicon-cloud-upload"></span>  Upload File</a></li>
        </ul>
    </body>
</html>		                
<?php 
require_once 'appvars.php';
function echoActiveClassIfRequestMatches($requestUri)
{
    $current_file_name = basename($_SERVER['REQUEST_URI'], ".php");
    if ($current_file_name == $requestUri) {
        echo 'class="active"';
    }
}
?>
Ejemplo n.º 13
0
                    <!--li <?php 
echo echoActiveClassIfRequestMatches("clients.php");
?>
 ><a href="clients.php"><i class="fa fa-users"></i> Клієнти</a></li-->
                    <li <?php 
echo echoActiveClassIfRequestMatches("profile");
?>
><a href="<?php 
echo $CONF['hostname'];
?>
profile"><i class="fa fa-cogs"></i> <?php 
echo lang('NAVBAR_profile');
?>
</a></li>
                    <li <?php 
echo echoActiveClassIfRequestMatches("help");
?>
><a href="<?php 
echo $CONF['hostname'];
?>
help"><i class="fa fa-question-circle"></i> <?php 
echo lang('NAVBAR_help');
?>
</a></li>
                    <li><a href="<?php 
echo $CONF['hostname'];
?>
index.php?logout"><i class="fa fa-sign-out"></i> <?php 
echo lang('NAVBAR_logout');
?>
</a></li>
Ejemplo n.º 14
0
					</ul>
				<li><a href="#/ffb/footballdex">FootballDex</a></li>
			</ul>
		</li>
		<li class="dropdown" <?php 
    echo echoActiveClassIfRequestMatches("mmq");
    ?>
>
			<a class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expandied="false">Prop Bets<span class="caret"></a>
			<ul class="dropdown-menu">
				<li><a href="#/mlb">MLB</a></li>
				<li><a href="#/nfl">NFL</a></li>
			</ul>
		</li>
        <li <?php 
    echo echoActiveClassIfRequestMatches("birthday");
    ?>
>
			<a href="#/birthday">Big Birthday Date</a>
		</li>
		</ul>
		
		<!--<ul class="nav navbar-nav navbar-right">
        <li><a href="#"><span class="glyphicon glyphicon-user"></span> Sign Up</a></li>
        <li><a href="#"><span class="glyphicon glyphicon-log-in"></span> Login</a></li>
		</ul>-->

<?php 
}
?>
      
Ejemplo n.º 15
0
                <li><a id="login_button" href="#" onclick="Auth.login()">Log in</a></li>
                <li class="divider-vertical"></li>
                <li><a id="logout_button" href="#" onclick="Auth.logout()" style="display: none;">Log Out</a></li>
                <li class="divider-vertical"></li>
                <li <?php 
echo echoActiveClassIfRequestMatches("friends");
?>
><a href="friends.php">Friends</a></li>
                <li class="divider-vertical"></li>
                <li <?php 
echo echoActiveClassIfRequestMatches("Achievements");
?>
><a href="achievements.php">Achievements</a></li>
                <li class="divider-vertical"></li>
                <li <?php 
echo echoActiveClassIfRequestMatches("list");
?>
><a href="index.php">Your Bucket List</a></li>
            </ul>
            
            <?php 
function echoActiveClassIfRequestMatches($requestUri)
{
    $current_file_name = basename($_SERVER['REQUEST_URI'], ".php");
    if ($current_file_name == $requestUri) {
        echo 'class="active"';
    }
}
?>

            <div class="navbar-form navbar-right form-group">