index.php 8.44 KB
<!DOCTYPE html>
<html lang="en">

<head>
    <title>Inicio - Arcu </title>

    <!-- Meta -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimal-ui">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="description" content="#">
    <meta name="keywords" content="Admin , Responsive, Landing, Bootstrap, App, Template, Mobile, iOS, Android, apple, creative app">
    <meta name="author" content="#">
    <!-- Favicon icon -->
    <link rel="icon" href="<?php echo constant ('URL');?>src/menu/assets/images/favicon.ico" type="image/x-icon">
    <!-- Google font-->
    <link href="<?php echo constant ('URL');?>src/menu/assets/fonts/fonts-opensans.css" rel="stylesheet">
    <!-- Required Fremwork -->
    <link rel="stylesheet" type="text/css" href="<?php echo constant ('URL');?>src/menu/bower_components/bootstrap/css/bootstrap.min.css">
    <!-- feather Awesome -->
    <link rel="stylesheet" type="text/css" href="<?php echo constant ('URL');?>src/menu/assets/icon/feather/css/feather.css">
    <!-- Style.css -->
    <link rel="stylesheet" type="text/css" href="<?php echo constant ('URL');?>src/menu/assets/css/style.css">
    <link rel="stylesheet" type="text/css" href="<?php echo constant ('URL');?>src/menu/assets/css/jquery.mCustomScrollbar.css">
</head>

<body>

<style type="text/css">
		#global {
            height: 400px;
			width: 450px;
			border: 3px solid #ddd;
			background: #f1f1f1;
			overflow-y: scroll;
		}
		#mensajes {
			height: auto;
        }
        #globali {
            height: 400px;
			width: 450px;
			border: 3px solid #ddd;
			background: #f1f1f1;
            overflow-y: scroll;
            margin-left: 50px;
		}

        </style>          
        
    <?php include_once 'views/header.php';?>

                                    <div class="page-body">
                                        <div class="row">
                                        <div class=" col-md-12">
 <h3><small> Ha Ingresado al Sistema de Actas y Resoluciones Consejo Universitario: <?php echo $_SESSION['primer_nombre'] . " " . $_SESSION['primer_apellido'];?></small></h3>
                                            <hr>
</div>
                                           
                                            
                                            <?php if($_SESSION['id_perfil']==1 || $_SESSION['id_perfil']==2){?>
                                            <!-- task, page, download counter  start -->
                                            <div id="global">
							                <div id="mensajes">
                                             <br>
                                            <div class=" col-md-12">
                                            <center><h4>Actas</h4></center>
                                            </div>
                                             <br>
                                             <?php
                                            $cont=0;
                                        foreach($this->actas as $row){
                                            $cont++;
                                        }?>

                                    <?php if($cont==0){?>
                                    
                                        <center><p>No hay actas registradas.</p></center>
                                       <?php	}?>
                                       
                                            <?php 
                                            foreach($this->actas as $row){
                                            $acta=new Arcu();
                                            $acta=$row;?> 
                                            <!-- user card  start -->
                                            <table id="simpletable" class="table table-striped nowrap">
                                                <tr>
                                            <td width="50%"><div class="col-md-7 col-xl-12">
                                                <div class="card user-widget-card bg-c-blue">
                                                    <div class="card-block">
                                                        <i class="feather icon-file bg-simple-c-blue card1-icon"></i>
                                                        <h5>Acta</h5>
                                                        <p style="font-size: 14px;">Nro. <?php echo $acta->numero;?></p>
                                                        <a href="<?php echo constant ('URL').'src/acta/'. $acta->file1;?>" class="more-info" download="Acta Nro.<?php echo $acta->numero;?>">Descargar</a>
                                                    </div>
                                                </div>
                                            </div>
                                        </td>
                                        <td width="40%"><br><br><br><span>Fecha:<br><?php echo date("d/m/Y", strtotime($acta->fecha));?></span></td>
                                                </tr>
                                            </table>
                                            <?php } ?>
                                        </div>
                                    </div>
                                            
                                            <div id="globali">
							                <div id="mensajes"> 
                                            <br>
                                            <div class=" col-md-12">
                                            <center><h4>Resoluciones</h4></center>
                                            </div>
                                            <br>
                                            <?php
							$cont=0;
						foreach($this->resoluciones as $row){
							$cont++;
						}?>

                       <?php if($cont==0){?>
					
						<center><p>No hay Resoluciones registradas.</p></center>
					
				<?php	}?>
                                            <?php 
                                            foreach($this->resoluciones as $row){
                                            $resolucion=new Arcu();
                                            $resolucion=$row;?> 
                                        
                                        <table id="simpletable" class="table table-striped nowrap">
                                                <tr>   
                                                <td width="50%"><div class="col-md-7 col-xl-12">
                                                <div class="card user-widget-card bg-c-yellow">
                                                    <div class="card-block">
                                                        <i class="feather icon-file-text bg-simple-c-yellow card1-icon"></i>
                                                        <h5>Resolucion</h5>
                                                        <p style="font-size: 14px;">Nro. <?php echo $resolucion->numero;?></p>
                                                        <a href="<?php echo constant ('URL').'src/resolucion/'. $resolucion->file2;?>" class="more-info" download="Resolución Nro.<?php echo $resolucion->numero;?>">Descargar</a>
                                                    </div>
                                                </div>
                                            </div><!-- user card  end -->
                                            </td>
                                            <td width="40%"><br><br><br><span>Fecha:<br><?php echo date("d/m/Y", strtotime($resolucion->fecha));?></span></td>
                                                </tr>
                                            </table>
                                            <br>
                                            <?php } ?>
                                        </div>
                                    </div>
                                            
                                            
                                            <?php } ?>
                                           

                                        </div>
                                    </div>
                                
    <?php include_once 'views/footer.php';?>
<!-- NOTA: revisen el footer, ahi integre todos los js que necesita el header para que funcione, 
    si necesitan, agregar un plugin lo hacen a partir de este comentario -->
                        
    
    
</body>

</html>