width=> = $width) && ($y <= $height)) { $ratio = ($x/$width); $x = round($x / $ratio); $y = round($y / $ratio); ?> width=> = $height)) { $ratio = ($y/$height); $x = round($x / $ratio); $y = round($y / $ratio); ?> width=> = $width) && ($y >= $height)) { $ratiox = ($x/$width); $ratioy = ($y/$height); If ($ratiox > $ratioy){$ratio = $ratiox;} else {$ratio = $ratioy;} $x = round($x / $ratio); $y = round($y / $ratio); ?> width=> width=> (int)$dt2) return(1); elseif((int)$dt1 == (int)$dt2) return(0); else return(-1); } //For home page function displayImageHome($x,$y,$width,$height,$image) { //------------- if x is less than width and y is less than height ----------- If (($x <= $width) && ($y <= $height)) { return ""; } //------------- if x is greater than width and y is less than height ----------- elseIf (($x >= $width) && ($y <= $height)) { $ratio = ($x/$width); $x = round($x / $ratio); $y = round($y / $ratio); return ""; } //------------- if x is less than width and y is greater than height ----------- elseIf (($x <= $width) && ($y >= $height)) { $ratio = ($y/$height); $x = round($x / $ratio); $y = round($y / $ratio); return ""; } //------------- if x is greater than width and y is greater than height ----------- elseIf (($x >= $width) && ($y >= $height)) { $ratiox = ($x/$width); $ratioy = ($y/$height); If ($ratiox > $ratioy){$ratio = $ratiox;} else {$ratio = $ratioy;} $x = round($x / $ratio); $y = round($y / $ratio); return ""; } //------------- if none of the above conditions are satisfied ----------- else { $x = $x; //--- Use the actual width and height ------- $y = $y; //--- Use the actual width and height ------- return ""; } } //this function is used in advsearchresults to display only existing values from tblimage function getImageInfo($field,$users) { $returnString = ""; $DbImage = new Database; $DbImage->execute ("SELECT distinct a.".$field." FROM tblimage a, tblmember b where b.regStatus=1 and a.userID not in ($users) and a.userID=b.userID"); for ($i=0; $i<$DbImage->recordCount; $i++) { $returnString = $returnString . $DbImage->Fields["$field"] . ","; $DbImage->moveNext(); } $DbImage->close(); $returnString = $returnString . "0"; return $returnString; } ?> siteID = $dir; $gallery->refresh1(); $userId = $gallery->userID; $DBartist= new Database; $DBartist->execute("SELECT emailID FROM tbluser WHERE userID = '$userId'"); $DBBio= new Database; $DBBio->execute("SELECT siteID FROM tblmicrosite WHERE userID = '$userId'"); $galnm = $DBBio->Fields[0]; $artistEmail = @$DBartist->Fields[0]; $DBartist->execute("SELECT firstname, lastname FROM tblmember WHERE userID = '$userId'"); //$DBartist->close(); $artistFname = $DBartist->Fields["firstname"]; $artistLname = $DBartist->Fields["lastname"]; $artistName = "$artistFname $artistLname"; // If posted back $show=0; if(@$action=="sendit"){ $mail = new phpmailer; $mail->From = $userEmail; $mail->FromName = $userName; $mail->Subject = "Invitation from $userName to WorldImages"; $mail->AddAddress($friendEmail, $friendName); $mail->IsSMTP(); $mail->SMTPAuth=false; $mail->IsHTML(true); $body = ""; $body = $body . "Dear $friendName,

"; $body = $body . "$userName was browsing through our site and has invited you to visit the following site:

"; $body = $body . "http://www.worldimages.com/$galnm

"; if(strlen($txtMessage)>0) //only if there is a message $body = $body . "$userName also has the following message for you:

$txtMessage

"; $body = $body . "Sincerely,

Worldimages.com"; $mail->Body = $body; $mail->Send(); $show=1; } ?> Tell a Friend about Reindeer Prints and Posters from Worldimages
 
require("left.php");?>  

Tell a Friend

   
 Mailing Information
Your Name 
Your Email 
Friend's Name
Friend's Email
 
Add a personal message for your friends here:

Your message was sent. Thank you for referring us