main.php 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  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. document.getElementById("fsync-datatype-error").style.display = "none";
  103. document.getElementById("fsync-authform-error").style.display = "none";
  104. document.getElementById("fsync_auth_apikey_error").style.display = "none";
  105. document.getElementById("fsync_auth_username_error").style.display = "none";
  106. document.getElementById("fsync_auth_password_error").style.display = "none";
  107. document.getElementById("fsync_auth_fiscalcode_error").style.display = "none";
  108. document.getElementById("authform_error").style.display = "none";
  109. document.getElementById("fsync_option_proformaserie_error").style.display = "none";
  110. document.getElementById("fsync_option_avizeserie_error").style.display = "none";
  111. document.getElementById("fsync_option_expfacturaserie_error").style.display = "none";
  112. document.getElementById("fsync_option_daysago_error").style.display = "none";
  113. // document.getElementById('input-date-start').value = '';
  114. //
  115. // var dateFormat = "dd.mm.yy";
  116. // var from = $('#input-date-start').datepicker({ dateFormat: 'dd.mm.yy', maxDate: '0' });
  117. // var to = $('#input-date-stop').datepicker({ dateFormat: 'dd.mm.yy', maxDate: '0' } );
  118. //
  119. // from.on( "change", function() {
  120. // to.datepicker( "option", "minDate", getDate( this ) );
  121. // });
  122. //
  123. // to.on( "change", function() {
  124. // from.datepicker( "option", "maxDate", getDate( this ) );
  125. // });
  126. //
  127. // function getDate( element ) {
  128. // var date;
  129. // try {
  130. // date = $.datepicker.parseDate( dateFormat, element.value );
  131. // } catch( error ) {
  132. // date = null;
  133. // }
  134. //
  135. // return date;
  136. // }
  137. showOrHideProformaSerie();
  138. showOrHideProformaSerie2();
  139. showOrHideAvizeSerie();
  140. showOrHideExpfacturaSerie();
  141. showOrHideAvizeSerie2();
  142. showOrHideExpfacturaSerie2();
  143. showOrHideInvoiceSerie();
  144. getPdlGestiuni();
  145. getPdls();
  146. const elem = document.getElementById('datepicker-container');
  147. const rangepicker = new DateRangePicker(elem, {
  148. autohide: true,
  149. todayHighlight :true,
  150. maxDate : 'today',
  151. format: 'dd.mm.yyyy',
  152. clearBtn: true,
  153. daysOfWeekHighlighted: [0,6],
  154. defaultViewDate: 'today'
  155. });
  156. document.getElementById('input-date-start').value = '';
  157. </script>
  158. </body>
  159. <html>