138 lines
5.2 KiB
PHP
138 lines
5.2 KiB
PHP
<?php
|
||
session_start();
|
||
if (isset($_SESSION['usuario'])){
|
||
if ($_SESSION['usuario']['tipo'] != 'admin')
|
||
{
|
||
header('Location: admin.php');
|
||
}
|
||
}
|
||
else
|
||
{
|
||
header('Location: admin.php');
|
||
}
|
||
?>
|
||
<html lang="es">
|
||
<head>
|
||
<title>Portal Editorial </title>
|
||
<meta charset="utf-8">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||
<link rel="stylesheet" href="../css/estilo.css">
|
||
<link rel="stylesheet" href="../css/styles.css">
|
||
<link rel="stylesheet" href="../bootstrap/bootstrap.min.css">
|
||
<link rel="shortcut icon" type="image/png" href="../img/header/escudo-unam.ico">
|
||
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.1/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous">
|
||
</head>
|
||
|
||
<body>
|
||
<div class="general">
|
||
<header>
|
||
<div class="container" style="background-color: #1B3D70;">
|
||
<div class="row" style="padding: 7px;">
|
||
<div class="col-sm-12 col-md-6 d-flex d-sm-none d-md-block justify-content-sm-center justify-content-md-start my-2">
|
||
<img src="../img/header/Logo-UNAM.png" alt="">
|
||
</div>
|
||
<div class="col-sm-12 col-md-6 d-flex justify-content-sm-center justify-content-md-end my-3">
|
||
<img src="../img/header/logo_fesa.png" style=" height: 63px;" alt="">
|
||
<div style="background-color: white; margin-left:20px; margin-right:20px; margin-top: 7px; width: 5px; height: 60px;"></div>
|
||
<img src="../img/header/ediciones-acatlan.png" style=" height: 80px;" alt="">
|
||
</div>
|
||
</div>
|
||
<span class="navbar-brand mb-0 h1" style="color: #ffffff; font-size: 25px; margin-top: -27px;"><?php echo($_SESSION['usuario']['nombre'])?></span>
|
||
</div>
|
||
|
||
</header>
|
||
<div class="menu_pands">
|
||
<nav class="navbar navbar-expand-lg navbar-light bg-light navbar-toggler toggler-example">
|
||
<span class="navbar-brand mb-0 h1"><a href="../index.php">Inicio</a></span>
|
||
<span class="navbar-brand mb-0 h1"><a href="../funciones/destroy.php">Cerrar Sesion</a></span>
|
||
</nav>
|
||
</div>
|
||
<br>
|
||
|
||
|
||
|
||
<form name="form1" id="form1" method="post" action="../funciones/carga.php" enctype="multipart/form-data">
|
||
|
||
<h4 class="text-center">Cargar Multiple de Libros</h4>
|
||
<br><br>
|
||
<div class="form-group">
|
||
<div class="col-sm-8">
|
||
|
||
<div class="col-md-4">
|
||
<h5>Archivo csv </h5>
|
||
<input name="csv" type="file" accept="appli" >
|
||
</div>
|
||
|
||
<br>
|
||
|
||
<div class="col-md-4">
|
||
<h5>Imagenes</h5>
|
||
<input type="file" id="archivo[]" name="archivo[]" multiple="" required>
|
||
</div>
|
||
|
||
<br><br>
|
||
|
||
<div class="col-md-4">
|
||
<h5>Archivos PDF´s</h5>
|
||
<input type="file" id="pdf[]" name="pdf[]" multiple="" required>
|
||
</div>
|
||
<br><br>
|
||
|
||
|
||
<button type="submit" class="btn btn-primary" name="enviar" style="margin-left: 60%;">Enviar</button>
|
||
</div>
|
||
</div>
|
||
|
||
</form>
|
||
|
||
|
||
<br><br>
|
||
|
||
|
||
|
||
|
||
<footer>
|
||
|
||
<div class="container" style="background-color: #1B3D70;">
|
||
<div class="row">
|
||
<div id="b1" class="col col-sm-4 col-lg-2 col-xl text-cente btn-foo">
|
||
<a href="#" style="text-decoration:none; color: white;">Comité Editorial</a>
|
||
</div>
|
||
<div id="b2" class="col col-sm col-lg col-xl text-center btn-foo">
|
||
<a href="#" style="text-decoration:none; color: white;">Política Editorial y Lineamientos</a>
|
||
</div>
|
||
<div id="b3" class="col col-sm col-lg col-xl text-center btn-foo">
|
||
<a href="#" style="text-decoration:none; color: white;">Libreria</a>
|
||
</div>
|
||
<div id="b4" class="col col-sm-4 col-lg col-xl text-center btn-foo">
|
||
<a href="#" style="text-decoration:none; color: white;">Contáctanos</a>
|
||
</div>
|
||
|
||
</div>
|
||
</div>
|
||
|
||
|
||
|
||
<div class="container" style="background-color: #1B3D70; color: white">
|
||
<div class="row">
|
||
|
||
<div class="col-12 col-sm-12 col-lg-12 col-xl-12">
|
||
<p style="text-align:center;">
|
||
Hecho en México, todos los derechos reservados 2018.
|
||
<br>
|
||
Esta página puede ser reproducida con fines no lucrativos, siempre y cuando no se mutile, se cite la fuente
|
||
completa y su dirección electrónica. De otra forma, requiere permiso previo por escrito de la institución
|
||
</p>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</footer>
|
||
|
||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
|
||
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.6/umd/popper.min.js"></script>
|
||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.2.1/js/bootstrap.min.js"></script>
|
||
</body>
|
||
</html>
|
||
|