summaryrefslogtreecommitdiffstats
path: root/modules-available/exams/page.inc.php
diff options
context:
space:
mode:
authorChristian Klinger2016-06-15 10:29:59 +0200
committerChristian Klinger2016-06-15 10:37:36 +0200
commit949f22713943f7c50df728bdf5c65b2a4e39a737 (patch)
tree63de1e8056f09cbe1d1058ba6bd8b74f7c89a07d /modules-available/exams/page.inc.php
parentadded bootstrap module. (diff)
downloadslx-admin-949f22713943f7c50df728bdf5c65b2a4e39a737.tar.gz
slx-admin-949f22713943f7c50df728bdf5c65b2a4e39a737.tar.xz
slx-admin-949f22713943f7c50df728bdf5c65b2a4e39a737.zip
Added date and time pickers.
Diffstat (limited to 'modules-available/exams/page.inc.php')
-rw-r--r--modules-available/exams/page.inc.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules-available/exams/page.inc.php b/modules-available/exams/page.inc.php
index e5129d38..78d5b21c 100644
--- a/modules-available/exams/page.inc.php
+++ b/modules-available/exams/page.inc.php
@@ -29,8 +29,8 @@ class Page_Exams extends Page
if (Request::isPost()) {
/* process form-data */
$locationid = Request::post('location');
- $starttime = Request::post('starttime');
- $endtime = Request::post('endtime');
+ $starttime = Request::post('starttime_date') . " " . Request::post('starttime_time');
+ $endtime = Request::post('endtime_date') . " " . Request::post('endtime_time');
$res = Database::exec("INSERT INTO exams(locationid, starttime, endtime) VALUES(:locationid, :starttime, :endtime);",
compact('locationid', 'starttime', 'endtime'));