<? include("../settings.php"); ?>
<!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>SINCE 2019 Registration</title>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- Bootstrap -->
    <link href="css/bootstrap.css" rel="stylesheet">
      <link href="css/bootstrap-theme.css" rel="stylesheet">

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
      
        <noscript>
            <p>This site is best viewed with Javascript.</p>
        </noscript>
      <script>
          
        function chkFrm(){
            if ($('#registrant_country').val()=="0"){
            	alert("Please select a country");
            	return false;
            }else if ($('input[name=general_registration]:checked').val()=='Full' && $('#registrant_dinner').val()=="2"){
            	alert("Please indicate your dinner attendance");
            	return false;
            }else if ($('#registrant_reception').val()=="2"){
            	alert("Please indicate your reception attendance");
            	return false;
            }else if ($('#registrant_accompany').val()=="Yes" && ($('#registrant_accompanying_reception').val()=="2" || $('#registrant_accompanying_dinner').val()=="2")){
            	alert("Please indicate your accompanying person attendance for reception and dinner");
            	return false;
            }else if (!$('#agree').is(':checked')){
                  alert("Please agree to the Terms and Conditions.");
                  return false;
            }else
                  return true;
        }
          
        function submissiontype(){
        	if ($("input[name=registration_type]:checked").val()=="general")
        		window.location="since_general.php";
        	else if ($("input[name=registration_type]:checked").val()=="ndtss")
        		window.location="ndtss.php";
			else
            	window.location="authors.php";
        }
        
        function calculateextra(){
        	$('#total_extra_dinner').val($('#registrant_extra_dinner').val()*200);
        	$('#total_extras').val($('#registrant_extra_dinner').val()*200+$('#total_accompany').val()*1);
        	calculatetotal();
        }
        
        function registrationchange(){
			$("student_pass").prop('required',false);
			$('#studentdiv').hide();
        	$('#dinnerchoice').hide();
			$('#studentupload').hide();
        	if ($("input[name=general_registration]:checked").val()=="Full"){
        		$('#registration_cost').val(500);
        		$('#dinnerchoice').show();
        	}else{
				$('#studentdiv').show();
				$("student_pass").prop('required',true);
        		$('#registration_cost').val(250);
				$('#studentupload').show();
			}
        	calculatetotal();
        }
        
        function calculatetotal(){
        	$('#total_registration').val(Number($('#registration_cost').val())+Number($('#total_extras').val()));
        }
		
		function chkaccompany(){
			if ($('#registrant_accompany').val()=="Yes"){
				$('#total_accompany').val(400*1);
				$('#accompanying_div').show();
				$("registrant_accompanying_lastname").prop('required',true);
				$("registrant_accompanying_firstname").prop('required',true);
			}else{
				$('#total_accompany').val(0);
				$('#accompanying_div').hide();
				$("registrant_accompanying_lastname").prop('required',false);
				$("registrant_accompanying_firstname").prop('required',false);
			}
			calculateextra();
		}
      </script>
  </head>
  <body>
<div class="well">
<div class="content" bgcolor="#FFFFD0">
  <div class="col-12 feature">
      <form class="form-horizontal" method="post" action="processing.php" enctype="multipart/form-data">
          <center>
              <img src="sincemasthead.jpg" width="800"></img>
          </center>
          <br/>
          <div class="panel panel-default" id="Abstract">
            <div class="panel-heading  text-center"><h4>Registration</h4></div>
            <div class="panel-body">      
                <div class="form-group">
                  <label for="submission_type" class="col-lg-4 control-label"> Registration Type</label>
                  <div class="col-lg-5">
                      <input type="radio" name="registration_type" value="general" checked onchange="submissiontype();"> General Registration 
					  <input type="radio" name="registration_type" value="ndtss" onchange="submissiontype();"> NDTSS/ISCM Members Registration
                      <input type="radio" name="registration_type" value="author" onchange="submissiontype();"> Presenting Authors 
                  </div>
                </div>
                <div class="form-group">
                  <label for="registrant_salutation" class="col-lg-4 control-label"> Salutation</label>
                  <div class="col-lg-3">
                      <select class="form-control" id="registrant_salutation" name="registrant_salutation">
						  <option value="0">Please Select</option>
                          <option value="Mr">Mr</option>
                          <option value="Prof">Prof</option>
                          <option value="Asst Prof">Asst Prof</option>
                          <option value="Dr">Dr</option>
                          <option value="Mrs">Mrs</option>
                          <option value="Ms">Ms</option>
                      </select>
                  </div>
                </div>
                <div class="form-group">
                    <label for="registrant_familyname" class="col-lg-4 control-label"> Family Name/Last Name</label>
                    <div class="col-lg-6">
                        <input type="text" name="registrant_familyname" id="registrant_familyname" placeholder="E.g. Smith" class="form-control" required>
                    </div>
                </div>
                <div class="form-group">
                    <label for="registrant_fullname" class="col-lg-4 control-label"> First Name</label>
                    <div class="col-lg-6">
                        <input type="text" name="registrant_firstname" id="registrant_firstname" placeholder="E.g. John" class="form-control" required>
                    </div>
                </div>
                <div class="form-group">
                    <label for="registrant_organisation" class="col-lg-4 control-label"> Organisation/Institute</label>
                    <div class="col-lg-6">
                        <input type="text" name="registrant_organisation" id="registrant_organisation" placeholder="E.g. Acme Pte Ltd" class="form-control" required>
                    </div>
                </div>
				<div class="form-group">
                    <label for="registrant_mailing" class="col-lg-4 control-label"> Mailing Address</label>
                    <div class="col-lg-6">
                        <input type="text" name="registrant_mailing" id="registrant_mailing" placeholder="E.g. 7 Acme Ave" class="form-control" required>
                    </div>
                </div>
                <div class="form-group">
                    <label for="registrant_city" class="col-lg-4 control-label"> City</label>
                    <div class="col-lg-6">
                        <input type="text" name="registrant_city" id="registrant_city" placeholder="E.g. Singapore" class="form-control" required>
                    </div>
                </div>
                <div class="form-group">
                    <label for="registrant_postal" class="col-lg-4 control-label"> Postal</label>
                    <div class="col-lg-6">
                        <input type="text" name="registrant_postal" id="registrant_postal" placeholder="E.g. 123456" class="form-control" required>
                    </div>
                </div>
                <div class="form-group">
                  <label for="registrant_country" class="col-lg-4 control-label">Country</label>
                  <div class="col-lg-3">
                      <select class="form-control" id="registrant_country" name="registrant_country">
                          <option value="0">Please Select</option>
                            <?
                                $options = $db->select("tbl_country");
                                foreach ($options as $option){
                                    echo "<option value='".$option['country_name']."'>".$option['country_name']."</option>";
                                }
                            ?>
                      </select>
                  </div>
                </div>
				<div class="form-group">
                    <label for="registrant_contact" class="col-lg-4 control-label"> Mobile Number</label>
					<div class="col-lg-1">
                        <input type="text" name="registrant_contactcc" id="registrant_contactcc" placeholder="E.g. +65" class="form-control" required>
                    </div>
                    <div class="col-lg-3">
                        <input type="text" name="registrant_contact" id="registrant_contact" placeholder="E.g. 91234567" class="form-control" required>
                    </div>
                </div>
                <div class="form-group">
                    <label for="registrant_email" class="col-lg-4 control-label"> Email</label>
                    <div class="col-lg-6">
                        <input type="text" name="registrant_email" id="registrant_email" placeholder="E.g. john@acme.com" class="form-control" required>
                    </div>
                </div>
                <div class="form-group">
                  <label for="registrant_diet" class="col-lg-4 control-label"> Diet<br/><font size='1' color='red'>(Daily refreshment is Halal certified)</font></label>
                  <div class="col-lg-3">
                      <select class="form-control" id="registrant_diet" name="registrant_diet">
                          <option value="None" selected>None</option>
                          <option value="Vegetarian">Vegetarian</option>
                      </select>
                  </div>
                </div>
                
            </div>
        </div>   
        <div class="panel panel-default">
            <div class="panel-heading  text-center"><h4>GENERAL REGISTRATION</h4><br><font size='2'>Registration (Inclusive of 7% GST)</font></div>
            <div class="panel-body">     
                <div class="form-group">
                     <label for="general_registration" class="col-lg-2 control-label">&nbsp;</label>
                    <div class="col-lg-8">
                        <table class="table table-hover">
                            <thead>
                              <tr>
                                <th>Type</th>
                                <th>Early Bird (Until 16 August 2019)</th>
                                <th>Normal (from 17 August 2019 to onsite)</th>
                              </tr>
                            </thead>
                            <tbody>  
                                <tr>
                                    <td>
                                        Full Registration
                                    </td>
                                    <td>
                                        <input type='radio' name="general_registration" value="Full" checked onchange="registrationchange();"> SGD 500
                                    </td>
                                    <td>
                                        SGD 600
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        Student<super>**</super>
                                    </td>
                                    <td>
                                        <input type='radio' name="general_registration" value="Student" onchange="registrationchange();"> SGD 250
                                    </td>
                                    <td>
                                        SGD 300
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
				<div class="form-group" id="studentdiv">
                  <label for="registrant_reception" class="col-lg-4 control-label"> Upload of Student Pass</label>
                  <div class="col-lg-3">
                      <input type="file" name="student_pass" id="student_pass" class="form-control">
                  </div>
                </div>
                <div class="form-group">
                    <label for="registrationinformation" class="col-lg-2 control-label">&nbsp;</label>
                    <div class="col-lg-8">
                        Registration Fee includes the following:<br/>
                        (a)  Admission to all session<br/>
                        (b)  Daily refreshments<br/>
                        (c)  Proceedings<br/>
                        (d)  Welcome Reception+<br/>
                        (e)  Conference Dinner (not applicable to Student Fee)<br/><br/>

                        + Welcome Reception will be based on first-come-first-serve basis<br/>
                        ** The student registration rates are applicable to full-time graduate and undergraduate students.
Student must upload a copy of student pass /identification.<br/>
                              Please note that WCCM2019 Committee reserve the rights to void the registration in the event that the student pass is not valid.<br/>

                    </div>
                </div>
                <div class="form-group">
                  <label for="registrant_reception" class="col-lg-4 control-label"> Welcome Reception</label>
                  <div class="col-lg-3">
                      <select class="form-control" id="registrant_reception" name="registrant_reception">
                          <option value="2">Please select</option>
                          <option value="1">Attending</option>
                          <option value="0">Not Attending</option>
                      </select>
                  </div>
                </div>
                <div class="form-group" id="dinnerchoice">
                  <label for="registrant_dinner" class="col-lg-4 control-label"> Conference Dinner</label>
                  <div class="col-lg-3">
                      <select class="form-control" id="registrant_dinner" name="registrant_dinner">
                          <option value="2">Please select</option>
                          <option value="1">Attending</option>
                          <option value="0">Not Attending</option>
                      </select>
                  </div>
                </div>
            </div>
        </div>   
		<div class="panel panel-default">
            <div class="panel-heading  text-center"><h4>ACCOMPANY PERSON</div>
            <div class="panel-body">     
                <div class="form-group">
                  <label for="registrant_diet" class="col-lg-4 control-label"> Accompany Person<br/></label>
                  <div class="col-lg-3">
                      <select class="form-control" id="registrant_accompany" name="registrant_accompany" onchange="chkaccompany();">
                          <option value="No" selected>No</option>
                          <option value="Yes">Yes</option>
                      </select>
                  </div>
                </div>
				<div id="accompanying_div">
					<div class="form-group">
					<label class="col-lg-2 control-label">&nbsp;</label>
					<div class="col-lg-8">
						<table class="table table-hover">
							<thead>
							  <tr>
								<th>Type (in SGD)</th>
								<th>Normal Fee</th>
							  </tr>
							</thead>
							<tbody>  
								<tr>
									<td>
										Accompany Person
									</td>
									<td>
										SGD 400
									</td>
								</tr>
							</tbody>
						</table>
					</div>	
					</div>
					<div class="form-group">
						<label for="registrant_accompanying_lastname" class="col-lg-4 control-label"> *Family Name/Last Name</label>
						<div class="col-lg-3">
							<input type="text" name="registrant_accompanying_lastname" id="registrant_accompanying_lastname" placeholder="E.g. Smith" class="form-control">
						</div>
					</div>
					<div class="form-group">
						<label for="registrant_accompanying_firstname" class="col-lg-4 control-label"> *First Name</label>
						<div class="col-lg-3">
							<input type="text" name="registrant_accompanying_firstname" id="registrant_accompanying_firstname" placeholder="E.g. John" class="form-control">
						</div>
					</div>
					<div class="form-group">
						<label for="registrant_accompanying_reception" class="col-lg-4 control-label"> Welcome Reception</label>
						<div class="col-lg-3">
							<select class="form-control" id="registrant_accompanying_reception" name="registrant_accompanying_reception">
								<option value="2">Please select</option>
								<option value="Yes">Attending</option>
								<option value="No">Not Attending</option>
							</select>
						</div>
					</div>
					<div class="form-group">
						<label for="registrant_accompanying_dinner" class="col-lg-4 control-label"> Conference Dinner</label>
						<div class="col-lg-3">
							<select class="form-control" id="registrant_accompanying_dinner" name="registrant_accompanying_dinner">
								<option value="2">Please select</option>
								<option value="Yes">Attending</option>
								<option value="No">Not Attending</option>
							</select>
						</div>
					</div>
					<input type="hidden" name="total_accompany" id="total_accompany" value=0>
				</div>
            </div>
        </div>		
        <div class="panel panel-default">
            <div class="panel-heading  text-center"><h4>ADDITIONAL ITEMS</div>
            <div class="panel-body">     
                <div class="form-group">
                    <label for="general_registration" class="col-lg-2 control-label">&nbsp;</label>
                    <div class="col-lg-8">
                        <table class="table table-hover">
                            <thead>
                              <tr>
                                <th>Items</th>
                                <th>Price</th>
                                <th>Quantity</th>
                                <th>Total</th>
                              </tr>
                            </thead>
                            <tbody>  
                                <tr>
                                    <td>
                                        Additional Conference Dinner
                                    </td>
                                    <td>
                                        SGD 200
                                    </td>
                                    <td>
                                        <select class="form-control" id="registrant_extra_dinner" name="registrant_extra_dinner" onchange="calculateextra();">
                                          <option value="0">0</option>
                                          <option value="1">1</option>
                                          <option value="2">2</option>
                                        </select>
                                    </td>
                                    <td>
                                        <input type="text" name="total_extra_dinner" id="total_extra_dinner" value="0" readonly class="form-control">
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        Additional Items Total
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td>
                                        <input type="text" name="total_extras" id="total_extras" value="0" readonly class="form-control">
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        Total Registration Fee
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td>
                                        <input type="text" name="total_registration" id="total_registration" value="0" readonly class="form-control">
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
        <div class="panel panel-info">
            <div class="panel-heading  text-center"><h3>INSTRUCTIONS</h3></div>
            <div class="panel-body">
                <div class="col-lg-1"></div>
                <div class="col-lg-10">
					Please print a copy of this registration page before clicking on the "Submit" button<br/>
					Confirmation of seat(s) is upon receipt of your payment<br/>
					Official receipt will be issued during event registration (2-5 December)<br/>
					We only accept credit cardl or bank transfer. For any other payment modes, please contact Wendy at secretariat@wccm2019.org<br/>
					A registration confirmation email will be sent to you upon receipt of payment
                </div>
                <div class="col-lg-1"></div>
            </div>
        </div>     
          
        <div class="panel panel-info">
            <div class="panel-heading  text-center"><h3>PAYMENT TERMS</h3></div>
            <div class="panel-body">
                <div class="col-lg-1"></div>
                <div class="col-lg-10">
                        All prices quoted are in Singapore Dollars (SGD) <br/>
						Travel and accommodation expenses are excluded from the registration fees.<br/><br/>

                    
                        <b>(a) Credit Card (PayPal Payment)</b><br/>
                        Online payment is made to Non-Destructive Testing Society (Singapore) via PayPal<br/>
						An acknowledgement page will appear upon successful payment <br/>
						A confirmation email will be sent to you to acknowledge the receipt of your payment and to confirm your seat(s) for the conference. <br/><br/>

                        
                        <b>(b) Bank Transfer </b><br/>
                        Bank Payment Account Details<br/>
						Bank: United Overseas Bank Limited<br/>
						Bank address: 251-253 Upper Thomson Road, Singapore 574376<br/>
						Swift Code: UOVBSGSG<br/>
						Account Number : 107-308-606-5 <br/>
						Account Name: Non-Destructive Testing Society (Singapore)<br/><br/>


                        If payment by bank transfer, please indicate the following:<br/>
						(i) Please ensure that the conference name; 'WCCM2019' and the 'name of the participant' are stated in the bank transfer<br/>
						(ii) All bank charges are the responsibility of the participant and should be paid at the source in addition to the registration fees<br/>
						(iii) A completed remittance advice of the bank transfer should be sent to: Secretariat, Wendy at secretariat@wccm2019.org<br/>
						(iv) Confirmation of registration will be sent to you upon receipt of full payment
                </div>
                <div class="col-lg-1"></div>
            </div>
        </div>  
		<div class="panel panel-info">
            <div class="panel-heading  text-center"><h3>CANCELLATION/WITHDRAWAL POLICY</h3></div>
            <div class="panel-body">
                <div class="col-lg-1"></div>
                <div class="col-lg-10">
                        There will be no refund for cancellation/withdrawal received after 16 August 2019<br/>
						Request of cancellation should be sent in writing only to Wendy at secretariat@wccm2019.org<br/>
						Refunds of registration fees will be made as follows:<br/>
						• Cancellations received before 16 August 2019 (GMT + 8), a 50%  of payment received will be refunded. <br/>
						• There will be no refund for cancellation/withdrawal received on or after 16 August 2019 (GMT + 8).<br/>
						• SGD50.00 admin fee is chargeable for all cancellation requests.<br/>
						• There will be no refund for "NO-SHOW" registrants and the organisers will not entertain requests to mail out any conference publications and or materials to such individuals.
                </div>
                <div class="col-lg-1"></div>
            </div>
        </div>  
        <div class="panel panel-info">
            <div class="panel-heading  text-center"><h3>Terms & Conditions</h3></div>
            <div class="panel-body">
                <div class="col-lg-1"></div>
                <div class="col-lg-10">
					Early-bird registration applies for fees received by 16 August 2019 (GMT+8)<br/>
					Any outstanding fee amount owing to the conference will have to be completed via online.<br/>
					For walk-in registration, standard conference items (e.g. printed programme and conference bags) are available only while stocks last.<br/>
					For "Additional Purchases (Optional)", purchase confirmation is subject to payment being received and only while stocks last.<br/><br/>

					By providing your information above, you hereby agree that the WCCM2019 Organising Committee may collect, use, 
					disclose and store your data for the following purposes:<br/>
					• Facilitate the management and logistics of the event<br/>
					• Legal purposes where necessary, including investigation or proceeding<br/>
					• The available information are in accordance with the Singapore Personal Data Protection Act – 2012 (PDPA). <br/> 
					• Organiser may contact you via email or mobile for any notifications related to the conference<br/><br/>

					For any corrections to your registration, please contact the secretariat immediately.<br/>
					The organiser reserves the right to modify the content of the programme and time of presentations.

                </div>
                <div class="col-lg-1"></div>
            </div>
        </div>     
       <div class="panel panel-info">
            <div class="panel-heading  text-center"><h3>Photography and Videography</h3></div>
            <div class="panel-body">
                <div class="col-lg-1"></div>
                <div class="col-lg-10">
                	Professional photography and videography will take place during the event. By partaking in the event,
                        you are consenting for the for the organiser to use the images for  any form of publicity usage such as website, media and publication purposes.								
                </div>
                <div class="col-lg-1"></div>
            </div>
        </div>     
        <div class="form-group">
            <div class="col-lg-12 text-center">
            	<b><u>Payment Mode</u></b></br>
        	<input type="radio" name="payment_mode" value="Credit Card" checked> Credit Card &nbsp;<input type="radio" name="payment_mode" value="banktransfer"> Bank Transfer <br/><br/>
            </div>
            <div class="col-lg-12 text-center">
                <input type="checkbox" name="agree" id="agree" value="yes">  I have read and I agree to abide by all of the above terms and conditions <br/><br/>
            </div>
            <div class="col-lg-12 text-center">
                <button type="submit" name="confirm" value="confirm" class="btn btn-primary" onclick="return chkFrm();">Submit</button>
                <button type="reset" class="btn btn-default">Cancel</button>
            </div>
        </div>
          <input type="hidden" name="registration_cost" id="registration_cost" value="800">
		  <input type="hidden" name="event_type" id="event_type" value="SINCE">
        </form>
    </div>


    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="js/jquery-1.11.2.js"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="js/bootstrap.min.js"></script>
    <script>
        registrationchange();
		chkaccompany();
    </script>
  </div>
</div>
</body>
</html>
