Ralf Becker
9532debc5d
* eTemplate/all apps: removed custom-field widget type IP again, as it caused too many problems in various modules
2014-04-08 11:59:55 +00:00
Ralf Becker
639fd82199
force re-import of etemplates if app-version changes
2014-02-17 14:28:05 +00:00
Ralf Becker
2f905e8290
return $arr argument itself, but no reference to it, in all error cases
2014-01-08 09:47:37 +00:00
Ralf Becker
7b7132314c
can NOT use empty($idx) as it is true for 0 too!
2014-01-08 08:58:57 +00:00
Ralf Becker
b095be7f3d
fixed handling of empty name, not index into array but return full array
2014-01-06 12:53:34 +00:00
Ralf Becker
f41c0d1a72
fixed "PHP Parse error: syntax error, unexpected \ (T_NS_SEPARATOR)" error caused by email validation, also added error_log for these type of parse-errors
2013-07-30 09:11:33 +00:00
Ralf Becker
1b3c934823
a few compatbility methods and hacks to get old etemplates to behaves a bit more like eT2
2013-05-03 11:50:40 +00:00
Ralf Becker
16352d2cfb
only cache highest version: only update cache when storing, if it contains older version, only update when reading, if no version (=highest) is requested --> should fix cases where new distributed templates overwrite customer templates with higher version in cache
2012-06-14 11:32:11 +00:00
Klaus Leithoff
d37ee80161
mending Warnings: Cannot use a scalar value as an array
2011-12-20 15:57:03 +00:00
Ralf Becker
b4bfa392b2
* Filemanager/eTemplate: fix for MyStylite bug #2495 : deleting files containing [ as first char deletes whole directory
...
added encoding of square brackets in eTemplate and improved etemplate_bo::(get|set|isset|unset)_array() to split indexes at ][ and not just [
--> needs to be "back"-ported to eTemplate2 to!!!
2011-11-09 14:32:07 +00:00
Ralf Becker
89847abae6
added "progress"(-bar) widget to differ from image and using it in templates
2011-09-08 19:00:57 +00:00
Ralf Becker
3819816248
* Calendar: fixed various issues with history in calendar: id display, unecessary stuff loged, ...
2011-08-04 14:00:15 +00:00
Ralf Becker
3b90f44c89
got select entry custom fields honor required flag and select entry widget show required input with inputRequired css class
2011-05-18 10:23:39 +00:00
Klaus Leithoff
dcb5a86aca
fix for bug #1631 on Stylite tracker: no browsing/navigation in egws popup filenavigation used for image browsing for CK-Editor.
2011-05-16 07:46:27 +00:00
Klaus Leithoff
064490bfef
fix typo that prevented the referencing of sub elements in get_array in some cases
2011-05-12 12:03:55 +00:00
Ralf Becker
806d3d604c
added context menu for nextmatch widget: first implemenation in timesheet
...
- legacy actions column and multiple action row below table is switched off by default, but can be switched on again
- legacy action button is NOT yet working
- "whole query" checkbox need to go into context menu too
2011-04-16 21:45:13 +00:00
Christian Binder
52133ffd54
fixed typo (did not validate but should be a typo)
2011-01-07 13:57:58 +00:00
Ralf Becker
201f0d33e3
also quote quotes in variables surounded by curly brackets, eg. '{[nm][path]}'
2010-09-14 16:33:33 +00:00
Ralf Becker
3c58ef8473
fixed historylog widget shows "unknow type" for selectboxes with explicit options containing key 0
2010-08-27 16:11:02 +00:00
Ralf Becker
f597385a9c
fixed caching of etemplates:
...
- never read timestamp of last import from cache
- check timestamps only once per session and app
2010-07-21 13:50:29 +00:00
Ralf Becker
55f5a80a5e
refining regular expressesion for PHP variables (replies[$row][reply_message] returned more then $row) and removed quoting from submitit call in button, as quotes in vars get quoted double
2010-05-12 07:50:13 +00:00
Ralf Becker
2d0c33bb90
Some more quoting (and unquoting) of quotes in variable used eg. as
...
button names: eg. "delete[$row_cont[path]]" with path containing " or '
- they need to get quoted for correct html markup
- etemplate_request::set_to_process() need to use unquoted version, as
this is how it get returned in $_POST
2010-05-11 14:52:45 +00:00
Ralf Becker
db23b1d746
- correctly quote single and double quotes in html element id's
...
- correctly quote quotes in parameters of javascript functions used
eg. as eventhandlers, eg. onchange="do_something('$cont[name]');"
--> if $cont[name] is an array: do_something([ 'val1', 'val2' ]) is used
- correctly quote & in get parameters of url's
2010-05-09 14:06:35 +00:00
Ralf Becker
3eb38935bb
caching etemplates using egw_cache class on instance level (instead off old not egw_cached based code on request level), to ease the load on the db
2010-03-05 08:18:46 +00:00
Ralf Becker
e73dcb2a27
fixed colorpicker (as not using current color) and added colorpicker widget to etemplate
2010-01-30 23:55:36 +00:00
Ralf Becker
dfaa808b8c
- allow to use $row or $row_cont, $c to disable columns or rows,
...
eg. "$row_cont[x]=y"
- complete_array_merge does no longer overwrite numerical keys,
if value is an array
2009-07-23 11:25:10 +00:00
Ralf Becker
5e9699a5b5
reverting again r27107, as it has to many (unwanted) sideeffects
2009-05-24 20:03:28 +00:00
Ralf Becker
3dadb5abe3
- allow to specify on sub-type level, if post_process method should be
...
used for extensions
- if extension is called with empty name, it can set a name in
cell[name], which then get's used for the content (extensions can use
eg. an option to select the name)
2009-05-24 18:02:54 +00:00
Ralf Becker
654d91cc7c
"allow extension preProcess method to modify / fix $form_name of a widget:
...
- usefull if complete name is determined by eg. options
- extension has also to fetch the content from etemplate::$request->content!"
2009-05-17 13:56:32 +00:00
Ralf Becker
a94586bad4
New syntax (@@name) to access values absolute to the content array ofs
...
the request. Here's an example:
$content['my-label'] = $id ? 'Edit' : 'Add';
You can use it now in the template of an nextmatch row for the label:
@@my-label
Saved the need to import these kind of data in the get_rows function
into the rows.
2009-05-14 17:42:48 +00:00
Ralf Becker
68f15f6c5a
"fixed bug reported on German list: all new calendar events in trunk are private"
2009-04-15 09:11:03 +00:00
Ralf Becker
95a0339cc9
"fixing the fix ;-)
...
addslashes does to much --> now quoting only quotes"
2009-04-09 12:44:56 +00:00
Ralf Becker
592488908e
"fixed filemanger bug: actions dont work for filenames containing commas
...
--> allow to enclose comma-separated checkbox and radio-button option values in quotes (\"), so they can contain commas
eg. file-names containing commas in the filemanager"
2009-04-09 11:49:16 +00:00
Ralf Becker
9937f44e5a
"- using exceptions instead of die with function_backtrace --> gives nicer traces (specially with ajax)
...
- fixed typo in get_array"
2009-03-30 16:34:04 +00:00
Ralf Becker
52db44fb83
make boetemplate::store_to_cache public (static) to call it from xul_io
2009-03-19 12:06:49 +00:00
Ralf Becker
486a32e86d
Refractured eTemplate to use:
...
- the etemplate_request object which stores the request data in the
a) session (as before) or
b) compressed and encrypted in the form transmitted to the user
Benefit of b) is that the session does not grow and the form can
be submitted as long as the session exists, as we need no garbadge
collection. Of cause more data needs to be submitt between
browser and webserver. b) is choosen automatic if mcrypt and
gzcompress are available, but can be turned off via setting
etemplate_request::$request_class = 'etemplate_request_session';
- static class variables instead of the before used global ones
--> This new version of eTemplate is fully backward compatible with 1.6!
2009-03-16 12:58:24 +00:00
Ralf Becker
d4a01c41f3
"fix not working nextmatch widget in tracker, readonly detection was uncomplete ($readonlys can be an array!)"
2008-11-17 10:41:33 +00:00
Ralf Becker
343ff1d77d
"fixed eTemplates garbage collection to work with new session class, and lowed timeout of not used sessions to 30min (was 1h)"
2008-11-13 17:20:53 +00:00
Ralf Becker
a921812095
"only supply extension data for non-readonly widgets or if it's already set
...
otherwise lists store >10k unnecessary data in each etemplate-session"
2008-11-13 16:49:44 +00:00
Ralf Becker
add5646e48
fixed a few errors in the etemplate editor
2008-03-20 18:43:11 +00:00
Ralf Becker
6e9829faf6
some more php5 and html static fixes
2008-03-10 15:49:46 +00:00
Ralf Becker
e90a3d3a83
reworked etemplate to have static methods and use the new features of egw_db- & html-class
2008-03-09 14:41:22 +00:00
Nathan Gray
c49d305932
If there is a format error on a tab, make sure that tab is visible so user can see the error
2007-10-22 20:24:54 +00:00
Ralf Becker
1055642df3
fixed not working autorepeated rows with , added id's to (content of) labels and images
2007-09-06 11:59:35 +00:00
Ralf Becker
32864e955a
"calling the static method static seems to work more relyable in php5.2"
2007-05-12 10:12:41 +00:00
Ralf Becker
3630f964fb
"fix for bug: can not unselect users from a multiple user selection (eg. InfoLog delegates), if the original value is in $preserv array"
2007-05-08 09:00:22 +00:00
Ralf Becker
f386d0480d
reverted
2007-04-29 20:30:15 +00:00
Ralf Becker
e11b8e5e32
worked around stupid php5.2 empty haystack warnings
2007-04-29 14:25:19 +00:00
Ralf Becker
6bd5ac2da8
users can now switch every single column on or off in all nextmatch lists, admins can configure defaults (plus some bugfixes and other improvments)
2007-03-07 12:30:17 +00:00
Cornelius Weiß
d32b3ef8e8
patch #203 from sebastian ebling:
...
extendet submit_button() to also display <input type=button
new type buttononly for eTemplate
applied this type for addressbook.index.right_add buttons
applied this type for tracker.index.right button
2007-01-20 08:55:26 +00:00