Fix html for the rest of the main pages
This commit is contained in:
parent
c4c5389fe8
commit
0b0707eafe
|
@ -91,10 +91,10 @@ if($new == 0){
|
|||
<p class="subtitle">Sluttid (YYYY-MM-DD HH:MM:SS)</p>
|
||||
<?= '<input name="end" type="text" class="boxinput" value="' . $event->getStop()->format('Y-m-d H:00:00') . '"><br>' ?>
|
||||
|
||||
<p class="subtitle">Organisert av</p>
|
||||
<p class="subtitle">Arrangør</p>
|
||||
<?= '<input type="text" name="organiser" value="' . $event->getOrganiser(). '" class="boxinput">' ?><br>
|
||||
|
||||
<p class="subtitle">Hvor?</p>
|
||||
<p class="subtitle">Sted</p>
|
||||
<?= '<input type="text" name="location" value="' . $event->getLocation(). '" class="boxinput">' ?><br>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -27,29 +27,35 @@ $day = (isset($_GET['day']))
|
|||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="no">
|
||||
<title>Aktivitetsverkstedet</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
|
||||
<link rel="stylesheet" href="../css/normalize.css">
|
||||
<link rel="stylesheet" href="../css/style.css">
|
||||
<link rel="stylesheet" href="../css/nav.css">
|
||||
<link rel="stylesheet" href="../css/events.css">
|
||||
|
||||
<header>Aktivitets­verk­stedet</header>
|
||||
<head>
|
||||
<title>Aktivitetsverkstedet</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
|
||||
<link rel="stylesheet" href="../css/normalize.css">
|
||||
<link rel="stylesheet" href="../css/style.css">
|
||||
<link rel="stylesheet" href="../css/nav.css">
|
||||
<link rel="stylesheet" href="../css/events.css">
|
||||
</head>
|
||||
|
||||
<main>
|
||||
<body>
|
||||
<nav>
|
||||
<?php echo navbar(1, 'aktiviteter'); ?>
|
||||
<?php echo loginbar(); ?>
|
||||
</nav>
|
||||
|
||||
<?php
|
||||
$events = ($day==-1)
|
||||
<main>
|
||||
<?php
|
||||
$events = ($day==-1)
|
||||
? $agenda->getNextOfEach(new \DateTimeImmutable)
|
||||
: $agenda->getEventsBetween(
|
||||
new DateTimeImmutable("$year-$month-$day 00:00:00"),
|
||||
new DateTimeImmutable("$year-$month-$day 23:59:59"));
|
||||
|
||||
$limit = 0;
|
||||
foreach($events as $event) {
|
||||
?>
|
||||
<article>
|
||||
$limit = 0;
|
||||
foreach($events as $event) {
|
||||
?>
|
||||
<div>
|
||||
<h2>
|
||||
<?php if ($event->getImageURL()) { ?>
|
||||
<img src="<?= $event->getImageURL() ?>">
|
||||
|
@ -64,22 +70,18 @@ foreach($events as $event) {
|
|||
<?php } ?>
|
||||
</h2>
|
||||
<ul class="subtext">
|
||||
<li>Tid: <strong><?= Agenda::getFormattedDate($event->getStart()) ?></strong>
|
||||
<li>Sted: <strong><?= $event->getLocation() ?></strong>
|
||||
<li>Arrangør: <strong><?= $event->getOrganiser() ?></strong>
|
||||
<li>Tid: <strong><?= Agenda::getFormattedDate($event->getStart()) ?></strong></li>
|
||||
<li>Sted: <strong><?= $event->getLocation() ?></strong></li>
|
||||
<li>Arrangør: <strong><?= $event->getOrganiser() ?></strong></li>
|
||||
</ul>
|
||||
|
||||
<?php $description = $event->getDescription(); ?>
|
||||
<?php if ($limit) array_splice($description, $limit); ?>
|
||||
<?= implode($description, "</p>\n<p>") ?>
|
||||
</article>
|
||||
</div>
|
||||
|
||||
<?php if (!$limit || $limit > 4) {$limit = 4;} else $limit = 2; ?>
|
||||
<?php } ?>
|
||||
<?php if (!$limit || $limit > 4) {$limit = 4;} else $limit = 2; ?>
|
||||
<?php } ?>
|
||||
</main>
|
||||
|
||||
</main>
|
||||
|
||||
<nav>
|
||||
<?= navbar(1, 'aktiviteter'); ?>
|
||||
<?= loginbar(); ?>
|
||||
</nav>
|
||||
</body>
|
||||
|
|
|
@ -30,20 +30,25 @@ $days_in_month = date('t', mktime(0, 0, 0, $month, 1, $year));
|
|||
|
||||
?><!DOCTYPE html>
|
||||
<html lang="no">
|
||||
<title>Kalenderverkstedet</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
|
||||
<link rel="stylesheet" href="../css/normalize.css">
|
||||
<link rel="stylesheet" href="../css/style.css">
|
||||
<link rel="stylesheet" href="../css/nav.css">
|
||||
<link rel="stylesheet" href="../css/events.css">
|
||||
<link rel="stylesheet" href="../css/calendar.css">
|
||||
|
||||
<header>Kalender­verk­stedet</header>
|
||||
<head>
|
||||
<title>Kalenderverkstedet</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
|
||||
<link rel="stylesheet" href="../css/normalize.css">
|
||||
<link rel="stylesheet" href="../css/style.css">
|
||||
<link rel="stylesheet" href="../css/nav.css">
|
||||
<link rel="stylesheet" href="../css/events.css">
|
||||
<link rel="stylesheet" href="../css/calendar.css">
|
||||
</head>
|
||||
|
||||
<main>
|
||||
<body>
|
||||
<nav>
|
||||
<?php echo navbar(1, 'kalender'); ?>
|
||||
<?php echo loginbar(); ?>
|
||||
</nav>
|
||||
|
||||
<article>
|
||||
<main>
|
||||
<h2 style="text-align:center;">Aktiviteter for <?=$months_translations[$month-1]?> <?=$year?></h2>
|
||||
|
||||
<p><?php
|
||||
|
@ -97,11 +102,5 @@ $days_in_month = date('t', mktime(0, 0, 0, $month, 1, $year));
|
|||
</ul>
|
||||
</figure>
|
||||
|
||||
</article>
|
||||
|
||||
</main>
|
||||
|
||||
<nav>
|
||||
<?= navbar(1, 'kalender'); ?>
|
||||
<?= loginbar(); ?>
|
||||
</nav>
|
||||
</main>
|
||||
</body>
|
||||
|
|
|
@ -7,38 +7,37 @@ require __DIR__ . '/../../src/_autoload.php';
|
|||
require __DIR__ . '/../../sql_config.php';
|
||||
?>
|
||||
<html lang="no">
|
||||
<title>Kommunikasjonsverkstedet</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
|
||||
<link rel="stylesheet" href="../css/normalize.css">
|
||||
<link rel="stylesheet" href="../css/style.css">
|
||||
<link rel="stylesheet" href="../css/nav.css">
|
||||
<link rel="stylesheet" href="../css/events.css">
|
||||
|
||||
<header>Kommunikasjons­verk­stedet</header>
|
||||
<head>
|
||||
<title>Kommunikasjonsverkstedet</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
|
||||
<link rel="stylesheet" href="../css/normalize.css">
|
||||
<link rel="stylesheet" href="../css/style.css">
|
||||
<link rel="stylesheet" href="../css/nav.css">
|
||||
<link rel="stylesheet" href="../css/events.css">
|
||||
</head>
|
||||
|
||||
<main>
|
||||
<body>
|
||||
<nav>
|
||||
<?php echo navbar(1, 'kontakt'); ?>
|
||||
<?php echo loginbar(); ?>
|
||||
</nav>
|
||||
|
||||
<article>
|
||||
|
||||
<h2>Kommunikasjon</h2>
|
||||
<p>
|
||||
Det er ulike måter å kommunisere med PVV-medlemmer på.
|
||||
</p>
|
||||
<p>
|
||||
Vi har en IRC-kanal på <a href="http://webchat.ircnet.net/">IRCnet</a> kalt #pvv.
|
||||
</p>
|
||||
<p>
|
||||
Vi har også en Discord-kanal. Denne kanalen er satt opp slik at man i Discord-kanalen ser hva som skrives i IRC-kanalen, og vice versa. For å bli med i Discord-kanalen, <a href="https://discord.gg/8VTBr6Q">klikk her</a>.
|
||||
</p>
|
||||
<p>
|
||||
Det er også mulig å ta i bruk analog kontakt ved å møte opp <a href="https://use.mazemap.com/?v=1&left=10.4032&right=10.4044&top=63.4178&bottom=63.4172&campusid=1&zlevel=2&sharepoitype=point&sharepoi=10.40355%2C63.41755%2C2&utm_medium=longurl">på stripa</a>.
|
||||
</p>
|
||||
</article>
|
||||
|
||||
</main>
|
||||
|
||||
<nav>
|
||||
<?= navbar(1, 'kontakt'); ?>
|
||||
<?= loginbar(); ?>
|
||||
</nav>
|
||||
<main>
|
||||
<h2>Kommunikasjon</h2>
|
||||
<p>
|
||||
Det er ulike måter å kommunisere med PVV-medlemmer på.
|
||||
</p>
|
||||
<p>
|
||||
Vi har en IRC-kanal på <a href="http://webchat.ircnet.net/">IRCnet</a> kalt #pvv.
|
||||
</p>
|
||||
<p>
|
||||
Vi har også en Discord-kanal. Denne kanalen er satt opp slik at man i Discord-kanalen ser hva som skrives i IRC-kanalen, og vice versa. For å bli med i Discord-kanalen, <a href="https://discord.gg/8VTBr6Q">klikk her</a>.
|
||||
</p>
|
||||
<p>
|
||||
Det er også mulig å ta i bruk analog kontakt ved å møte opp <a href="https://use.mazemap.com/?v=1&left=10.4032&right=10.4044&top=63.4178&bottom=63.4172&campusid=1&zlevel=2&sharepoitype=point&sharepoi=10.40355%2C63.41755%2C2&utm_medium=longurl">på stripa</a>.
|
||||
</p>
|
||||
</main>
|
||||
</body>
|
|
@ -37,18 +37,22 @@ if (isset($_SESSION['userdata'])) { // if logged in with feide
|
|||
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<title>PVV registrering</title>
|
||||
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<link rel="stylesheet" href="../css/normalize.css">
|
||||
<link rel="stylesheet" href="../css/style.css">
|
||||
<link rel="stylesheet" href="../css/nav.css">
|
||||
<head>
|
||||
<title>PVV registrering</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<link rel="stylesheet" href="../css/normalize.css">
|
||||
<link rel="stylesheet" href="../css/style.css">
|
||||
<link rel="stylesheet" href="../css/nav.css">
|
||||
</head>
|
||||
|
||||
<header>Registrerings­verks­stedet</header>
|
||||
<body>
|
||||
<nav>
|
||||
<?php echo navbar(1); ?>
|
||||
<?php echo loginbar(); ?>
|
||||
</nav>
|
||||
|
||||
<main>
|
||||
|
||||
<article>
|
||||
<main>
|
||||
<h2>Registrer deg som bruker</h2>
|
||||
|
||||
<p>
|
||||
|
@ -60,7 +64,7 @@ if (isset($_SESSION['userdata'])) { // if logged in with feide
|
|||
lokalene våre slik at vi kan få satt et passord.
|
||||
</p>
|
||||
|
||||
<h3>Meldingen som du kan sendes:</h3>
|
||||
<h3>Meldingen du kan sende:</h3>
|
||||
|
||||
|
||||
<?php if($attrs) { //logged in with pvv account?>
|
||||
|
@ -81,11 +85,5 @@ if (isset($_SESSION['userdata'])) { // if logged in with feide
|
|||
<a class="btn" href=".?login">æ kanj itj lææv uten dæ piær!</a>
|
||||
<?php }?>
|
||||
|
||||
</article>
|
||||
|
||||
</main>
|
||||
|
||||
<nav>
|
||||
<?= navbar(1); ?>
|
||||
<?= loginbar(); ?>
|
||||
</nav>
|
||||
</main>
|
||||
</body>
|
||||
|
|
|
@ -11,32 +11,37 @@ $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
|
|||
$projectManager = new \pvv\side\ProjectManager($pdo);
|
||||
$projects = $projectManager->getAll();
|
||||
?>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="no">
|
||||
<title>Prosjektverkstedet</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
|
||||
<link rel="stylesheet" href="../css/normalize.css">
|
||||
<link rel="stylesheet" href="../css/style.css">
|
||||
<link rel="stylesheet" href="../css/nav.css">
|
||||
<link rel="stylesheet" href="../css/splash.css">
|
||||
<head>
|
||||
<title>Prosjektverkstedet</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
|
||||
<link rel="stylesheet" href="../css/normalize.css">
|
||||
<link rel="stylesheet" href="../css/style.css">
|
||||
<link rel="stylesheet" href="../css/nav.css">
|
||||
<link rel="stylesheet" href="../css/splash.css">
|
||||
</head>
|
||||
|
||||
<header>Prosjekt­verk­stedet</header>
|
||||
<body>
|
||||
<nav>
|
||||
<?php echo navbar(1, 'prosjekt'); ?>
|
||||
<?php echo loginbar(); ?>
|
||||
</nav>
|
||||
|
||||
<main>
|
||||
|
||||
<article class="threed">
|
||||
<h2>Prosjekter</h2>
|
||||
<?php
|
||||
<main>
|
||||
<h2>Prosjekter</h2>
|
||||
<?php
|
||||
if(count($projects) == 0){
|
||||
?>
|
||||
?>
|
||||
<p>PVV har for øyeblikket ingen aktive prosjekter. Tenker du at noe bør gjøres? Har du en kul ide for noe PVV kan samarbeide om? Sett opp et prosjekt!</p>
|
||||
<br>
|
||||
<a class="btn" href="edit.php?new=1">Lag prosjekt</a>
|
||||
<a class="btn" href="mine.php">Mine prosjekter</a>
|
||||
<?php
|
||||
<?php
|
||||
}else{
|
||||
?>
|
||||
?>
|
||||
<p>Lyst til å gjøre noe kult? Her er et utvalg av de prosjektene som PVVere har laget. Mangler det noe, eller brenner du for noe annet? Sett opp et eget prosjekt!</p>
|
||||
<a class="btn" href="edit.php?new=1">Lag prosjekt</a>
|
||||
<a class="btn" href="mine.php">Mine prosjekter</a>
|
||||
|
@ -61,14 +66,8 @@ $projects = $projectManager->getAll();
|
|||
|
||||
<?php } ?>
|
||||
</ul>
|
||||
<?php
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</article>
|
||||
|
||||
</main>
|
||||
|
||||
<nav>
|
||||
<?= navbar(1, 'prosjekt'); ?>
|
||||
<?= loginbar(); ?>
|
||||
</nav>
|
||||
?>
|
||||
</main>
|
||||
</body>
|
||||
|
|
Loading…
Reference in New Issue