<?php

require_once "config.php";

include $_SERVER['DOCUMENT_ROOT'].$GLOBALS['ximlibwebbasepath'].'/ximeo/php/eoLibrariesManager.php';

class eoLibrariesManagerQual  extends eoLibrariesManager{



  public function __construct($basePath = ['rootximlib' => '', 'app' => ''])
  {
      parent::__construct($basePath);


      $this->add_library('chartjs_2.9.4', 'chartjs',
            $this->rootBasePath .'/thirdparty/package/chartjs-2.9.4',
            ['chart.js/Chart.min.css'],
            ['chart.js/Chart.bundle.min.js'],
            []);

      $this->add_library('c_tab_1.2', 'c_tab',
          $this->rootBasePath .'/ximeo/package/C_Tab-1.2',
            ['css/C_Tab.css'],
            ['js/C_Tab.js'],
            []);

      $this->add_library('checkbox_2.0.2', 'checkbox',
          $this->rootBasePath .'/thirdparty/package/checkbox-2.0.2',
            ['searchableOptionList.css'],
            ['sol.js'],
            []);

      $this->add_library('font-awesome_6.5.2', 'font-awesome',
          $this->rootBasePath .'/thirdparty/package/font-awesome-6.5.2',
            ['css/all.min.css'],
            [],
            []);



      $this->add_library('eoqualv1', 'eoqual',
          '',
          [$this->appBasePath .'/eoQUAL/SubFW/css/eoqual.css'],
          [ $this->appBasePath .'/eoQUAL/SubFW/js/eoqual.js', 
            $this->appBasePath .'/eoQUAL/SubFW/js/statistic_color.js' ],
          []);


      $this->add_library('carouselv1', 'carousel',
          '',
          [$this->appBasePath .'../eoWORKLIST/SubFW/css/carousel.css'],
          [],
          []);

      $this->add_library('menu_contextv1', 'menu_context',
          '',
          [$this->appBasePath .'/eoQUAL/SubFW/css/menu-context.standalone.css'],
          [$this->appBasePath .'/eoQUAL/SubFW/js/menu-context.js'],
          []);


      $this->add_library('misc_eoqualjsv1', 'misc_eoqualjs',
        '',
        [],
        [$this->appBasePath .'/eoQUAL/SubFW/js/C_Document.js',
         $this->appBasePath .'/eoQUAL/SubFW/js/C_File.js',
         $this->appBasePath .'/eoQUAL/SubFW/js/DocumentViewer.js',
         $this->appBasePath .'/eoQUAL/SubFW/js/C_CheckboxMenu.js',
         $this->appBasePath .'/eoQUAL/SubFW/js/i18n.js',
         $this->appBasePath .'/eoQUAL/SubFW/js/msg_dlg.js',
         $this->appBasePath .'/eoQUAL/SubFW/js/waiting.js',
         $this->appBasePath .'/eoQUAL/SubFW/js/menu-initialize.js',
         $this->appBasePath .'/eoQUAL/SubFW/js/InitMainPage.js',
         $this->appBasePath .'/eoQUAL/SubFW/js/page_dashboard.js',
         $this->appBasePath .'/eoQUAL/SubFW/js/page_legal_document.js',
         $this->appBasePath .'/eoQUAL/SubFW/js/page_legal_document_working.js',
         $this->appBasePath .'/eoQUAL/SubFW/js/page_institutional_document.js',
         $this->appBasePath .'/eoQUAL/SubFW/js/page_procedure.js',
         $this->appBasePath .'/eoQUAL/SubFW/js/page_procedure_working.js',
         $this->appBasePath .'/eoQUAL/SubFW/js/page_exams_list.js',
         $this->appBasePath .'/eoQUAL/SubFW/js/page_exams_list_working.js',
         $this->appBasePath .'/eoQUAL/SubFW/js/page_staff.js',
         $this->appBasePath .'/eoQUAL/SubFW/js/page_device.js',
         $this->appBasePath .'/eoQUAL/SubFW/js/page_dosimetry.js',
         $this->appBasePath .'/eoQUAL/SubFW/js/page_incident.js',
         $this->appBasePath .'/eoQUAL/SubFW/js/page_audit.js',
         $this->appBasePath .'/eoQUAL/SubFW/js/page_task.js',
         $this->appBasePath .'/eoQUAL/SubFW/js/page_task_working.js',
         $this->appBasePath .'/eoQUAL/SubFW/js/page_survey.js',
         $this->appBasePath .'/eoQUAL/SubFW/js/page_all_documents.js',
         $this->appBasePath .'/eoQUAL/SubFW/js/page_settings_audit_standards.js',
         $this->appBasePath .'/eoQUAL/SubFW/js/page_fast_incident_reporting.js',
         $this->appBasePath .'/eoQUAL/SubFW/js/page_settings.js',
         $this->appBasePath .'/eoQUAL/SubFW/js/page_settings_staff_member.js',
         $this->appBasePath .'/eoQUAL/SubFW/js/page_settings_job_role.js',
         $this->appBasePath .'/eoQUAL/SubFW/js/page_settings_login_role.js',
         $this->appBasePath .'/eoQUAL/SubFW/js/page_settings_institution.js',
         $this->appBasePath .'/eoQUAL/SubFW/js/page_settings_tag.js',
         $this->appBasePath .'/eoQUAL/SubFW/js/page_settings_warning.js',
         $this->appBasePath .'/eoQUAL/SubFW/js/page_settings_exam_ident.js',
         $this->appBasePath .'/eoQUAL/SubFW/js/page_settings_exam_link.js',
         $this->appBasePath .'/eoQUAL/SubFW/js/page_settings_document.js',
         $this->appBasePath .'/eoQUAL/SubFW/js/dlg_authorizedaccess.js',
         $this->appBasePath .'/eoQUAL/SubFW/js/photo_album.js',
         $this->appBasePath .'/eoQUAL/SubFW/js/equipment_listing.js',
         $this->appBasePath .'/eoQUAL/SubFW/js/bstreeview.js',
         $this->appBasePath .'/eoQUAL/SubFW/js/C_TreeView.js'],
        []);

  }

  public function init_page()
  {
    $libs_to_add = [
     'c_datatable'      => "c_datatable_1.3"
     ,'c_tab'           => "c_tab_1.2"
     ,'eoqual'          => "eoqualv1"
     ,'menu_context'    => "menu_contextv1"
     ,'misc_eoqualjs'   => "misc_eoqualjsv1"
     ,'chartjs'         => "chartjs_2.9.4"
     ,'checkbox'        => "checkbox_2.0.2"
     ,'font-awesome'    => 'font-awesome_6.5.2' 
     ,'qrcodejs'        => 'qrcodejs-1.0' 
     // ,'pdfviewerqual2'  => 'pdfviewerqualv2'
    ];

    $this->default_libraries= array_merge($this->default_libraries, $libs_to_add);
  }

}

?>