diff --git a/css/leinelab.css b/css/leinelab.css index 9af036e..9de8e00 100644 --- a/css/leinelab.css +++ b/css/leinelab.css @@ -3,6 +3,10 @@ */ main { display: block; - margin: auto 20px; + margin: 50px 20px auto 20px; } + +nav { + position: absolute; +} diff --git a/images/logo.png b/images/logo.png new file mode 100644 index 0000000..6dcb5db Binary files /dev/null and b/images/logo.png differ diff --git a/images/menue.svg b/images/menue.svg new file mode 100644 index 0000000..233bf21 --- /dev/null +++ b/images/menue.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/index.php b/index.php index 4d2de0e..24da7b6 100644 --- a/index.php +++ b/index.php @@ -1,48 +1,46 @@ - - - - Picnic CSS Testing - <?php echo $_SERVER['SERVER_NAME']; ?>: mlmmj-webinterface - - - - - - -
-

-
- - - - + -
-
- - - - - -
- -
-
-
-
- - - - - -
- -
-
-
- - -
- - +$smarty = new Smarty(); +$smarty->setTemplateDir('./templates/'); +$smarty->setCompileDir('./templates_c/'); +$smarty->setConfigDir('./configs/'); +$smarty->setCacheDir('./cache/'); +$smarty->debugging = true; + +// uses the value of $smarty->cacheLifetime() to determine +// the number of seconds a cache is good for +if (!$smarty->debugging) { + $smarty->setCaching(Smarty::CACHING_LIFETIME_CURRENT); +} + +// get informations from Server, Path and GET-Parameter +// eg. https://lists.leinelab.org/subscribe/listname?email=yourname@example.com + +$smarty->assign('server', $_SERVER['SERVER_NAME']); + +if ($_GET['email']) { + $smarty->assign('email', $_GET['email']); +} + +// get listname +if ($_GET['listname']) { + $smarty->assign('listname', $_GET['listname']); +} + +// get action +if ($_GET['action']) { + $smarty->assign('action', $_GET['action']); +} else { + $smarty->assign('action', "subscribe"); +} + +$smarty->display('tpl-form.tpl'); + +?> diff --git a/templates/tpl-form.tpl b/templates/tpl-form.tpl index 29bf72f..72bfd2d 100644 --- a/templates/tpl-form.tpl +++ b/templates/tpl-form.tpl @@ -7,42 +7,88 @@ + -
-
-

{$listname}@{$server}: {$action}

-
- - - - - -
-
-
- - - - - -
- -
-
-
-
- - - - - -
- -
-
-
-
+ + + + +
+ + + + + +
+ {if isset($listname) } + +

Leinelab-Listserver:

+

{$listname}@{$server}: {$action}

+ +
+
+ + + + + +
+ +
+
+ {else} +
+

Sorry: there was an errror!

+
+ {/if} + +
+
diff --git a/tpl-form.php b/tpl-form.php deleted file mode 100644 index 4ea9947..0000000 --- a/tpl-form.php +++ /dev/null @@ -1,33 +0,0 @@ -setTemplateDir('./templates/'); -$smarty->setCompileDir('./templates_c/'); -$smarty->setConfigDir('./configs/'); -$smarty->setCacheDir('./cache/'); -$smarty->debugging = true; - -// get informations from Server, Path and GET-Parameter -// eg. https://lists.leinelab.org/subscribe/listname?email=yourname@example.com - -$smarty->assign('server', $_SERVER['SERVER_NAME']); - -if ($_GET['email']) { - $smarty->assign('email', $_GET['email']); -} - -if ($_GET['listname']) { - $smarty->assign('listname', $_GET['listname']); -} - - -$smarty->display('tpl-form.tpl'); - -?>