rendered paste body<?php
// Copyright (c) Interakt Online 2001
// http://www.interakt.ro/
require("adodb/adodb.inc.php");
require("Connections/connBlue.php");
?><?php
# PHP Mailer - Form Mailer Edition v1.0
# Copyright 2001. Tim Green. All rights reserved.
# Developed in collaboration with Kenny. daemon@artdisk.com
if (isset($PHP_MAIL_FORM)) {
include("classes/tgMailClass.php");
$tgFormMail=new phpMailer();
$from=$email;
// $tgFormMail_sent ="newcontact.php";
$pos = strpos($from, "@");
$i=0;
$arr = array($HTTP_POST_VARS);
while(list($key, $val) = each($HTTP_POST_VARS)) {
$val = strip_tags($val);
$mex = $mex."$key : $val\n\n";
}
$mailto= "me@mysite.com";
$subject="Message from Website";
$tgFormMail->AddSender($email,$email);
$tgFormMail->AddAddress($mailto,$mailto);
$tgFormMail->SetSubject($subject);
$tgFormMail->AddBody($mex);
$tgFormMail->Send();
if($tgFormMail_sent != ""){
// header("Location: $tgFormMail_sent");
}
}
?><?php
require("includes/browsersniff.php");
?><?php
$rsmenu=$connBlue->Execute("SELECT * FROM sections WHERE id <12 ORDER BY id ASC") or DIE($connBlue->ErrorMsg());
$rsmenu_numRows=0;
$rsmenu__totalRows=$rsmenu->RecordCount();
?><?php
$rspagecontent=$connBlue->Execute("SELECT * FROM sections WHERE id = 8") or DIE($connBlue->ErrorMsg());
$rspagecontent_numRows=0;
$rspagecontent__totalRows=$rspagecontent->RecordCount();
?><?php
$Repeat1__numRows = -1;
$Repeat1__index= 0;
$rsmenu_numRows = $rsmenu_numRows + $Repeat1__numRows;
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><!-- #BeginTemplate "/Templates/main.dwt" -->
<head>
<!-- #BeginEditable "head" -->
<title>Me :
<?php echo $rspagecontent->Fields("sectionName")?>
</title>
<!-- #EndEditable -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="copyright" content=".">
<meta name="robots" content="all">
<meta name="keywords" content=".">
<meta name="description" content=".">
<meta name="title" content=".">
<meta name="author" content=".">
<meta name="coverage" content="Worldwide">
<meta name="revisit-after" CONTENT="5 Days">
<link rel="stylesheet" href="style.css" type="text/css">
<script language="JavaScript">
<!--
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
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_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000" onLoad="MM_preloadImages('images/pointer.jpg')">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="whitebg">
<tr>
<td class="top" colspan="2"><a href="index.php"><img src="images/logo.jpg" width="238" height="69" border="0"></a>
</td>
<td class="top" valign="bottom" colspan="2">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="question"><!-- #BeginEditable "question" --> <!-- #EndEditable --></td>
<td class="nav"><a href="index.php" class="navtrail">home</a>
> <a href="<?php echo $rspagecontent->Fields("url")?>" class="navtrail">
<?php echo $rspagecontent->Fields("sectionName")?></a>
<!-- #BeginEditable "navtrail" --><!-- #EndEditable --></td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="140" class="mainmenu">
<table border="0" cellspacing="0" cellpadding="5" width="140">
<?php while (($Repeat1__numRows-- != 0) && (!$rsmenu->EOF))
{
?>
<tr>
<?php if ($rsmenu->Fields("id")=='8') :?>
<tr>
<td width="12"> </td>
<td> </td>
</tr>
<?php else :?>
<?php endif ;?>
<?php if (($rsmenu->Fields("id"))==($rspagecontent->Fields("id"))):?>
<tr>
<td width="12"><img src="images/pointer.jpg" width="12" height="9" name="pointer<? echo $rsmenu->Fields("id") ?>"></td>
<td><a href="<? echo $rsmenu->Fields("url") ?>" class="menulinkcurrent">
<?php echo $rsmenu->Fields("sectionName")?>
</a></td>
</tr>
<?php else :?>
<tr onMouseOver="MM_swapImage('pointer<? echo $rsmenu->Fields("id") ?>','','images/pointer.jpg',1)" onMouseOut="MM_swapImgRestore()">
<td width="12"><img src="images/nopointer.jpg" width="12" height="9" name="pointer<? echo $rsmenu->Fields("id") ?>"></td>
<td><a href="<? echo $rsmenu->Fields("url") ?>" class="menulink">
<?php echo $rsmenu->Fields("sectionName")?>
</a></td>
</tr>
<?php endif ;?>
<?php
$Repeat1__index++;
$rsmenu->MoveNext();
}
?>
</table>
<img src="images/transspacer.gif" width="140" height="1"> </td>
<td width="130" class="arrow">
<!-- #BeginEditable "context" --> <!-- #EndEditable --><br>
<!-- #BeginEditable "casestudy" --> <!-- #EndEditable -->
<img src="images/transspacer.gif" width="150" height="1">
</td>
<td width="100%">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" align="left" class="fade">
<h1><!-- #BeginEditable "heading" -->
<?php if (isset($PHP_MAIL_FORM)) :?>
Thank You
<?php else :?>
<?php echo $rspagecontent->Fields("sectionHead")?>
<?php endif ;?>
<!-- #EndEditable --></h1>
<!-- #BeginEditable "content" -->
<?php if (isset($PHP_MAIL_FORM)) :?>
<p>Your form has been sent to us. We will respond to you as soon as we can.</p>
<?php else :?>
<p>
<?php echo nl2br($rspagecontent->Fields("sectionText"))?>
</p>
<form name="contact" action="<?php $PHP_SELF ?>" method="post">
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td width="40%" class="formleft">name</td>
<td width="60%" class="formright">
<input type="text" name="name" class="formwidth">
</td>
</tr>
<tr>
<td width="40%" class="formleft">company name</td>
<td width="60%" class="formright">
<input type="text" name="company" class="formwidth">
</td>
</tr>
<tr>
<td width="40%" class="formleft">position</td>
<td width="60%" class="formright">
<input type="text" name="position" class="formwidth">
</td>
</tr>
<tr>
<td width="40%" class="formleft">telephone number</td>
<td width="60%" class="formright">
<input type="text" name="telephone" class="formwidth">
</td>
</tr>
<tr>
<td width="40%" class="formleft">email address</td>
<td width="60%" class="formright">
<input type="text" name="email" class="formwidth">
</td>
</tr>
<tr>
<td width="40%" class="formleft">address</td>
<td width="60%" class="formright">
<input type="text" name="address" class="formwidth">
</td>
</tr>
<tr>
<td width="40%" class="formleft">city</td>
<td width="60%" class="formright">
<input type="text" name="city" class="formwidth">
</td>
</tr>
<tr>
<td width="40%" class="formleft">county</td>
<td width="60%" class="formright">
<input type="text" name="county" class="formwidth">
</td>
</tr>
<tr>
<td width="40%" class="formleft">postcode</td>
<td width="60%" class="formright">
<input type="text" name="postcode" class="formwidth">
</td>
</tr>
<tr>
<td width="40%" class="formleft">brief outline of your requirements</td>
<td width="60%" class="formright">
<textarea name="requirements" rows="10" class="formwidth"></textarea>
</td>
</tr>
<tr>
<td width="40%"> </td>
<td width="60%" class="formright">
<input type="submit" name="Submit" value="Submit">
<input type="reset" name="reset" value="Reset">
</td>
</tr>
</table>
<input type="hidden" name="PHP_MAIL_FORM" value="true">
</form>
<?php endif ;?>
<!-- #EndEditable --></td>
<td width="1"><img src="images/transspacer.gif" height="320" width="1">
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="3" class="footer">© Me</td>
</tr>
</table>
</body>
<!-- #EndTemplate --></html>
<?php
$rsmenu->Close();
?>
<?php
$rspagecontent->Close();
?>