From 478a6dbc03c1ed65f5a187a6752bc130d3b82ac3 Mon Sep 17 00:00:00 2001 From: oweissbarth Date: Wed, 12 Mar 2014 20:45:33 +0100 Subject: Added invite-form --- www/functions/func_invite.php | 8 +--- www/invite.php | 24 ++++++++++++ www/static/invite.css | 91 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 116 insertions(+), 7 deletions(-) create mode 100644 www/invite.php create mode 100644 www/static/invite.css (limited to 'www') diff --git a/www/functions/func_invite.php b/www/functions/func_invite.php index 3de7e2e..cc1118b 100644 --- a/www/functions/func_invite.php +++ b/www/functions/func_invite.php @@ -62,13 +62,7 @@ function invite($db){ return false; } } else { - echo "Formular"; - echo "Hallo $name - -
- -

E-Mail:

- - - - - -
"; + include("invite.php"); return false; } } diff --git a/www/invite.php b/www/invite.php new file mode 100644 index 0000000..8eb721d --- /dev/null +++ b/www/invite.php @@ -0,0 +1,24 @@ + + + + +
+

Invite

+
+ An invitation was sent. + '; + }elseif(isset($_GET['reason']) && $_GET['reason'] == 'database'){ + echo '

Internal Error. Please contact admin

+ '; + }elseif(isset($_GET['reason']) && $_GET['reason'] == 'invites'){ + echo '

Error: Your invite-limit has been reached.

+ '; + }?> +
+
+ + +
+
+ diff --git a/www/static/invite.css b/www/static/invite.css new file mode 100644 index 0000000..7ea92a3 --- /dev/null +++ b/www/static/invite.css @@ -0,0 +1,91 @@ +/********************************************************* + invite-Form +**********************************************************/ +div.invite-area{ + height: 200px; + width: 400px; + position: relative; + top: 50%; + margin-top: -100px; + margin-left: auto; + margin-right: auto; + border: 1px solid #1F3D4C; + padding: 10px; +} + +h1.invite-area{ + font-size: 32px; + font-weight: normal; + line-height: 32px; + padding:0; + display: block; +} + +#invite-info-bar{ + display: block; + width: 400px; + height:32px; + padding:0; + margin:0; + border: none; + position: static; +} + +h1.invite-area{ + font-size: 32px; + font-weight: normal; + line-height: 32px; + padding:0; + display: inline-block; +} + +#invite-error{ + font-size: 13pt; + background: red; + text-align:right; + float:right; + display: inline-block; + line-height: 26px; + border: 3px solid #1F3D4C; +} + +#invite-message{ + font-size: 13pt; + text-align:right; + float:right; + display: inline-block; + line-height: 26px; + border: 3px solid #1F3D4C; +} + + +form.invite-form{ + +} + +input.invite-input[type=email]{ + border: none; + box-shadow: inset 0px 0px 1px 1px #1F3D4C; + border-radius: 0; + height: 40px; + font-size: 25px; + margin-top: 15px; + width: 395px; + display:block; + padding-left: 5px; +} + +input.invite-input:focus{ + background: #D6E0E5 +} + +#button-input{ + height: 40px; + width: 120px; + display:inline; + border: none; + box-shadow: inset 0px 0px 1px 1px #1F3D4C; + border-radius: 0; + font-size: 25px; + margin-top: 15px; +} -- cgit v1.2.3