//////////////////////////////////////////////////////////////////////
// Cuttsa
// Contact Us Page
// A.Kretschmer August 2008
//////////////////////////////////////////////////////////////////////
//std includes
include 'class/global.php'; //precursor, extended all classes
include 'base.class';
include 'class.smtp.php';
include 'class.phpmailer.php';
include 'class/SC_sh.class'; //extended in $sc, therefore precursor declaration required
include 'class/SC_sc.class';
$sc=new sc($pg);
//filer
$filer=new filer($pg);
//$filer->DEBUG=1;
$filer->mod=$filer_mod;
$filer->rootpath=$fileroot;
$filer->imagepath=$filerel;
$filer->imagepathg=$filerelg;
$filer->clearmsg();
$filer->setgroup(1,1);
$form=$con;
$mail_pass=0;
//print_r($form);
$fc->setform($form);
$action=$form['action'];
if (strlen($_POST['reset'])==0) {
//test if submit or first load
if (strlen($_POST[$form['action']])>0) {
$fc->message=1;
$fc->loaddata();
$fc->test();
if (sizeof($fc->msg)==0) {
//echo("submited!
");
$msg=sendemail();
if (strlen($msg)==0) {
//display message
//$a=array('','Mail Successfully Sent');
//$form['fields']=array_merge($a,$form['fields']);
$mail_pass=1;
$fc->setform($form);
//rest to default settings
$fc->message=0;
} else {
$a=array('',$msg);
$form=array_merge($a,$form);
}
}
}
} else {
$fc->message=0;
}
$fc->hidden=array();
$cartid=0;
$exists=0;
if ($htm_cartid>0) {
//existing cart found
$cartid=$htm_cartid;
//check if it exists
$exists=$cart->id($cartid);
} elseif ($cook_cartid>0) {
//historical cart found
$cartid=$cook_cartid;
$exists=$cart->id($cartid);
}
//check if it exists
if ($exists==0) {
$logger->logvisitor($cartid,1); //New visitor, new=1
$cartid=$cart->add($session);
$exists=$cart->id($cartid);
} else {
$logger->logvisitor($cartid,0); //Returning visitor, new=0
}
//always store ccokie if possible
if ($exists>0) storecookie("CARTID",$cartid);
$sc->header(0,1);
echo("");
include "header.php";
$str=$config->item('ADDRESS1');
$str2=$config->item('ADDRESS2');
if (!strlen(trim($str2))==0) $str=" ".$str2;
$str=$str." ".$config->item('SUBURB')." ".$config->item('STATE')." ".$config->item('PCODE');
$str="
| Location Details | |||
| ".$str."
Phone: ".$config->item('PHONE_NO')." Mobile: ".$config->item('MOBILE_NO')." Facsimile: ".$config->item('FAX_NO')." Business Hours: ".$config->item('HOURS')." Email: ".$config->item('WORK_EMAIL')." Website: http://".$config->item('web')." |
|||
| Send Us a Message | |||
| Contact Us | |
|
Thank you for your inquiry. You will hear from us shortly. |