include("aaaconnect.php"); ?>
include("aaaconfig.php"); ?>
$query = "SELECT * FROM client WHERE link= '$visitor' ";
$result = MYSQL_QUERY($query);
$number = MYSQL_NUMROWS($result);
$i = 0;
IF ($number == 0) :
ELSEIF ($number > 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!
There are no listings at this time!
|
|