Feedback-System

This commit is contained in:
MaZderMind 2015-03-01 16:57:07 +01:00
parent 601e5c505a
commit c094ad5e73
3 changed files with 17 additions and 9 deletions

View file

@ -67,3 +67,15 @@ body.e404 {
}
}
}
body.feedback {
.feedback-thankyou {
font-size: @jumbo-font-size;
text-align: center;
padding: 30px;
display: none;
.well();
}
}

View file

@ -1,5 +1,7 @@
<?php
require_once('lib/bootstrap.php');
if(
!isset($_POST['datetime']) ||
!isset($_POST['net']) ||
@ -9,8 +11,6 @@ if(
!isset($_POST['provider']) ||
!isset($_POST['issuetext'])
) {
require_once('lib/bootstrap.php');
echo $tpl->render(array(
'page' => 'feedback',
'title' => 'Give Feedback',
@ -19,7 +19,7 @@ if(
}
else
{
$db = new PDO('sqlite:/opt/31c3-streaming-feedback/feedback.sqlite3');
$db = new PDO(get('FEEDBACK.DSN'));
$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$stm = $db->prepare('

View file

@ -1,8 +1,4 @@
<div class="container-fluid rooms">
<div class="container">
<h1>Feedback</h1>
<div class="tab-content">
<div class="tab-pane active" id="feedback">
<? include("$assemblies/feedback.phtml") ?>
</div>
</div>
<? include("$assemblies/feedback.phtml") ?>
</div>