html_fsbrowser.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /* clang-format off */
  2. static const char html_fsbrowser_body_1[] PROGMEM = R"=====(
  3. <p><b>File System</b></p>
  4. <form method="POST" onsubmit="return confirm(&quot;Proceed?&quot;);">
  5. <table style="width:100%">
  6. <tbody><td><b>Filename</b></td><td><b>Size</b></td><td><b>Select</b></td></tr>
  7. )====="; // html_fsbrowser_body_1
  8. static const char html_fsbrowser_body_2[] PROGMEM = R"=====(
  9. </tbody></table>
  10. <input type='hidden' name='rt' value='fs'>
  11. <table style="width:100%">
  12. <tbody>
  13. <tr><td><button type="submit" formaction="fdel" class="bred">DELETE FILE</button></td></tr>
  14. </tbody></table>
  15. </form>
  16. <table style='width:100%'>
  17. <tr><td style='width:100%'>
  18. <br>
  19. upload/overwrite a file:
  20. <form method='POST' action='fupl' enctype='multipart/form-data'>
  21. <input type='file' name='name'>
  22. <input type='hidden' name='rt' value='/fs'>
  23. <input type='submit' class='btn' value='Upload'>
  24. </form>
  25. </td></tr>
  26. <tr><td style='width:100%'>
  27. <button onclick='location="conf";' class='bgrey'>Close</button>
  28. </td></tr>
  29. </table>
  30. <div></div>
  31. )====="; // html_fsbrowser_body_2
  32. static const char html_fsbrowser_listentry[] PROGMEM = R"=====(<tr><td><a href='fdl?f=%s'>%s</a></td><td>%d</td><td><input type='radio' id='fn' name='f' value='%s'></td></tr>)=====";
  33. static const char html_fsbrowser_listEnd[] PROGMEM = R"=====(<tr><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td></tr>)=====";
  34. static const char html_fsbrowser_stats_total[] PROGMEM = R"=====(<tr><td>Total:</td><td>%d</td><td>&nbsp;</td></tr>)=====";
  35. static const char html_fsbrowser_stats_used[] PROGMEM = R"=====(<tr><td>Used:</td><td>%d</td><td>&nbsp;</td></tr>)=====";