"Fossies" - the Fresh Open Source Software Archive

Member "mrbs-1.9.2/web/js/admin.js.php" (14 Oct 2020, 555 Bytes) of package /linux/www/mrbs-1.9.2.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) PHP source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "admin.js.php": 1.7.4.1_vs_1.8.0.

    1 <?php
    2 namespace MRBS;
    3 
    4 require "../defaultincludes.inc";
    5 
    6 http_headers(array("Content-type: application/x-javascript"),
    7              60*30);  // 30 minute expiry
    8 
    9 if ($use_strict)
   10 {
   11   echo "'use strict';\n";
   12 }
   13 ?>
   14 
   15 $(document).on('page_ready', function() {
   16   
   17   var fixedColumnsOptions = {leftColumns: 1};
   18 
   19   <?php
   20   // Turn the list of rooms into a dataTable
   21   // If we're an admin, then fix the right hand column
   22   ?>
   23   if (args.isAdmin)
   24   {
   25     fixedColumnsOptions.rightColumns = 1;
   26   }
   27   
   28   makeDataTable('#rooms_table', {}, fixedColumnsOptions);
   29 });
   30