Gestion des menus

This commit is contained in:
Michael RICOIS 2016-05-12 12:35:21 +02:00
parent 95548b1196
commit b6901709a5

View File

@ -36,19 +36,24 @@
<a href="#" class="dropdown-toggle sd-bgblue" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
Suivi <span class="badge"><?=count($this->Suivi)?></span> <span class="caret"></span></a>
<ul class="dropdown-menu">
<?php if ($this->SuiviMsg) {?>
<li><a href="#"><?=$this->SuiviMsg?></a></li>
<?php } else {?>
<?php if (count($this->Suivi) == 0) {?>
<li><a href="#">Aucun suivi</a></li>
<?php } else {?>
<?php foreach ($this->Suivi as $item) {?>
<li><a href="#"><?=$item['label']?></a></li>
<li><a href="#">Aucun suivi</a></li>
<?php } else {?>
<?php foreach ($this->Suivi as $item) {?>
<li><a href="#"><?=$item->label?></a></li>
<?php }?>
<?php }?>
<li class="divider"></li>
<li><a href="#">Ajouter au portefeuille</a></li>
<li><a href="#">Voir le portefeuille</a></li>
<?php }?>
<li class="divider"></li>
<li><a href="#">Ajouter au portefeuille</a></li>
<li><a href="#">Voir le portefeuille</a></li>
</ul>
</li>
<?php }?>
<?php if ($this->MenuHisto !== null) {?>
<li class="dropdown">
<a href="#" class="dropdown-toggle sd-bgblue" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
<i class="fa fa-history fa-fw"></i> <span class="hidden-xs hidden-sm">Mon historique</span> <span class="caret"></span></a>
@ -57,10 +62,9 @@
<?php foreach ($this->UserHisto as $item) {?>
<li><a href="<?=$this->url(array('module'=>'default', 'controller'=>'identite', 'action'=>'fiche',
'siret'=>$item->CompanyId), 'default', true)?>" target="_blank">
<div><strong><?=$item->CompanyName?></strong></div>
<div class="clearfix">
<small><?=$item->CompanyId?></small>
<span class="text-muted"><small><em><?=$item->Date?></em></small></span>
<strong><?=$item->CompanyName?></strong> - <small><?=$item->CompanyId?></small>
<span class="pull-right text-muted"><small><em><?=$item->Date?></em></small></span>
</div>
</a>
</li>
@ -69,21 +73,8 @@
<?php }?>
<li><a class="text-center" href="#"><strong>Voir plus</strong> <i class="fa fa-angle-right"></i></a></li>
</ul>
</a>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle sd-bgblue" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
Outils Métier <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="/" target="_blank"><div><strong>Extranet</strong></div><div>Données légales</div></a></li>
<li class="divider"></li>
<li><a href="http://ws.scores-decisions.com" target="_blank" title="Web Service API">
<div><strong>WebService</strong></div><div>Web Service API</div></a></li>
<li class="divider"></li>
<li><a href="<?=$this->url(array('module'=>'default', 'controller'=>'index', 'action'=>'odea'), 'default', true)?>" target="_blank">
<div><strong>ODEA</strong></div><div>Données et prospection</div></a></li>
</ul>
</li>
<?php }?>
<li class="dropdown">
<a href="#" class="dropdown-toggle sd-bgblue" data-toggle="dropdown"
role="button" aria-haspopup="true" aria-expanded="false" title="Tableau de bord">
@ -95,11 +86,8 @@
<?php }?>
<li><a href="<?=$this->url(array('module'=>'help', 'controller'=>'news', 'action'=>'liste'),
'default', true)?>">Nouveautés</a></li>
<?php if (in_array($this->UserProfil, array('SuperAdministrateur'))) {?>
<li role="separator" class="divider"></li>
<li><a href="<?=$this->url(array('module'=>'default', 'controller'=>'dashboard', 'action'=>'index'),
'default', true)?>">Extranet Dashboard</a></li>
<?php }?>
<li><a href="<?=$this->url(array('module'=>'help', 'controller'=>'index', 'action'=>'index'),
'default', true)?>">Aide</a></li>
<li role="separator" class="divider"></li>
<li><a href="<?=$this->url(array('module'=>'user', 'controller'=>'order', 'action'=>'index'),
'default', true)?>">Commandes</a></li>
@ -114,6 +102,12 @@
<i class="fa fa-user fa-fw"></i> <?=$this->profileLink()?> <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li class="dropdown-header">Outils Métier</li>
<li><a href="/" target="_blank" title="Données légales">Extranet</a></li>
<li><a href="http://ws.scores-decisions.com" target="_blank" title="Web Service API">WebService</a></li>
<li><a href="<?=$this->url(array('module'=>'default', 'controller'=>'index', 'action'=>'odea'), 'default', true)?>"
target="_blank" title="Données et prospection">ODEA</a></li>
<li class="divider"></li>
<li><a href="<?=$this->url(array('module'=>'user', 'controller'=>'identity', 'action'=>'index'),
'default', true)?>"><i class="fa fa-cogs fa-fw"></i> Paramètres</a></li>
<li class="divider"></li>