$bodyStre .= "<br /><b>Early Registration Discount :</b> -\$" . $Early_discount_rate;
        }
        if (isset($fldTranscript) && $fldTranscript != '') {
            $bodyStre .= "<br /><b>Upload Transcipt Discount :</b> -\$" . $Transcript_discount;
        }
        if (isset($fldCouponNumber) && $fldCouponNumber != '') {
            $bodyStre .= "<br /><b>Coupon Discount :</b>" . "\$" . $coupondiscount;
        }
        $bodyStre .= "<br /><b>Event Total Price :</b> " . "\$" . $fldprice;
        $bodyStre .= "<br /><b>Payment Status:</b> " . $_SESSION['PAYSTATUS'];
        $adminmail = ADMIN_EMAIL . "," . EMAIL_FROM;
        //$func -> sendEmail($adminmail, $subjectStre, $bodyStre, $fldEmail);
        SendHTMLMail1($adminmail, $subjectStre, $bodyStre, $fldEmail);
        $athletsubject = "College Prospect Network - Event Registration is Successfull";
        //$func -> sendEmail($fldEmail,$athletsubject, $bodyStre, $adminmail);
        SendHTMLMail1($fldEmail, $athletsubject, $bodyStre, ADMIN_EMAIL);
        //echo $bodyStre;exit;
        //$msg = "Thank you for your registration";
        ##INSERT EVent###
        $debugstep = 2;
        $strDataArr = array('fldpaymentstatus' => $_SESSION['PAYSTATUS']);
        //$strDataArr = array('fldpaymentstatus' => 'PAID');
        if (isset($_REQUEST['fld_id']) && $_REQUEST['fld_id'] != '') {
            $where_reg_update = "fldId  = " . $_REQUEST['fld_id'];
            $result = $db->updateRec(TBL_SPECIAL_EVENT_REGISTER, $strDataArr, $where_reg_update);
        }
        $error_msg = "Registration Successfully";
        $debugstep = 3;
    }
}
?>
        //HS/AAU Name
        $bodyStre .= "<br /><b>HS/AAU:</b> " . $HighSchoolName;
        $bodyStre .= "<br />" . $func->input_fun($_POST['fldAddress']);
        $bodyStre .= "<br />" . $func->input_fun($_POST['fldCity']) . ", " . $func->input_fun($_POST['fldState']) . " " . $func->input_fun($_POST['fldZipcode']);
        //Get Sport Name
        $sportquery = "SELECT fldSportsname  from " . TBL_SPORTS . "  WHERE fldId='{$sport_empty}'";
        $db1->query($sportquery);
        $db1->next_record();
        $sports_name = $func->output_fun($db1->f('fldSportsname'));
        $bodyStre .= "<br /><br /><b>Sport:</b> " . $sports_name;
        $bodyStre .= "<br /><b>Jersey Number:</b> " . $func->input_fun($_POST['fldJerseyNumber']);
        $bodyStre .= "<br /><b>Graduating Class:</b> " . $func->input_fun($_POST['fldClass']);
        $bodyStre .= "<br /><b>Intended Major:</b> " . $func->input_fun($_POST['fldIntendedMajor']);
        $bodyStre .= "<br /><br />" . $_SERVER['HTTP_USER_AGENT'];
        $adminmail = ADMIN_EMAIL . "," . EMAIL_FROM;
        $mail = SendHTMLMail1($adminmail, $subjectStre, $bodyStre, $fldEmail);
        //$func -> sendEmail(ADMIN_EMAIL, $subjectStre, $bodyStre, $fldEmail);
        #################END Notifcation Email#################
        header("Location:Registration-Athlete.php?msg={$msg}");
    }
}
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>College Prospect Network</title>
		<link href="css/style.css" rel="stylesheet" type="text/css" />
		<script language="Javascript" src="javascript/functions.js"></script>
		<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script> 
Example #3
0
    $db->next_record();
    //print_r();
}
if (isset($_POST['isSubmit']) and $_POST['isSubmit'] == 'save') {
    $Comments = str_replace("\n", "<br>", $_POST['fldComments']);
    $msg = '<b>Contact Form Details:</b><br /><br />
        <b>Name:</b> ' . $_POST['fldName'] . '<br /><br />
        <b>Email:</b> ' . $_POST['fldEmail'] . '<br /><br />
        <b>Comments:</b><br />' . $Comments . '<br />
        
           </div>';
    //$toStre1 = "*****@*****.**";
    $subjectStre = "[CPN] - Contact Inquiry ";
    $bodyStre = $msg;
    $admin_mail = "*****@*****.**";
    SendHTMLMail1($admin_mail, $subjectStre, $bodyStre, $_POST['fldEmail']);
    //if (isset($t)) {
    //Thanks for sending mail
    header("location:page.php?page_name=contactus&msg=Your email has been sent to the appropriate team to best address your needs, and you should receive a response shortly.");
    //}
}
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title><?php 
if ($flag == 1) {
    echo $db->f('fldPageMetaTitle');
}
        @header("Location: CoachAthCeiling.php?msg={$msg}&userID={$Id}&mail={$athEmail}");
    }
}
if ($_REQUEST['mode'] == "reject") {
    $Id = $_REQUEST['fldId'];
    $active_query_details = "update " . TBL_ATHELETE_REGISTER . " set fldStatus = 'REJECT' where fldId='" . $Id . "'";
    $activemsg = $db->query($active_query_details);
    if (isset($activemsg)) {
        $athEmail = $_REQUEST['fldEmail'];
        $fullname = $_REQUEST['fullname'];
        $subjectStrek = "College Prospect Network - Approval Notification";
        $bodyStrek = "Hi" . ucfirst($fullname) . "<br /><br />";
        $bodyStrek .= "At this time we are unable to approve your application to join College Prospect Network. Unfortunately, \r\r\n\t\t\twe cannot provide one-on-one feedback about why you were denied but we invite you to apply again next year if you are still of high school age.<br /><br />";
        $bodyStrek .= "Thank you for your application and good luck with your season,<br />";
        $bodyStrek .= "College Prospect Network";
        $mail = SendHTMLMail1($athEmail, $subjectStrek, $bodyStrek, $email);
        //$func -> sendEmail($athEmail, $subjectStrek, $bodyStrek, $email);
        $msg = 2;
        header("Location: CoachAthapprove.php?msg={$msg}");
    }
}
if ($_REQUEST['mode'] == "deactive") {
    $Id = $_REQUEST['fldId'];
    $active_query_details = "update " . TBL_ATHELETE_REGISTER . " set fldStatus = 'DEACTIVE' where fldId='" . $Id . "'";
    $activemsg = $db->query($active_query_details);
    if (isset($activemsg)) {
        $_REQUEST['msg'] = "Athlete have been set succesfully to De-Active.";
    }
}
?>