0) : WHILE ($i < $number): $calllogsig = mysql_result($result,$i,"calllogsig"); $i++; ENDWHILE; ENDIF; IF($rekey1 == ''){ $rekey1 = "RE:".$key1 ; } ELSE {} //IF($incnotes == ""){ //$incnotes = "yes" ; //}ELSE {} IF($option01 == ""){ $option01 = 2 ; }ELSE {} IF($option03 == ""){ $option03 = 6 ; }ELSE {} IF($submit2 == "Enter"){ if ($body1 > ""){ if (($sendemail > "" )AND($sendcheck == yes)){ $timesent = date('l dS \of F Y h:i:s A'); $notesb = $body1."
The above message was sent on ".$timesent."
To Email: ".$sendemail ; $notes = $body1 ; } Else { $notesb = $body1 ; $notes = $body1 ; } } Else { $notes = $altbody ; } //$body1 = urlencode($body1); $refreshval = date("h:i:s"); IF($link8o == $link8){ } ELSE { $itemlink = '' ; } $query = "INSERT INTO calllog SET item='',option01='$option01',option03='$option03',itemlink='$itemlink',key1='$rekey1',link='$link8',employee='$employee',dateentered=NOW(),notes='$notesb',status='$status',time='$time',handle='$handle'"; $result = MYSQL_QUERY($query); IF($itemlink > ''){ $query = "UPDATE calllog SET status='Open',handle='$handle' WHERE item='$itemlink'"; $result = MYSQL_QUERY($query); }ELSE {} $querys2 = "SELECT * FROM client WHERE link = '$link8' "; $results2 = MYSQL_QUERY($querys2); $numbers2 = MYSQL_NUMROWS($results2); $is2 = 0; IF ($numbers2 == 0) : PRINT "

There are no listings at this time!

"; ELSEIF ($numbers2 > 0) : WHILE ($is2 < $numbers2): $email2 = mysql_result($results2,$is2,"email"); $is2++; ENDWHILE; ENDIF; IF ($status == 'Open'){ $querys2 = "SELECT * FROM client WHERE link = '$handle' "; $results2 = MYSQL_QUERY($querys2); $numbers2 = MYSQL_NUMROWS($results2); $is2 = 0; IF ($numbers2 == 0) : PRINT "

There are no listings at this time!

"; ELSEIF ($numbers2 > 0) : WHILE ($is2 < $numbers2): $handleemail = mysql_result($results2,$is2,"email"); $is2++; ENDWHILE; ENDIF; //$emaillink = "Check Call Log
" ; $emaillink = "Check Call Log
" ; $emailsubject = "Call Log Reminder - ".$rekey1 ; $emailbody = $emaillink.$notes ; $emailbody = str_replace("\\", '', $emailbody); $configemail = $conf_email ; $configname = $conf_name ; // $bcc = "tim@whiz.to"; $reply = $configemail; $recipient = $handleemail; $sreturnpath = "-f".$configemail ; $ob = "----=_OuterBoundary_000"; $ib = "----=_InnerBoundery_001"; $headers = "MIME-Version: 1.0\r\n"; $headers .= "From: \"".$configname."\" <".$configemail."> \r\n"; //$headers .= "To: ".$recipient."\r\n"; $headers .= "Reply-To: ".$reply."\r\n"; $headers .= "Return-Path: ".$configemail." \r\n"; $headers .= "Bcc: ".$bcc."\r\n"; // $headers .= "X-Priority: 1\r\n"; $headers .= "X-Mailer: ".$configname." \r\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; mail($recipient, $emailsubject,$emailbody,$headers, $sreturnpath); } ELSE {} IF ($sendemail > '' AND $sendcheck == yes){ $handleemail = $sendemail ; //$emaillink = "Check Call Log
" ; $emailsubject = $conf_name." Ticket # ".$itemlink." - ".$rekey1 ; $emailbody = $notes ; $emailbody = str_replace("\\", '', $emailbody); $configemail = $conf_email ; $configname = $conf_name ; // $bcc = "tim@whiz.to"; $reply = $configemail; $recipient = $handleemail; $sreturnpath = "-f".$configemail ; $ob = "----=_OuterBoundary_000"; $ib = "----=_InnerBoundery_001"; $headers = "MIME-Version: 1.0\r\n"; $headers .= "From: \"".$configname."\" <".$configemail."> \r\n"; //$headers .= "To: ".$recipient."\r\n"; $headers .= "Reply-To: ".$reply."\r\n"; $headers .= "Return-Path: ".$configemail." \r\n"; $headers .= "Bcc: ".$bcc."\r\n"; // $headers .= "X-Priority: 1\r\n"; $headers .= "X-Mailer: ".$configname." \r\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; mail($recipient, $emailsubject,$emailbody,$headers, $sreturnpath); } ELSE {} IF ($closewindow == 'yes') { ?> 0) : WHILE ($is2c < $numbers2c): $emailbody = mysql_result($results2c,$is2c,"body"); $is2c++; ENDWHILE; ENDIF; $content = ""; IF($incnotes == "yes"){ $querys2c = "SELECT * FROM calllog WHERE item = '$item' "; $results2c = MYSQL_QUERY($querys2c); $numbers2c = MYSQL_NUMROWS($results2c); $is2c = 0; IF ($numbers2c == 0) : ELSEIF ($numbers2c > 0) : WHILE ($is2c < $numbers2c): $pnotes = mysql_result($results2c,$is2c,"notes"); $is2c++; ENDWHILE; ENDIF; } ELSE {} $content = $emailbody.$content.$pnotes.$calllogsig ; ?> Whiz.to

 

Enter Call Log Below:
Link:  
Tech:
Handle:
Private:
From:

There are no listings at this time!"; ELSEIF ($numbers2 > 0) : WHILE ($is2 < $numbers2): $optionname = mysql_result($results2,$is2,"name"); $optionitem= mysql_result($results2,$is2,"item"); $optionvalue= mysql_result($results2,$is2,"ovalue"); ?> > <? echo $optionname;?>

Stock Message:
checked> Inc orig msg
Status:
Send email To: checked> Send
Key:

link8o itemlink Item visitor