footer.php 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. </div>
  2. </div>
  3. <!-- Modal component -->
  4. <div id="editComponent" class="modal fade" role="dialog" data-id="" data-action="save_component">
  5. <div class="modal-dialog">
  6. <!-- Modal content-->
  7. <div class="modal-content">
  8. <div class="modal-header">
  9. <button type="button" class="close" data-dismiss="modal">&times;</button>
  10. <h4 class="modal-title">Edition composant</h4>
  11. </div>
  12. <div class="modal-body">
  13. <label for="label">Libellé</label>
  14. <input class="form-control" type="text" id="label"/>
  15. <label for="brand">Marque</label>
  16. <input class="form-control" type="text" id="brand"/>
  17. <label for="price">Prix</label>
  18. <input class="form-control" type="text" id="price"/>
  19. <label for="link">Lien</label>
  20. <input class="form-control" type="text" id="link"/>
  21. <label for="imageUpload">Image (fichier) (taille max : <?php echo max_upload_size(array(ALLOWED_RESOURCE_SIZE)); ?> )</label><br/>
  22. <img src="img/default_image.png" style="width:100px;height:100px;" id="imageUpload"/>
  23. </div>
  24. <div class="modal-footer">
  25. <button type="button" class="btn btn-primary" onclick="save_component();" data-dismiss="modal">Enregistrer</button>
  26. <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
  27. </div>
  28. </div>
  29. </div>
  30. </div>
  31. <!-- body -->
  32. <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
  33. <script>window.jQuery || document.write('<script src="js/vendor/jquery-1.11.2.min.js"><\/script>')</script>
  34. <script src="js/vendor/bootflat.min.js"></script>
  35. <script src="js/vendor/mustache.min.js"></script>
  36. <script src="js/vendor/dropzone.js"></script>
  37. <script src="js/vendor/codemirror.js"></script>
  38. <script src="https://d3js.org/d3.v4.min.js"></script>
  39. <?php echo Plugin::callJs(); ?>
  40. <?php
  41. echo PHP_EOL;
  42. foreach (glob('js/vendor/codemirror/*.js') as $js) {
  43. echo "\t\t<script type='text/javascript' src='$js'></script>".PHP_EOL;
  44. }
  45. ?>
  46. <script src="js/plugins.js"></script>
  47. <script src="js/vendor/jquery-ui.min.js"></script>
  48. <script src="js/main.js"></script>
  49. <div class="footer"><?php echo PROGRAM_NAME.' V'.SOURCE_VERSION.'.'.BASE_VERSION.' by <a href="http://idleman.fr">@idleman</a>'; ?></div>
  50. </body>
  51. </html>