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.96.2  /  Your IP : 104.23.197.230
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/nicolasj/www/sms.formationlangues.be/application/views/frontend/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/nicolasj/www/sms.formationlangues.be/application/views/frontend/student_request.php
<?php
/*********************
 *********************
 Student Form
 Creation 07/10/2019
 Aernout Guillaume
 http://codes.solutions
 *********************
 *********************/
 ?>
 <html>
   <head>
     <meta charset="utf-8">
     <meta name="viewport" content="width=device-width, initial-scale=1">
     <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
     <link href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.7/css/materialize.min.css" rel="stylesheet">
    <!-- <link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet">-->
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
    <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
    <link href="https://cdn.bootcss.com/flag-icon-css/3.3.0/css/flag-icon.css" rel="stylesheet">
     <title>Student Request</title>
   </head>
   <body>
     <div class="ctrlqFormContentWrapper">
       <div class="ctrlqHeaderMast"></div>
       <div class="ctrlqCenteredContent">
         <div class="ctrlqFormCard">
           <div class="ctrlqAccent"></div>
           <div class="ctrlqFormContent">
             <input type="hidden" name="step" id="step" value="1" />
             <input type="hidden" name="form" id="teacher_form" value="0" />
             <div class="input-field right col-sm-2 selector">
               <select id="lang-selector" name="lang-selector">
                 <? foreach ($lang as $row) {
                   if($row['active'] == "1"){
                     echo "<option value='".strtolower($row['english_name'])."'><span class='flag-icon flag-icon-".$row['tag']."'>".$row['english_name']."</span></option>";
                   }
                 }?>
               </select>
             </div>
             <!-- form step 1 -->
             <form id="form-1">

               <div class="row">
                 <div class="input-field col-sm-12">
                   <h4><?php echo get_phrase('Candidate_Form'); ?></h4>
                   <p><?php echo get_phrase('All_fields_are_required'); ?></p>
                 </div>
               </div>

               <div class="row">
                 <div class="input-field col-sm-12">
                   <input id="name" name="name" type="text" class="validate" data-error="#e1" required>
                   <label for="name"><?php echo get_phrase('Your_Name');?></label>
                   <div id="e1"></div>
                 </div>
               </div>

               <div class="row">
                 <div class="input-field col-sm-12">
                   <input id="firstname" name="firstname" type="text" class="validate" data-error="#e16" required>
                   <label for="firstname"><?php echo get_phrase('Your_First_Name');?></label>
                   <div id="e16"></div>
                 </div>
               </div>

               <div class="row">
                 <div class="input-field col-sm-12">
                   <input id="email" name="email" type="text" class="validate" data-error="#e2" required>
                   <label for="email"><?php echo get_phrase('Your_Email');?></label>
                   <div id="e2"></div>
                 </div>
               </div>

               <div class="row">
                 <div class="input-field col-sm-12">
                   <select id="gender" name="gender" class="validate" data-error="#e3" required>
                     <option value="" disabled selected><?php echo get_phrase('Choose_Gender');?></option>
                     <option value="Male"><?php echo get_phrase('Male');?></option>
                     <option value="Female"><?php echo get_phrase('Female');?></option>
                   </select>
                   <div id="e3"></div>
                 </div>
               </div>

               <div class="row">
                 <div class="input-field col-sm-12">
                   <input id="phone" name="phone" type="number" class="validate" data-error="#e3" required>
                   <label for="phone"><?php echo get_phrase('Your_Phone_number');?></label>
                   <div id="e3"></div>
                 </div>
               </div>

               <div class="row">
                 <div class="input-field col-sm-12">
                   <input id="current_language" name="current_language" type="text" class="validate" data-error="#e4" required>
                   <label for="current_language"><?php echo get_phrase('current_language');?></label>
                   <div id="e4"></div>
                 </div>
               </div>

               <div class="row">
                 <div class="input-field col-sm-12">
                   <input id="native_language" name="native_language" type="text" class="validate" data-error="#e5" required>
                   <label for="native_language"><?php echo get_phrase('native_language');?></label>
                   <div id="e5"></div>
                 </div>
               </div>

               <div class="row">
                 <div class="input-field col-sm-12">
                   <label for="birthdate"><?php echo get_phrase('Date_of_Birth');?></label>
                   <input type="date" id="birthdate" class="datepicker" name="birthdate" data-error="#e5" required>
                   <div id="e5"></div>
                 </div>
               </div>
               <span class="btn btn-default" id="btn-1"><?php echo get_phrase('Next');?></span>

             </form>
             <!-- form step 2 -->
             <form id="form-2">

               <div class="row">
                 <div class="input-field col-sm-12">
                   <h4><?php echo get_phrase('Some_questions'); ?></h4>
                  <!-- <p><?php echo get_phrase('All_fields_are_required'); ?></p>-->
                 </div>
               </div>


               <div class="row">
                 <div class="input-field col-sm-12">
                   <select id="language_to_learn" name="language_to_learn" class="validate" data-error="#e6" required>
                     <option value="" disabled selected><?php echo get_phrase('language_to_learn');?></option>
                     <?php var_dump($languages); foreach ($languages as $language) {
                     echo "<option value='".$language['course_language_id']."'>".get_phrase($language['name'])."</option>";
                     }?>
                   </select>
                   <div id="e6"></div>
                 </div>
               </div>
               <h6><? echo get_phrase('My_level');?></h6>
               <div class="row">
                <div class="input-field col-sm-12">
                 <label for="oral_production" style="margin-top:10px;"><?php echo get_phrase('oral_production');?></label>
                  <input type="range" min="1" value="1" max="7" class="custom-range" name="oral_production" id="oral_production" data-error="#e7" required>
                  <div class="center col-sm-12" id="oral_prod_level">level</div>
                  <div class="input-field">
                    <br>
                    <div id="e7"></div>
                  </div>
                </div>
              <div class="input-field col-sm-12">
               <label for="writing_production" style="margin-top:10px;"><?php echo get_phrase('writing_production');?></label>
                <input type="range" min="1" value="1"  max="7" class="custom-range" name="writing_production" id="writing_production" data-error="#e8" required>
                <div class="center col-sm-12" id="writing_prod_level">level</div>
                <div class="input-field">
                  <br>
                  <div id="e8"></div>
                </div>
              </div>
            <div class="input-field col-sm-12">
             <label for="oral_comprehension" style="margin-top:10px;"><?php echo get_phrase('oral_comprehension');?></label>
              <input type="range" min="1" value="1"  max="7" class="custom-range" name="oral_comprehension" id="oral_comprehension" data-error="#e9" required>
              <div class="center col-sm-12" id="oral_comprehension_level">level</div>
              <div class="input-field">
                <br>
                <div id="e9"></div>
              </div>
              </div>
            <div class="input-field col-sm-12">
             <label for="writing_comprehension" style="margin-top:10px;"><?php echo get_phrase('writing_comprehension');?></label>
              <input type="range" min="1" value="1"  max="7" class="custom-range" name="writing_comprehension" id="writing_comprehension" data-error="#e10" required>
              <div class="center col-sm-12" id="writing_comprehension_level">level</div>
              <div class="input-field">
                <br>
                <div id="e10"></div>
              </div>
              </div>
            </div>
            <h6><? echo get_phrase('My_availabilities'); ?></h6>
            <div class="form-group availibilityhwe">
          <!--<label for="exampleInputPassword1"><?php echo get_phrase('My_availabilities_are');?></label>-->
  <!--    --
  Start Table
  --      -->
  <div class="table-responsive-sm">

  <input type="hidden" id="morning" name="morning" value="{}"/>
  <input type="hidden" id="afternoon" name="afternoon" value="{}"/>
  <input type="hidden" id="evening" name="evening" value="{}"/>

  <table class="table">
    <thead>
        <tr>
          <th scope="col">#</th>
          <th scope="col"><? echo get_phrase('Morning');?></th>
          <th scope="col"><? echo get_phrase('Afternoon');?></th>
          <th scope="col"><? echo get_phrase('Evening');?></th>
        </tr>
        <tr>
    <thead>
    <tbody>
        <tr>
          <td scope="row"><?php echo get_phrase('Monday');?></td>
          <td><input type="checkbox" name="aa" id="aa" value="mon" /><label onClick="appendMorning('mon');" for="aa"></label></td>
          <td><input type="checkbox" name="ba" id="ba" value="mon" ><label onClick="appendAfternoon('mon')" for="ba"></label></td>
          <td><input type="checkbox"  name="ca" id="ba"value="mon"><label onClick="appendEvening('mon')" for="ca"></label></td>
        </tr>
        <tr>
          <td scope="row"><?php echo get_phrase('Tuesday');?></td>
          <td><input type="checkbox" name="ab" id="ab" value="tue" /><label for="ab" onClick="appendMorning('tue')"></label></td>
          <td><input type="checkbox" name="bb" id="bb" value="tue" ><label for="bb" onClick="appendAfternoon('tue')"></label></td>
          <td><input type="checkbox"  name="cb" id="cb" value="tue"><label for="cb" onClick="appendEvening('tue')"></label></td>
        </tr>
        <tr>
          <td scope="row"><?php echo get_phrase('Wednesday');?></td>
          <td><input type="checkbox" name="ac" id="ac" value="wed" /><label for="ac" onClick="appendMorning('wed')"></label></td>
          <td><input type="checkbox" name="bc" id="bc" value="wed" ><label for="bc" onClick="appendAfternoon('wed')"></label></td>
          <td><input type="checkbox"  name="cc" id="cc" value="wed"><label for="cc" onClick="appendEvening('wed')"></label></td>
        </tr>
        <tr>
          <td scope="row"><?php echo get_phrase('Thursday');?></td>
          <td><input type="checkbox" name="ad" id="ad" value="thu" /><label for="ad" onClick="appendMorning('thu')"></label></td>
          <td><input type="checkbox" name="bd" id="bd" value="thu" ><label for="bd" onClick="appendAfternoon('thu')"></label></td>
          <td><input type="checkbox"  name="cd" id="cd" value="thu"><label for="cd" onClick="appendEvening('thu')"></label></td>
        </tr>
        <tr>
          <td scope="row"><?php echo get_phrase('Friday');?></td>
          <td><input type="checkbox" name="ae" id="ae" value="fri" /><label for="ae" onClick="appendMorning('fri')"></label></td>
          <td><input type="checkbox" name="be" id="be" value="fri" ><label for="be" onClick="appendAfternoon('fri')"></label></td>
          <td><input type="checkbox"  name="ce" id="ce" value="fri"><label for="ce" onClick="appendEvening('fri')"></label></td>
        </tr>
        <tr>
          <td scope="row"><?php echo get_phrase('Saturday');?></td>
          <td><input type="checkbox" name="af" id="af" value="sat" /><label for="af" onClick="appendMorning('sat')"></label></td>
          <td><input type="checkbox" name="bf" id="bf" value="sat" ><label for="bf" onClick="appendAfternoon('sat')"></label></td>
          <td><input type="checkbox"  name="cf" id="cf" value="sat"><label for="cf" onClick="appendEvening('sat')"></label></td>
        </tr>
     </tbody>
    </table>
  </div>
  <!--    --
  End Table
  --      -->
          </div>
          <h6><? echo get_phrase('My_offer'); ?></h6>
              <div class="row">
                <div class="input-field col-sm-12">
                  <select id="course-offer" name="gender" class="validate" data-error="#11" required>
                    <option value="" disabled selected><?php echo get_phrase('Choose_the_offer');?></option>
                    <option value="private"><?php echo get_phrase('private_course');?></option>
                    <option value="group"><?php echo get_phrase('group_course');?></option>
                    <option value="skype"><?php echo get_phrase('skype_course');?></option>
                  </select>
                  <div id="e11"></div>
                </div>
              </div>
              <h6><? echo get_phrase('short_comment'); ?></h6>
              <div class="row">
                <div class="input-field col s12">
                  <textarea id="course-comment" name="course-comment" class="materialize-textarea" data-error="#e12" required></textarea>
                  <label for="course-comment"><? //echo get_phrase('any_informations?'); ?></label>
                  <div id="e12"></div>
                </div>
              </div>
              <span class="btn btn-default" id="btn-2-p"><?php echo get_phrase('Previous');?></span>
              <span class="btn btn-default" id="btn-2"><?php echo get_phrase('Next');?></span>
            </form>
            <!-- form step 3 -->
            <form id="form-3">

              <div class="row">
                <div class="input-field col-sm-12">
                  <h4><?php echo get_phrase('Contact_Form'); ?></h4>
                  <p><?php echo get_phrase('All_fields_are_required'); ?></p>
                </div>
              </div>

              <div class="row">
                <div class="input-field col-sm-12">
                  <input id="name-contact" name="name-contact" type="text" class="validate" data-error="#e12" required>
                  <label for="name-contact"><?php echo get_phrase('Your_Name');?></label>
                  <div id="e12"></div>
                </div>
              </div>

              <div class="row">
                <div class="input-field col-sm-12">
                  <input id="firstname-contact" name="firstname-contact" type="text" class="validate" data-error="#e12" required>
                  <label for="firstname-contact"><?php echo get_phrase('Your_First_Name');?></label>
                  <div id="e12"></div>
                </div>
              </div>

              <div class="row">
                <div class="input-field col-sm-12">
                  <input id="email-contact" name="email-contact" type="text" class="validate" data-error="#e14" required>
                  <label for="email-contact"><?php echo get_phrase('Your_Email');?></label>
                  <div id="e14"></div>
                </div>
              </div>

              <div class="row">
                <div class="input-field col-sm-12">
                  <input id="phone-contact" name="phone-contact" type="number" class="validate" data-error="#e15" required>
                  <label for="phone-contact"><?php echo get_phrase('Your_Phone_number');?></label>
                  <div id="e15"></div>
                </div>
              </div>
              <h6><?php echo get_phrase('Your_address');?></h6>
              <div class="row">
                <div class="input-field col-sm-12">
                  <input id="address1" name="address1" type="text" class="validate" data-error="#e16" required>
                  <label for="address1"><?php echo get_phrase('line_1');?></label>
                  <div id="e16"></div>
                </div>
              </div>
              <div class="row">
                <div class="input-field col-sm-12">
                  <input id="address2" name="address2" type="text" class="validate" data-error="#e17">
                  <label for="address2"><?php echo get_phrase('line_2');?></label>
                  <div id="e17"></div>
                </div>
              </div>
              <div class="row">
                <div class="input-field col-sm-6">
                  <input id="cp" name="cp" type="number" class="validate" data-error="#e18" required>
                  <label for="cp"><?php echo get_phrase('postal_code');?></label>
                  <div id="e18"></div>
                </div>
              </div>
              <div class="row">
                <div class="input-field col-sm-6">
                  <input id="location" name="location" type="text" class="validate" data-error="#e19" required>
                  <label for="location"><?php echo get_phrase('location');?></label>
                  <div id="e19"></div>
                </div>
              </div>
              <div class="row">
                <div class="input-field col-sm-12">
                  <input id="country" name="country" type="text" class="validate" data-error="#e20" required>
                  <label for="country"><?php echo get_phrase('country');?></label>
                  <div id="e20"></div>
                </div>
              </div>

              <span class="btn btn-default" id="btn-3-p"><?php echo get_phrase('Previous');?></span>
              <span class="btn btn-default" id="btn-3"><?php echo get_phrase('Next');?></span>

            </form>
            <!-- form step 4 -->
            <form id="form-4">
              <div class="col-sm-12">
                <h5><? echo get_phrase('request_submited');?></h5>
                <h7><? echo get_phrase('submition_text');?></h7>
              </div>
            </form>
           </div>
         </div>
       </div>
     </div>


     <div class="fixed-action-btn" style="bottom: 45px; right: 24px;">
       <a class="btn-floating btn-large red" href="mailto:[email protected]" title="contact">
         <i class="large material-icons">live_help</i>
       </a>
     </div>

     <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
     <script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.7/js/materialize.min.js"></script>
     <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.15.0/jquery.validate.min.js"></script>
     <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.15.0/additional-methods.min.js"></script>

   </body>

   </html>
   <script type="text/javascript" src="/assets/js/csajax/frontend/request.js"></script>
   <link href="/assets/css/csstyle/frontend/request.css" rel="stylesheet">
<script>
$(document).ready(function() {

  $('form').hide();
  $('.value').hide();
  $('.thumb').hide();
  $('#form-1').show();


  $('select').material_select();
  //$('.datepicker').datepicker();

  $('.datepicker').pickadate({
    yearRange: 100,
    format: 'dd-mm-yyyy',
    selectMonths: true,
    selectYears: 100
  });
  $.validator.setDefaults({
    ignore: []
  });

  console.log('<? echo $cur_lang;?>');
  $('#lang-selector').val('<? echo $cur_lang;?>');
//  $('#lang-selector').find('option[value="<? echo $cur_lang;?>"]').prop('selected', true);
  $('#lang-selector').material_select();
//  $('#lang-selector').select();

  //init the form

  $("form").validate({
    submitHandler: function(form) {
      return false;
    },
    errorElement: 'div',
    errorPlacement: function(error, element) {
      var placement = $(element).data('error');
      if (placement) {
        $(placement).append(error)
      } else {
        error.insertAfter(element);
      }
    }
  });

  //listener
  $('#btn-1').on('click', function() {
    console.log("btn-1");
    if($("#form-1").valid()){
        console.log('ok');
        nextStep('1');
    }
  });
  $('#btn-2').on('click', function() {
    console.log("btn-2");
    if($("#form-2").valid()){
        console.log('ok');
        nextStep('2');
    }
  });
  $('#btn-2-p').on('click', function() {
      previousStep('2');
  });
  $('#btn-3').on('click', function() {
    console.log("btn-3");
    if($("#form-3").valid()){
        console.log('ok');
        nextStep('3');
    }
  });
  $('#btn-3-p').on('click', function() {
      previousStep('3');
  });

  $('#oral_production').change(function(e){
    var level = $('#oral_production').val();
    $('#oral_prod_level').text(levelText(level));
  });
  $('#writing_production').change(function(e){
    var level = $('#writing_production').val();
    $('#writing_prod_level').text(levelText(level));
  });
  $('#writing_comprehension').change(function(e){
    var level = $('#writing_comprehension').val();
    $('#writing_comprehension_level').text(levelText(level));
  });
  $('#oral_comprehension').change(function(e){
    var level = $('#oral_comprehension').val();
    $('#oral_comprehension_level').text(levelText(level));
  });
  $('#lang-selector').change(function(){
    var lang = $('#lang-selector :selected').val();
    $.post('/multilanguage/switch_language', {
      lang : lang
    }, function(data){
      console.log(data);
      if(data == "1"){
        location.reload(true);
      }
    });
  });

});

</script>

Youez - 2016 - github.com/yon3zu
LinuXploit