Uname:Linux EDL-STRETCH 4.19.0-27-amd64 #1 SMP Debian 4.19.316-1 (2024-06-25) x86_64

403WebShell
403Webshell
Server IP : 188.114.97.2  /  Your IP : 104.23.197.231
Web Server : Apache/2.4.59 (Debian)
System : Linux EDL-STRETCH 4.19.0-27-amd64 #1 SMP Debian 4.19.316-1 (2024-06-25) x86_64
User : edlftp ( 1002)
PHP Version : 7.4.33
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/git/sms.edl.codes.solutions/application/views/backend/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/git/sms.edl.codes.solutions/application/views/backend/admin/admin_lesson.php
<?php
/*********************
 *********************
Template : "admin_lesson.php"
Controller : "Admin_Lesson.php"

 Creation 15/07/2019
 Aernout Guillaume
 http://codes.solutions
 *********************
 *********************/
 ?>
 <br>
 <div class="row" id="lesson-row">
  <div class="col-md-12">
    <div>
      <div class="box-content" style="margin-top: 35px;">
        <div class="form-group">
          <div class="padded">
             <?php echo form_open(base_url() . '#' , array('class' => 'form-horizontal form-groups-bordered validate','target'=>'_top', 'id'=>'edit-form'));?>
            <label class="col-sm-6 control-label"><?php echo get_phrase('Teachers can delete past lessons');?></label>
            <div class="col-sm-6">
              <div class="form-group">
                  <div class='input-group'>
                    <select name="past_course" id="past_course" class="form-control select22" style="width:100%;" data-validate="required" data-message-required="<?php echo get_phrase('value_required'); ?>">
                      <option value="0"><?php echo get_phrase('no'); ?></option>
                      <option value="1"><?php echo get_phrase('yes'); ?></option>
                    </select>
                  </div>
              </div>
            </div>
            <div class="form-group">
                <label class="col-sm-6 control-label"><?php echo get_phrase('Teachers can delete lesson within :');?></label>
                <div class="col-sm-6">
                  <div class="form-group">
                      <div class='input-group'>
                        <input id="delete_range" min="0.5" step="0.5" max="72" type="range"></input>
                        <input class="col-sm-5" id="delIndic" type="text" readonly></input>
                      </div>
                  </div>
                </div>
              </div>
              <div class="form-group">
                  <label class="col-sm-6 control-label"><?php echo get_phrase("Teachers can't create lesson within :");?></label>
                  <div class="col-sm-6">
                    <div class="form-group">
                        <div class='input-group'>
                          <input id="creation_range" min="0.5" max="72" type="range"></input>
                          <input class="col-sm-5" id="creaIndic" type="text" readonly></input>
                        </div>
                    </div>
                  </div>
                </div>
            </form>
        </div>
      </div>
    </div>
  </div>
</div>

 <!-- assets to move -->
 <script>
 function ajaxUpdate(){
    var del_h = $('#delete_range').val();
    var start_h = $('#creation_range').val();
    var del_past = $('#past_course :selected').val();
    $.post('/Admin_Lesson/update', {
      del_h: del_h,
      start_h: start_h,
      del_past: del_past
    }, function(data){
        if(data == "1"){
          displayBox("parameters",'',true);
        }
        else{
          displayBox("parameters","failled to update",false);
        }
      });
 }
 </script>
 <!-- Initialize the script -->
 <script>
 jQuery(document).ready(function($)
 {
   $("#del_indic").prop('disabled', true);
   $("#crea_indic").prop('disabled', true);
   console.log('====<? echo $start_h; ?>');
  $("#delete_range").val('<? echo $del_h; ?>');
  $("#creation_range").val('<? echo $start_h; ?>');
  $("#creaIndic").val('<? echo $start_h; ?>');
  $("#delIndic").val('<? echo $del_h; ?>');

   $('#past_course').change(function(){ajaxUpdate();});
   $('#delete_range').on("change mousemove", function() {
     $('#delIndic').val($(this).val());
     ajaxUpdate();
   });
   $('#creation_range').on("change mousemove", function() {
     $('#creaIndic').val($(this).val());
     ajaxUpdate();
   });
 });
 </script>

Youez - 2016 - github.com/yon3zu
LinuXploit