- 12 Feb, 2017 1 commit
-
-
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.
-
- 10 Feb, 2017 1 commit
-
-
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)
-
- 09 Feb, 2017 2 commits
-
-
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()
-
Carsten Rose authored
FormAction.phhp, Store.php, AbstractBuildForm.php, Constants.php, QuickForemQuery.php, Index.rst: Added STORE_BEFORE, #3146
-
- 07 Feb, 2017 2 commits
-
-
Carsten Rose authored
AbstractBuildForm.php, QuickFormQuery.php: Added specific validator.js error text definition to remaining HTML form elements. Not sure if all of them will benefit of it.
-
Carsten Rose authored
Added validator.js attributes 'data-pattern-error', 'data-rquired-error', 'data-match-error', 'data-error' to be specified in config.qfq.ini, Form or FormElement. Detailed setting will overwrite generic setting. If none is specified, take validator.js defaults. HelperFormElement.php, AbstractBuildForm.php, Constants.php, QuickFormQuery.php.
-
- 06 Feb, 2017 1 commit
-
-
Carsten Rose authored
AbstractBuildForm.php: added new 'data-compare-element' for buildInput(). QuickFormQuery.php: Adjsut native FormElements in case some of them are 'retype=1'
-
- 31 Jan, 2017 2 commits
-
-
Carsten Rose authored
QuickFormQuery.php: Suppress renderinf of form title during a 'delete' call. No one will see and required parameters are not supplied.
-
Carsten Rose authored
AbstractBuildForm.php, BuildFormBootstrap.php, BuildFormTable.php, Constants.php, QuickFormQuery.php, Index.rst: Implemented Paramater 'extraDeleteForm' for 'forms' and 'subrecords'. Doku update.
-
- 29 Jan, 2017 1 commit
-
-
Carsten Rose authored
QuickFormQuery.php: for modeForm='Form Delete' the 'required param' are not respected - this makes sense, cause these parameters typically filled in newly created records.
-
- 27 Jan, 2017 1 commit
-
-
Carsten Rose authored
-
- 17 Jan, 2017 1 commit
-
-
Carsten Rose authored
-
- 14 Jan, 2017 2 commits
-
-
Carsten Rose authored
QuickFormQuery.php, FormAction.php: '#2931 / afterSave Hauptrecord xId nicht direkt verfügbar' - load master record again, after 'action'-elements has been processed.
-
Carsten Rose authored
-
- 13 Jan, 2017 1 commit
-
-
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
-
- 18 Dec, 2016 1 commit
-
-
Carsten Rose authored
delete.php, Delete.php: reformat Link.php: typo
-
- 17 Dec, 2016 2 commits
-
-
Carsten Rose authored
-
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.
-
- 29 Nov, 2016 2 commits
-
-
Carsten Rose authored
-
Carsten Rose authored
-
- 20 Oct, 2016 1 commit
-
-
Carsten Rose authored
AbstractBuildForm.php, BuildFormBootstrap.php: Implemented alternative button at the bottom of the form.
-
- 19 Oct, 2016 1 commit
-
-
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'.
-
- 05 Oct, 2016 1 commit
-
-
Carsten Rose authored
-
- 23 Aug, 2016 1 commit
-
-
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.
-
- 04 Jun, 2016 1 commit
-
-
Carsten Rose authored
QuickFormQuery.php: missing 'r' in forms forces no longer an exception, instead r=0 is the default. This is usefull in report for 'new' links to forms (it's not necessary to specify r=0 in '_pagen') as well as on record definition `form=person`: `r=0` is not needed anymore.
-
- 01 Jun, 2016 1 commit
-
-
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
-
- 31 May, 2016 1 commit
-
-
Carsten Rose authored
FormAction.php: initialize action formelements. ExpectRecords might specified as a list. After an insert, set slaveId to latest id. Process sqlDelete if given. Store.php: STORE_VAR and STORE_EMPTY missed to configure for Sanatize. QuickFormQuery.php: Initialized after the form is loaded.
-
- 30 May, 2016 1 commit
-
-
Carsten Rose authored
-
- 29 May, 2016 2 commits
-
-
Carsten Rose authored
AbstractBuildForm.php, BuildFormBootstrap.php, BuildFormTable.php, Constants.php, QuickFormQuery.php, Save.php: Replace string 'tableName' through constant F_TABLE_NAME.
-
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.
-
- 27 May, 2016 1 commit
-
-
Carsten Rose authored
Constants.php,QuickFormQuery.php: Introduced new variables, Bodytext: no var 'form=' or empty var 'form' are now allowed. If given, no form will be load -nothing happens.
-
- 13 May, 2016 1 commit
-
-
Carsten Rose authored
Report.php: set default value for $t3data["uid"]. $bodyText now given to process() instead of the constructor - makes testing easier. QuickFormQuery.php: applied change of 'bodytext' from Report.php.
-
- 11 May, 2016 1 commit
-
-
Carsten Rose authored
Implemented form.requiredParameter - comma sepated list of SIP parameter. If at least one of them is missing in the SIP store, the form won't be loaded. Sip.php: set param 'r'=0 if missing. QuickFormQuery.php: if SIP param 'r' or any of defined in form.requiredParameter is missing, throws an exception.
-
- 04 May, 2016 1 commit
-
-
Carsten Rose authored
-
- 01 May, 2016 1 commit
-
-
Carsten Rose authored
index.rst: updated - '&' is the new symbol to indicate constants. QuickFormQuery.php: changed the defaults for Bootstrap forms again - look nicer on UZH CD Layout. *.sql: Colorized subrecords for FormElements, ord will automatically computed, work on example forms (not finished)
-
- 29 Apr, 2016 1 commit
-
-
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().
-
- 27 Apr, 2016 1 commit
-
-
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.
-
- 18 Apr, 2016 1 commit
-
-
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()
-
- 14 Apr, 2016 1 commit
-
-
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.
-
- 13 Apr, 2016 1 commit
-
-
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.
-