Commit Graph

82 Commits (9b8dd156bef22764aa1ba4f602b9cc122795c23f)

Author SHA1 Message Date
Isaac Connor 3a20ab64c7 Turn dropdowns into chosen multiple-selects 2023-04-02 16:27:14 -04:00
Isaac Connor da87187f1d Use explode instead of split 2023-03-22 08:06:02 -04:00
Isaac Connor e60586feee Merge branch 'master' of github.com:ZoneMinder/zoneminder 2023-03-21 09:54:40 -04:00
Isaac Connor 128b3d884a Spacing 2023-03-21 09:54:37 -04:00
Isaac Connor 8bef309a86 Values in terms are comma separated, so split the val for Monitor selection 2023-03-16 08:43:01 -04:00
Isaac Connor 06f750c42b add in is_isnot_opTypes and booleanValues and use them in simple_widget 2023-03-05 13:26:08 -05:00
Isaac Connor a7af29c0c4 Add IN operator 2023-02-25 13:00:38 -05:00
Isaac Connor 71265a8271 Define serversr, stats for simple widget 2023-02-15 15:00:13 -05:00
Isaac Connor 29b688a2a5 Fix storageareas not being defined. 2023-02-14 17:05:20 -05:00
Isaac Connor 1658164ee1 explode the val in term for Monitor rule type. It will be a comma separated value, not an array 2023-01-25 11:50:16 -05:00
Isaac Connor 5e71a8fb72 Add operator filtering to has_term 2023-01-21 18:41:11 -05:00
Isaac Connor 9789e02f2a create archiveTypes static function. Use it. Add has_term function 2023-01-21 18:40:44 -05:00
Isaac Connor 1ee526444b populate monitor_names array to we can output the dropdown 2023-01-10 12:07:35 -05:00
Isaac Connor f466e5b833 Use global Servers array instead of loading from db 2023-01-03 13:16:30 -05:00
Isaac Connor 63f1dbf8fd Put the filter control commands into the POST data instead of get url. Also fixes auth relay 2022-12-27 14:34:20 -05:00
Isaac Connor fd3640aca3 Fix op always being = 2022-12-13 16:44:02 -05:00
Isaac Connor 24b8a9118d Merge branch 'master' of ../cloudmule 2022-12-12 13:01:38 -05:00
Isaac Connor afbc495c45 Fixup filter hidden fields 2022-12-12 13:00:11 -05:00
Isaac Connor 08b06bd151 Include archiveTypes so that archive Status dropdown gets populated 2022-12-12 12:50:50 -05:00
Isaac Connor e30d151da7 prevent leading and when terms are invalid 2022-12-07 15:54:26 -05:00
Isaac Connor fc7a6601f6 Check for validity of filterterm when building the parse tree 2022-12-07 12:39:26 -05:00
Isaac Connor 2efed0418c Move a bunch more filter widget stuff into Filter 2022-12-07 12:37:38 -05:00
Isaac Connor 07e188a25f Add datetimepicker class to DateTime widgets and only include the sql if the term is valid 2022-12-07 12:36:23 -05:00
Isaac Connor 638e6b0e3b Move attrTypes and opTypes into Filter and rough in a widget and simple_width functions 2022-12-07 12:34:18 -05:00
Isaac Connor 606fb108d5 Fix use of filter instead of this 2022-09-01 07:06:10 -04:00
Isaac Connor 45697c7da9 Merge branch 'master' into reports 2022-08-03 11:57:07 -04:00
Isaac Connor 5776a766e1 fixup logic inversion on test_post_sql_conditions. condense code. 2022-07-29 13:59:21 -04:00
Isaac Connor c937169a6b Fix logic inversion on test_pre_sql_conditions 2022-07-29 13:50:40 -04:00
Isaac Connor 2ba7d4d0b5 Rough in a function Events() to return Event objects from a Filter. 2022-07-24 20:37:32 -04:00
Isaac Connor eb5c1372c7 convert from strftime() to date() when forming sql 2022-06-01 15:47:19 -04:00
Isaac Connor 9b0714d20d Fix use of value instead of val in filter term 2022-02-25 14:14:02 -05:00
Isaac Connor 1f9e654821 Default limit to 0 which means no limit 2022-02-02 12:28:58 -05:00
Isaac Connor 6b18b2889d Add skip_locked and ExecuteInterval 2021-12-13 15:01:17 -05:00
Isaac Connor 0c222f66ee Add sort_asc, sort_field and limit to the filter QueryString 2021-10-25 12:34:51 -04:00
Isaac Connor b50916e02a Allow unknown columns in filters. Allow specifying the table name in FilterTerm. 2021-03-12 10:52:10 -05:00
Isaac Connor 4d739f35ef Fix parseTree when using iS or ISNOT. Add strtoupper comparisons for NULL values. 2021-02-20 17:07:07 -05:00
Isaac Connor c608af4df7 Correct timeline when using Weekday 2021-02-17 13:11:02 -05:00
Isaac Connor 73e8c04b6f Fix encoding of = in filter['Id']. Fixes redirect after saving 2020-11-11 17:39:20 -05:00
Isaac Connor 2d33dd5386 Rename StartTime, EndTime in Events to StartDateTime and EndDateTime 2020-11-04 13:52:32 -05:00
Isaac Connor 387b2b1fc2 add attr validation to addTerm. Add addTerms 2020-11-04 12:39:42 -05:00
Isaac Connor f7c9a0e03d Must urlencode [Id]= 2020-11-03 11:44:54 -05:00
Isaac Connor a2596505e9 add LockRows to Filters 2020-10-26 18:47:17 -04:00
Isaac Connor b6004012e9 implement passing the object name to use when constructing the querystring 2020-10-23 17:56:05 -04:00
Isaac Connor 34ce3a1498 Use Filter::parse instead of parseFilter. Use Filter->addTerm to limit to User's monitor restrictions. Return early with better logging in the event of error. Introduce Filter->addTerm 2020-10-21 10:36:40 -04:00
Isaac Connor 10c0a6617c Return Debug to a regular function to match other logging functions. Since we switched to using namespaces we no longer clash with cake_php. 2020-10-14 10:39:25 -04:00
Isaac Connor 046124fe0e Add AutoUnarchive column, also add Id to querystring if this is a saved Filter 2020-10-12 10:54:22 -04:00
Isaac Connor e47fa48a8e move parseFilterToTree from timeline_functions to Filter->tree(). Fix passing separator in querystring 2020-09-24 12:11:45 -04:00
Isaac Connor ad0f8d674d sort_asc is a boolean. ZM_WEB_EVENT_SORT_ORDER is asc|desc 2020-09-14 15:13:41 -04:00
Isaac Connor 77fb533e48 Fix default value for AutoExecuteCmd 2020-09-14 14:04:36 -04:00
Isaac Connor 4fcece6b69 Fixes to generating SQL for postSQL conditions. Now we will add the AND with a value of TRUE and a comment with the attr 2020-08-31 10:16:10 -04:00