Advertisement
Guest User

Untitled

a guest
Nov 19th, 2016
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 7.17 KB | None | 0 0
  1. <script>
  2.     .on('click.dropdown.data-api touchstart.dropdown.data-api', clearMenus);
  3.     $('.dropdown-menu input').click(function(e) {
  4.     e.stopPropagation();
  5.     });
  6. </script>
  7. <div class="navbar navbar-fixed-top">
  8.     <div class="navbar-inner">
  9.         <div class="container">
  10.             <!--<a href="index.php?site=home" class="brand brand-bootbus"> <img style="margin-top: -11px;" src="TEMPLATE/BLOCK/img/mrm_revival_logo_schrift_2.png" /> </a>-->
  11.             <!-- Below button used for responsive navigation -->
  12.             <!-- Start: Primary navigation -->
  13.             <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
  14.               <span class="icon-bar"></span>
  15.               <span class="icon-bar"></span>
  16.               <span class="icon-bar"></span>
  17.             </button>
  18.             <div class="nav-collapse collapse">        
  19.               <ul class="nav pull-right">
  20.                 <?php if(isset($_SESSION['pLogin'])) { ?>
  21.                 <div class="navbar navbar-fixed-top ">
  22.                     <div class="navbar-inner">
  23.                         <div class="nav-collapse collapse">
  24.                         <div class="container">
  25.                             <ul class="nav nav-pills">
  26.                                 <li>
  27.                                     <a href="index.php?site=home"></a>
  28.                                 </li>
  29.                                 <li class="dropdown">
  30.                                     <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="icon-user"></i> Profil
  31.                                     <b class="caret"></b></a>
  32.                                     <ul class="dropdown-menu">
  33.                                         <li class="nav-header">Profil</li>
  34.                                         <li><a href="index.php?site=profilProfil">Profilansicht</a></li>
  35.                                         <li><a href="index.php?site=profilVehicle">Fahrzeuge
  36.                                         <?php
  37.                                         $returner = "";
  38.                                         $sql = "SELECT laden FROM samp_autos WHERE besitzer='". $_SESSION['pUserName'] ."'";  
  39.                                         $num = mysql_num_rows(mysql_query($sql, $link));
  40.                                         if($num == 0) {
  41.                                             $returner = "   <span class='label label-error'>N/A</span>";
  42.                                         } else {
  43.                                         $returner = "   <span class='label label-success'>". $num ." Stück</span>";
  44.                                         }
  45.                                         echo $returner;
  46.                                         ?>
  47.                                         </a></li>                    
  48.                                         <li><a href="index.php?site=profilImmo">Immobilien</a></li>
  49.                                         <li><a href="index.php?site=profilDynSignatur">Dynamische Signatur</a></li>
  50.                                     </ul>
  51.                                 </li>
  52.                                 <li class="dropdown">
  53.                                     <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="icon-folder-close"></i> Fraktion
  54.                                     <b class="caret"></b></a>
  55.                                     <ul class="dropdown-menu">
  56.                                         <?php if($_SESSION['pFaction'] != 0) {?>
  57.                                         <li class="nav-header">Fraktionsverwaltung</li>
  58.                                         <li><a href="index.php?site=factionMember">Mitglieder
  59.                                             <?php $returner = ""; if($_SESSION['pFaction'] == 0) {
  60.                                             $returner = "   <span class='label label-error'>N/A</span>";
  61.                                             } else {
  62.                                                 $sql = "SELECT Name FROM samp_user_accounts WHERE Fraktion=". $_SESSION['pFaction'] ."";  
  63.                                                 $num = mysql_num_rows(mysql_query($sql, $link));
  64.                                                 $returner = "   <span class='label label-success'>". $num ." Mitglieder</span>";
  65.                                             }
  66.                                             echo $returner;?></a>
  67.                                         </li>
  68.                                         <li><a href="index.php?site=factionVehicle">Fahrzeuge
  69.                                             <?php $returner = ""; if($_SESSION['pFaction'] == 0) {
  70.                                             $returner = "   <span class='label label-error'>N/A</span>";
  71.                                             } else {
  72.                                                 $sql = "SELECT grund FROM samp_fraktautos WHERE besitzer=". $_SESSION['pFaction'] ."";  
  73.                                                 $num = mysql_num_rows(mysql_query($sql, $link));
  74.                                                 $returner = "   <span class='label label-success'>". $num ." Fahrzeuge</span>";
  75.                                             }
  76.                                             echo $returner;?></a>
  77.                                         </li>  
  78.                                         <li class="divider"></li>
  79.                                         <?php } ?>
  80.                                         <li class="nav-header">Sonstiges</li>
  81.                                         <li>
  82.                                             <a href="index.php?site=factionLeaderAll">Leaderliste</a>
  83.                                         </li>
  84.                                         <li>
  85.                                             <a href="index.php?site=factionAll">Fraktionsübersicht    <span class='label label-success'>18 Fraktionen</span> <span class='label label-danger'>Deaktiviert</span></a>
  86.                                         </li>
  87.                                     </ul>
  88.                                 </li>
  89.                                 <li class="dropdown">
  90.                                     <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="icon-briefcase"></i> Aktivitäten
  91.                                     <b class="caret"></b></a>
  92.                                     <ul class="dropdown-menu">
  93.                                          <li class="nav-header">Banking</li>
  94.                                         <li>
  95.                                             <a href="index.php?site=banking">Überweisung
  96.                                             <?php $returner = "";
  97.                                             $sql = "SELECT * FROM ucp_banking WHERE pSender='". $_SESSION['pUserName']."' OR pReceiver='". $_SESSION['pUserName'] ."'";  
  98.                                             $num = mysql_num_rows(mysql_query($sql, $link));
  99.                                             $returner = "   <span class='label label-success'>". $num ." Bewegungen</span>";
  100.                                             echo $returner;?></a>
  101.                                         </li>
  102.                                         <li>
  103.                                             <a href="index.php?site=finance">Finanzen <span class='label label-danger'>Deaktiviert</span></a>
  104.                                         </li>  
  105.                                     </ul>
  106.                                 </li>
  107.                                 <li>
  108.                                     <a href="index.php?site=shop"><i class="icon-shopping-cart"></i> Shop</a>
  109.                                 </li>
  110.                                 <? if($_SESSION['pAdmin'] >= 6){?>
  111.                                 <li class="dropdown">
  112.                                     <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="icon-exclamation-sign"></i> ACP
  113.                                     <b class="caret"></b></a>
  114.                                     <ul class="dropdown-menu">
  115.                                         <li class="nav-header">Benutzer</li>
  116.                                         <li><a href="index.php?site=acpControl">Benutzer verwalten</a></li>  
  117.                                         <li><a href="index.php?site=acpMoney">Benutzer geldlogs</a></li>  
  118.                                         <li class="divider"></li>
  119.                                         <li class="nav-header">Server</li>
  120.                                         <li><a href="index.php?site=acpCpStats">Statistiken</a></li>
  121.                                         <li><a href="index.php?site=acpCpNews">News</a></li>
  122.                                     </ul>
  123.                                 </li>
  124.                                 <? } ?>
  125.                                 <li>
  126.                                     <a href="index.php?site=faq"><i class="icon-question-sign"></i> FAQ</a>
  127.                                 </li>
  128.                             </ul>
  129.                        
  130.                 <?} if($_SESSION['pLogin'] == 1) {?>
  131.                         <ul class="nav pull-right">
  132.                             <li>
  133.                             <a href="index.php?site=logout"><i class=" icon-off"></i>Logout</a>
  134.                             </li>
  135.                         </ul>
  136.                         </div>
  137.                     </div>
  138.                     </div>
  139.                 </div>
  140.                     <?} else {?>
  141.                 <li class="dropdown">
  142.                    
  143.                     <a href="#" class="dropdown-toggle hidden-phone" data-toggle="dropdown"><i class=" icon-off"></i> Login
  144.                     <b class="caret"></b></a>  
  145.                     <div class="dropdown-menu" style="padding: 20px; padding-bottom: 0px;">
  146.                         <form class="form-horizontal form-signin-signup" METHOD="POST" action="index.php?site=login">
  147.                         <input type="text"  style="clear: left; width: 90%; height: 20px; font-size: 16px;" name="email" placeholder="Dein Benutzeraccount" />
  148.                         <input type="password" style="clear: left; width: 90%; height: 20px; font-size: 16px;" name="password" placeholder="Dein Passwort" />
  149.                        
  150.                         <input type="submit" value="Login" class="btn btn-primary" style="clear: left; width: 100%; height: 32px; font-size: 13px;">
  151.                        
  152.                        
  153.                        
  154.                        
  155.                         </form>
  156.                     </div>
  157.                 </li>
  158.                  <? } ?>
  159.               </ul>
  160.             </div>
  161.         </div>
  162.     </div>
  163. </div>
  164. <!-- End: Navigation wrapper -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement