File: /home/suanchonac/domains/suanchon.ac.th/private_html/admission-2568-1/section/sec/4.php
<div class="caption-full">
<h3 class="text-center">
<p>
<span class="glyphicon glyphicon-share"></span>
4. ประเภทนักเรียน
</p>
</h3>
<?php if ($_SESSION['SAS1'][1] != "4") {?>
<div class="alert alert-danger text-center" role="alert">
<i><span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span> ส่วนนี้ให้ท่านตรวจสอบให้ถูกต้อง อ่านข้อความข้างต้น ก่อนทำการเลือก </i>
</div>
<div class="alert alert-success text-left" role="alert">
<p><span class="glyphicon glyphicon-indent-right" aria-hidden="true"></span> นักเรียนทั่วไป คือ นักเรียนที่มีภูมิลำเนา นอกเหนือจากนักเรียนในเขตพื้นที่บริการ</p>
<p><span class="glyphicon glyphicon-indent-left" aria-hidden="true"></span> นักเรียนในเขตพื้นที่บริการ คือ มีภูมิลำเนาอยู่ ตำบลบ่อวิน อำเภอศรีราชา จังหวัดชลบุรี ย้ายเข้ามาก่อน 16 พฤษภาคม 2566</p>
</div>
<?php }?>
<?php if (!isset($_GET["edite"])) {?>
<form class="form-horizontal" name="Formnext2" id="Formnext2" method="post" action="index.php" style="padding-left: 10%">
<?php } else {?>
<form class="form-horizontal" name="Formnext2" id="Formnext2" method="post" action="index.php?edite=true" style="padding-left: 10%">
<?php }?>
<div class="radio">
<!--<h4><label>
<input type="radio" name="raOption" id="option1" value="สอบคัดเลือกห้องเรียนปกติ"
onclick="javascript:chickCheckbox();" required=""
<?php if (isset($_SESSION["EDITE"]) && $_SESSION["EDITE"][2] == "สอบคัดเลือกห้องเรียนปกติ") {echo "checked";}
?>
>
สอบคัดเลือกห้องเรียนปกติ
</label>
</h4>-->
</div>
<div class="radio">
<h4><label>
<input type="radio" name="raOption" id="option2" value="นักเรียนทั่วไป"
onclick="javascript:chickCheckbox();" required=""
<?php if (isset($_SESSION["EDITE"]) && $_SESSION["EDITE"][2] == "นักเรียนทั่วไป") {echo "checked";}
?>
>
นักเรียนทั่วไป (นอกเขตพื้นที่บริการ)
</label>
</h4>
</div>
<?php
if (isset($_SESSION['SAS1'])) {
$checkm4 = "4";
if (strcmp($_SESSION['SAS1'][1], $checkm4) != 0) {?>
<div class="radio">
<h4>
<label>
<input type="radio" name="raOption" id="option3" value="นักเรียนในเขตพื้นที่บริการ"
onclick="javascript:chickCheckbox();"
<?php if (isset($_SESSION["EDITE"]) && $_SESSION["EDITE"][2] == "นักเรียนในเขตพื้นที่บริการ") {echo "checked";}?>>
นักเรียนในเขตพื้นที่บริการ
</label>
</h4>
<h5>
<label>
(นักเรียนในเขตพื้นที่บริการ คือ มีภูมิลำเนาอยู่ ตำบลบ่อวิน อำเภอศรีราชา จังหวัดชลบุรี ย้ายเข้ามาก่อน 16 พฤษภาคม 2566)
</label>
</h5>
</div>
<?php }?>
<?php } else { //เมื่อ !isset($_SESSION['SAS1'])
if (isset($_SESSION["EDITE"])) {
$checkeditm4 = "4";
if (strcmp($_SESSION["EDITE"][1], $checkeditm4) != 0) {?>
<div class="radio">
<h4>
<label>
<input type="radio" name="raOption" id="option2" value="นักเรียนในเขตพื้นที่บริการ"
onclick="javascript:chickCheckbox();"
<?php if (isset($_SESSION["EDITE"]) && $_SESSION["EDITE"][2] == "นักเรียนในเขตพื้นที่บริการ") {echo "checked";}?>>
นักเรียนในเขตพื้นที่บริการ
</label>
</h4>
<h5>
<label>
(นักเรียนในเขตพื้นที่บริการ คือ มีภูมิลำเนาอยู่ ตำบลบ่อวิน อำเภอศรีราชา จังหวัดชลบุรี ย้ายเข้ามาก่อน 16 พฤษภาคม 2566)
</label>
</h5>
</div>
<?php }?>
<?php }}?>
<!--โค้ดที่หายไปอยู่ที่ไฟล์bak4.php!-->
<!--div class="col-sm-offset-2 col-sm-10 text-center"-->
<?php if (!isset($_GET["edite"])) {?>
<div class="form-group">
<div class="col-sm-offset-8 col-sm-4 text-center">
<button class="btn btn-info btn-lg btn-block" name="btnNext4" type="submit"
value="Login">
ถัดไป <span class="glyphicon glyphicon-random" aria-hidden="true"></span>
</button>
</div>
</div>
<?php } else {?>
<div class="form-group">
<div class="col-sm-offset-8 col-sm-4 text-center">
<button class="btn btn-success btn-lg btn-block" name="btnEdite4" type="submit"
value="Login"
onclick="if(confirm('ยืนยันการแก้ไขส่วนที่4')) return true; else return false;">
แก้ไขส่วนที่ 4 <span class="glyphicon glyphicon-check" aria-hidden="true"></span>
</button>
</div>
</div>
<?php }?>
</form>
</div>