$noCanceled){$rat_unsp -= $noCanceled;} $rat2Query="UPDATE $servProdb set rat_unsp=$rat_unsp WHERE Pro_id='$provider'";} if($typeBooked==1){if($rat_insur > $noCanceled){$rat_insur -= $noCanceled;} $rat2Query="UPDATE $servProdb set rat_insur=$rat_insur WHERE Pro_id='$provider'";} if($typeBooked==2){if($rat_law > $noCanceled){$rat_law -= $noCanceled;} $rat2Query="UPDATE $servProdb set rat_law=$rat_law WHERE Pro_id='$provider'";} if($typeBooked==3){if($rat_govt > $noCanceled){$rat_govt -= $noCanceled;} $rat2Query="UPDATE $servProdb set rat_govt=$rat_govt WHERE Pro_id='$provider'";} if($typeBooked==4){if($rat_mil > $noCanceled){$rat_mil -= $noCanceled;} $rat2Query="UPDATE $servProdb set rat_mil=$rat_mil WHERE Pro_id='$provider'";} if($typeBooked==5){if($rat_rehab > $noCanceled){$rat_rehab -= $noCanceled;} $rat2Query="UPDATE $servProdb set rat_rehab=$rat_rehab WHERE Pro_id='$provider'";} $rat2Result=mysql_query($rat2Query); if(!$rat2Result){error_message(sql_error());} } //////function show gif function show_gif() { global $CL_login, $CL_logout, $third_login, $third_logout, $logout_script, $root_page; echo ""; echo ""; echo ""; echo ""; //echo ""; echo ""; echo ""; //echo ""; echo ""; echo ""; echo ""; echo "
"; echo ""; echo ""; echo ""; echo ""; if (!empty($_SESSION['user3id1'])) {echo ""; echo ""; } else {echo ""; echo ""; } echo ""; //echo ""; //echo ""; echo "CURRENT CLIENT:
"; echo $_SESSION['userCLid']; echo "
"; echo $_SESSION['third_co_selected']; echo "
"; echo "
"; if (!empty($_SESSION['userCLid'])) { echo ""; echo ""; } else {echo ""; echo ""; } echo ""; //echo ""; //echo ""; echo ""; echo "
"; } function table_head() { ?>
"; if(!empty($_SESSION['third_co_selected'])) { echo ""; } third_co_list(); echo "
Reference/claim no: "; echo ""; echo " (optional unless there is more than one case/claim number for the selected third party)"; } //////////////////END ASK IF REQUEST PAYOR ////////////FUNCTION RETRIEVE FREE APPTS function retrieve_free_appointments($service_provider, $begin, $end) { global $dbhost, $PHP_SELF, $apptdb, $todaytime; $nbk=$_GET['nbk']; $ncl=$_GET['ncl']; $nbk_hr= $nbk * 3600; $ncl_hr= $ncl * 3600; $nbk_tm=($todaytime + $nbk_hr); $nbkstr=strftime('%Y%m%d%H%M%S', $nbk_tm); $ncl_tm=($todaytime + $ncl_hr); $nclstr=strftime('%Y%m%d%H%M%S', $ncl_tm); $colorsettings = array( 0 => "#99CCBB", "#BBAAC0", "#66BBBB"); $color_no = "0"; //echo "the color now is " . "$colorsettings[$color_no]
"; $link_id = db_connect(); if(!link_id) die(sql_error()); $tempuserCL=$_SESSION['userCLid']; $getcityholder=$_GET['cityholder']; $query="SELECT appt_id, date_format(day, '%a %b %e %Y'), day, time, Assmt, Agent_id, client_id, location, bill_to, lastaccess FROM $apptdb WHERE (Agent_id='$service_provider' AND ($begin <= day AND day <= $end)) AND (client_id IS NULL OR (client_id='$tempuserCL'"; if(!empty($_SESSION['user3id1'])) { if($_SESSION['user3id']=='BC Psych Assoc'){$third_id="CLIENT";} else {$third_id=$_SESSION['user3id1'];} $getcoQ="SELECT third_co from thirdparty WHERE third_id='$third_id'"; $getcoR=mysql_query($getcoQ); $getcoA=mysql_fetch_array($getcoR); $gotco=$getcoA['third_co']; $_SESSION['gotco']=$gotco; $query .= " AND (bill_to='$gotco' OR bill_to IS NULL))) "; } else { $query .= ")) ";} if(!empty($getcityholder)) { $query .= "AND location='$getcityholder' "; } $query .= "ORDER BY day, time"; $result=mysql_query($query); if(!$result) error_message(sql_error()); echo "
"; if(!$_SESSION['user3id1']) { ask_if_request_payor(); } while($query_data=mysql_fetch_array($result)) { $pm="0"; $appt_id=$query_data["appt_id"]; $prev_day=$day; $day=$query_data["date_format(day, '%a %b %e %Y')"]; $day_raw=$query_data['day']; $day_cln=str_replace('-','',$day_raw); if($day!=$prev_day) { $newday=1; if ($color_no==2) $color_no=0; else $color_no = $color_no + 1; //echo "the color now is " . "$colorsettings[$color_no]
"; $colorsettingnow = $colorsettings[$color_no]; } else { $newday=0; } //list($datex1, $datex2, $datex3)=explode("-", $day); list($timex1, $timex2, $timex3)=explode(":" , $query_data["time"]); $daytime_cln=$day_cln . $timex1 . $timex2 . $timex3; if($nbkstr > $daytime_cln){$nobook=1;} else {$nobook=0;} if($nclstr > $daytime_cln){$nocanc=1;} else {$nocanc=0;} $Assmt=$query_data["Assmt"]; $Agent_id=$query_data["Agent_id"]; $client_id=$query_data["client_id"]; $location=$query_data["location"]; $bill_to=$query_data["bill_to"]; $lastaccess=$query_data["lastaccess"]; if(($client_id=='') && ($nobook==1)) { $firstnbk=1; } else { echo "
\n"; echo ""; if ($timex1 > 11) { $pm = "1"; if ($timex1 > 12) { $timex1 = $timex1 - 12; } } echo ""; echo ""; //echo ""; echo ""; echo "\n";///line 112 } } echo ""; echo "
day time book/cancel weekly
appts
client
"; if($newday) { echo "$day";/////line 91 } else if($firstnbk==1) { echo "$day"; $firstnbk=0;} else {} echo "$timex1"; echo ":"; echo "$timex2" . " "; if($pm == "1") {echo "PM";} else {echo "AM";} $apptType=service_list2($Assmt); echo " " . $apptType; echo ""; if(!empty($client_id) && ($nocanc==0)) { echo "book cancel"; } else if($client_id=='') { echo "book cancel"; } else {echo "cannot change";} echo ""; $assmt_ary=array($Assmt); $is_nonrepeating_ary=array_intersect($non_repeating_ary, $assmt_ary); $is_nonrepeating=count($is_nonrepeating_ary); if(!$is_nonrepeating) { echo " 8"; echo " 12"; echo " 15"; } else { echo "N/A"; } echo "$Agent_id$client_id
"; if($_GET['beginmark'] > 0) { $beginmark_min1=($_GET['beginmark'] - 1); echo ""; } //echo ""; $beginmarkplus=($_GET['beginmark'] + 1); echo ""; echo "
"; echo "
"; echo "
"; } ///END function retrieve_free_appointments() ////////function to get email addresses for third party or client or pro function get_userid_email($email, $case_id, $the_id, $the_db_name) { $func_query = "SELECT " . $email . " from " . $the_db_name . " where " . $case_id . " = '$the_id'"; $result_get_query=mysql_query($func_query); $result_get=mysql_result($result_get_query, 0, 0); if(empty($result_get)) echo "failed to get user email"; return $result_get; } ////END function get_userid_email //////////////////FUNCTION TO GET APPT DATE AND TIME FROM APPT_ID function get_datime_fr_appt_id($appt_id) { global $apptdb; $datime_result=mysql_query("SELECT day, time from $apptdb where appt_id='$appt_id'"); $datime1=mysql_result($datime_result, 0, 0); $datime2=mysql_result($datime_result, 0, 1); $translation= array(":00:00" => ":00", ":30:00" => ":30", ":15:00" => ":15", ":45:00" => ":45", ":05:00" => ":05", ":10:00" => ":10", ":20:00" => ":20", ":25:00" => ":25", ":35:00" => ":35", ":40:00" => ":40", ":50:00" => ":50", ":55:00" => ":55"); $datime3=strtr($datime2,$translation); $datime=$datime1 . " " . $datime3; return $datime; }//////////////////END FUNC TO GET APPT DATE AND TIME FROM APPT_ID //////////////////FUNCTION TO EMAIL EVERYBODY function email_everybody($to_hold_email, $to_hold_client_email, $to_hold_booked, $to_hold_canceled, $reply_to) { //global $email_addresses, $booked, $canceled; $s_email_addresses = implode(",", $to_hold_email); $s_booked = implode(", ", $to_hold_booked); $s_canceled = implode(", ", $to_hold_canceled); $s_email_message_body = "This is a message from zappointments.com.\n"; if($s_booked){$s_email_message_body .= "The following appts have been booked: "; $s_email_message_body .= $s_booked; $s_email_message_body .= ".\n";} if($s_canceled){$s_email_message_body .= "The following appts have been canceled: " . $s_canceled . ".\n";} $s_email_message_body .= "You may wish to check the www.zappointments.com website "; $s_email_message_body .= "for your updated schedule.\n"; $s_email_subject="Changed appts"; //echo "EMAIL ADDRESSES: " . $s_email_addresses; //echo $s_email_message_body; mail($s_email_addresses, $s_email_subject, $s_email_message_body, $reply_to); mail($to_hold_client_email, $s_email_subject, $s_email_message_body, $reply_to); } //////////END FUNCTION TO EMAIL EVERYBODY //////////FUNCTION TO GET BOOKED ARRAY INTO DATABASE function into_database($app_id, $arykey) { global $todaytime2, $authdb; $into_query="INSERT INTO $authdb VALUES(NULL, '$todaytime2', '$app_id', 0)"; $into_var=mysql_query($into_query); if(!$into_var) error_message("Failed to put appt into auth database"); } //////////END FUNCTION TO GET BOOKED ARRAY INTO DATABASE //////////body//////BODY////BODY/////BODY session_start(); //session_register("user3id1"); //session_register("userCLid"); //session_register("navProid"); echo ""; echo""; global $Check_appts, $registerCL_script; //echo "navProid is " . $_GET['navProid']; $getprovholder=$_GET['provholder']; if(empty($getprovholder)) {error_message("No province selected");} else if($_GET['provholder']=="BC"){$apptdb="appointments";$servProdb="service_providers"; $authdb="auth_by_3rd";} else if($_GET['provholder']=="AB"){$apptdb="appointments_ab";$servProdb="service_providers_ab"; $authdb="auth_by_3rd_ab";} else if($_GET['provholder']=="SK"){$apptdb="appointments_sk";$servProdb="service_providers_sk"; $authdb="auth_by_3rd_sk";} else if($_GET['provholder']=="MB"){$apptdb="appointments_mb";$servProdb="service_providers_mb"; $authdb="auth_by_3rd_mb";} else if($_GET['provholder']=="ON"){$apptdb="appointments_on";$servProdb="service_providers_on"; $authdb="auth_by_3rd_on";} else if($_GET['provholder']=="QC"){$apptdb="appointments_qc";$servProdb="service_providers_qc"; $authdb="auth_by_3rd_qc";} else if($_GET['provholder']=="NS"){$apptdb="appointments_ns";$servProdb="service_providers_ns"; $authdb="auth_by_3rd_ns";} else if($_GET['provholder']=="NB"){$apptdb="appointments_nb";$servProdb="service_providers_nb"; $authdb="auth_by_3rd_nb";} else if($_GET['provholder']=="PE"){$apptdb="appointments_pe";$servProdb="service_providers_pe"; $authdb="auth_by_3rd_pe";} else if($_GET['provholder']=="NL"){$apptdb="appointments_nl";$servProdb="service_providers_nl"; $authdb="auth_by_3rd_nl";} else if($_GET['provholder']=="YK"){$apptdb="appointments_yk";$servProdb="service_providers_yk"; $authdb="auth_by_3rd_yk";} else if($_GET['provholder']=="NW"){$apptdb="appointments_nw";$servProdb="service_providers_nw"; $authdb="auth_by_3rd_nw";} else if($_GET['provholder']=="NV"){$apptdb="appointments_nv";$servProdb="service_providers_nv"; $authdb="auth_by_3rd_nv";} if($_SESSION['userCLprov']=="BC"){$clients_db="clients";$permdb="cl_perm";} else if($_SESSION['userCLprov']=="AB"){$clients_db="clients_ab";$permdb="cl_perm_ab";} else if($_SESSION['userCLprov']=="SK"){$clients_db="clients_sk";$permdb="cl_perm_sk";} else if($_SESSION['userCLprov']=="MB"){$clients_db="clients_mb";$permdb="cl_perm_mb";} else if($_SESSION['userCLprov']=="ON"){$clients_db="clients_on";$permdb="cl_perm_on";} else if($_SESSION['userCLprov']=="QC"){$clients_db="clients_qc";$permdb="cl_perm_qc";} else if($_SESSION['userCLprov']=="NB"){$clients_db="clients_nb";$permdb="cl_perm_nb";} else if($_SESSION['userCLprov']=="NS"){$clients_db="clients_ns";$permdb="cl_perm_ns";} else if($_SESSION['userCLprov']=="PE"){$clients_db="clients_pe";$permdb="cl_perm_pe";} else if($_SESSION['userCLprov']=="NL"){$clients_db="clients_nl";$permdb="cl_perm_nl";} else if($_SESSION['userCLprov']=="YK"){$clients_db="clients_yk";$permdb="cl_perm_yk";} else if($_SESSION['userCLprov']=="NW"){$clients_db="clients_nw";$permdb="cl_perm_nw";} else if($_SESSION['userCLprov']=="NV"){$clients_db="clients_nv";$permdb="cl_perm_nv";} if($_POST) { $link_id = db_connect(); if(!$link_id) die(sql_error()); if(empty($_SESSION['userCLid'])) {error_message("No client logged in!");} /////$to_hold_booked_appts=array(); /////global set up array to_hold_canceled_appts; /////global set up array to_hold_email_addresses; if(empty($_SESSION['user3id1'])) { if($_POST['CLthird_co'] != "SELF") { $CLid=$_SESSION['userCLid']; $TDquery="SELECT CL_iv, CLthird_co1, CLclaim_no1, third_party_email1, CLthird_co2, CLclaim_no2, third_party_email2, CLthird_co3, CLclaim_no3, third_party_email3, CLthird_co4, CLclaim_no4, third_party_email4, CLthird_co5, CLclaim_no5, third_party_email5 from $clients_db where CL_id='$CLid'"; $TDresult=mysql_query($TDquery); $TDresult_array=mysql_fetch_array($TDresult); $TDCL_iv=$TDresult_array['CL_iv']; $TDCL_iv=base64_decode($TDCL_iv); $TDCLthird_co1=$TDresult_array['CLthird_co1']; $TDCLthird_co2=$TDresult_array['CLthird_co2']; $TDCLthird_co3=$TDresult_array['CLthird_co3']; $TDCLthird_co4=$TDresult_array['CLthird_co4']; $TDCLthird_co5=$TDresult_array['CLthird_co5']; $TDCLclaim_no1=$TDresult_array['CLclaim_no1']; $TDCLclaim_no2=$TDresult_array['CLclaim_no2']; $TDCLclaim_no3=$TDresult_array['CLclaim_no3']; $TDCLclaim_no4=$TDresult_array['CLclaim_no4']; $TDCLclaim_no5=$TDresult_array['CLclaim_no5']; $TDCLclaim_no1=rtrim($TDCLclaim_no1, "\0"); $TDCLclaim_no2=rtrim($TDCLclaim_no2, "\0"); $TDCLclaim_no3=rtrim($TDCLclaim_no3, "\0"); $TDCLclaim_no4=rtrim($TDCLclaim_no4, "\0"); $TDCLclaim_no5=rtrim($TDCLclaim_no5, "\0"); $TDthird_party_email1=$TDresult_array['third_party_email1']; $TDthird_party_email2=$TDresult_array['third_party_email2']; $TDthird_party_email3=$TDresult_array['third_party_email3']; $TDthird_party_email4=$TDresult_array['third_party_email4']; $TDthird_party_email5=$TDresult_array['third_party_email5']; $mcrypt_module = mcrypt_module_open('rijndael-256', '', 'cbc', ''); if(!empty($TDCLclaim_no1)) { mcrypt_generic_init($mcrypt_module, $mcrypt_key, $TDCL_iv); $mCLclaim_no1=mdecrypt_generic($mcrypt_module, base64_decode($TDCLclaim_no1)); $mCLclaim_no1=trim($mCLclaim_no1); } if(!empty($TDCLclaim_no2)) { mcrypt_generic_init($mcrypt_module, $mcrypt_key, $TDCL_iv); $mCLclaim_no2=mdecrypt_generic($mcrypt_module, base64_decode($TDCLclaim_no2)); $mCLclaim_no2=trim($mCLclaim_no2); } if(!empty($TDCLclaim_no3)) { mcrypt_generic_init($mcrypt_module, $mcrypt_key, $TDCL_iv); $mCLclaim_no3=mdecrypt_generic($mcrypt_module, base64_decode($TDCLclaim_no3)); $mCLclaim_no3=trim($mCLclaim_no3); } if(!empty($TDCLclaim_no4)) { mcrypt_generic_init($mcrypt_module, $mcrypt_key, $TDCL_iv); $mCLclaim_no4=mdecrypt_generic($mcrypt_module, base64_decode($TDCLclaim_no4)); $mCLclaim_no4=trim($mCLclaim_no4); } if(!empty($TDCLclaim_no5)) { mcrypt_generic_init($mcrypt_module, $mcrypt_key, $TDCL_iv); $mCLclaim_no5=mdecrypt_generic($mcrypt_module, base64_decode($TDCLclaim_no5)); $mCLclaim_no5=trim($mCLclaim_no5); } mcrypt_generic_deinit($mcrypt_module); $no_co=0; if($_POST['CLthird_co'] == $TDCLthird_co1) {$no_co++;$to_hold_3_email=$TDthird_party_email1;$to_hold_claim=$mCLclaim_no1;} if($_POST['CLthird_co'] == $TDCLthird_co2) {$no_co++;$to_hold_3_email=$TDthird_party_email2;$to_hold_claim=$mCLclaim_no2;} if($_POST['CLthird_co'] == $TDCLthird_co3) {$no_co++;$to_hold_3_email=$TDthird_party_email3;$to_hold_claim=$mCLclaim_no3;} if($_POST['CLthird_co'] == $TDCLthird_co4) {$no_co++;$to_hold_3_email=$TDthird_party_email4;$to_hold_claim=$mCLclaim_no4;} if($_POST['CLthird_co'] == $TDCLthird_co5) { $no_co++; $to_hold_3_email=$TDthird_party_email5; $to_hold_claim=$mCLclaim_no5; } if($no_co < 1){error_message("That third party is not part of this client's profile");} else if($no_co == 1){$_SESSION['third_co_selected']=$_POST['CLthird_co'];} if($no_co > 1){ if($_POST['CLclaim_no'] == $mCLclaim_no1) {$to_hold_3_email=$TDthird_party_email1;$to_hold_claim=$mCLclaim_no1;$_SESSION['third_co_selected']=$_POST['CLthird_co'];} else if($_POST['CLclaim_no'] == $mCLclaim_no2) {$to_hold_3_email=$TDthird_party_email2;$to_hold_claim=$mCLclaim_no2;$_SESSION['third_co_selected']=$_POST['CLthird_co'];} else if($_POST['CLclaim_no'] == $mCLclaim_no3) {$to_hold_3_email=$TDthird_party_email3;$to_hold_claim=$mCLclaim_no3;$_SESSION['third_co_selected']=$_POST['CLthird_co'];} else if($_POST['CLclaim_no'] == $mCLclaim_no4) {$to_hold_3_email=$TDthird_party_email4;$to_hold_claim=$mCLclaim_no4;$_SESSION['third_co_selected']=$_POST['CLthird_co'];} else if($_POST['CLclaim_no'] == $mCLclaim_no5) {$to_hold_3_email=$TDthird_party_email5;$to_hold_claim=$mCLclaim_no5;$_SESSION['third_co_selected']=$_POST['CLthird_co'];} else {error_message("You must enter the correct claim or case number for this client");} } } else {$_SESSION['third_co_selected']=$_POST['CLthird_co'];} } else {$user3id2=$_SESSION['user3id1']; $email="email"; $case_id="third_id"; $dbnom="thirdparty"; $to_hold_email_addresses[] = get_userid_email($email, $case_id, $user3id2, $dbnom); } $dbnom=$clients_db; $email="CLemail"; $case_id="CL_id"; $to_hold_client_email = get_userid_email($email, $case_id, $_SESSION['userCLid'], $dbnom); $dbnom=$servProdb;////service provider will be set by GET HTTP or login $email="Proemail"; $case_id="Pro_id"; $to_hold_email_addresses[] = get_userid_email($email, $case_id, $_GET['navProid'], $dbnom); $to_hold_email_addresses[] = "admin@zappointments.com"; while (list($lvar, $lvalue) = each($_POST)) { ///first check if access time is same $userCLprov=$_SESSION['userCLprov']; if ($lvalue=="book") {if(isset($user3id2))/////////// CHECK THIS PART!!!!!!! { $tempuserCL=$_SESSION['userCLid']; if(empty($_SESSION['gotco'])) { $getcoQ="SELECT third_co from thirdparty WHERE third_id='$user3id2'"; $getcoR=mysql_query($getcoQ); $getcoA=mysql_fetch_array($getcoR); $gotco=$getcoA['third_co']; $_SESSION['gotco']=$gotco; } else {$gotco=$_SESSION['gotco'];} $bookquery="UPDATE $apptdb SET client_id='$tempuserCL', bill_to='$gotco', CLprov='$userCLprov' WHERE appt_id='$lvar' and client_id IS NULL"; } else if(isset($_POST['CLthird_co']) && ($_POST['CLthird_co'] != "SELF")) {//echo "CLthird_co is set and not equal self"; $tempuserCL=$_SESSION['userCLid']; $tempCLthird_co=$_POST['CLthird_co']; $bookquery="UPDATE $apptdb SET client_id='$tempuserCL', bill_to='$tempCLthird_co', CLprov='$userCLprov' WHERE appt_id='$lvar' and client_id IS NULL"; } else { $tempuserCL=$_SESSION['userCLid']; $bookquery="UPDATE $apptdb SET client_id='$tempuserCL', bill_to='SELF', CLprov='$userCLprov' WHERE appt_id='$lvar' and client_id IS NULL"; } $bookresult=mysql_query($bookquery); $numrowsresult=mysql_affected_rows($link_id); if(!$numrowsresult) {error_message("Appt already booked. Reload the page."); //echo ""; } else {add_perm($link_id, $permdb);} $to_hold_booked_appts[]=get_datime_fr_appt_id($lvar); $to_hold_booked_auth[]=$lvar; } else if ($lvalue=="cancel") { $cancelquery="UPDATE $apptdb SET client_id=NULL, bill_to=NULL, CLprov=NULL, auth_by_3rd=0 WHERE appt_id='$lvar'"; $cancelresult=mysql_query($cancelquery); if(!$cancelresult) error_message(sql_error()); $to_hold_canceled_appts[]=get_datime_fr_appt_id($lvar); if(isset($user3id2))/////////// CHECK THIS PART!!!!!!! { $tempCLthird_co=$user3id2; } else if(isset($_POST['CLthird_co']) && ($_POST['CLthird_co'] != "SELF")) { $tempCLthird_co=$_POST['CLthird_co']; } else {$tempCLthird_co='none';}//$tempCLthird_co is needed for function whatTypeCo } else { } } $reply_to_fields="From: admin@zappointments.com";///\nReply-to: admin@zappointments.com"; email_everybody($to_hold_email_addresses, $to_hold_client_email, $to_hold_booked_appts, $to_hold_canceled_appts, $reply_to_fields); ///////////////SEND SECURE EMAIL TO AUTH 3RD PRTY if((isset($_POST['CLthird_co'])) and ($_POST['CLthird_co'] != "SELF")) { //echo "third co is set and is not self"; $secure_mail_subject = "Authorization requested"; $secure_mail_body = "--01fedcb871d3f012e43680250ba5ca3f\n"; $secure_mail_body .= "Content-type:text/html; charset=\"iso-8859-1\"\n"; $secure_mail_body .= "Content-transfer-encoding:7bit\n\n"; $secure_mail_body .= "\n"; $secure_mail_body .= "\n"; $secure_mail_body .= "
"; $secure_mail_body .= "
"; $secure_mail_body .= "An appointment or appointments have been booked for claim or reference no. "; if(!empty($to_hold_claim)){ $secure_mail_body .= $to_hold_claim; } else if(!empty($_POST['CLclaim_no'])) {$secure_mail_body .= $_POST['CLclaim_no'];} else {$secure_mail_body .= "not entered";} $secure_mail_body .= "
"; $secure_mail_body .= "Payment is being requested for these services. Click on the link below to view and authorize sessions requested:
"; $secure_mail_body .= "
"; $secure_mail_body .= "Respond to authorization request by clicking here."; $secure_mail_body .= "
"; $secure_mail_body .= ""; $secure_mail_body .= "\n\n--01fedcb871d3f012e43680250ba5ca3f--\n"; $secure_mail_header = "From: admin@zappointments.com\n"; $secure_mail_header .= "Reply-to: admin@zappointments.com\n"; $secure_mail_header .= "MIME-Version: 1.0\n"; $secure_mail_header .= "Content-type: multipart/mixed"; $secure_mail_header .= ";"; $secure_mail_header .= " "; $secure_mail_header .= "boundary=\"01fedcb871d3f012e43680250ba5ca3f\"\n"; $secure_mail_header .= "Content-type:text/html; charset=\"iso-8859-1\"\n"; $secure_mail_header .= "Content-transfer-encoding:7bit\n\n"; //$secure_mail_header .= "\n\n"; $secure_mail_header .= "This is a multi-part message in MIME format.\n\n"; //$secure_mail_header .= "--01fedcb871d3f012e43680250ba5ca3f\n"; array_walk($to_hold_booked_auth, 'into_database'); reset($to_hold_booked_appts); //echo $secure_mail_body; mail($to_hold_3_email, $secure_mail_subject, $secure_mail_body, $secure_mail_header); } ///get no of booked or canceled appts $noBooked=count($to_hold_booked_appts); $noCanceled=count($to_hold_canceled_appts); $typeBooked=whatTypeCo($tempCLthird_co);///function to get type of co if($noBooked > 0){up_ratings($_GET['navProid'], $noBooked, $typeBooked);} if($noCanceled > 0){down_ratings($_GET['navProid'], $noCanceled, $typeBooked);} //autoreload(); } if(empty($_GET['beginmark'])) {$_GET['beginmark']=0;}/////make sure this works! $beginmark1=$_GET['beginmark'] + 1; $beginmark_min1=$_GET['beginmark'] - 1; echo ""; show_gif(); echo "

Appointment booking method Patent Pending

"; echo "

Go back to geographic list"; if(!empty($_SESSION['user3id1'])) { echo "
Register a new client "; echo "here"; } else if(empty($_SESSION['userCLid'])) { echo "
Register yourself "; echo "here"; } echo "

"; echo "

"; $Fullname=get_Proname($_GET['navProid']); echo $Fullname; echo "

"; if($_GET['beginmark'] > 0) { echo "To check the previous three weeks, click here . "; } echo "To check the next three weeks, click here . "; $begintime=$todaytime + (1814400 * $_GET['beginmark']); $beginplus3w=$begintime + 1814400; $endtime1=date("Ymd", $beginplus3w); //1209600 is two weeks $begintime1=date("Ymd",$begintime); $begindate = date("d M Y",$begintime); $enddate = date("d M Y",$beginplus3w); echo "
Showing period beginning " . $begindate; echo " and ending " . $enddate; echo "
If you wish to use the secure chatroom, click " . ""; table_head(); retrieve_free_appointments($_GET['navProid'], $begintime1, $endtime1); echo "

If you don't see the appointments you have just booked, click here.

"; echo "

Appointment booking method Patent Pending

"; echo "

Terms of Use
Current Rates
"; ?>