ok

Mini Shell

Direktori : /home/pequenacapitolio/www/administrador/
Upload File :
Current File : /home/pequenacapitolio/www/administrador/estrutura_menu.php

  <?php

  $mod = $conn->query("SELECT * FROM modulos where idmodulo = 1");
  $modulos = $mod->fetch(PDO::FETCH_OBJ);

  $mod1 = $conn->query("SELECT * FROM modulos where idmodulo = 2");
  $modulos1 = $mod1->fetch(PDO::FETCH_OBJ);

  $mod2 = $conn->query("SELECT * FROM modulos where idmodulo = 3");
  $modulos2 = $mod2->fetch(PDO::FETCH_OBJ);

  $mod3 = $conn->query("SELECT * FROM modulos where idmodulo = 4");
  $modulos3 = $mod3->fetch(PDO::FETCH_OBJ);

  $mod4 = $conn->query("SELECT * FROM modulos where idmodulo = 5");
  $modulos4 = $mod4->fetch(PDO::FETCH_OBJ);

  $mod5 = $conn->query("SELECT * FROM modulos where idmodulo = 6");
  $modulos5 = $mod5->fetch(PDO::FETCH_OBJ);

  $mod6 = $conn->query("SELECT * FROM modulos where idmodulo = 7");
  $modulos6 = $mod6->fetch(PDO::FETCH_OBJ);

  $mod7 = $conn->query("SELECT * FROM modulos where idmodulo = 8");
  $modulos7 = $mod7->fetch(PDO::FETCH_OBJ);

  $mod8 = $conn->query("SELECT * FROM modulos where idmodulo = 9");
  $modulos8 = $mod8->fetch(PDO::FETCH_OBJ);

  $mod9 = $conn->query("SELECT * FROM modulos where idmodulo = 10");
  $modulos9 = $mod9->fetch(PDO::FETCH_OBJ);

  $mod10 = $conn->query("SELECT * FROM modulos where idmodulo = 11");
  $modulos10 = $mod10->fetch(PDO::FETCH_OBJ);

  $mod11 = $conn->query("SELECT * FROM modulos where idmodulo = 12");
  $modulos11 = $mod11->fetch(PDO::FETCH_OBJ);

  $mod12 = $conn->query("SELECT * FROM modulos where idmodulo = 13");
  $modulos12 = $mod12->fetch(PDO::FETCH_OBJ);
  ?>
  <header class="main-header">
    <!-- Logo -->
    <a class="logo">
      <!-- mini logo for sidebar mini 50x50 pixels -->
      <img src="img_site/logomini.png" alt="" style="max-width:30px;">
      <!-- logo for regular state and mobile devices -->
      <img src="img_site/logo.png" alt="" style="max-width:98px;">
    </a>
    <!-- Header Navbar: style can be found in header.less -->
    <nav class="navbar navbar-static-top">
      <!-- Sidebar toggle button-->
      <a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
        <style>
          .main-header .sidebar-toggle:before {
            content: none !important;
          }
        </style>

        <i class="fas fa-bars"></i>
      </a>
      <a href="entrada.php"  class="btn btn-primary btn-flat" style="margin-right: 4%;margin-left:5px;margin-top: 10px;background: #02a3da;border-radius: 3px;width: 10%;padding-bottom: 3px;padding-top: 3px;border-color: transparent;">Tela Inicial</a>

      <div class="navbar-custom-menu">
        <ul class="nav navbar-nav">

          <?php
          $foto = $conn->query("SELECT * FROM perfil WHERE idperfil = 1");
          $perfilfoto = $foto->fetch(PDO::FETCH_OBJ);
          ?>

          <li class="dropdown user user-menu">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
              <img src="uploads/imagens/<?php echo $perfilfoto->foto ?>" class="user-image" alt="User Image">
              <span class="hidden-xs"><?php echo $_SESSION["adm"]["nome"]?></span>
            </a>
            <ul class="dropdown-menu">
              <!-- User image -->
              <li class="user-header" style="height: auto;">
                <!-- <img src="dist/img/user2-160x160.jpg" class="img-circle" alt="User Image"> -->

                <p>
                  <?php echo $_SESSION["adm"]["nome"]?>
                  <!-- <small>Member since Nov. 2012</small> -->
                </p>
              </li>

              <!-- Menu Footer-->
              <li class="user-footer">
                <div class="pull-left">
                  <a href="usuarios_admin.php" class="btn btn-default btn-flat">Gerenciar usuários</a>
                </div>
                <div class="pull-right">
                  <a href="http://pequenacapitolio.com.br/" class="btn btn-default btn-flat">Sair</a>
                </div>
              </li>
            </ul>
          </li>
          <!-- Control Sidebar Toggle Button -->
          <li>
            <a href="modulos_admin.php"><i class="fas fa-cogs"></i></a>
          </li>
        </ul>
      </div>
    </nav>
  </header>


  <!-- Left side column. contains the sidebar -->
  <aside class="main-sidebar">
    <!-- sidebar: style can be found in sidebar.less -->
    <section class="sidebar">

      <div class="user-panel" style="text-align: center;height: 60px">
          <p style="color: #b8c7ce;margin-bottom: 1px"><?php echo $_SESSION["adm"]["nome"]?></p> 
          <p><a href="perfil_admin.php" style="color: #fff"><?php echo $perfilfoto->nome_empresa ?></a></p>

            <?php if($modulos->status == 'ativo'){ ?>
            <a href="perfil_admin.php"><i class="fas fa-cogs"></i></a>
            <?php } ?>
        <!-- <div class="pull-left image"> -->
          <!-- <img src="dist/img/user2-160x160.jpg" class="img-circle" alt="User Image"> -->
       <!--  </div> -->
        <div class="pull-left info" style="width: 100%;">
          <div style="display: flex; justify-content: space-between;">
            <p><?php echo $_SESSION["adm"]["nome"]?></p> 

            <?php if($modulos->status == 'ativo'){ ?>
            <a href="perfil_admin.php"><i class="fas fa-cogs"></i></a>
            <?php } ?>
          </div>  
          <a>Empresa</a>
        </div>
      </div>
      <!-- <div class="col-md-12" style="padding: 0;text-align: center">
        <p>GERENCIAMENTO DE PAGINAS</p>
      </div> -->
      <!-- sidebar menu: : style can be found in sidebar.less -->
      <ul class="sidebar-menu" data-widget="tree">
        <li class="header" style="color: #fff;font-size: 14px">Gerenciar Website</li>
        
        <li class="treeview">
          <a href="#">
            <i class="fas fa-file-alt"></i>
            <span>Conteúdos</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
            <?php if($modulos1->status == 'ativo'){ ?>
            <li><a href="paginas_admin.php"><i class="fa fa-circle-o"></i>Páginas</a></li>
            <?php } ?>

            <?php if($modulos3->status == 'ativo'){ ?>
            <li><a href="noticias_admin.php"><i class="fa fa-circle-o"></i>Publicações</a></li>
            <?php } ?>
          </ul>
        </li>
        

        <?php if($modulos2->status == 'ativo'){ ?>
        <li>
          <a href="destaque_admin.php">
            <i class="fas fa-image"></i>
            <span>Destaques</span>
          </a>
        </li>
        <?php } ?>

        
        <li class="treeview">
          <a href="#">
            <i class="fas fa-book"></i>
            <span>Catálogos</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
            <!-- <?php if($modulos5->status == 'ativo'){ ?>
            <li><a href="servicos_admin.php"><i class="fa fa-circle-o"></i>Serviços</a></li>
            <?php } ?>
 -->
            <?php if($modulos11->status == 'ativo'){ ?>
            <li><a href="catalogo_admin.php"><i class="fa fa-circle-o"></i>Atrativos</a></li>
            <?php } ?>

            <?php if($modulos12->status == 'ativo'){ ?>
            <li><a href="projetos_admin.php"><i class="fa fa-circle-o"></i>Pequena Capitólio</a></li>  
            <?php } ?>

            <!-- <?php if($modulos9->status == 'ativo'){ ?>
            <li><a href="agencias_admin.php"><i class="fa fa-circle-o"></i>Agências</a></li>  
            <?php } ?> -->

            <!-- <?php if($modulos4->status == 'ativo'){ ?>
            <li><a href="parceiros_admin.php"><i class="fa fa-circle-o"></i>Parceiros</a></li>
            <?php } ?> -->
          </ul>
        </li>


        <li class="treeview">
          <a href="#">
            <i class="fas fa-film"></i>
            <span>Multimídia</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
            <!-- <?php if($modulos7->status == 'ativo'){ ?>
            <li><a href="videos_admin.php"><i class="fa fa-circle-o"></i>Vídeos</a></li>
            <?php } ?> -->

            <?php if($modulos8->status == 'ativo'){ ?>
            <li><a href="albuns_admin.php"><i class="fa fa-circle-o"></i>Álbuns</a></li>
            <?php } ?>

           <!--  <?php if($modulos10->status == 'ativo'){ ?>
            <li><a href="downloads_admin.php"><i class="fa fa-circle-o"></i>Downloads</a></li>  
            <?php } ?> -->
          </ul>
        </li>


        <?php if($modulos6->status == 'ativo'){ ?>
       <!--  <li>
          <a href="depoimentos_admin.php">
            <i class="fas fa-comment"></i>
            <span>Depoimentos</span>
          </a>
        </li> -->
        <?php } ?>

         <li>
          <a href="guia_admin.php">
            <i class="fas fa-search-location"></i>
            <span>Guia</span>
          </a>
        </li>

        <?php if($modulos6->status == 'ativo'){ ?>
        <li>
          <a href="ferramentas_admin.php">
            <i class="fas fa-tools"></i>
            <span>Ferramentas</span>
          </a>
        </li>
        <?php } ?>

        
     
        <ul class="sidebar-menu" data-widget="tree">
        <li class="header" style="color: #fff;font-size: 14px">Potencialize seu Negócio</li>
        
        <li>
          <a href="https://adaptweb.com.br/blog" target="_blank">
            <i class="fas fa-newspaper"></i>
            <span>Materias AdaptWeb</span>
          </a>
        </li>
        <li>
          <a href="https://adaptweb.com.br/Aplicativos" target="_blank">
            <i class="fas fa-mobile-alt"></i>
            <span>Aplicativos</span>
          </a>
        </li>
        <li>
          <a href="https://adaptweb.com.br/Gest%C3%A3o-Financeira" target="_blank">
            <i class="fas fa-sitemap"></i>
            <span>Gestão 100% online</span>
          </a>
        </li>
        <li>
          <a href="https://adaptweb.com.br/Adwords" target="_blank">
            <i class="fab fa-google" ></i>
            <span>Google Adwords</span>
          </a>
        </li>

        <li class="header" style="color: #fff;font-size: 14px">Especial AW</li>
        
        <li>
          <a href="http://www.wecondo.com.br" target="_blank">
            <span>WeCondo - Solução para gestão<br>de Condomínio</span>
           
          </a>
        </li>

        <li>
          <a href="https://adaptweb.com.br/GRPRO" target="_blank">
            <span>GRPRO - ERP incloud para<br>gestão redes associativistas</span>
          </a>
        </li>

        <style>
          .sidebar li a .fas, .fab {
            width: 20px !important;
          }
        </style>

      </ul>
    </section>
    <!-- /.sidebar -->
  </aside>

Zerion Mini Shell 1.0