1. 07 Oct, 2017 1 commit
  2. 04 Oct, 2017 1 commit
  3. 09 Sep, 2017 3 commits
  4. 28 Aug, 2017 1 commit
  5. 26 Aug, 2017 1 commit
  6. 24 Aug, 2017 1 commit
  7. 03 Aug, 2017 1 commit
  8. 12 Jun, 2017 1 commit
  9. 07 Jun, 2017 1 commit
  10. 04 Jun, 2017 2 commits
  11. 25 May, 2017 1 commit
  12. 12 May, 2017 1 commit
    • Carsten  Rose's avatar
      Fixed unit test: failed after implementing 'DB auto update' · 5093db76
      Carsten Rose authored
      Problem: the 'unit test'-customized FormEditor have been overwritten by the auto update.
      TestFormEditor.sql: deleted
      TestForm.sql: new SQL file to create an additional form.
       BuildFormPlainTest.php: update unit tests to latest FormElement schema. Delete old FormEditor, to be sure to get the latest schema. Play 'TestForm.sql'.
      5093db76
  13. 09 May, 2017 1 commit
  14. 23 Apr, 2017 1 commit
    • Carsten  Rose's avatar
      Implement 'encode=specialchar' - new option per formElement. · 434cac36
      Carsten Rose authored
      Play: ALTER TABLE  `FormElement` ADD  `encode` ENUM(  'none',  'specialchar' ) NOT NULL DEFAULT  'specialchar' AFTER  `subrecordOption` ;
      Play: formEditor.sql
      
      Attention: FEs with text=editor needs actions - the default of 'specialchar' prohibits saving of HTML tags.
      
      FillStoreForm.php: Submitted values will be specialchars() before copying to STORE_FORM.
      AbstractBuildForm.php: Counterpart of FillStoreForm.php - will htmlspecialchars_decode() values read from database. Replace 'checkType' and 'checkPattern' with CONSTANTS.
      formEditor.sql: Added new column in FormElement. Add new FormElement 'encode' in FormElement-Editor. Add column 'encode' to all FormElement records.
      434cac36
  15. 25 Mar, 2017 1 commit
  16. 16 Mar, 2017 1 commit
  17. 07 Mar, 2017 1 commit
  18. 05 Mar, 2017 1 commit
    • Carsten  Rose's avatar
      #3180=#2081 dynamicUpdate, rearrange 'input hidden' elements from checkboxes,... · 9a267b44
      Carsten Rose authored
      #3180=#2081 dynamicUpdate, rearrange 'input hidden' elements from checkboxes, radios to top of form.
      
      CODING.md: add some doc about STORE_ADDITIONAL_FORM_ELEMENTS.
      load.php (#2081): rearrange delivered JSON to fullfill client API.
      AbstractBuildForm.php: rename getJsonElementUpdate() to getFormElemenForJson(). Extend getFormElementForJson() to support changes for label and note. Fill store STORE_ADDITIONAL_FORM_ELEMENTS with 'hidden input' elments.
      QuickFormQuery.php: implement Client JOSN API update.
      9a267b44
  19. 01 Mar, 2017 1 commit
  20. 20 Feb, 2017 1 commit
  21. 16 Feb, 2017 1 commit
  22. 06 Feb, 2017 1 commit
  23. 05 Jun, 2016 2 commits
  24. 04 Jun, 2016 1 commit
  25. 31 May, 2016 1 commit
  26. 30 May, 2016 1 commit
  27. 13 May, 2016 1 commit
  28. 04 May, 2016 1 commit
  29. 02 May, 2016 1 commit
  30. 28 Apr, 2016 1 commit
  31. 01 Apr, 2016 1 commit
  32. 31 Mar, 2016 1 commit
  33. 24 Mar, 2016 2 commits
    • Carsten  Rose's avatar
      Refactored sanitize functionality: Form save, form update and client are now... · 0f2d60c4
      Carsten Rose authored
      Refactored sanitize functionality: Form save, form update and client are now handled with the same regexp. Form save and update use the same code to sanatize. SANITIZE names are now equal in FormEditor and in Store. New class SANITIZE_ALL_MIN_MAX_DATE.
      
      OnArray.php: moved inputCheckPatternArray() to Sanatize.
      Sanatize.php: complete rewrote of sanitize(). Everything is regexp based now.
      FillStore.php: validateValue() removed, use of Sanitize::sanitize instead.
      Store.php: adjusted change of Sanitize:sanitize signature.
      AbstractBuildForm.php: defined class global variable $inputCheckPattern and initialize them during construct(). Variables, submitted by POST, are now correctly sanatized according their FormElement definition. getInputCheckPattern() adjusted to new/changed SANITIZE definitions.
      Constants.php: added SANTIZE_ALLOW_: MIN_MAX, MIN_MAX_DATE, EMAIL, PATTERN, SANITIZE_EXCEPTION, SANITIZE_EMPTY_STRING
      Save.php: use of Sanitize::sanitize instead of validateValue()
      formEditor.sql: order of FormElement.checkType changed to 'most used first'.
      0f2d60c4
    • Carsten  Rose's avatar
      Dynamic Update implemented · b31fb9eb
      Carsten Rose authored
      load.php: implemented
      FillStoreForm.php: implemented
      Store.php: phpunit test complains about 'store already filled'. Option set to explicitly allow rewrite.
      AbstractBuildForm.php: Added new mode 'FORM_UPDATE'. Elements additionaly create json code. 'data-load' attribute will be added to form elements, if 'dynamicUpdate=yes'
        elements(): added call by reference parameter $json, to return the generated json code.
      BodyTextParse.php: added 'r =' as a new 'start new line' indicator. This was necessary at least for phpunit tests to run.
      BuildFormBootstrap.php: buildPill() passes json data structure.
      BuildFormPlain, BuildFormTable.php: doSubrecords()  passes json data structure.
      Constants.php: New FORM_UPDATE, SQL_FORM_ELEMENT_SIMPLE_ALL_CONTAINER, ERROR_FORM_NOT_FOUND, API_FORM_UPDATE
      Evaluate.php: Exception text enhanced.
      QuickFormQuery.php: FillStoreForm.php included. Automatic detection of FORM_LOAD and FORM_SAVE removed. Instead the mode are given explicitly. mode=FORM_UPDATE implemented.
      Save.php: added TODOs in code.
      formEditor.sql: reformat code. Add 'FormElement.dynamicUpdate'. 'FormElemente.checkType': 'number' replaced by 'digit'. Added 'alnumx', 'digit'. Form 'form', 'formElement': output of 'title' replaced by 'name' - outputting 'title' confuses the user (tries to show records which do fit to the formEditor) and might produce recursion in evaluation (did not understand why, but happens). FormEditor: implemented 'dynamicUpdate', escpecially the 'type' select list will be adjusted dynamically.
      b31fb9eb
  34. 09 Mar, 2016 1 commit
    • Carsten  Rose's avatar
      Store: check for missing sanitize arg extented to null · ea3d6806
      Carsten Rose authored
      Evaluate: parse() and evaluate() will return the last used Store
      QuickFormQuery: getFormName() extended to interpret form = {{form}} correctly
      Makefile: T# Extension ZIP - config.ini excluded, Documentation included
      README.md: adjusted to renamed CSS and JS files: qfq-bs.css, qfq-nin.js
      ea3d6806
  35. 24 Feb, 2016 1 commit
    • Carsten  Rose's avatar
      OnArray: Add htmlEntititesOnArray() · 8d94dd02
      Carsten Rose authored
      Support: moved wrapTag() from to Support. Add appendTooltip()
      AbstractBuildForm, BuildFormBootstrap BuildFormPlain, BuildFormTable: implemented showDebugInfo. Moved wrapTag() to Support. Fixed Typo in word buildNewSip.
      8d94dd02