Commit Graph

91 Commits

Author SHA1 Message Date
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
Ralf Becker
6387f19cae fixed isset_array using array_key_exists, to return also null values:
eg. $arr = array('x' => null); boetemplate::isset_array($arr,'x') returned false, as isset($arr['x']) === false, now it returns true like array_key_exists('x',$arr)
2007-01-08 15:57:09 +00:00
Cornelius Weiß
4338f6726b strstr -> strpos fix by thomas koch 2006-12-07 12:46:46 +00:00
Cornelius Weiß
be0bce8b40 add types passwd and select-lang 2006-12-06 20:09:22 +00:00
Cornelius Weiß
8e647edc80 kill php5.2 warnings 2006-12-02 11:03:54 +00:00
Ralf Becker
76ac8d4381 php5.2 fix: Catchable fatal error: Object of class etemplate could not be converted to string 2006-11-07 14:22:49 +00:00
Cornelius Weiß
d0a7a9aaf4 fix: etemplate does not like my previous patch, don't know why :-( 2006-10-10 18:03:27 +00:00
Cornelius Weiß
4648c5025e don't set items witch are not submitted from UA in content array on callback.
This is usefull if u want to process just subsets of a form e.g. by xajax
2006-10-10 15:10:07 +00:00
Ralf Becker
58cd8de0ce disabled check can now be done via (pearl) regular expressions, eg. /^(val1|val2)$/ to check for two values 2006-04-24 20:42:42 +00:00
Cornelius Weiß
69aa6abdec update docu to better run trough phpdocumentor 2006-04-20 17:12:30 +00:00
Ralf Becker
28fe36e769 typo 2005-12-19 04:26:34 +00:00
Ralf Becker
7a4a18ec0a phpgw --> egw
from this revision eTemplate requires a 1.0.1/1.2 API, the last working version for 1.0.0 has been taged "last_working_1_0_0"
2005-11-09 20:50:45 +00:00
Ralf Becker
20d1b19c3c method to get a reference to a widget by it's name 2005-11-05 16:09:10 +00:00
Ralf Becker
e76a77cce9 Make the PHP session restore an own session type in manageheader. So you can switch it on and off, without the need to edit the code. At the moment it's off by default, with a note that it can give a big performance boost (if it works on your distro).
Please note: If you already edited your phpgwapi/inc/functions.inc.php to switch it off, you will get an cvs conflict on updating, just do a "cvs update -C phpgwapi/inc/functions.inc.php" to fix it. If you want to use the session restore or you already used it, you need to go to Setup >> Headeradmin and switch it on there.
2005-10-13 12:17:38 +00:00
Ralf Becker
a962d8cbf7 fixed (maybe PHP5 related error) that caused the selection of multiple cats to fail 2005-08-02 08:52:47 +00:00
Ralf Becker
5254c9690f *** empty log message *** 2005-07-30 12:45:54 +00:00
Ralf Becker
6a4ff5d1d1 allow to specify the app-name in which a widget is defined in the widgets name: list($app) = explode('_',$name) 2005-06-12 12:32:59 +00:00
Ralf Becker
ef7fa4813c re-enabled the 1.0.0 compatibility of the HEAD version of eTemplate: allows to use HEAD eTemplate in an 1.0.0 install, eg. to use the improved tab-widget (no reload anymore) 2005-05-21 07:56:02 +00:00
Ralf Becker
756062a477 disable_cells: new param $disable=true to also (re-)enable a cell 2005-04-24 17:13:44 +00:00
Ralf Becker
887e71e57e 1) fixed lost egw object if register_globals=On: was caused by the identicaly named session-variable used for php4-sessions (now renamed to egw_session)
2) $GLOBALS['phpgw{_info}'] ==> $GLOB ALS['egw{_info}']
2005-03-04 11:33:44 +00:00
Ralf Becker
21c6ebd17e next step to a new eTemplate editor:
- new editor has now everything the old one had, beside editing of embeded stylesheets
- new possibility to define a confirmation for buttons via javascript
- finetuned the garbadge collection for php4 sessions
2005-02-20 21:45:24 +00:00
Ralf Becker
dfd35114a5 next step to a new eTemplate editor:
- widget editor works quite nice
- beware it can create Templates the old editor cant understand and destroy if you save or export them from the old editor!
=> need to move the other functionality (import, export, dump, ..) of the old editor to the new one, so the old editor can retire ;-)
2005-02-18 22:44:42 +00:00
Ralf Becker
e0a0cfc9fe first step to a new eTemplate editor:
- based on existing show function the template can be edited in place
- dblclicked widgets will be edited in a popup
- new editor supports not only one grid, but a hirachical tree of widgets
still missing:
- editing and operations of grid rows and columns
- type-specific templates for the popup, to make the options more intuitiv
In the meantime the old editor is still functional
2005-02-15 23:22:10 +00:00
Ralf Becker
f2e0fda75d - new function widget_tree_walk, which aplies a given function to all widgets or a template, used now by soetemplate::getToTranslate() and boetemplate::set_cell_attribute()
- fixed inline documentation, works very nice now
2005-02-13 13:03:01 +00:00
Ralf Becker
84e89d31be Step #2: Redering and importing (xml) are working now with any tree.
Export and editing still need to be reworked.
More to come ...
2005-02-08 12:29:06 +00:00
Ralf Becker
52b42e13bb 1) added GroupBox (HTML: fieldset) to group widgets by a frame with an optional caption
2) Step #1 of removing eTemplate's limitation on allowing only a grid as root element of the widget tree (which can NOT directly contain further grids, thought references to other templates/grids are ok). The storage layer allows now a real tree. Redering and editing only works on the old data variable, which is now a reference to the first grid in the tree.
More to come ...
2005-02-06 15:49:50 +00:00
Ralf Becker
cff0ca3801 changed documentation to phpdoc standard 2004-10-07 21:53:10 +00:00
Ralf Becker
a9e80505a6 using the app_sessions function from the actual sessions-class again, instead of always the db-sessions one, it seems to work now for php4 2004-08-15 20:59:49 +00:00
Ralf Becker
c8e57526d2 fixed set_cell_attribute, get_cell_attribute and disable_cells to search [vh]box for its contained cells too 2004-04-12 12:29:40 +00:00