QZ Forms

XML Templates

Every page requests starts with an XML template, which is a file in the directory specified in the configuration as TEMPLATE_PATH.

QZ Forms will add forms and menus to the div elements based on their id. (rows 13 - 17 below).

On line 4 in the example, the HTML editor tinymce is added by linking to their content delivery network.

template example:

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <script src='https://cdn.tinymce.com/4/tinymce.min.js'></script>
  5. <meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
  6. <meta name="viewport" content="initial-scale = 1.0, maximum-scale = 1.0, user-scalable = no, width = device-width" />
  7. <title> QZ Forms </title>
  8. </head>
  9. <body onload='form_refresh_init(30*1000);'>
  10. <h1> QZ Forms ✓ </h1>
  11. <div id='qzmenu'></div>
  12. <div id='qzsubmenu'></div>
  13. <div id='helpful_text'></div>
  14. <div id='pagemenu'></div>
  15. <div id='qz'>
  16. </div>
  17. </body>
  18. </html>