0
Good morning, I’m a beginner in programming web and I am facing some problems in a video lessons course (provided by the company, a little outdated) that I am doing.
I’ve reached a point where I can’t progress... I have to run a menu with a Dropdown... and I’m not getting it...
I appreciate anyone who can help me!
<!doctype html>
<html class="no-js" lang="pt-br" dir="ltr">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><?php if(isset($titulo)): ?>{titulo} | <?php endif; ?>{titulo_padrao}</title>
{headerinc}
</head>
<body>
<?php if(esta_logado(FALSE)): ?>
<div class="row header">
<div class="eigth columns">
<a href="<?php echo base_url('painel');?>"><h1>Painel ADM</h1></a>
</div>
<div class="four columns">
<p class="text-right">Logado como <strong><?php echo $this->session->userdata('user_nome'); ?></strong></p>
<p class="text-right">
<?php echo anchor('usuario/alterar_senha/'.$this->session->userdata('user_id'), 'Alterar senha', 'class="button radius tiny"'); ?>
<?php echo anchor('usuario/logoff/', 'Sair', 'class="button radius tiny alert"'); ?>
</p>
</div>
</div>
@Este é o código que estou tentando trabalhar em cima para funcionar.
<div class="row">
<div class="top-bar">
<div class="top-bar-left">
<ul class="dropdown menu" >
<li><?php echo anchor('painel', 'Inicio'); ?></li>
<li>
<a href="#" class="dropdown menu" >Usuários</a>
<ul class="class="dropdown menu">
<li><?php echo anchor('usuarios/cadastra', 'Cadastrar')?></li>
<li><?php echo anchor('usuarios/gerenciar', 'Gerenciar')?></li>
</ul>
</li>
</ul>
</div>
</div></div>
@Este seria o meu código original.
<!--div class="row">
<div class="twelve columns menu-site">
<ul class="nav-bar">
<li><?php echo anchor('painel', 'Inicio'); ?></li>
<li class="has-flyout">
<?php echo anchor('usuarios/gerenciar', 'Usuarios'); ?>
<ul class="flyout">
<li><?php echo anchor('usuarios/cadastra', 'Cadastrar')?></li>
<li><?php echo anchor('usuarios/gerenciar', 'Gerenciar')?></li>
</ul>
</li>
</ul>
</div>
</div-->
<?php endif; ?>
<div class="row paineladm">
{conteudo}
</div>
<script src="js/foundation.mim.js"></script>
<div class="row rodape">
<div class"twelve columns">
<div class="text-center">{rodape}</div>
</div>
</div>
{footerinc}
</body>
</html>
but what are you not getting? What in this dropdown menu did you fail to do? Dropdown? php in the menu?
– Asura Khan
Mine is coming up! But the Subs-menus with the arrow on the side are not... The intention is to make a menu bar with two obeys: | Home | |Users | E inside the Home, dropdown with: | Register | | Manage |
– J.A20