Skip to content

Commit

Permalink
Actualizado 20/09/2022 11:47 - V1.0.0-Beta
Browse files Browse the repository at this point in the history
  • Loading branch information
Trollkopf committed Sep 20, 2022
1 parent 0723759 commit b0e25f9
Show file tree
Hide file tree
Showing 8 changed files with 128 additions and 9 deletions.
4 changes: 2 additions & 2 deletions Users/admin/admin-partials/news/listar-noticias.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@
<td><?=$noticia->getTitular();?></td>
<td><?=$noticia->getSubtitulo();?></td>
<!--LEER NOTICIA-->
<form method='post' action='../views/leernoticia.php'>
<form method='get' action='../views/leernoticia.php'>
<td><input type='text' id='id_noticia' name='id_noticia' value='<?=$noticia->getID();?>' hidden/>
<button type='submit' class='edit' id='ver_noticia<?=$noticia->getID();?>' name='ver_noticia' value='' />
<?php include (PARTIALS_PATH.'boton-ver.html');?></button></td></form>
<!--EDITAR NOTICIA-->
<form method='post' action='helpers/editar-noticia.php'>
<form method='GET' action='helpers/editar-noticia.php'>
<td><input type='text' id='id_noticia' name='id_noticia' value='<?=$noticia->getID();?>' hidden/>
<button type='submit' class='edit' id='editar-<?=$noticia->getID();?>' name='editar'/><?php include (PARTIALS_PATH.'boton-editar.html');?></button></td></form>
<!--BORRAR NOTICIA-->
Expand Down
2 changes: 1 addition & 1 deletion Users/admin/admin-partials/projects/listar-proyectos.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<td><?=$proyecto->getTiempo();?></td>
<td><?=$proyecto->getImagen();?></td>
<!--LEER PROYECTO-->
<form method='post' action=TODO:'../views/leerproyecto.php'>
<form method='post' action='../views/verproyecto.php'>
<td><input type='text' id='id_proyecto' name='id_proyecto' value='<?=$proyecto->getID();?>' hidden/>
<button type='submit' class='edit' id='ver_proyecto<?=$proyecto->getID();?>' name='ver_proyecto' value='' />
<?php include (PARTIALS_PATH.'boton-ver.html');?></button></td></form>
Expand Down
2 changes: 1 addition & 1 deletion Users/controllers/crear-noticia.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
$results = $mysqli->query($sql);

if($results){
header("Location: ../../areausuarios.php");
header("Location: ../areausuarios.php");
}else{
echo "###ERROR###";
}
Expand Down
2 changes: 1 addition & 1 deletion Users/helpers/currentnew.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

$id = $_POST['id_noticia'];
$id = $_GET['id_noticia'];

$sql_noticias ="SELECT n.ID AS ID,
u.usuario AS usuario,
Expand Down
Binary file added images/projects/Rest-SERVER.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions scripts/jsonLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,10 @@ httpGetAsync("users/helpers/cargador-noticias-totales.php", newsLoader);
let mtitle = document.createElement("h4");
let mtitleLink = document.createElement("a");
let mtitleLinkPoint = document.createAttribute("href");
// mtitleLinkPoint.value = TODO:`/www/masterD/00_PROYECTO_PHP/views/.back/.ADMIN/readnew.php?id_noticia=${vectorObj.noticia[i].id}`;
// mtitleLink.setAttributeNode(mtitleLinkPoint);
mtitleLinkPoint.value = `views/leernoticia.php?id_noticia=${vectorObj.noticia[i].id}`;
mtitleLink.setAttributeNode(mtitleLinkPoint);

// mtitleLink.appendChild(document.createTextNode(vectorObj.noticia[i].titular));
mtitleLink.appendChild(document.createTextNode(vectorObj.noticia[i].titular));
mtitle.appendChild(mtitleLink);
list.appendChild(mtitle);
document.querySelector("#masNoticias").appendChild(list);}
Expand Down
2 changes: 1 addition & 1 deletion views/leernoticia.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
<nav id="menu">
<ul>
<li><a href="../index.html" class="btn">INICIO</a></li>
<li><a href="galeria.php" class="btn">PORTFOLIO</a></li>
<li><a href="portfolio.php" class="btn">PORTFOLIO</a></li>
<li><a href="presupuesto.html" class="btn">PRESUPUESTO</a></li>
<li><a href="contacto.html" class="btn">CONTACTO</a></li>
<li><a href="../users/areausuarios.php" class="btn_in">AREA USUARIOS</a></li>
Expand Down
119 changes: 119 additions & 0 deletions views/verproyecto.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
<?php
include_once($_SERVER['DOCUMENT_ROOT'].'/dirs.php');
include_once(DB_PATH.'db.php');
include_once(HELPERS_PATH.'currentproject.php');
include_once(MODELS_PATH.'project.php')
?>

<!DOCTYPE html>
<html>
<head>
<!--IDIOMA DE LOS CARACTERES-->
<meta charset="utf-8" />
<!--TÍTULO-->
<title>PAX | DIGITAL MINDS</title>
<!--ICONO-->
<link rel="icon" type="favicon/x-icon" href="../images/icon.png" />
<!--LLAMADA A LAS HOJAS DE ESTILO-->
<link rel="stylesheet" type="text/css" href="../stylesheets/General.css" />
<link rel="stylesheet" type="text/css" href="../stylesheets/areausuarios.css" />
<link rel="stylesheet" type="text/css" href="../stylesheets/user-site.css" />

<!--LLAMADA A LOS SCRIPTS-->
<script src="../scripts/RRSS.js"></script>


<!--METADATOS-->
<meta name="author" content="Maximiliano Serratosa" />
<meta name="robots" content="follow" />
<meta name="description" content="PAX | DIGITAL MINDS es tu solucion para tu aplicacion web" />
<meta name="keywords" content="html, css, javascript, php, diseño web, ajax, mysql" />
<meta name="revisit-after" content="7 days" />
<meta name="category" content="Web app" />
<title>VER PROYECTO</title>
</head>
<body>

<!--INICIO DE LA CABECERA-->
<header id="header">
<div class="wrap">
<div id="logo">
<span class="displ"><img src="../images/icon.png" alt="logo" /></span>
<h1>PAX | DIGITAL MINDS</h1>
</div>


<!--MENÚ DE NAVEGACIÓN-->
<nav id="menu">
<ul>
<li><a href="../index.html" class="btn">INICIO</a></li>
<li><a href="portfolio.php" class="btn">PORTFOLIO</a></li>
<li><a href="presupuesto.html" class="btn">PRESUPUESTO</a></li>
<li><a href="contacto.html" class="btn">CONTACTO</a></li>
<li><a href="../users/areausuarios.php" class="btn_in">AREA USUARIOS</a></li>
</ul>
</nav>
</div>
</header>

<!--INICIO DE SECCION-->
<section class="wrap wrap-content"><h2>VER PROYECTO</h2>
<section class="info">

<?php foreach($proyecto as $p):?>
<?php $proyecto = new Proyecto($p['ID_proyecto'], $p['nombre_proyecto'], $p['datos'], $p['tecnologia_empleada'], $p['tiempo_consecucion'], $p['imagen']);?>
<!--INICIO DEL BANNER-->
<div id="banner"><h2><?php echo $proyecto->getNombre_proyecto();?></h2></div>

</section>
</section>


<!--INICIAMOS CAJA PARA VER NOTICIAS-->
<section class="wrap wrap-content">
<section id="articles">
<article>
<div class="data">
<span>Tecnología empleada: <?php echo $proyecto->getTecnologia();?></span>
<span>Tiempo de consecuci&oacute;n: <?php echo $proyecto->getTiempo();?></span>
</div>
<h4><?php echo $proyecto->getNombre_proyecto();?></h4>
<h5><?php echo $proyecto->getDatos();?></h5>
<p>
<img src='../<?= $proyecto->getImagen();?>'/><br/><br/><br/>
</p>



<br/><br/><a href='javascript:history.back()' class="boton_secundario" id="back_button">VOLVER ATRÁS</a>
</article>
</section>
</section>

<?php endforeach;?>

<section>
</section>


<div class="clearfix"></div>
<footer id="footer">

<div class="wrap">


<div>
<h5>PAX | DIGITAL MINDS</h5>
<!--DIRECCION-->
Avenida de Palmela 19 - 03730 J&aacute;vea (Alicante)<br />
<!--AVISO LEGAL-->
<p><a href="#" class="advice">Política de cookies</a>&nbsp; | &nbsp;
<a href="#" class="advice">Política de privacidad</a>&nbsp; | &nbsp;
<a href="views/avisolegal.html" class="advice">Aviso Legal</a></p>

</p>&copy; PAX | DIGITAL MINDS 2022
</div>

</div>
</footer>
</html>

0 comments on commit b0e25f9

Please sign in to comment.