Advertisement
Guest User

Header.tpl

a guest
Mar 17th, 2020
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Smarty 6.19 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4.     <meta charset="utf-8">
  5.     <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6.     <title>{$WEBSITE_NAME} - {$WEBSITE_SLOGAN}</title>
  7.  
  8.     <link rel="stylesheet" type="text/css" href="{$TEMPLATE_URL}bootstrap/css/bootstrap.min.css" />
  9.     <link rel="stylesheet" type="text/css" href="{$TEMPLATE_URL}font-awesome/css/font-awesome.min.css" />
  10.     <link rel="stylesheet" type="text/css" href="{$TEMPLATE_URL}css/local.css" />
  11.  
  12.     <script type="text/javascript" src="{$TEMPLATE_URL}js/jquery-1.10.2.min.js"></script>
  13.     <script type="text/javascript" src="{$TEMPLATE_URL}bootstrap/js/bootstrap.min.js"></script>
  14.  
  15.     <!-- you need to include the shieldui css and js assets in order for the charts to work -->
  16.     <link rel="stylesheet" type="text/css" href="http://www.shieldui.com/shared/components/latest/css/light-bootstrap/all.min.css" />
  17.     <link id="gridcss" rel="stylesheet" type="text/css" href="http://www.shieldui.com/shared/components/latest/css/dark-bootstrap/all.min.css" />
  18.  
  19.     <script type="text/javascript" src="http://www.shieldui.com/shared/components/latest/js/shieldui-all.min.js"></script>
  20.     <script type="text/javascript" src="http://www.prepbootstrap.com/Content/js/gridData.js"></script>
  21.  
  22.     <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
  23.         <script language="javascript">
  24.             $(document).ready(function(){
  25.                 getTime();
  26.             });
  27.             setInterval(getTime, 1000);
  28.             function getTime() {
  29.                 curDate = new Date();
  30.                 $('.time').text(leadZero(curDate.getHours()) + ':' + leadZero(curDate.getMinutes()) + ':' +  leadZero(curDate.getSeconds()));
  31.             }
  32.             function leadZero(par) {
  33.                 if (par < 10) {
  34.                     par = ("0" + par);
  35.                 }
  36.                 return par;
  37.             }
  38.         </script>
  39. </head>
  40. <body>
  41.     <div id="wrapper">
  42.           <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
  43.             <div class="navbar-header">
  44.                 <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
  45.                     <span class="sr-only">Toggle navigation</span>
  46.                     <span class="icon-bar"></span>
  47.                     <span class="icon-bar"></span>
  48.                     <span class="icon-bar"></span>
  49.                 </button>
  50.                 <a class="navbar-brand" href="{$ROOT_URL}index.php"> {$WEBSITE_NAME} - <font class="text-muted">{$WEBSITE_SLOGAN}</font></a>
  51.             </div>
  52.             <div class="collapse navbar-collapse navbar-ex1-collapse">
  53.                 <ul id="active" class="nav navbar-nav side-nav">
  54.                     <li><a href="{$ROOT_URL}index.php"><i class="fa fa-bullseye"></i> Startpagina</a></li>
  55.                     <li><a href="{$ROOT_URL}rules.php"><i class="fa fa-list"></i> Regels</a></li>
  56.                     <li><a href="{$ROOT_URL}help.php"><i class="fa fa-question-circle"></i> Help/FAQ</a></li>
  57.                     <li><a href="{$ROOT_URL}stats.php"><i class="fa fa-list"></i> Statistieken</a></li>
  58.                     <li><a href="{$ROOT_URL}prijzen.php"><i class="fa fa-trophy"></i> Prijzen</a></li>
  59.                     <li><a href="{$ROOT_URL}login.php"><i class="fa fa-user"></i> Login</a></li>
  60.                     <li><a href="{$ROOT_URL}register.php"><i class="fa fa-user"></i> Aanmelden</a></li>
  61.                 </ul>
  62.                 <ul class="nav navbar-nav navbar-right navbar-user">
  63.                     <li class="dropdown user-dropdown">
  64.                      <li><a href="" class="btn btn-default btn-rounded mb-4" data-toggle="modal" data-target="#modalLoginForm"><i class="fa fa-user"></i> Inloggen</a>
  65.                     </li>
  66.                     <li class="divider-vertical"></li>
  67.                 </ul>
  68.             </div>
  69.         </nav>
  70.  
  71. <!-- Login Box !-->
  72. <form action='login.php' method='post'>
  73. <div class="modal fade" id="modalLoginForm" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
  74.  aria-hidden="true">
  75.   <div class="modal-dialog" role="document">
  76.     <div class="modal-content">
  77.       <div class="modal-header text-center">
  78.         <h4 class="modal-title w-100 font-weight-bold">Inloggen</h4>
  79.         <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  80.           <span aria-hidden="true">×</span>
  81.         </button>
  82.       </div>
  83.       {if isset($LOGIN)}
  84.                 <div class="alert alert-dismissable alert-success">
  85.                     <button type="button" class="close" data-dismiss="alert">×</button>
  86.                         {$LOGIN}
  87.                         <script language="javascript">
  88.                                         setTimeout("location.href = 'ingame/index.php';",1500);
  89.                         </script>
  90.                 </div>
  91.             {else}
  92.                 {if isset($form_error)}
  93.                 <div class="alert alert-dismissable alert-danger">
  94.                     <button type="button" class="close" data-dismiss="alert">×</button>
  95.                     {$form_error}
  96.                 </div>
  97.                 {/if}
  98.         {/if}
  99.      <form action='login.php' method="POST">
  100.       <div class="modal-body mx-3">
  101.         <div class="md-form mb-5">
  102.           <i class="fa fa-user"></i><label data-error="wrong" data-success="right" for="defaultForm-user"> Gebruikersnaam</label>
  103.           <input type="user" id="defaultForm-user" class="form-control validate" name="login" placeholder="Gebruikersnaam" value="{if isset($login)}{$login}{/if}" />
  104.         </div>
  105.  
  106.         <div class="md-form mb-4">
  107.           <i class="fa fa-lock"></i><label data-error="wrong" data-success="right" for="defaultForm-pass"> Wachtwoord</label>
  108.           <input type="password" id="defaultForm-pass" class="form-control validate" name="password" placeholder="Wachtwoord" value="{if isset($password)}{$password}{/if}" />
  109.         </div>
  110.  
  111.       </div>
  112.       <div class="modal-footer d-flex justify-content-center">
  113.         <button class="btn btn-default" name="submit" type="submit">Login</button>
  114.       </div>
  115.     </div>
  116.   </div>
  117. </div>
  118. </form>
  119. <!-- Einde Loginbox !-->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement