output(1); $pdfcode = str_replace("\n","\n
",htmlspecialchars($pdfcode)); echo ''; echo trim($pdfcode); echo ''; } else { if ($filename == "") { $pdf->stream(); } else { //$pdf->stream(); $pdfcode = $pdf->output(); createDir($dir); //$fname = tempnam($dir.'/','PDF_').'.pdf'; $fname = $dir."$filename.pdf"; $fp = fopen($fname,'w'); fwrite($fp,$pdfcode); fclose($fp); } } } function generatePassword($length=9, $strength=0) { $vowels = 'aeuy'; $consonants = 'bdghjmnpqrstvz'; if ($strength & 1) { $consonants .= 'BDGHJLMNPQRSTVWXZ'; } if ($strength & 2) { $vowels .= "AEUY"; } if ($strength & 4) { $consonants .= '23456789'; } if ($strength & 8) { $consonants .= '@#$%'; } $password = ''; $alt = time() % 2; for ($i = 0; $i < $length; $i++) { if ($alt == 1) { $password .= $consonants[(rand() % strlen($consonants))]; $alt = 0; } else { $password .= $vowels[(rand() % strlen($vowels))]; $alt = 1; } } return $password; } function starPassword($password) { $passwordLen = strlen($password); $passwordLen = $passwordLen-4; $outstars = ""; for ($i = 0; $i < $passwordLen; $i++) { $outstars .= "*"; } $starPassword = $outstars.substr($password, -4); return $starPassword; } function sqlEsc($str) { return mysql_real_escape_string(trim($str)); } // Search Results Page Data function pagination($limit, $query, $pageNum) { $totalResults = mysql_num_rows(mysql_query($query)); $totalPages = ceil($totalResults/$limit); $pageNow = ((!$pageNum) || ($pageNum > $totalPages) ? 1 : $pageNum); $from = (($pageNow * $limit) - $limit); $to = $pageNow * $limit; if ($to > $totalResults) { $to = $totalResults; } $array = array ( 'limit' => $limit, 'now' => $pageNow, 'totalPages' => $totalPages, 'totalResults' => $totalResults, 'from' => $from+1, 'to' => $to ); return $array; } function postForm($url, $message, $type, $postVals='') { ?>
$value) { ?>
Lloyd Wright Consultants Ltd | Get a Quote
Lloyd Wright Consultants Ltd
Get a Quote
Underline
Please complete all the required (*) fields and click send.
Title: *
First Name: *
Last Name: *
Telephone Number: *
Email Address: *
Company Name:
What products are you interested in? *
Captcha Image
(Case Sensitive)  Reload Captcha Image
Please enter the security code as seen in the image above: *
QUICK LINKS
Underline
SITE LINKS
Underline
CONTACT US
Underline
Gallery 4
12 Leadenhall Street
London
EC3V 1LP
+44 (0)203 397 0952
Copyright © Lloyd Wright Consultants Ltd 2020 | Legal | Site Map | Links Designed by Crushed Ice Ltd

Are you sure you want to send this form?