<?php
/*
$Id: privacy.php,v 1.22 2003/06/05 23:26:23 hpdl Exp $
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2003 osCommerce
Released under the GNU General Public License
*/
require('includes/application_top.php');
require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_WORKSHOPS);
$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_WORKSHOPS));
?>
<?php
// submit form
$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) { $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']); }
// bij submit: emailen
if ((isset($_POST["sendMail"])) && ($_POST["sendMail"] == "ok")) {
// post vars
$naam = $_POST['naam'];
$email = $_POST['email'];
$onderwerpen = $_POST['onderwerp1'].', '.$_POST['onderwerp2'].', '.$_POST['onderwerp3'].', '.$_POST['onderwerp4'].', '.$_POST['onderwerp5'];
$opm = $_POST['opm'];
// ombouwen tot html opmaak
$bericht = "<p>Een bezoeker van <a href="http://www.artiscrap.nl/workshops.php">artiScrap workshops</a> heeft de volgende voorkeuren verzonden:</p>";
$bericht_ontvanger = "<p>Bedankt voor je reactie. Je hebt de volgende voorkeur opgegeven:</p>";
$common = "<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="250" align="right">Naam:</td>
<td width="10"> </td>
<td>" . $naam . "</td>
</tr>
<tr>
<td width="250" align="right">E-mail:</td>
<td width="10"> </td>
<td>". $email . "</td>
</tr>
<tr>
<td width="250" align="right">Bevestig e-mail:</td>
<td width="10"> </td>
<td>". $email . "</td>
</tr>
<tr>
<td width="250" align="right">Voorkeursonderwerp(en):</td>
<td width="10"> </td>
<td>". $onderwerpen . "</td>
</tr>
<tr>
<td width="250" align="right">Opmerkingen:</td>
<td width="10"> </td>
<td>". $opm . "</td>
</tr>
</table>";
$mailto = "info@artiscrap.nl"; $ontvanger = "artiScrap.nl"; // naar wie
$mailfrom = $email; $sender = $naam; // van wie
$bericht = $bericht . $common;
$bericht_gebruiker = $bericht_ontvanger . $common;
$ok = @mail($mailto, 'artiScrap workshops', // html e-mail versturen $bericht,
"From: $sender <$mailfrom>n" .
"MIME-Version: 1.0n" .
"Content-type: text/html; charset=iso-8859-1");
$ok = @mail($mailfrom, 'artiScrap workshops', // html e-mail versturen $bericht_gebruiker,
"From: $ontvanger <$mailto>n" .
"MIME-Version: 1.0n" .
"Content-type: text/html; charset=iso-8859-1");
}
?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html
<?php echo HTML_PARAMS
; ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=
<?php echo CHARSET
; ?>">
<title>
<?php echo TITLE
; ?></title>
<base href="
<?php echo (($request_type == 'SSL') ? HTTPS_SERVER
: HTTP_SERVER
) . DIR_WS_CATALOG
; ?>">
<link rel="stylesheet" type="text/css" href="stylesheet.css">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_validateForm() { //v4.0
var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
if (val) { nm=val.name; if ((val=val.value)!="") {
if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.n';
} else if (test!='R') { num = parseFloat(val);
if (isNaN(val)) errors+='- '+nm+' must contain a number.n';
if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
min=test.substring(8,p); max=test.substring(p+1);
if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.n';
} } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.n'; }
} if (errors) alert('The following error(s) occurred:n'+errors);
document.MM_returnValue = (errors == '');
}
//-->
</script>
</head>
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
<!-- header //-->
<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
<!-- header_eof //-->
<!-- body //-->
<table border="0" width="100%" cellspacing="3" cellpadding="3">
<tr>
<td width="
<?php echo BOX_WIDTH
; ?>" valign="top"><table border="0" width="
<?php echo BOX_WIDTH
; ?>" cellspacing="0" cellpadding="2">
<!-- left_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
<!-- left_navigation_eof //-->
</table></td>
<!-- body_text //-->
<td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td class="pageHeading">Workshops</td>
<td class="pageHeading" align="right"> </td>
</tr>
</table></td>
</tr>
<tr>
<td>
<?php echo tep_draw_separator
('pixel_trans.gif', '100%', '10'); ?></td>
</tr>
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<?php if ((isset($_POST["sendMail"])) && ($_POST["sendMail"] == "ok")) { ?> <td class="main"><p>Bedankt voor je reactie!</p></td>
<?php } else { ?>
<td class="main"><p>Hier komt mijn eigen tekst!!
<p>Geef je voorkeur door via onderstaand formulier:</p>
<form action="
<?php echo $editFormAction; ?>" method="post" name="form1" target="_self" onSubmit="MM_validateForm('naam','','R','email','','RisEmail');return document.MM_returnValue">
<p>Naam:<br>
<input name="naam" type="text" id="naam">
<br>
E-mail:<br>
<input name="email" type="text" id="email">
<br>
Bevestiging E-mail:<br>
<input name="bevestiging email" type="text" id="bevestiging email">
<br>
Telefoon:<br>
<input name="telefoon" type="text" id="telefoon">
<br>
<input name="onderwerp1" type="checkbox" id="onderwerp1" value="Canvas scrappen">
Canvas scrappen<br>
<input name="onderwerp2" type="checkbox" id="onderwerp2" value="Journalling met gevoel">
Journalling met gevoel<br>
<input name="onderwerp3" type="checkbox" id="onderwerp3" value="Strak en simpel">
Strak en simpel<br>
<input name="onderwerp4" type="checkbox" id="onderwerp4" value="Mini-album">
Mini-album<br>
<input name="onderwerp5" type="checkbox" id="onderwerp5" value="Gebruik van ribbon">
Gebruik van ribbon <br>
<input name="onderwerp6" type="checkbox" id="onderwerp6" value="Scrap-in-blik">
Scrap-in-blik<br>
Opmerkingen:
<br>
<textarea name="opm" cols="48" rows="7" id="opm" style="width: 320px;"></textarea>
<br>
<input type="submit" name="Submit" value="Geef je voorkeur door aan artiScrap!">
<input name="sendMail" type="hidden" id="sendMail" value="ok">
</p>
</form>
</td> <?php } ?>
</tr>
</table></td>
</tr>
<tr>
<td>
<?php echo tep_draw_separator
('pixel_trans.gif', '100%', '10'); ?></td>
</tr>
<tr>
<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
<tr class="infoBoxContents">
<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td width="10">
<?php echo tep_draw_separator
('pixel_trans.gif', '10', '1'); ?></td>
<td align="right"> </td>
<td width="10">
<?php echo tep_draw_separator
('pixel_trans.gif', '10', '1'); ?></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
<!-- body_text_eof //-->
<td width="
<?php echo BOX_WIDTH
; ?>" valign="top"><table border="0" width="
<?php echo BOX_WIDTH
; ?>" cellspacing="0" cellpadding="2">
<!-- right_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>
<!-- right_navigation_eof //-->
</table></td>
</tr>
</table>
<!-- body_eof //-->
<!-- footer //-->
<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
<!-- footer_eof //-->
<br>
</body>
</html>
<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>