diff options
author | Axel Bojer <axelb@skolelinux.no> | 2007-05-12 12:08:55 +0000 |
---|---|---|
committer | Axel Bojer <axelb@skolelinux.no> | 2007-05-12 12:08:55 +0000 |
commit | 799870b419f2eb7fc6b3568a4fbd73b99a42dc43 (patch) | |
tree | 067157a96ae6248ca9b968e7a1588de3c13561cf | |
parent | 888cf9590350671c52e03bb650f9a7c6843d0df7 (diff) | |
download | homepage-799870b419f2eb7fc6b3568a4fbd73b99a42dc43.tar.gz homepage-799870b419f2eb7fc6b3568a4fbd73b99a42dc43.tar.bz2 homepage-799870b419f2eb7fc6b3568a4fbd73b99a42dc43.tar.xz |
Forsoek paa innmeldingskjema
-rw-r--r-- | sendOrd.css | 56 | ||||
-rw-r--r-- | sendOrd.html | 61 | ||||
-rw-r--r-- | sendOrd.php | 72 |
3 files changed, 189 insertions, 0 deletions
diff --git a/sendOrd.css b/sendOrd.css new file mode 100644 index 0000000..6ffbbe3 --- /dev/null +++ b/sendOrd.css @@ -0,0 +1,56 @@ +body { +font-family: Trebuchet, Verdana, Arial, Helvetica, sans-serif; +padding: 15px} + +form { +padding-left: 50px} + +h1 { +text-align: center; +color: white; +background-color: #2328D9; +padding: 5px;} + +h2, h3 { +color: #2328D9; +background-color: none; +text-indent: 25px;} + +p:first-letter { +font-size: 150%;} + +.bestill { +color: red; +font-size: 150%; +text-align: center;} + +.forfatter { +font-weight: bold;} + +.hjem { +font-size: 150%;} + +.ingress { +font-style: italic; +margin: 0px 0px 0px 50px; +font-size: 110%;} + +.oekter { +margin-left: 60px;} + +/*.sendskjema { +float: right; +text-align: right;}*/ + +.stjerner { +font-size: 150%; +text-align: center;} + +.storSkrift{ +font-size: 150%;} + +.tekst {COLOR: #3333cc;} + +.uthevet { +font-weight: bold; +color: red;} diff --git a/sendOrd.html b/sendOrd.html new file mode 100644 index 0000000..38205a5 --- /dev/null +++ b/sendOrd.html @@ -0,0 +1,61 @@ +<!-- Denne siden hører hjemme på no.speling.org --> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> +<meta http-equiv="Content-Language" content="NO"> +<meta name="distribution" content="Global"> +<meta name="robots" content="FOLLOW,INDEX"> +<meta name="author" content="Axel Bojer"> +<meta name="keywords" content="ord,stavekontroll,norsk,bokmål,nynorsk,no.speling.org"> +<meta name="description" content="Send inn nye ord til stavekontrollen"> +<meta name="abstract" content="Send inn nye ord til stavekontrollen"> + + <title>Send inn nye ord</title> + + <link href="sendOrd.css" rel="stylesheet" type="text/css"> +</head> + +<body class="tekst"> +<h1>Innmeldingsskjema for nye ord til no.speling.orgs ordlister</h1> + +Nytt eller endret ord:<br> +<textarea name="ord" rows="3" cols="40"></textarea><br><br> + +Ordet er: +<input type="radio" name="status" value="ja">Godkjent +<input type="radio" name="status" value="nei">Ikke godkjent + +<!--<form action="sendmail.asp" method="post"> +Velg fra lista:<br> +<select name="valg1"> + <option>(Bruk pila til høyre)</option> + <option>1</option> + <option>2</option> +</select><br><br>--> + +For-og etternavn:<br> +<input maxlength="50" size="40" name="navn"><br><br> + +E-postadresse:<br> +<input maxlength="50" size="40" name="e-post"><br><br> + +<br><br> + +<input type="checkbox">Jeg godtar at disse endringene utgis under +<a href="http://www.gnu.org/copyleft/gpl.html">GPL-lisensen</a>. Kort sagt vil det si at alle har rett til å videreutvikle og bruke ordlista med dine endringer, bare de gir andre samme rett til det endrede produktet som de selv fikk. + + + +<input type="reset" value="Slett alt"> <input type="submit" +value="Send påmeldingen" name="Send"> + +</form> + +For mer informasjon om stavekontrollen, <a href="http://no.speling.org">bruk denne lenka.</a> + +</body> +</html> + + + diff --git a/sendOrd.php b/sendOrd.php new file mode 100644 index 0000000..20124b4 --- /dev/null +++ b/sendOrd.php @@ -0,0 +1,72 @@ +<!-- Denne siden hører hjemme på http://www.steinerinstituttet.no --> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> +<meta http-equiv="Content-Language" content="NO"> +<meta name="distribution" content="Global"> +<meta name="robots" content="FOLLOW,INDEX"> +<meta name="author" content="Axel Bojer"> +<meta name="keywords" content="ord,stavekontroll,norsk,bokmål,nynorsk,no.speling.org"> +<meta name="description" content="Send inn nye ord til stavekontrollen"> +<meta name="abstract" content="Send inn nye ord til stavekontrollen"> + +<title>Bekreftelse av innsendte ord</title> + <link href="sendOrd.css" rel="stylesheet" type="text/css"> + +</head> +<body class="tekst"> + +<?php + +$error = ''; + +// Sjekk at et valg er tatt +// if($HTTP_POST_VARS['valg1'] == '(Bruk pila til høyre)') +// { +// $error .= "Du har glemt å velge ...\n"; +// } + +// Sjekk at all nødvendig kontaktinformasjon er oppgitt +if($HTTP_POST_VARS['status'] == '' || $HTTP_POST_VARS['e-post'] == '') +{ + $error .= "Du må oppgi både navn og e-post.\n"; +} + + +// Hvis skjemaet er fylt ut feil, må skjemaet fylles ut på nytt +if($error != '') +{ + $error .= "Bruk tilbakeknappen i nettleseren for å rette på påmeldinga.\n"; + print "<pre>" . $error . "</pre>"; + exit(); +} + +?> + +<p>Takk! Påmeldinga til «<?php echo $HTTP_POST_VARS['kursnavn'] ?>» er sendt.<br><br> +Du får straks en kopi av bestillinga til den e-postadressen du oppga.<br> + +<?php + +$body .= " +WORD: {$HTTP_POST_VARS['ord']} +if($HTTP_POST_VARS['status']) + $body .= "STATUS: +\n"; +elif + $body .= "STATUS: -\n"; +else + $body .= "STATUS: ?\n"; +EDITOR: {$HTTP_POST_VARS['navn']} {$HTTP_POST_VARS['epost']} +"; + +/*if($HTTP_POST_VARS['beskjeder']) + $body .= "\nBeskjeder:\n{$HTTP_POST_VARS['beskjeder']}\n\n";*/ + +mail($to, $subject, $body); +mail($HTTP_POST_VARS['epost'], $subject, $body); +//print "<pre>" . $body . "</pre>"; +?> + +</body> +</html> |