Newer
Older
ournorth2021 / views / menu.php
LuisOlaya on 8 Apr 2021 5 KB primer
<?php
$ahorabt = date("Y-m-d H:i:s");

$display = 'style="display: none"';
if ($_SESSION['id_user'] == 173){
    $display = '';
}

$display_desafio = 'style="display: none"';
$qBt_desafio = mysqli_query($connect,"SELECT * FROM Botones WHERE boton = 'desafio' AND hora_inicia <= '".$ahorabt."' AND hora_termina >= '".$ahorabt."'  ");
if($qBt_desafio->num_rows > 0){
    $display_desafio = ".";
}

?>

<!-- MENU WEB -->
<div class="col-md-12 e_web menu_base" >
    
    <div class="container-fluid" >
        <div class="row">
            
            <!-- LOGO -->
            <!-- LOGO -->
            <div class="col-md-3">
                <a href="<?php echo $url; ?>/home">
                    <img src="<?php echo $url; ?>/img/logo_our_north_co.png" style="width: 100%; max-width: 260px; margin-left: -15px; position: relative; z-index: 1;" />
                </a>
            </div>
            
            <!-- BOTONES -->
            <!-- BOTONES -->
            <div class="col-md-9" align="right">
                
                <?php if ($_SESSION['id_user'] != "") {?>
                <div style="padding: 15px; color: #ffea00; padding-bottom: 0px">
                    <?php echo $_SESSION['name_user']; ?> 
                </div>
                <?php }else{ ?>
                <div style=" height: 30px">
                </div>
                <?php } ?>
                
                <a href="<?php echo $url; ?>/home">
                    <button type="button" class="btn btn_item_menu" id="bt_inicio" >
                        INICIO
                    </button>
                </a>
                <?php if( $_SESSION['id_user'] != "" && $_SESSION['profile_full'] == true ){ ?>
                    <a href="<?php echo $url; ?>/cuenta">
                        <button type="button" class="btn btn_item_menu" id="bt_ingreso">
                            CUENTA
                        </button>
                    </a>
                <?php
                }else{
                ?>
                    <a href="<?php echo $url; ?>/login">
                        <button type="button" class="btn btn_item_menu" id="bt_ingreso">
                            INGRESO
                        </button>
                    </a>
                <?php } ?>

                <a href="<?php echo $url; ?>/agenda">
                    <button type="button" class="btn btn_item_menu" id="bt_agenda" >
                        AGENDA
                    </button>
                </a>
                
                <?php if( $_SESSION['id_user'] != "" && $_SESSION['profile_full'] == true ){ ?>

                <a href="<?php echo $url; ?>/live">
                    <button type="button" class="btn btn_item_menu" id="bt_live" style="border-radius: 30px; border: 2px solid #ffea00" >
                        SESIÓN EN VIVO
                    </button>
                </a>

                <a href="<?php echo $url; ?>/reuniones">
                    <button type="button" class="btn btn_item_menu" id="bt_reuniones" >
                        REUNIONES EN LÍNEA
                    </button>
                </a>

                <a href="<?php echo $url; ?>/desafio">
                    <button type="button" class="btn btn_item_menu" id="bt_desafio"    >
                        DESAFÍO OUR NORTH
                    </button>
                </a>
                
                <a href="<?php echo $url; ?>/concursos">
                    <button type="button" class="btn btn_item_menu" id="bt_concursos"    >
                        CONCURSOS
                    </button>
                </a>
                
                <a href="<?php echo $url; ?>/taller">
                    <button type="button" class="btn btn_item_menu" id="bt_concursos" style="display: none">
                        TALLER
                    </button>
                </a>
                
                <a href="<?php echo $url; ?>/cierre">
                    <button type="button" class="btn btn_item_menu" id="bt_concursos" style="display: none"   >
                        CIERRE EVENTO
                    </button>
                </a>

                <a href="<?php echo $url; ?>/contactenos">
                    <button type="button" class="btn btn_item_menu" id="bt_contacto" >
                        CONTÁCTENOS
                    </button>
                </a>

                <a href="<?php echo $url; ?>/soporte">
                     <button type="button" class="btn btn_item_menu" id="bt_soporte" >
                        SOPORTE TÉCNICO
                    </button>
                </a>
                <?php } ?>

            </div>
            
            
        </div>
    </div>
 
</div>



<div class="col-md-12 e_web" style="height: 100px" >
</div>














<style>
    .tmp{
        display: none;
    }
</style>

<!-- MENU MOVIL -->
<div class="col-md-12 e_movil menu_base" align="left" >
	
	<a href="<?php echo $url; ?>/home">
		<img src="<?php echo $url; ?>/img/logo_our_north_co.png" width="170" style=" margin-left: 15px;" />
	</a>
	
    <button type="button" class="btn btn_item_menu" style="float: right; padding: 10px; margin-top: 6px; color: #ffea00; font-size: 30px;" onClick="Ver_Menu()" >
		<i class="fa fa-bars"></i>
	</button>    
	
</div>

<div class="col-md-12 e_movil" align="left" style="height: 60px" >
</div>

<script>
	function Ver_Menu(){
		$("#modal_menu_movil").modal("show");
	}
</script>