It looks like you're new here. If you want to get involved, click one of these buttons!
<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">
<html xmlns=\"http://www.w3.org/1999/xhtml\">
<head>
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />
<title>SIMPLOT PRO-LINE</title>
<link href=\"img/simplot_favicon1.png\" type=\"image/png\" rel=\"shortcut icon\" />
<link type=\"text/css\" rel=\"stylesheet\" href=\"css/style.css\" />
<link type=\"text/css\" href=\"css/tabs.css\" rel=\"stylesheet\" />
<link rel=\"stylesheet\" type=\"text/css\" href=\"tooltip/style.css\" />
<!--[if lte IE 7]>
<link type=\"text/css\" rel=\"stylesheet\" href=\"css/ie7.css\" />
<![endif]-->
<!--[if lte IE 6]>
<link type=\"text/css\" rel=\"stylesheet\" href=\"css/ie6.css\" />
<![endif]-->
<script type=\"text/javascript\" src=\"js/jquery-1.3.2.min.js\"></script>
<script type=\"text/javascript\" src=\"scripts/swfobject.js\"></script>
<script type=\"text/javascript\" src=\"scripts/jquery.uploadify.v2.1.0.min.js\"></script>
<script type=\"text/javascript\" src=\"js/jquery.cookie.js\"></script>
<script type=\"text/javascript\" src=\"menu2/flyout.js\"></script>
<script type=\"text/javascript\" src=\"tooltip/script.js\"></script>
<script type=\"text/javascript\" src=\"js/ui.core.js\"></script>
<script type=\"text/javascript\" src=\"js/resize.js\"></script>
<script type=\"text/javascript\" src=\"js/jquery.validate.js\"></script>
<script type=\"text/javascript\" src=\"js/cmxforms.js\"></script>
<script type=\"text/javascript\">
/**
* Written by Rob Schmitt, The Web Developer's Blog
* http://webdeveloper.beforeseven.com/
* The following variables may be adjusted
*/
var active_color = '#66873a'; // Colour of user provided text
var inactive_color = '#7b9c50'; // Colour of default text
$(document).ready(function() {
$(\"#uploadify\").uploadify({
'uploader' : 'scripts/uploadify.swf',
'script' : 'scripts/uploadify.php',
'checkScript' : 'scripts/check.php',
'cancelImg' : 'cancel.png',
'folder' : 'uploads',
'queueID' : 'fileQueue',
'queueSizeLimit' : '3',
'fileDesc' : '',
'fileExt' : '*.jpg,*.jpeg,*.png,*.bmp,*.doc,*.pdf,*.docx,*.gif',
'sizeLimit' : '3145728',
'auto' : true,
'multi' : true,
'hideButton' : false
});
$('#btn_submit').hover(
function(){ // Change the input image's source when we \"roll on\"
$(this).attr({ src : 'img/btn_submit_hover.gif'});
},
function(){ // Change the input image's source back to the default on \"roll off\"
$(this).attr({ src : 'img/btn_submit.gif'}); }
);
$(\"#signupForm [rel='default-value']\").css(\"color\", inactive_color);
var default_values = new Array();
$(\"#signupForm [rel='default-value']\").focus(function() {
if (!default_values[this.id]) {
default_values[this.id] = this.value;
}
if (this.value == default_values[this.id]) {
this.value = '';
this.style.color = active_color;
}
$(this).blur(function() {
if (this.value == '') {
this.style.color = inactive_color;
this.value = default_values[this.id];
}
});
});
// a custom method making the default value for companyurl (\"http://\") invalid, without displaying the \"invalid url\" message
jQuery.validator.addMethod(\"nameInvalid\", function(value, element) {
return value != element.defaultValue;
}, \"Please enter a Name\");
jQuery.validator.addMethod(\"orgInvalid\", function(value, element) {
return value != element.defaultValue;
}, \"Please enter Organisation name\");
jQuery.validator.addMethod(\"termscheck\", function(value, element) {
return value != element.defaultValue;
}, \"Please check this box\");
$(\"#firstpane p.menu_head\").click(function()
{
$(this).css({backgroundImage:\"url(down.png)\"}).next(\"div.menu_body\").slideToggle(300).siblings(\"div.menu_body\").slideUp(\"slow\");
});
$(\"#signupForm\").validate();
});
function searchbox(){
if (document.getElementById(\"find\").value == \"Search\")
{
document.getElementById(\"find\").value = '';
}
}
function searchbox2(){
if (document.getElementById(\"find\").value == \"\")
{
document.getElementById(\"find\").value = 'Search';
}
}
$().ready(function() {
});
function insertDatabase(filename){
}
</script>
<style type=\"text/css\">
#signupForm label.error {
display: inline;
color:#FF0000;
font-size:13px;
margin-left: 8px;/* width:150px; */
}
#newsletter_topics label.error {
display: none;
margin-left: 53px;
}
</style>
<script type=\"text/javascript\">
var gaJsHost = ((\"https:\" == document.location.protocol) ? \"https://ssl.\" : \"http://www.\");
document.write(unescape(\"%3Cscript src='\" + gaJsHost + \"google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E\"));
</script>
<script type=\"text/javascript\">
try {
var pageTracker = _gat._getTracker(\"UA-1943714-7\");
pageTracker._trackPageview();
} catch(err) {}</script>
</head>
<body onresize=\"resize()\" class=\"sect-about\">
<div id=\"mainwrapper\">
<div id=\"container\">
<div id=\"logo\"><a href=\"index.html\">Simplot logo</a></div>
<!--<div id=\"header\">
<div id=\"logo\"><a href=\"index.html\">Simplot logo</a></div> -->
<div id=\"header\">
<div class=\"punchline\"><img src=\"img/gallery/bringing_earths.png\" alt=\"Bringing Earth\" /></div>
<div id=\"search\">
<form action=\"search.html\" id=\"cse-search-box\">
<div>
<input type=\"hidden\" name=\"cx\" value=\"012931657508094111905:jnktgly_oy4\" />
<input type=\"hidden\" name=\"cof\" value=\"FORID:10;NB:1\" />
<input type=\"hidden\" name=\"ie\" value=\"UTF-8\" />
<input type=\"text\" id=\"find\" name=\"q\" value=\"Search\" size=\"31\" onfocus=\"searchbox()\" onblur=\"searchbox2()\" />
<input type=\"image\" name=\"sa\" src=\"img/arrow.gif\" class=\"searchbox\" />
</div>
</form>
</div>
<!-- /#search -->
</div>
<!-- /#header -->
<div id=\"content\">
<div id=\"nav\">
<div id=\"firstpane\">
<!--Code for menu starts here-->
<ul>
<li><a href=\"index.html\">home</a></li>
<li id=\"n_about\"><a href=\"news.html\">NEWS</a></li>
<li><a href=\"tech.html\">resources</a></li>
<p class=\"menu_head\"><a href=\"#\">products</a></p>
<div class=\"menu_body\"> <a href=\"fertilisers.html\">fertilisers</a>
<a href=\"apex.html\">apex nursery</a>
<a href=\"special.html\">speciality</a>
<a href=\"chemicals.html\">chemicals</a>
<a href=\"seeds.html\" class=\"last\">seed</a></div>
<li id=\"n_contactus\"><a href=\"contact.html\" class=\"contact\">contact us</a></li>
</ul>
</div>
<!-- /#firstpane -->
</div>
<!-- /#nav -->
<div class=\"demo\">
<div id=\"tabs\">
<ul id=\"toptabs\">
<li id=\"s_newsletters\"><a href=\"news.html\">newsletters</a></li>
<li id=\"s_greemaxxclub\"><a href=\"greenmaxx-club.html\">Greenmaxx club</a></li>
<li id=\"s_application\" class=\"urhere\"><a href=\"application.html\">apply</a></li>
<li id=\"s_gallery\"><a href=\"gallery.html\">gallery</a></li>
</ul>
<!-- /#tabs-12 -->
<div id=\"apply\">
<p class=\"underline\">The GreenMaxx Club is a chance to show off the truly amazing results<br /> of this very popular liquid product and what it does to your turf.</p>
<h2>Apply now</h2>
<form action=\"\" name=\"apply\" method=\"post\" class=\"cmxform\" id=\"signupForm\">
<ul>
<li>
<input type=\"text\" id=\"name\" name=\"txtname\" value=\"Name\" size=\"46\" rel=\"default-value\" class=\"inputbox nameInvalid\" />
</li>
<li>
<input type=\"text\" id=\"position\" name=\"txtposition\" value=\"Position\" size=\"46\" rel=\"default-value\" class=\"inputbox\" />
</li>
<li>
<input type=\"text\" id=\"organisation\" name=\"txtorganization\" rel=\"default-value\" class=\"inputbox orgInvalid\" value=\"Organisation\" size=\"46\" />
</li>
<li>
<textarea id=\"address\" name=\"txtaddress\" rel=\"default-value\" class=\"textarea required\">Address</textarea>
</li>
<li>
<input type=\"text\" id=\"phone\" name=\"txtphone\" value=\"Phone\" size=\"46\" rel=\"default-value\" class=\"inputbox number\" />
</li>
<li>
<input type=\"text\" id=\"email\" name=\"txtemail\" value=\"Email\" size=\"46\" rel=\"default-value\" class=\"required email\" />
</li>
<li>
<textarea id=\"application\" name=\"txtapplication\" rel=\"default-value\" class=\"textarea\">Application Notes (Section/Hole, Rate etc.)</textarea>
</li>
<li>
<textarea id=\"testimonial\" name=\"txttestimonial\" rel=\"default-value\" class=\"textarea\">Testimonial (Optional)</textarea>
</li>
<li>
<div class=\"uploader\">
<input type=\"file\" name=\"uploadify\" id=\"uploadify\" />
<input id=\"btn_submit\" name=\"from_contact\" type=\"image\" src=\"img/btn_submit.gif\" />
<div id=\"fileQueue\">Specify file to upload</div>
<p><a href=\"javascript:jQuery('#uploadify').uploadifyClearQueue()\">Cancel All Uploads</a></p>
</div>
<div class=\"instructions\">
<p>You may choose to upload multiple images by clicking the Browse button.
<br />Please upload a maximum of 3 images at once.</p>
</div>
</li>
</ul>
<h2>TERMS AND CONDITIONS</h2>
<p class=\"terms\">IMAGE RELEASE: THE MEMBER hereby assigns and grants Simplot Pro-Line and its legal representatives the irrevocable and unrestricted right to use and publish photographs for editorial, trade, advertising or any other purpose and in any manner and medium; to alter the same without restriction; and to copyright the same. THE MEMBER hereby releases SIMPLOT PRO-LINE and its legal representatives and assigns from all claims and liability relating to said photographs. It is agreed that SIMPLOT PRO-LINE may display and use the photographs taken for advertising, display, website and internet promotion, store fronts, window displays, television advertising, magazine advertising and any other purpose thought proper by SIMPLOT PRO-LINE.</p>
<br />
<p>
<input type=\"checkbox\" id=\"agree\" name=\"agree\" class=\"required\" />
I agree to these terms and conditions.</p>
<br />
<input id=\"btn_submit\" name=\"from_contact\" type=\"image\" src=\"img/btn_submit.gif\" />
<input type=\"hidden\" name=\"form_email\" value=\"fc\" />
</form>
</div>
</div><!-- /#gallery -->
</div><!-- /#tabs -->
</div>
<!-- /.demo -->
</div>
<!-- /#content -->
</div>
<!-- /#container -->
</div>
<!-- /#mainwrapper -->
<div id=\"footer\">
<div class=\"footer-content\">
<ul>
<li><a href=\"index.html\">HOME</a></li>
<li><a href=\"news.html\">NEWS</a></li>
<li><a href=\"tech.html\">RESOURCES</a></li>
<li><a href=\"tech.html\">PRODUCTS</a></li>
<li class=\"last-li\"><a href=\"contact.html\">CONTACT US</a></li>
</ul>
</div>
<!-- /.footer-content -->
<div class=\"copyright\">&copy; COPYRIGHT OF SIMPLOT PRO-LINE 2010</div>
<!-- /.copyright -->
</div>
<!-- /#footer -->
</body>
</html>
<?php
require_once ('conf.php');
require_once ('Form.php');
echo $_SESSION['id'];
$noErrors = array();
$form =& new Form($_POST, $noErrors);
if (strtoupper(substr(PHP_OS,0,3)=='WIN'))
$eol=\"\r\n\";
elseif (strtoupper(substr(PHP_OS,0,3)=='MAC'))
$eol=\"\r\";
else
$eol=\"\n\";
if ($form->getValue('form_email')) {
/** IMAGE UPLOAD SCRIPT ENDS HERE **/
/**
* Swiff.Uploader Example Backend
*
* This file represents a simple logging, validation and output.
* *
* WARNING: If you really copy these lines in your backend without
* any modification, there is something seriously wrong! Drop me a line
* and I can give you a good rate for fancy and customised installation.
*
* No showcase represents 100% an actual real world file handling,
* you need to move and process the file in your own code!
* Just like you would do it with other uploaded files, nothing
* special.
*
* @license MIT License
*
* @author Harald Kirschner <mail [at] digitarald [dot] de>
* @copyright Authors
*
*/
/**
* Only needed if you have a logged in user, see option appendCookieData,
* which adds session id and other available cookies to the sent data.
*
* session_name('SID'); // whatever your session name is, adapt that!
* session_start();
*/
// Request log
/**
* You don't need to log, this is just for the showcase. Better remove
* those lines for production since the log contains detailed file
* information.
*/
$result = array();
$result['time'] = date('r');
$result['addr'] = substr_replace(gethostbyaddr($_SERVER['REMOTE_ADDR']), '******', 0, 6);
$result['agent'] = $_SERVER['HTTP_USER_AGENT'];
if (count($_GET)) {
$result['get'] = $_GET;
}
if (count($_POST)) {
$result['post'] = $_POST;
}
if (count($_FILES)) {
$result['files'] = $_FILES;
}
// we kill an old file to keep the size small
if (file_exists('script.log') && filesize('script.log') > 102400) {
unlink('script.log');
}
$log = @fopen('script.log', 'a');
if ($log) {
fputs($log, print_r($result, true) . \"\n---\n\");
fclose($log);
}
// Validation
$error = false;
if (!isset($_FILES['Filedata']) || !is_uploaded_file($_FILES['Filedata']['tmp_name'])) {
$error = 'Invalid Upload';
}
if (!$error && $_FILES['Filedata']['size'] > 2 * 1024 * 1024)
{
$error = 'Please upload only files smaller than 2Mb!';
}
/**
* You would add more validation, checking image type or user rights.
*
if (!$error && !($size = @getimagesize($_FILES['Filedata']['tmp_name']) ) )
{
$error = 'Please upload only images, no other files are supported.';
}
if (!$error && !in_array($size[2], array(1, 2, 3, 7, 8) ) )
{
$error = 'Please upload only images of type JPEG, GIF or PNG.';
}
if (!$error && ($size[0] < 25) || ($size[1] < 25))
{
$error = 'Please upload an image bigger than 25px.';
}
*/
// Processing
/**
* Its a demo, you would move or process the file like:
*
*/
// move_uploaded_file($_FILES['Filedata']['tmp_name'], '../uploads/' . $_FILES['Filedata']['name']);
// $return['src'] = '/uploads/' . $_FILES['Filedata']['name'];
/*
*
* or
*
* $return['link'] = YourImageLibrary::createThumbnail($_FILES['Filedata']['tmp_name']);
*
*/
if ($error) {
$return = array(
'status' => '0',
'error' => $error
);
} else {
$return = array(
'status' => '1',
'name' => $_FILES['Filedata']['name']
);
// Our processing, we get a hash value from the file
$return['hash'] = md5_file($_FILES['Filedata']['tmp_name']);
// ... and if available, we get image data
$info = @getimagesize($_FILES['Filedata']['tmp_name']);
if ($info) {
$return['width'] = $info[0];
$return['height'] = $info[1];
$return['mime'] = $info['mime'];
}
}
// Output
/*
* Again, a demo case. We can switch here, for different showcases
* between different formats. You can also return plain data, like an URL
* or whatever you want.
*
* The Content-type headers are uncommented, since Flash doesn't care for them
* anyway. This way also the IFrame-based uploader sees the content.
*/
//if (isset($_REQUEST['response']) && $_REQUEST['response'] == 'xml') {
// header('Content-type: text/xml');
//
// Really dirty, use DOM and CDATA section!
// echo '<response>';
// foreach ($return as $key => $value) {
// echo \"<$key><![CDATA[$value]]></$key>\";
// }
// echo '</response>';
//} else {
// header('Content-type: application/json');
//
// echo json_encode($return);
//}
//
//* IMAGE UPLOAD SCRIPT ENDS HERE *
if(!$form->getNumErrors()){
$recipient = \"akdugar@gmail.com\";
$Name = \"Simplot Pro-line Request\"; //senders name
$email = \"noreply@simplotproline.com.au\"; //senders e-mail adress
$mail_body = '<h1 align=\"center\" style=\"width:600px;font-family:Verdana, Arial, Helvetica, sans-serif;font-size:13px;margin-bottom:10px;color:#486604;\">Greenmaxx Club Membership Request from Simplot Pro-line</h1>
<table align=\"center\" border=\"0\" cellspacing=\"0\" style=\"font-family:Verdana, Arial, Helvetica, sans-serif;font-size:11px;width:600px;margin:0;padding:0;\">
<tr>
<th colspan=\"4\" class=\"data\" style=\"text-align:left;font-weight:bold;font-size:13px;margin-bottom:10px;color:#486604;border-bottom:1px solid #999;padding:5px 10px 5px 10px;\">Contact Details</th>
</tr>
<tr>
<th style=\"color:#636363;padding:5px 10px 5px 10px;border-bottom:1px solid #999;font-weight:bold;text-align:left;\">Name</th>
<td style=\"color:#636363;padding:5px 10px 5px 10px;border-bottom:1px solid #999;\">'.$form->getValue('txtname').'</td>
</tr>
<tr>
<th style=\"color:#636363;padding:5px 10px 5px 10px;border-bottom:1px solid #999;font-weight:bold;text-align:left;\">Position</th>
<td style=\"color:#636363;padding:5px 10px 5px 10px;border-bottom:1px solid #999;\">'.$form->getValue('txtposition').'</td>
</tr>
<tr>
<th style=\"color:#636363;padding:5px 10px 5px 10px;border-bottom:1px solid #999;font-weight:bold;text-align:left;\">Organization</th>
<td style=\"color:#636363;padding:5px 10px 5px 10px;border-bottom:1px solid #999;\">'.$form->getValue('txtorganization').'</td>
</tr>
<tr>
<th style=\"color:#636363;padding:5px 10px 5px 10px;border-bottom:1px solid #999;font-weight:bold;text-align:left;\">Address</th>
<td style=\"color:#636363;padding:5px 10px 5px 10px;border-bottom:1px solid #999;\">'.$form->getValue('txtaddress').'</td>
</tr>
<tr>
<th style=\"color:#636363;padding:5px 10px 5px 10px;border-bottom:1px solid #999;font-weight:bold;text-align:left;\">Phone</th>
<td style=\"color:#636363;padding:5px 10px 5px 10px;border-bottom:1px solid #999;\">'.$form->getValue('txtphone').'</td>
</tr>
<tr>
<th style=\"color:#636363;padding:5px 10px 5px 10px;border-bottom:1px solid #999;font-weight:bold;text-align:left;\">E-mail</th>
<td style=\"color:#636363;padding:5px 10px 5px 10px;border-bottom:1px solid #999;\">'.$form->getValue('txtemail').'</td>
</tr>
<tr>
<th style=\"color:#636363;padding:5px 10px 5px 10px;border-bottom:1px solid #999;font-weight:bold;text-align:left;\">Application Notes (Section/Hole, Rate etc.)</th>
<td style=\"color:#636363;padding:5px 10px 5px 10px;border-bottom:1px solid #999;\">'.$form->getValue('txtapplication').'</td>
</tr>
<tr>
<th style=\"color:#636363;padding:5px 10px 5px 10px;border-bottom:1px solid #999;font-weight:bold;text-align:left;\">Testimonial</th>
<td style=\"color:#636363;padding:5px 10px 5px 10px;border-bottom:1px solid #999;\">'.$form->getValue('txttestimonial').'</td>
</tr>
</table>';
$subject = 'Application Request (Web) - Greenmaxx Club'; //subject
# Common Headers
$header = \"MIME-Version: 1.0\" .$eol;
$header .= \"Content-type:text/html;charset=iso-8859-1\" .$eol;
$header .= 'From: Simplot Pro-line request <noreply@simplotproline.com.au>'.$eol;
$header .= 'Return-Path: simplot<webmaster@simplotproline.com.au>'.$eol; // these two to set reply address
$header .= \"Message-ID: <\".md5(uniqid(microtime())).\"@\".$_SERVER['SERVER_NAME'].\">\".$eol;
$header .= \"X-Mailer: PHP v\".phpversion().$eol; // These two to help avoid spam-filters
// echo $mail_body;
if (mail($recipient, $subject, $mail_body, $header)){ //mail command :)
// if (1 != 1){
// $form->setMsg('Thank you. We have received your contact information. Return to <a style=\"text-decoration:none;\" href=\"index.html\" class=\"email-link\">simplot</a>');
// $_SESSION['form_data'] = $form;
// header('Location: '.$_SERVER['HTTP_REFERER'].'');
header('Location: ../success.html');
}else{
// $form->setError('submit','Your request could not be sent due to technical reasons. Please try again later or email us at <a href=\"mailto:info@simplotproline.com.au\">info@simplotproline.com.au</a>');
// $_SESSION['form_data'] = $form;
// header('Location: '.$_SERVER['HTTP_REFERER'].'#enquire');
header('Location: ../error.html');
}
}else{
$form->setError('submit','There are errors in the form below.');
$_SESSION['form_data'] = $form;
header('Location: '.$_SERVER['HTTP_REFERER'].'#enquire');
}
}
?>