Tweaking for mobiles, see #14
[PHPCredLocker.git] / modules / menu / menu.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<?php 
/** Menu module
*
* Copyright (C) 2012 B Tasker
* Released under GNU GPL V2
* See LICENSE
*
*/ 
defined('_CREDLOCK') or die;
global $notifications;
 
 
 
 
?>
<div class="span12" style="width: 100%;">
<a class="brand hidden-phone" href="index.php"><?php echo BTMain::getConf()->ProgName;?></a>
<ul class="nav">
<li class="divider-vertical hidden-phone"></li>
 
<?php
if (BTMain::getUser()->name):
 
$this->loadModule('search-table');
?>
 
  <!-- Customer Menu -->
  <li class="nav dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#"><?php echo Lang::_("Customers");?></a>
      <ul class="dropdown-menu" role="menu" id='CustDropDownMenu' aria-Labelled-by='dLabel'>
      <li><a href="index.php?option=addCustomer">Add <?php echo Lang::_("Customer");?></a></li>
      <li class="divider"></li>
 
 
    </ul>
  </li>
  <!-- Customer menu ends -->
 
  <!-- CredType menu -->
<li class="divider-vertical hidden-phone"></li>
 
<li class="nav dropdown hidden-phone">
  <a class="dropdown-toggle" data-toggle="dropdown" href="#"><?php echo Lang::_("Credential Type");?></a>
      <ul class="dropdown-menu" role="menu" id='TypeDropDownMenu' aria-Labelled-by='dLabel'>
      
 
 
      </ul>
</li>
  <!-- CredType menu ends -->
<li class="divider-vertical"></li>
 
 
 
 
 
</ul>
<?php endif; ?>
</ul>
<div class="pull-right" style="position: relative">
 
 
<?php if (BTMain::getUser()->name):?>
  <!-- Search Box -->
  <?php $this->loadModule('search'); ?>
  <!-- Search Box ends -->
 
<?php endif; ?>
 
 
 
 
<?php if (BTMain::checkisSuperAdmin()):?>
<!-- Admin Menu -->
<ul class="nav settings-menu pull-right">
 <li class="nav dropdown">
  <a class="dropdown-toggle" data-toggle="dropdown" href="#"><i class='icon-white icon-cog'></i></a>
      <ul class="dropdown-menu" role="menu" aria-Labelled-by='dLabel'>
      <li><a href="index.php?option=viewUsers">Users</a></li>
      <li><a href="index.php?option=viewGrps"><?php echo Lang::_("User Groups");?></a></li>
      <li><a href="index.php?option=listCredTypes"><?php echo Lang::_("Cred Types");?></a></li>
      <li><a href="index.php?option=pluginInfo">Plugins</a></li>  
      <li><a href="index.php?option=About">About</a></li>
      </ul>
 
</ul>
<!-- Admin Menu Ends -->
 
 
<?php endif;?>
 
<?php $this->loadModule('login-navbar'); ?>
 
</div>
 
 
    <!-- Call the Setup Script -->
    <script type="text/javascript">
    setUpMenus();
    </script>
 
</div>