/
home
/
efamember
/
domains
/
efa-member.com
/
public_html
/
efa.or
/
ajax
/
profile
/
up file
home
<?php include('../../../config/main_function.php'); $secure = "cAh3DrJACzw4RbU"; $connection = connectDB($secure); $member_id = mysqli_real_escape_string($connection, $_POST['member_id']); $temp_id = explode(".", $member_id); $member_id = bigsara_decode($temp_id[0], $temp_id[1]); $sql_doc = "SELECT * FROM tbl_member_document WHERE member_id = '$member_id' ORDER BY document_list_order ASC"; $res_doc = mysqli_query($connection, $sql_doc); $num_list = mysqli_num_rows($rs); $password = 'sd32f43q5we'; $originalMessage = "CXgvsdf542sdfg"; $encryptedMessage = encryptMessage($originalMessage, $password); ?> <!-- <div class="row mb-3 mt-3"> <div class="col-md-12"><strong class="strong-text">เอกสารประกอบการสมัคร</strong></div> </div> --> <div class="mb-3 shadow-sm"> <div class="card text-left mt-3"> <div class="card-body"> <div class="mb-2 mt-3"> <span class="text-danger"> ( แนบได้เฉพาะไฟล์นามสกุล .jpg , .jpeg , .png ) </span> </div> <form action="" id="import_document" method="POST" enctype="multipart/form-data"> <input type="hidden" id="decryptedMessage" name="decryptedMessage" value="<?php echo $encryptedMessage; ?>"> <input type="hidden" name="member_id" value="<?php echo $member_id ?>"> <input type="hidden" name="document_id" value="<?php echo getRandomID(10, 'tbl_member_document', 'document_id'); ?>"> <div class="row mb-3"> <div class="col-12"> <label for=""><b></b></label> <div class="image-upload_9"> <input type="file" id="document_file" name="document_file" value="" onchange="ImageReadURL(this,value,'10');" multiple> </div> </div> </div> </form> <div class="row"> <?php while ($row_doc = mysqli_fetch_assoc($res_doc)) { ?> <div class="col-3 mb-3"> <div class="card text-left"> <div class="card-body"> <!-- <a href="../../../main/upload/join/file/<?php echo $row_doc['document_file_name']; ?>" target="_blank"> <img src="../../../main/upload/join/file/<?php echo $row_doc['document_file_name']; ?>" alt="" width="100%"> </a> --> <?php $file_type = explode('.', $row_doc['document_file_name']); if (strtolower($file_type[1]) == 'pdf') { ?> <div style="position:relative; width:200px"> <button type="button" class="btn btn-danger btn-sm text-white" onclick="DeleteApp('<?php echo $row_doc['document_id']; ?>')" style="position:absolute; top:0; right:0;">X</button> <a href="../../../main/upload/join/file/<?php echo $row_doc['document_file_name']; ?>" target="_blank"> <img src="../../../main/upload/join/file/pdf_icon.jpg" alt="" width="200px"> </a> </div> <?php } else { ?> <div style="position:relative; width:200px"> <button type="button" class="btn btn-danger btn-sm text-white" onclick="DeleteApp('<?php echo $row_doc['document_id']; ?>')" style="position:absolute; top:0; right:0;">X</button> <a href="../../../main/upload/join/file/<?php echo $row_doc['document_file_name']; ?>" target="_blank"> <img src="../../../main/upload/join/file/<?php echo $row_doc['document_file_name']; ?>" alt="" width="200px"> </a> </div> <?php } ?> </div> </div> </div> <?php } ?> </div> </div> </div> </div> <div class="text-center"> <button type="button" class="btn btn-gold btn-sm text-white w-25 shadow-sm" onclick="ImportFile(),SubmitProfileForm()"><strong>บึนทึกข้อมูล</strong></button> <?php if ($transfer_date == '') { ?> <button type="button" class="btn btn-gold btn-sm text-white w-25 shadow-sm" onclick="SendProfile()"><strong>ลงทะเบียนและชำระเงิน</strong></button> <?php } ?> </div>