1){echo "There is more than one claim number for this client and third party. Please select which claim number to use. "; $_SESSION['selected_claims']=$selected_claims; return 1; } if($count_selected==0) { if($_SESSION['CLthird_co_pro'] != "SELF") { error_message("There is no case or claim number associated with this client and that third party!");} else {$_SESSION['selected_claims']=array("");return 1;} } } }///end else }/////END FUNC GET CLAIM ///////////////////FUNCTION INPUT_CLIENT_USERNAME function input_client_username() { global $servpro_id, $start_appt, $number_appts, $claim_add, $update_CL, $PHP_SELF; echo "
"; }////////////////END FUNCTION //////////////////FUNCTION REGISTER_CLIENT_USERNAME function register_client_username($name_in_box, $clients_db, $userCLprov) { $link_id = db_connect('appointments_db'); if(!$link_id) die(sql_error()); $queryCLname = "SELECT CL_id, CLemail FROM $clients_db WHERE CL_id = '$name_in_box'"; $resultCLname = mysql_query($queryCLname); $marknoname = mysql_num_rows($resultCLname); if(!$resultCLname) error_message(sql_error()); if(!$marknoname) error_message("No such username, check the client username and province"); else { $query_dataCLname = mysql_fetch_array($resultCLname); $_SESSION['userCLid']=$query_dataCLname["CL_id"]; $_SESSION['userCLprov']=$userCLprov; } } ///////////////END FUNCTION /////////////////FUNCTION GET_MULT function get_mult($servpro_id, $number_appts, $start_appt) { global $apptdb; $link_id = db_connect('appointments_db'); if(!$link_id) die(sql_error()); $tempuserCL = $_SESSION['userCLid']; $querymult = "SELECT appt_id, date_format(day, '%a %b %e %Y'), time, Assmt, Agent_id, client_id, bill_to, auth_by_3rd, location FROM $apptdb WHERE (Agent_id='$servpro_id' AND appt_id='$start_appt')"; $resultmult = mysql_query($querymult); if(!$resultmult) error_message(sql_error()); echo "