diff options
author | MaZderMind | 2015-03-01 16:57:07 +0100 |
---|---|---|
committer | MaZderMind | 2015-03-01 16:57:07 +0100 |
commit | c094ad5e731ce6d9631d481f3974251af7f2dcc5 (patch) | |
tree | 8486b25f03c85c9e8b1832f0cd045d799e136785 | |
parent | 601e5c505a7a02537e5e25fed3e8498942c2e719 (diff) |
Feedback-System
-rw-r--r-- | assets/css/_structure.less | 12 | ||||
-rw-r--r-- | pages/feedback.php | 6 | ||||
-rw-r--r-- | template/feedback.phtml | 8 |
3 files changed, 17 insertions, 9 deletions
diff --git a/assets/css/_structure.less b/assets/css/_structure.less index c5e7760..3f7c10e 100644 --- a/assets/css/_structure.less +++ b/assets/css/_structure.less @@ -67,3 +67,15 @@ body.e404 { } } } + +body.feedback { + .feedback-thankyou { + font-size: @jumbo-font-size; + text-align: center; + padding: 30px; + + display: none; + + .well(); + } +} diff --git a/pages/feedback.php b/pages/feedback.php index 4c214ce..8b87b01 100644 --- a/pages/feedback.php +++ b/pages/feedback.php @@ -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(' diff --git a/template/feedback.phtml b/template/feedback.phtml index 1cec643..c901a54 100644 --- a/template/feedback.phtml +++ b/template/feedback.phtml @@ -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> |