From 32cb5c52fccf19216eb414b145e2cf10a7a15cab Mon Sep 17 00:00:00 2001 From: Reiko Kaps Date: Sun, 7 Jun 2020 12:34:44 +0200 Subject: [PATCH] first release candidate --- css/leinelab.css | 6 ++- images/logo.png | Bin 0 -> 5393 bytes images/menue.svg | 1 + index.php | 92 ++++++++++++++++----------------- templates/tpl-form.tpl | 114 +++++++++++++++++++++++++++++------------ tpl-form.php | 33 ------------ 6 files changed, 131 insertions(+), 115 deletions(-) create mode 100644 images/logo.png create mode 100644 images/menue.svg delete mode 100644 tpl-form.php 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 0000000000000000000000000000000000000000..6dcb5db543d6e7979b0a0afec0b22fd85595e7ea GIT binary patch literal 5393 zcmWky1yoaQ7#@xoFkwiFw1_l_17UOwkQR^Xo)}|(EXQ+a+<*BYv3|~+yjAdo_%Xq1HKSC zD(X9fK*Z$#UpS!DFEqeS0+*MnNP=Zz3MxjC`@hS6fU50opS;J-yWIOt9hJx+w1Tx2&kh<8(|R%?lC$!tA-V%IA*Rz||#h;LLf( zoj!pu;7?Joz-se;1RY5`iu937>mu;}+_ANd4WaX*vNG1dCZwl`GW^vPsA3KEiEmPNTf1pQ&3@+kq zyuI6dR%dD~!_^ASfBpW=#mNa_4k4l6S?-i%&T~IldSSm{qE96p8RW$h2&G3*2+hpQ zK-wl`v_g7t-0w#eO>FBWTG9k>dbXpmWHK%Y`s2(~H?ie#-Cy^35D3~Lse=b^k8+wgUVryPPZorgk@Pj zGQhz@HIL;Zm;zmPCOL$K^-8B&iZ)yji}vmw9vAt_Nh)k{L+ehhi)IEhc0w19m&cYe zioo_YBvv&mQ0+vSq>K_!`qU|6wXte*g_Y(6F5NIaN(co#eR^i5I;2{U8(;&w_(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>k zO-)U~!T1QXu?A}5_A&jizog_F{4@5A(R3o?`)-n_KV)S?NW8C)`hWlWRcEk&w)@lf zYP%31BA^3AW4zydR|zk^2EwF%Akys*SGtRfi;s?u07=^zNdvsizrXvndfa;4Bo0?A z(D&g?=6Tvd+mnX}{$K(CeoWA4sJx8|3y*GBYgl;rBYu-Epc2F+_!WfCZzVP6%cuPo z&K(o>JYEBaHJr1~(WAu77K8B|(PGD;5b63Zjr^0xU#Z_~Q+YI0k@t^16SEZwB??Hi zYTCX7$r \ 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'); - -?>