Skip to content
This repository has been archived by the owner on Jun 13, 2023. It is now read-only.

Commit

Permalink
Restructuraion del template #3
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandoparada18 committed Feb 22, 2016
1 parent 3d047dc commit 3e6eee4
Show file tree
Hide file tree
Showing 5 changed files with 111 additions and 100 deletions.
8 changes: 8 additions & 0 deletions views/footer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<footer class="navbar-fixed-bottom">
Todos los derechos reservados &copy 2016
</footer>
</div>
<script src="<?php echo URL; ?>views/template/js/jquery-1.11.2.min.js"></script>
<script src="<?php echo URL; ?>views/template/js/bootstrap.min.js"></script>
</body>
</html>
23 changes: 23 additions & 0 deletions views/header.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="utf-8">
<title>..::PROGRAMA TODAS LAS MANOS A LA SIEMBRA::..</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="<?php echo URL; ?>views/template/css/main.css">
<link rel="stylesheet" type="text/css" media="all" href="<?php echo URL; ?>views/template/css/media.css">
<link rel="stylesheet" type="text/css" href="<?php echo URL; ?>views/template/css/bootstrap.css">
<link rel="stylesheet" href="<?php echo URL; ?>views/template/font-awesome/css/font-awesome.min.css">
</head>
<body>
<div class="container">
<div class="row">
<div class="col-md-4">
<img src="<?php echo URL; ?>views/template/img/logozec.png" width="100%"></img>
</div>
<div class="col-md-4"></div>
<div class="col-md-4">
<img class="logoptms img-rounded" src="<?php echo URL; ?>views/template/img/logoptms.jpg" width="98%"></img>
</div>
</div>
<hr class="linea-horizontal"></hr>
63 changes: 63 additions & 0 deletions views/menu.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
<nav class="navbar navbar-inverse">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-2">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">P.T.M.S.</a>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-2">
<ul class="nav navbar-nav">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Agregar <span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<li><a href="<?php echo URL; ?>docente/agregar">Docentes</a></li>
<li><a href="<?php echo URL; ?>plantel/agregar">Planteles</a></li>
<li><a href="<?php echo URL; ?>usuario/agregar">Usuarios</a></li>
<li class="divider"></li>
<li><a href="<?php echo URL; ?>cargo/agregar">Cargos</a></li>
<li><a href="<?php echo URL; ?>rubro/agregar">Rubros</a></li>
<li><a href="<?php echo URL; ?>herramienta/agregar">Herramientas</a></li>
<li><a href="<?php echo URL; ?>institucion/agregar">Instituciones</a></li>
<li><a href="<?php echo URL; ?>municipio/agregar">Municipios</a></li>
<li><a href="<?php echo URL; ?>parroquia/agregar">Parroquias</a></li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Listados <span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<li><a href="<?php echo URL; ?>docente">Docentes</a></li>
<li><a href="<?php echo URL; ?>plantel">Planteles</a></li>
<li><a href="<?php echo URL; ?>usuario">Usuarios</a></li>
<li><a href="<?php echo URL; ?>cargo">Cargos</a></li>
<li><a href="<?php echo URL; ?>rubro">Rubros</a></li>
<li><a href="<?php echo URL; ?>herramienta">Herramientas</a></li>
<li><a href="<?php echo URL; ?>institucion">Instituciones</a></li>
<li><a href="<?php echo URL; ?>municipio">Municipios</a></li>
<li><a href="<?php echo URL; ?>parroquia">Parroquias</a></li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Archivos <span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<li><a href="<?php echo URL; ?>ptms">Ptms</a></li>
<li><a href="<?php echo URL; ?>brigada">Brigada</a></li>
<li><a href="<?php echo URL; ?>mantenimiento">Mantenimiento</a></li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Reportes <span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<li><a href="#">Ficha Productiva</a></li>
</ul>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a href="#"><img src="<?php echo URL; ?>views/template/img/user.png" width="24px" height="24px" alt="user" class="img-circle"></img> Cerrar Sesión</a></li>
</ul>
</div>
</div>
</nav>
102 changes: 3 additions & 99 deletions views/template.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -5,108 +5,12 @@
class Template{

public function __construct(){
?>
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="utf-8">
<title>..::PROGRAMA TODAS LAS MANOS A LA SIEMBRA::..</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="<?php echo URL; ?>views/template/css/main.css">
<link rel="stylesheet" type="text/css" media="all" href="<?php echo URL; ?>views/template/css/media.css">
<link rel="stylesheet" type="text/css" href="<?php echo URL; ?>views/template/css/bootstrap.css">
<link rel="stylesheet" href="<?php echo URL; ?>views/template/font-awesome/css/font-awesome.min.css">
</head>
<body>
<div class="container">
<div class="row">
<div class="col-md-4">
<img src="<?php echo URL; ?>views/template/img/logozec.png" width="100%"></img>
</div>
<div class="col-md-4"></div>
<div class="col-md-4">
<img class="logoptms img-rounded" src="<?php echo URL; ?>views/template/img/logoptms.jpg" width="98%"></img>
</div>
</div>
<hr class="linea-horizontal"></hr>
<nav class="navbar navbar-inverse">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-2">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">P.T.M.S.</a>
</div>

<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-2">
<ul class="nav navbar-nav">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Agregar <span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<li><a href="<?php echo URL; ?>docente">Docentes</a></li>
<li><a href="<?php echo URL; ?>plantel">Planteles</a></li>
<li><a href="<?php echo URL; ?>usuario">Usuarios</a></li>
<li class="divider"></li>
<li><a href="<?php echo URL; ?>funcion">Funciones</a></li>
<li><a href="<?php echo URL; ?>herramienta">Herramientas</a></li>
<li><a href="<?php echo URL; ?>institucion">Instituciones</a></li>
<li><a href="<?php echo URL; ?>municipio">Municipios</a></li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Listados <span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<li><a href="<?php echo URL; ?>docente">Docentes</a></li>
<li><a href="<?php echo URL; ?>plantel">Planteles</a></li>
<li><a href="<?php echo URL; ?>usuario">Usuarios</a></li>
<li class="divider"></li>
<li><a href="<?php echo URL; ?>funcion">Funciones</a></li>
<li><a href="<?php echo URL; ?>herramienta">Herramientas</a></li>
<li><a href="<?php echo URL; ?>institucion">Instituciones</a></li>
<li><a href="<?php echo URL; ?>municipio">Municipios</a></li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Archivos <span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<li><a href="<?php echo URL; ?>ptms">Ptms</a></li>
<li><a href="<?php echo URL; ?>brigada">Brigada</a></li>
<li class="divider"></li>
<li><a href="<?php echo URL; ?>mantenimiento">Mantenimiento</a></li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Reportes <span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<li><a href="#">Ptms</a></li>
<li><a href="#">Brigada</a></li>
<li><a href="#">Mantenimiento</a></li>
</ul>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a href="#"><img src="<?php echo URL; ?>views/template/img/user.png" width="24px" height="24px" alt="user" class="img-circle"></img> Cerrar Sesión</a></li>
</ul>
</div>
</div>
</nav>
<?php
include("header.php");
include("menu.php");
}

public function __destruct(){
?>
<footer class="navbar-fixed-bottom">
Todos los derechos reservados &copy 2016
</footer>
</div>
<script src="<?php echo URL; ?>views/template/js/jquery-1.11.2.min.js"></script>
<script src="<?php echo URL; ?>views/template/js/bootstrap.min.js"></script>
</body>
</html>
<?php
include("footer.php");
}
}
?>
15 changes: 14 additions & 1 deletion views/template/css/main.css
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ footer{
background-color: #eee;
border-top: 10px solid #bbb;
font-size: 14px;
padding: 20px;
padding: 14px;
text-align: center;
}

Expand All @@ -14,9 +14,22 @@ footer{
width: 90%;
}

.box-segundario{
margin-left: auto;
margin-right: auto;
width: 60%;
}

.text-big {
font-size: 300px;
line-height: 320px;
}

.text-capitalize {text-transform: capitalize;}

.centrar { padding: 0.8em 0.8em 0.8em 0.8em;}

/* Smarphone */
@media (max-width: 767px) {
.box-segundario{ width: 80%;}
}

0 comments on commit 3e6eee4

Please sign in to comment.