main.php 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. <html>
  2. <head>
  3. <title><?php echo $title;?></title>
  4. <link rel="stylesheet" href="View/css/main.css">
  5. <link rel="stylesheet" href="View/css/form.css">
  6. <link rel="stylesheet" href="View/vanillajs-datepicker/dist/css/datepicker.min.css">
  7. <link rel="stylesheet" href="View/vanillajs-datepicker/dist/css/datepicker-bs4.min.css">
  8. </head>
  9. <body>
  10. <div class="facturis-online-sync">
  11. <h1><?php echo $title;?></h1>
  12. <h2><?php echo $description; ?></h2>
  13. <div class="facturis-online-sync-container">
  14. <?php if($show_tutorial): ?>
  15. <div class="alert info">
  16. <span class="closebtn" onclick="this.parentElement.style.display = 'none';">&times;</span>
  17. <div style="text-align: center; font-size: 16px; margin-bottom: 22px;margin-top: 8px;"><?php echo $tutorial_title; ?></div>
  18. <ol><div style="margin-bottom: 17px;"><?php echo $tutorial_p; ?>:</div>
  19. <li><?php echo $tutorial_1; ?></li>
  20. <li><?php echo $tutorial_2; ?></li>
  21. <li><?php echo $tutorial_3; ?></li>
  22. <li><?php echo $tutorial_4; ?></li>
  23. </ol>
  24. </div>
  25. <?php endif; ?>
  26. <div class="alert success hide-element" id="alert-sync">
  27. <span class="closebtn" onclick="this.parentElement.style.display = 'none';">&times;</span>
  28. <?php echo $sync_please_wait; ?> <img class="spinner" src="View/img/loader.gif"/>
  29. </div>
  30. <?php if(isset($success) && !empty($success)): ?>
  31. <div class="alert success alert-box">
  32. <span class="closebtn" onclick="this.parentElement.style.display = 'none';">&times;</span>
  33. <?php echo $success;?>
  34. </div>
  35. <?php endif; ?>
  36. <?php if(isset($error) && !empty($error)): ?>
  37. <div class="alert alert-box">
  38. <span class="closebtn" onclick="this.parentElement.style.display = 'none';">&times;</span>
  39. <?php echo $error;?>
  40. </div>
  41. <?php endif; ?>
  42. <!--
  43. <div class="alert">
  44. <span class="closebtn" onclick="this.parentElement.style.display = 'none';">&times;</span>
  45. <strong>Danger!</strong> Indicates a dangerous or potentially negative action.
  46. </div>
  47. <div class="alert success">
  48. <span class="closebtn" onclick="this.parentElement.style.display = 'none';">&times;</span>
  49. <strong>Success!</strong> Indicates a successful or positive action.
  50. </div>
  51. <div class="alert info">
  52. <span class="closebtn" onclick="this.parentElement.style.display = 'none';">&times;</span>
  53. <strong>Info!</strong> Indicates a neutral informative change or action.
  54. </div>
  55. <div class="alert warning">
  56. <span class="closebtn" onclick="this.parentElement.style.display = 'none';">&times;</span>
  57. <strong>Warning!</strong> Indicates a warning that might need attention.
  58. </div> -->
  59. <div class="facturissynctab-wrap">
  60. <input type="radio" id="facturissynctab1" name="facturissynctabGroup1" class="facturissynctab" checked>
  61. <label for="facturissynctab1"><?php echo $tab_name_1;?></label>
  62. <input type="radio" id="facturissynctab2" name="facturissynctabGroup1" class="facturissynctab">
  63. <label for="facturissynctab2"><?php echo $tab_name_2;?></label>
  64. <input type="radio" id="facturissynctab3" name="facturissynctabGroup1" class="facturissynctab">
  65. <label for="facturissynctab3"><?php echo $tab_name_3;?></label>
  66. <input type="radio" id="facturissynctab4" name="facturissynctabGroup1" class="facturissynctab">
  67. <label for="facturissynctab4"><?php echo $tab_name_4;?></label>
  68. <input type="radio" id="facturissynctab5" name="facturissynctabGroup1" class="facturissynctab">
  69. <label for="facturissynctab5"><?php echo $tab_name_5;?></label>
  70. <div class="facturissynctab__content">
  71. <?php include_once('tab1.php')?>
  72. </div>
  73. <div class="facturissynctab__content">
  74. <?php include_once('tab2.php')?>
  75. </div>
  76. <div class="facturissynctab__content">
  77. <?php include_once('tab3.php')?>
  78. </div>
  79. <div class="facturissynctab__content">
  80. <?php include_once('tab4.php')?>
  81. </div>
  82. <div class="facturissynctab__content">
  83. <?php include_once('tab5.php')?>
  84. </div>
  85. </div>
  86. </div>
  87. <p style="text-align: center;"><a href="<?php echo $version_link; ?>" target="_blank" ><?php echo $version_text; ?>: <?php echo $version_number; ?></a></p>
  88. <div style="text-align:center">
  89. <small>
  90. <a href="javascript: void(0)" style="color:#528ecc !important" onclick="checkLatestVersion();" ><?php echo $check_latest_version; ?></a>
  91. </small>
  92. </div>
  93. <p style="text-align: center;" id="check_latest_version_result"></p>
  94. </div>
  95. <script type="text/javascript" src="View/js/tab1.js"></script>
  96. <script type="text/javascript" src="View/js/tab2.js"></script>
  97. <script type="text/javascript" src="View/js/tab3.js"></script>
  98. <script type="text/javascript" src="View/js/tab4.js"></script>
  99. <script type="text/javascript" src="View/js/tab5.js"></script>
  100. <script type="text/javascript" src="View/vanillajs-datepicker/dist/js/datepicker-full.min.js"></script>
  101. <script>
  102. getPdlGestiuni();
  103. showOrHideProformaSerie();
  104. const elem = document.getElementById('datepicker-container');
  105. const rangepicker = new DateRangePicker(elem, {
  106. autohide: true,
  107. todayHighlight :true,
  108. maxDate : 'today',
  109. format: 'dd.mm.yyyy',
  110. clearBtn: true,
  111. daysOfWeekHighlighted: [0,6],
  112. defaultViewDate: 'today'
  113. });
  114. document.getElementById('input-date-start').value = '';
  115. </script>
  116. </body>
  117. <html>