EVOLUTION-NINJA
Edit File: registrationedit.php
<?php echo view('includes/admin-header'); ?> <link rel="stylesheet" type="text/css" href="<?php echo base_url('public/assets/css/jquery-ui.css'); ?>"/> <link rel="stylesheet" type="text/css" href="<?php echo base_url('public/assets/css/conference.css'); ?>"> <div class="col-sm-10"> <div class="add-conference-right"> <section class="new-menu"> <div class="container"> <h3 class="conf-tag">Edit Registration</h3> <div class="row pt-5"> <div class="col-sm-1"></div> <div class="col-sm-11"> <header class="cf"> <div class="navigation"> <nav> <a href="javascript:void(0)" class="smobitrigger ion-navicon-round"><span>Menu</span></a> <ul class="mobimenu"> <li><a href="<?php echo base_url('/Online-edit-conference?id='.$conference_id); ?>">About</a></li> <li><a href="<?php echo base_url('/Online-program-scheduleedit?id='.$conference_id); ?>">Course Schedule</a></li> <li><a href="<?php echo base_url('/Online-facultyedit?id='.$conference_id); ?>">Faculty</a></li> <li class="conf-act"><a href="<?php echo base_url('/Online-registeredit?id='.$conference_id); ?>">Registration</a></li> <li><a href="<?php echo base_url('/edit-online-attend?id='.$conference_id); ?>">Attend</a></li> <li><a href="<?php echo base_url('/edit-online-certificate?id='.$conference_id); ?>">Certificate</a></li> </ul> </nav> </div> </header> </div> </div><!--row--> </div> </section> <div class="container"> <div class="attend-conf"> <div class="row pt-5"> <div class="col-sm-2"> <label><b>Title</b>:</label> </div> <div class="col-sm-10"> <h3><?php echo $title_con[0]['title']; ?></h3> </div> </div><!--row--> <div class="link-tabs"> <div class="row pt-5"> <div class="col-sm-12"> <input type="hidden" name="" id="conf_next_id" value="<?php echo $ps_ids[0]['conference_id']; ?>"> <nav> <div class="nav nav-tabs nav-fill" id="nav-tab" role="tablist"> <a class="nav-item nav-link active" id="nav-profile-tab" data-toggle="tab" href="#nav-profile" role="tab" aria-controls="nav-profile" aria-selected="false">Enter Amount Program Wise</a> <a class="nav-item nav-link " id="nav-home-tab" data-toggle="tab" href="#nav-home" role="tab" aria-controls="nav-home" aria-selected="true">Enter Amount For Full Course</a> </div> </nav> <form id="regist"> <?php foreach($registr as $values) { ?> <input id="id1" type = "text" name = "conference_id" value = "<?php echo $conference_id; ?>"> <div class="tab-content" id="nav-tabContent"> <div class="tab-pane fade " id="nav-home" role="tabpanel" aria-labelledby="nav-home-tab"> <div class="row" > <div class="col-sm-9"> <div class="form-check" style='display:flex;'> <input type="checkbox" name='full-course' class='full-course-input' id="flexCheckChecked1" <?php echo ($values['full_course'] == 1 ? 'checked' : ''); ?>> <label for="flexCheckChecked1" style='color:black;padding-top: 15px !important;'> <b>Full Course Fee</b> </label> </div> <div class="form-group" > <input type="number" class="form-control" id='in1' placeholder="Enter The Course Registration Fee" name="reg_fee_reg"value = "<?php echo $values['reg_fee'] ?>"> </div> <div class="form-group"> <textarea name="reg_details_reg" oninput="validateInput(this)" id="comment" class="form-control" onkeydown="limitText(this.form.reg_details_reg,this.form.countdown,500);" onkeyup="limitText(this.form.reg_details_reg,this.form.countdown,500);" placeholder="Enter The Course Registration Details"><?php echo $values['reg_details'] ?></textarea> <span class="limit" style="color:#000;">(Maximum characters: <input name="countdown" type="text" value="500" size="1" style="height: 35px;border-radius: 0;" readonly>)</span> </div> </div> </div> <button type="submit" class="btn-reg">Save</button> </div> <?php } ?> </form> <!----------------------------> <div class="tab-pane fade show active" id="nav-profile" role="tabpanel" aria-labelledby="nav-profile-tab"> <!-- <div class="row"> <div class="col-sm-2"> <h4>Title:</h4> </div> <div class="col-sm-10"> <h4><?php echo $title_con[0]['title']; ?></h4> </div> </div> --> <form id="update_reg_indivisual"> <div class="table-responsive"> <table class="table table-striped"> <thead> <tr> <th>Date</th> <th>Start Time </th> <th>End Time </th> <th>Topic</th> <th>Moderator</th> <th>Speaker / Faculty</th> <th>Amount</th> </tr> </thead> <tbody> <?php foreach($ps_ids as $value) { // echo $val['conference_id']; ?> <tr> <td><?php echo $value['date']; ?></td> <td><?php echo $value['start_time']; ?></td> <td><?php echo $value['end_time']; ?></td> <td><?php echo $value['topic']; ?></td> <td><?php echo $value['moderator']; ?></td> <td><?php echo $value['speaker']; ?></td> <td><input type = "hidden" name = "ps[]"value = "<?php echo $value['ps_id']; ?>"/> <input type = "text" name = "amount[]" value = "<?php echo $value['amount']; ?>" style="height:30px;" /> </td> <!-- <td><button type="button" class="submit" id="attend_link">Attend link</button></td> --> </tr> <?php } ?> </tbody> </table> </div> <button type="submit" class="btn-reg">Save</button> </form> </div> </div><!--tab--content--> </div> </div> </div> </div> </div> </div> </div> </div><!--add-conference-right---> </div><!----> <!--------------------------------Mobile-Menu----------------------------> <script type="text/javascript" src="<?php echo base_url('public/assets/js/simpleMobileMenu-1.js');?>"></script> <script type="text/javascript"> jQuery(document).ready(function($) { $('.smobitrigger').smplmnu(); }); </script> <script> const fullcourseinput = document.getElementById('flexCheckChecked1'); const in1 = document.getElementById('in1'); const in2 = document.getElementById('comment'); const count = document.getElementById('count'); function handleCheckboxChange() { if (fullcourseinput.checked) { in1.style.display = 'block'; in2.style.display = 'block'; in1.value=''; in2.value=''; count.style.display = 'block'; } else { in1.style.display = 'none'; in2.style.display = 'none'; count.style.display = 'none'; } } window.addEventListener('load', function () { // alert('hello'); handleCheckboxChange(); }); fullcourseinput.addEventListener('change', handleCheckboxChange); </script> <script type="text/javascript" src="<?php echo base_url('public/assets/js/jquery-ui.js'); ?>"></script> <script> $( function() { $( "#datepicker1" ).datepicker({dateFormat: "dd-mm-yy"}); } ); </script> <script> $(document).ready(function(){ $('#id1').hide(); }); </script> <script> $("#upload-course-btn").click(function(){ var next = $('#conf_next_id').val(); window.location = '<?php echo base_url("Exam-Attend")?>?id='+next; }); </script> <script> function select_attend(id){ // alert(id); $('#ps_id').val(id); // alert(id); $('#myModal').modal('show'); } </script> <script language="javascript" type="text/javascript"> function limitText(limitField, limitCount, limitNum) { if (limitField.value.length > limitNum) { limitField.value = limitField.value.substring(0, limitNum); } else { limitCount.value = limitNum - limitField.value.length; } } </script> <script> $(document).ready(function(){ // full course $('#regist').submit(function(e){ e.preventDefault(); // alert("hii"); var reg_details_reg_e = $("#comment").val(); var formData = new FormData(this); formData.append("reg_details_reg_e",reg_details_reg_e); $.ajax({ type : "POST", url : '<?php echo base_url("update-online-registration")?>', data : formData, contentType: false, processData: false, success:function(response){ response = jQuery.parseJSON(response); if(response.result == 1){ toastr["success"](response.message); } else{ toastr["error"](response.message); } } }); }); }); $(document).ready(function(){ $('#update_reg_indivisual').submit(function(e){ e.preventDefault(); var formData = new FormData(this); // formData.append("reg_details_reg",reg_details_reg); $.ajax({ type : "POST", url : '<?php echo base_url("Exam-registration-update-single")?>', data : formData, contentType: false, processData: false, success:function(response){ response = jQuery.parseJSON(response); if(response.result == 1){ toastr["success"](response.message); // window.location.reload(); // $(".add_conferences").modal("hide"); // window.location = '<?php echo base_url("attend")?>?id='+response.data; } else{ toastr["error"](response.message); } } }); }); }); </script> <script> function validateInput(inputField) { var restrictedChars = ['\'', '\"',"`","$","{","}","_"]; var inputValue = inputField.value; for (var i = 0; i < restrictedChars.length; i++) { if (inputValue.includes(restrictedChars[i])) { inputField.value = inputValue.replace(restrictedChars[i], ''); toastr.error('Special characters like \',\",$,`,{,},_are not allowed.'); } } } </script> <?php echo view('includes/admin-footer'); ?>