1. 12 Feb, 2017 1 commit
    • Carsten  Rose's avatar
      AdminstratorManual/Index.rst: Update config.qfq.ini description to new... · 7e49d63f
      Carsten Rose authored
      AdminstratorManual/Index.rst: Update config.qfq.ini description to new parameter 'class'. Remove 'DB_NAME_TEST' cause that is only interesting to PHP Unit Tests and not to enduser.
      UserManual/Index.rst: Update STORE_SYSTEM description of known variables.
      Store.php, QuickFormQuery.php: Refactor building STORE_SYSTEM. Make it more generic if new parameters are introduced. Setting up new config.qfq.ini built in defaults and form defaults at one place. Renaming of parameter names in config.qfq.ini to STORE_SYSTEM at one place implemented with an extensible array.
      AbstractBuildForm.php, BuildFormBootstrap.php, BuildFormTable.php: User constant F_CLASS  in $this->formSpec['class']
      config.qfq.example.ini: comment empty variables - the new default setting is, that empty parameter in config.qfq.ini means EMPTY, not UNDEFINED.
      7e49d63f
  2. 10 Feb, 2017 1 commit
    • Carsten  Rose's avatar
      User Input will be UTF8 normalized - Webserver needs package php5-intl or php7.0-intl. · 7eeed2a8
      Carsten Rose authored
      Add FORM_BS_LABEL_COLUMNS, FORM_BS_INPUT_COLUMNS, FORM_BS_NOTE_COLUMNS to config.qfq.ini.
      
      AdministratorManual/Index.rst: added notes to install php-intl, new config.qfq.ini parameter (see above).
      UserManual/index.rst: Fix wrong store name SYSTEM: S > Y. Add new config.qfq.ini parameter (see above).
      Store.php: new general function to translate upper case config prameter names to to camel hook FormElement names. Split function fillSystemStore(). Add function normalizeArray().
      Constants.php: add new error, renumber error codes 1056-1073. Introduce new config.qfq.ini parameter SYSTEM_FORM_BS_*
      QuickFormQuery.php: Use of new bs*Column values defined in config.qfq.inc (not hardcoded here anymore)
      7eeed2a8
  3. 09 Feb, 2017 2 commits
    • Carsten  Rose's avatar
      Create function `Database->getNativeFormElements()` to unify all needed... · 2b29d2ca
      Carsten Rose authored
      Create function `Database->getNativeFormElements()` to unify all needed actions on fresh loaded FormElements like explodeParameterInArrayElements, duplicateRetypEelements, copyAttributesToFormElements. Native FormElements will be loaded on 4 different places in 3 classes.
      
      HelperFormElement.php: Moved copyAttributesToFormElements() from QuickFormQuery to HelperFormElement.
      AbstractBuildForm.php, BuildFormBootstrap.php, QuickFormQuery.php : Use of Database->getNativeFormElements()
      Database.php: HelperFormElement::copyAttributesToFormElements()
      2b29d2ca
    • Carsten  Rose's avatar
      FormAction.phhp, Store.php, AbstractBuildForm.php, Constants.php,... · 7fd36792
      Carsten Rose authored
      FormAction.phhp, Store.php, AbstractBuildForm.php, Constants.php, QuickForemQuery.php, Index.rst: Added STORE_BEFORE, #3146
      7fd36792
  4. 07 Feb, 2017 2 commits
  5. 06 Feb, 2017 1 commit
  6. 31 Jan, 2017 2 commits
  7. 29 Jan, 2017 1 commit
  8. 27 Jan, 2017 1 commit
  9. 17 Jan, 2017 1 commit
  10. 14 Jan, 2017 2 commits
  11. 13 Jan, 2017 1 commit
    • Carsten  Rose's avatar
      FormEditor: 1) design update - new default background color: grey. 2) per form... · fb568f98
      Carsten Rose authored
      FormEditor: 1) design update - new default background color: grey. 2) per form configureable background colors, 3) Optional right align of all form element labels.
      BuildFormBootstrap.php: added new class name 'qfq-label' to form labels - needed to assign 'qfq-form-right' class. Changed wrapping of formelements from 'col-md-8' (wrong) to 'col-md-12'.
      QuickFormQuery.php: Set default for new F_CLASS_PILL & F_CLASS_BODY.
      formEditor.sql: New default background color for formElements is blue.
      qfq-bs.css.less: add classes qfq-form-pill, qfq-form-body, form-group (center), qfq-color-*, qfq-form-right
      fb568f98
  12. 18 Dec, 2016 1 commit
  13. 17 Dec, 2016 2 commits
    • Carsten  Rose's avatar
      Update function headers. · b331c952
      Carsten Rose authored
      b331c952
    • Carsten  Rose's avatar
      #2067 · de377b07
      Carsten Rose authored
      CODING.md: update docs for situation 'new record already saved'.
      FillStoreForm.php: In case of form load with r=0, the submitted form element names are does not contain the effective record id - workaround implemented.
      Session.php: refactored clear(), create unsetItem().
      Sip.php: new buildParamStringFromArray(), updateSipToSession().
      Store.php: For r=0 SIPs always add a uniqe parameter.
      AbstractBuildForm.php: modified message for subrecords on new record.
      QuickFormQuery.php: create unique SIP on form load.
      de377b07
  14. 29 Nov, 2016 2 commits
  15. 20 Oct, 2016 1 commit
  16. 19 Oct, 2016 1 commit
    • Carsten  Rose's avatar
      Documentation/UsersManual/indext.rst: update Formelemnet.type=sendmail and QFQ column '_sendmail' · 34229364
      Carsten Rose authored
      QuickFormQuery.php, FormAction.php: implemented FormElement 'sendmail'
      Report.php: Update column 'sendmail'
      Sendmail.php: Update class to send mailand to log them in table mailLog.
      AbstractBuildForm.php: refacxtured columnname 'value' to be used via constatn FE_VALUE.
      formEditor.sql: renamed FE.typ 'sendmail' to camel hook 'sendMail'. Changed FormeElement.mode from 'select' to 'radio'. Added empty table 'mailLog'.
      34229364
  17. 05 Oct, 2016 1 commit
  18. 23 Aug, 2016 1 commit
    • Carsten  Rose's avatar
      Upload: · 729d5963
      Carsten Rose authored
      1) '{{id:R0}}' now gives the correct record id, even on records which are 'new' (id is 0 at time of save) - '{{id:R0}}' can be used 'fileDestination' to build pathFilename.
      2) Fixed problem with non existing uploads: in the past a sip has been saved instead of an empty string in the current record.
      3) Fixed problem with a) choosing an upload file, b) deleting them immediately and c) pressing 'save'. Non existing temporary uploaded file has been tried to move to final destination.
      
      Documentation/UsersManual: FormElement 'File' update
      AbstractBuildForm.php: Extend upload structure with EXISTING_PATH_FILE_NAME.
      QuickFormQuery.php: 'late save' of uploads implemented.
      Save.php: upload columns are not saved during the first save - instead they are saved later.
      729d5963
  19. 04 Jun, 2016 1 commit
  20. 01 Jun, 2016 1 commit
    • Carsten  Rose's avatar
      Implemented _paged, _Paged and _link: delete. · c239839c
      Carsten Rose authored
      delete.php: extended to support returning JSON, HTML redirect (Location) or HTML error messages.
      Report.php: new adjustDeleteParameter()
      Delete.php: new.
      QuickFormQuery.php: delete() extended to support returning JSON and HTML
      c239839c
  21. 31 May, 2016 1 commit
  22. 30 May, 2016 1 commit
  23. 29 May, 2016 2 commits
    • Carsten  Rose's avatar
      AbstractBuildForm.php, BuildFormBootstrap.php, BuildFormTable.php,... · d1f1fec3
      Carsten Rose authored
      AbstractBuildForm.php, BuildFormBootstrap.php, BuildFormTable.php, Constants.php, QuickFormQuery.php, Save.php: Replace string 'tableName' through constant F_TABLE_NAME.
      d1f1fec3
    • Carsten  Rose's avatar
      Fixed 'Unknown SIP after login/logout' · 75c7f039
      Carsten Rose authored
      Report.php, Store.php, QuickFormQuery.php: configuration option 'SESSION_NAME' removed and hard coded to 'qfq'.
      Session.php, Sip.php: function checkFeUserUid() moved from Sip to Session. Will be called by using 'Session'. SIP's now stored one level deeper in $_SESSION['qfq'][...]. This makes it easier to destroy the SIP cachae in case of login/logout. Destroying the whole $_SESSION var is not a good idea.
      75c7f039
  24. 27 May, 2016 1 commit
  25. 13 May, 2016 1 commit
  26. 11 May, 2016 1 commit
  27. 04 May, 2016 1 commit
  28. 01 May, 2016 1 commit
  29. 29 Apr, 2016 1 commit
    • Carsten  Rose's avatar
      Bootstrap grip columns are configurable. A default on the form and, if... · 0c9f96b5
      Carsten Rose authored
      Bootstrap grip columns are configurable. A default on the form and, if necessary, per formelement. The default is now changed from 2,6,4 to 2,9,1
      UsersManual/index.rst: updated to the new behaviour.
      Support.php: setIfNotSet() has a new third parameter.
      AbstractBuildForm.php, BuildFormBootstrap.php, BuildFormPlain.php, BuildFormPlain.php, QuickFormQuery.php: New abstract function fillWrapLabelInputNote().
      0c9f96b5
  30. 27 Apr, 2016 1 commit
    • Carsten  Rose's avatar
      Upload: first version which really uploads file, saving to destination. · 9c24d2d3
      Carsten Rose authored
      Sanitize.php: new sanitize class ALLBUT. New function safeFilename().
      Support.php: New function mkDirParent().
      Store.php: new system config variable SYSTEM_SITE_PATH.
      QuickFormQuery.php: fills STORE_RECORD before saving the current record.
      Save.php: moving the file to the final destination.
      9c24d2d3
  31. 18 Apr, 2016 1 commit
    • Carsten  Rose's avatar
      ErrorMessages in exception: generalized · 2d0d6fc3
      Carsten Rose authored
      AbstractException.php: If exist, print Form And FormElement names.
      HelperFormElement.php, Logger.php, FillStoreForm.php, AbstractBuildForm.php: fomatting form element name.
      Support.php: add setIfNotSet()
      2d0d6fc3
  32. 14 Apr, 2016 1 commit
    • Carsten  Rose's avatar
      After creating a new record and still open form: a new sip is created and... · 16408b47
      Carsten Rose authored
      After creating a new record and still open form: a new sip is created and transfered to client. Attention: 'new + save + modify + save again' still create two records (error).
      AbstractBuildForm.php: buildNewSip() renamed to buildHiddenSip(). Call of buildHiddenSip() moved from tail() to process(). buildHiddenSip() returns JSON code too.
      BuildFormBootstrap.php, BuildFromPlain.php, BuildFormTable.php : removed call buildNewSip()
      QuickFormQuery.php: After save, reload current record and create new sip
      Save.php: process() returns id of affected record.
      16408b47
  33. 13 Apr, 2016 1 commit
    • Carsten  Rose's avatar
      Preparation to update Form after saving values. · 092e6deb
      Carsten Rose authored
      save.php: return JSON with updated values of all fields.
      AbstractBuildForm.php: updated to deliver values of all form elements
      Constants.php: constants to distinguish all or specific values of FEs. QUERY_TYPE_*
      Database.php: doSQL now returns affectedrows or lastinsertid in case of udpate/inset. Typos fixed.
      QuickFormQuery.php: deliver Values as JSON after save.
      Save.php: return lastinsertid or affectedrows.
      092e6deb