2016-08-18 22:43:32 +02:00
|
|
|
<?php
|
|
|
|
date_default_timezone_set('Europe/Oslo');
|
2016-08-19 22:01:25 +02:00
|
|
|
setlocale(LC_ALL, 'no_NO');
|
2016-08-26 17:22:11 +02:00
|
|
|
require __DIR__ . '/../src/_autoload.php';
|
|
|
|
require __DIR__ . '/../sql_config.php';
|
2016-08-26 17:29:09 +02:00
|
|
|
$translation = ['i dag', 'i morgen', 'denne uka', 'neste uke', 'denne måneden', 'neste måned'];
|
2016-08-18 23:17:24 +02:00
|
|
|
$pdo = new \PDO($dbDsn, $dbUser, $dbPass);
|
|
|
|
$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
|
|
|
|
$agenda = new \pvv\side\Agenda([
|
|
|
|
new \pvv\side\social\NerdepitsaActivity,
|
|
|
|
new \pvv\side\social\AnimekveldActivity,
|
2016-08-19 23:46:30 +02:00
|
|
|
new \pvv\side\social\BrettspillActivity,
|
2016-08-18 23:17:24 +02:00
|
|
|
new \pvv\side\DBActivity($pdo),
|
|
|
|
]); ?>
|
2016-08-19 22:00:46 +02:00
|
|
|
<!DOCTYPE html>
|
2016-08-18 00:25:47 +02:00
|
|
|
<html lang="no">
|
2016-08-15 17:43:41 +02:00
|
|
|
<title>Programvareverkstedet</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/splash.css">
|
|
|
|
|
|
|
|
<header>Program­vare­verk­stedet</header>
|
|
|
|
|
2016-08-30 18:13:31 +02:00
|
|
|
<?php
|
|
|
|
include '../inc/ticker.php';
|
2016-08-26 17:29:09 +02:00
|
|
|
?>
|
2016-08-15 17:43:41 +02:00
|
|
|
|
|
|
|
<main>
|
|
|
|
|
|
|
|
<article class="threed">
|
|
|
|
<img src="pvv-logo.png" class="float-right">
|
|
|
|
<h2>Velkommen til Program­vare­verk­stedet</h2>
|
|
|
|
<p>Programvareverkstedet (PVV) vil skape et miljø for datainteresserte personer tilknyttet universitetet. Nåværende og tidligere studenter ved NTNU, samt ansatte ved NTNU og tilstøtende miljø, kan bli medlemmer. </p>
|
|
|
|
<p>
|
2017-10-07 19:22:22 +02:00
|
|
|
<a class="btn" href="om/">Om PVV</a>
|
2016-08-26 23:54:52 +02:00
|
|
|
<a class="btn" href="paamelding/">Bli medlem</a>
|
2016-08-15 21:04:16 +02:00
|
|
|
<a class="btn" 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">Veibeskrivelse</a>
|
2016-08-15 17:43:41 +02:00
|
|
|
</p>
|
|
|
|
</article>
|
|
|
|
|
|
|
|
<div class="split">
|
|
|
|
<article>
|
|
|
|
<h2>Kommende arrangement</h2>
|
|
|
|
<ul class="calendar-events">
|
2016-08-17 23:53:35 +02:00
|
|
|
<?php $counter1 = 0; ?>
|
|
|
|
<?php $counter2 = 0; ?>
|
2016-08-26 17:04:49 +02:00
|
|
|
<?php foreach($agenda->getNextDays() as $period => $events) if ($events && $counter1 < 2 && $counter2 < 10) { $counter1++ ?>
|
2016-08-19 22:01:25 +02:00
|
|
|
<li>
|
|
|
|
<p><?= $translation[$period] ?></p>
|
2016-08-15 21:55:50 +02:00
|
|
|
<ul>
|
2016-08-17 23:53:35 +02:00
|
|
|
<?php foreach($events as $event) { $counter2++ ?>
|
|
|
|
<li>
|
2016-08-26 17:22:11 +02:00
|
|
|
<a href="<?= htmlspecialchars($event->getURL()) ?>"><?= $event->getName(); ?></a>
|
|
|
|
<?php /* <a class="icon subscribe">+</a> */ ?>
|
2016-08-19 22:01:25 +02:00
|
|
|
<?php if ($period) {
|
|
|
|
if (\pvv\side\Agenda::isThisWeek($event->getStart()) || $event->getStart()->sub(new DateInterval('P3D'))->getTimestamp() < time()) {
|
2016-08-26 17:04:49 +02:00
|
|
|
echo '<span class="time">' . strftime('%a', $event->getStart()->getTimestamp()) . '</span>';
|
2016-08-19 22:01:25 +02:00
|
|
|
} else {
|
2016-08-26 17:04:49 +02:00
|
|
|
echo '<span class="time">' . strftime('%e. %b', $event->getStart()->getTimestamp()) . '</span>';
|
2016-08-19 22:01:25 +02:00
|
|
|
}
|
2016-08-26 17:04:49 +02:00
|
|
|
echo '<span class="date">' . $event->getStart()->format('H:i') . '</span>';
|
|
|
|
} else {
|
|
|
|
echo '<span class="time">' . $event->getStart()->format('H:i') . '</span>';
|
|
|
|
}
|
|
|
|
?>
|
2016-08-15 21:55:50 +02:00
|
|
|
</li>
|
2016-08-17 23:53:35 +02:00
|
|
|
<?php } ?>
|
2016-08-15 21:55:50 +02:00
|
|
|
</ul>
|
2016-08-17 23:53:35 +02:00
|
|
|
<?php } ?>
|
2016-08-15 17:43:41 +02:00
|
|
|
</ul>
|
2016-08-26 23:54:52 +02:00
|
|
|
<p><a class="btn" href="kalender/">Flere aktiviteter</a></p>
|
2016-08-15 17:43:41 +02:00
|
|
|
</article>
|
|
|
|
<article>
|
|
|
|
<h2>Opptak</h2>
|
|
|
|
<p>
|
|
|
|
Alle med tilknytning til NTNU kan bli medlem hos oss
|
2016-08-17 23:54:59 +02:00
|
|
|
og benytte seg av våre ressurser.
|
2017-10-07 14:49:20 +02:00
|
|
|
<!--For å bli med i våre prosjekter og komitéer må du søke.-->
|
2016-08-15 17:43:41 +02:00
|
|
|
</p>
|
|
|
|
<p>
|
2016-08-26 23:54:52 +02:00
|
|
|
<a class="btn" href="paamelding/">Bli medlem</a>
|
2017-10-07 14:49:20 +02:00
|
|
|
<!--
|
|
|
|
<a class="btn" href="prosjekt/">Søk prosjekt</a>
|
|
|
|
<a class="btn" href="prosjekt/">Søk komité</a>
|
|
|
|
-->
|
2016-08-15 17:43:41 +02:00
|
|
|
</p>
|
|
|
|
</article>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</main>
|
2016-08-29 19:37:49 +02:00
|
|
|
|
|
|
|
<nav><ul>
|
|
|
|
<li class="active"><a href="index.php">hjem</a></li>
|
2017-10-07 14:49:20 +02:00
|
|
|
<!--<li><a href="prosjekt/">prosjekter</a></li>-->
|
2016-08-30 18:13:31 +02:00
|
|
|
<li><a href="aktiviteter/">aktiviteter</a></li>
|
2016-09-29 18:27:28 +02:00
|
|
|
<li><a href="kontakt">kontakt</a></li>
|
2016-08-29 19:37:49 +02:00
|
|
|
<li><a href="pvv/">wiki</a></li>
|
|
|
|
</nav>
|