From 4731c1887f4ae857382e35d56211d5b016efd233 Mon Sep 17 00:00:00 2001 From: Matt Brown Date: Sun, 17 Jul 2011 22:08:30 +0000 Subject: [PATCH] Updated LoadRicoClient for asp and php, so all asp and php examples are working again. Fixed font size in TreeControl. git-svn-id: svn://svn.code.sf.net/p/openrico/code/trunk/rico3@95 53df2df2-7ab5-4331-af62-ea79255fa4e2 --- bin/Rico.dll | Bin 574464 -> 574976 bytes bin/Rico.xml | 582 ++++++++++++++++---------------- examples/dotnet/photos.aspx | 3 +- examples/php/LoadRicoClient.php | 42 ++- examples/php/photos.php | 2 +- examples/php/simplegrid.php | 2 - plugins/asp/LoadRicoClient.asp | 93 ++--- ricoClient/css/rico.css | 2 +- 8 files changed, 378 insertions(+), 348 deletions(-) diff --git a/bin/Rico.dll b/bin/Rico.dll index c1387fe2369906f6760bada90d2601dedf3efd83..0620359ca3bfd24a4927de6031148b9aaec76eb2 100644 GIT binary patch delta 6917 zcmZA63tW^{`UmjedzqO7jNAqoZgN*KP*Kq=T|?z6){?pACMpUV7%QNt7~0UsYpEM9 z{d+b2>#Uhsnp$XsO6w(d(>BY@Ozk2XCT*H#+dnEd_c@pBT;@=Q-zn=bag5 zXjqZluqwH6MN&#^(gRTc+My=~XbjjxKY?f3nD>=Uft3ic(evMtno+ly>V z1FgS2VU}1sPCDlLf(|(BZoMN!rQaHEn;GPbTV;!P$)Xb_wz-z?W3#_?@U+>b@0JTR zzwph<2&-z6W4NW+v_96mHf^|dqt?-)Ra(IZ9DnfDJ!(d~_0VY5_LUsRTDLD_ip{H8 zZ+pzSzQhk5Yl5uslMd^D(rf|NtCJiv%?vsrt6{3GhckCD|8Ho*qHg|YWk2sKbGh3Z zImt2ADm-o0`WEju-;S~7Pj<{*K53WDH))ss%SSEk8?#RP+7~g;k&x&cVL9GQ_6=(= zw+F~Qems|U%TIjyOuI%uI{g^FnRc_K#5W?*(d4i1QCBZH$d=T{TJVkeCa>>f&7Nwz zp)ZZ$m$tyyUTqs5!#h6a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%(fAp;U@x#Z}|qSS{o-SwWnKm}H1nR!qgOP_HzLYF{DA#%mgC6awK=La2 zX3AshWj;bVa;3~2lrO4$h4Px0RX$I7`xSZoKa?-496S(6rN@qsO&dtBSr-)UqC$)& z3+0q2s{AzNCxhhib(Altyo++3QyxD`dBn{!pQYS0LFV5mw@;JVZxC>{O6DlacU4p7 zubIOLiL+(lPRczhmr*`CM;@=E99|>yTFN<3%ltOw<1fqnPs-g}WNxGU<$jsZQx1Gj z=F60SO*X}?4;)Od8JC7iBoLO|D)UInrwe7yr~Jz-nWs}eR4H>EzM`@Z)Dij)Fh^eddY;qA0g@$fglPyv>m;BgGqYC(G8X<8QN2 z4c7BpSd0~s!}?fL@|eTgoyUBw(c@UKO#O3NKWjlQ^D!%G2F{oR>&zAwZZ+po`yt-+ zV-Ab9!m?@L!+Fd>Za#)BJn?s9r zX0u4^a4w~3+gWexxjg2ynsZp1Jhpc$t+FwfMs(z{6s!N$=HX3rZ16Z{@_olzvvOIy zwIrK`SvlD()LJu+4Ys!N=I^&MyWH^ZZIs$`X+&fm^;PCEAAR3OtzZ8ojcJ&r|K_hqvP-`tYQS#t(HRPmtqf${94Nr4AHe)^RgR&N~h_lYC5*@s?R z=*{%7Oq>7hRaG-9N~YITRL-)NH?SN1|5ouU!kLBOYD#rcwpCz3d3h5Hv&Jf+qP%tTL(i<7~-%*y#c$}@4ou}A>N=?c9D+w{1-B6 BfMEat diff --git a/bin/Rico.xml b/bin/Rico.xml index 3fd57b5..2163a66 100644 --- a/bin/Rico.xml +++ b/bin/Rico.xml @@ -6,24 +6,42 @@ Rico - + - Returns the index of the table with TblAlias or -1 if not found + May contain the text of an error message that occurred outside this control prior to rendering - - + + + + - Returns the cached ResourceManager instance used by this class. - - + Database connection object. Required only if sqlText is used. + + + + - Overrides the current thread's CurrentUICulture property for all - resource lookups using this strongly typed resource class. - - + Optional sql query to execute, must return 5 columns matching WriteTreeRow parameters + + + + + - A strongly-typed resource class, for looking up localized strings, etc. - + Adds an entry that will be returned with the results. Often used to add the root node. + + id of parent, "" if this is the root + id that uniquely identifies this node in the tree + description displayed to the user + "L" or 0 = leaf, "C" or non-zero = container + 0=not selectable, 1=selectable + + + + Use this class on a page that responds to AJAX requests from a Rico Tree Control + This class automatically disables caching of the response and sets the response type to text/xml + + Represents a column in the select statement @@ -124,6 +142,173 @@ Rico Holds a SQL select statement. Methods to load/parse a select statement from a string and to reassemble it in various ways. Does not handle union queries. + + + Initial width of the column in pixels. Default is to use SimpleGrid.defaultWidth. + + + + Is the user allowed to sort the column? Default is true. + + + + + Is the user allowed to drag a column value? Default is false. + + + + + Is the user allowed to filter the column? Default is true. + + + + + Javascript code to create a control object, which changes the way the column data is rendered. + The disadvantage of using this approach is that the altered rendering does not get reflected in exports. + A set of controls is defined in ricoLiveGridControls.js or the developer can create their own. + + + + + If the AutoFilter option is enabled for the grid, then filterUI will control how each column is filtered. If filterUI is: + + null or omitted, then no filter is displayed for the column. + 't' - will generate a text box filter and the records being displayed are filtered as the user types. May be followed by a number to indicate the size of the text box (default size is 10). + 's' - will generate a select list filter with all possible column values contained in the list. Populated using a 'select distinct' query if the grid's source is a SQL query. + 'm' - will generate multi-select checklist filter, with a checkbox text to each item. + + + + + + This setting allows the filterUI to filter a different column than where it is displayed. + This is particularly useful for dates, where you can show a year selection on an OrderDate date column for example, + but actually have it filter a hidden column OrderYear=year(OrderDate). + + + + + The text content of this column will be included in delete confirmation messages. + + + + + If column is a number, this value can be used to multiply the database value by a factor before displaying it in the grid. + Default is 1. Automatically set to 100 if DataType is percent. + + + + + If column is a number, this is the number of digits displayed to the right of the decimal point. Default is 0. + If DataType is dollar or euro, then decPlaces is automatically set to 2. + + + + + If column is a number, display the value with a thousands separator? Default is true. + + + + + Specifies how negative numbers should be displayed. Possible values: + + L=leading minus (default) + T=trailing minus + P=parentheses + + + + + If column is a number, this string is prepended to the number before display. + Useful for currency symbols. + + + + If column is a number, this string is appended to the number before display. + Useful for percentages and temperature values. Automatically set to % if DataType is percent. + + + + Used to give the column heading a specific style. + In most cases this is not necessary, as the heading will be styled according to the theme. + + + + Database property - set automatically by LiveGrid.GetColumnInfoFromDb() + + + + Database property - set automatically by LiveGrid.GetColumnInfoFromDb() + + + + Database property - set automatically by LiveGrid.GetColumnInfoFromDb() + + + + Database property - set automatically by LiveGrid.GetColumnInfoFromDb() + + + + Database property - set automatically by LiveGrid.GetColumnInfoFromDb() + + + + For internal use + + + + Text displayed in the column heading. + + + + Initial width of the column in pixels. Default is to use LiveGrid.defaultWidth. + + + + Returns an Excel-type number format string based on decPlaces, thouSep, prefix. + + + + + + Type of data stored in the column. + + + + + + + Base class for a LiveGrid column + + + + + TrueItem is shown on the entry form (default) + FalseItem is not shown on the form + + + + + Code indicating the ui to be used for data entry + + TAText Area + RRadio button list + RLRadio buttons via lookup (field is a foreign key) + SSelect list + SLSelect list via lookup (field is a foreign key) + CLCustom widget via lookup (field is a foreign key) + NSelect list of distinct column values, use allowed to add new values + BText, non-blank + TText + IInteger + FFloating point number + tinyMCERich text via tinyMCE + DDate + TSTime stamp + HHidden + + controls size of client buffer and AJAX fetch size @@ -214,42 +399,11 @@ Rico Class to define a LiveGrid - - - May contain the text of an error message that occurred outside this control prior to rendering - - - - - - - Database connection object. Required only if sqlText is used. - - - - - - Optional sql query to execute, must return 5 columns matching WriteTreeRow parameters - - - - - - - Adds an entry that will be returned with the results. Often used to add the root node. - - id of parent, "" if this is the root - id that uniquely identifies this node in the tree - description displayed to the user - "L" or 0 = leaf, "C" or non-zero = container - 0=not selectable, 1=selectable - - + - Use this class on a page that responds to AJAX requests from a Rico Tree Control - This class automatically disables caching of the response and sets the response type to text/xml + Returns the index of the table with TblAlias or -1 if not found - + Name of grid Javascript object @@ -331,121 +485,11 @@ Rico This class defines properties and functions used in SimpleGrid, LiveGrid and LiveGridEdit classes. - + - Background image for grid headings and window titles. - Should be left unset, as it is used only for the grayedout theme (in which case it is set automatically). + True if the text should be displayed using a bold font - - - The base Javascript library to load from http://ajax.googleapis.com/ajax/libs/, possible values include: - - prototype/1.6/prototype.js - prototype/1.7/prototype.js - jquery/1.3/jquery.min.js - jquery/1.4/jquery.min.js - jquery/1.5/jquery.min.js - jquery/1.6/jquery.min.js - mootools/1.2/mootools-yui-compressed.js - mootools/1.3/mootools-yui-compressed.js - dojo/1.5/dojo/dojo.xd.js - dojo/1.6/dojo/dojo.xd.js - ext-core/3.0/ext-core.js - ext-core/3.1/ext-core.js - - Default value is "proto_min", which loads prototype 1.7 from the server control. - - - - Enable Javascript console logging? Useful for debugging. Default is false. - - - - Enable HTML5 web form elements in browsers that support them. - Default is false because the quality of the HTML5 web form elements is uneven across browsers. - - - - Best left unset, in which case language will be set automatically based on request's HTTP_ACCEPT_LANGUAGE - However, if you want to present the same locale settings to all users, then you can set this value to force the desired locale. - - - - Load base Javascript library (prototype, jQuery, etc)? - Default is true. - Set to false if library is being loaded another way. In this case, a BaseLib value is still required to indicate - which library Rico should connect to. - - - - Apply row striping to LiveGrids? Default is true. Applies only when themes are used. - - - - Comma separated list of 2 letter locales that Rico supports. - Do not set unless you have developed your own locale file. - - - - URL to load jQuery themes from. - Default is http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/ - Override this value if you have a jQuery theme on your own server. - - - - Returns the 2 character string representing the Rico locale file that was actually used on the client. - If there is no match between the requested languages and the available locale files, then english is used. - Only available during the render phase. - - - - Load settings from QueryString? true for demo, false for anything else. Default is false. - - - - Load settings from web.config file? Default is false. - If true, then the appSettings section of web.config will be checked for the following keys (which affect the similarly named properties): - - rico_BaseLib - rico_Language - rico_jTheme - rico_rTheme - rico_Logging - rico_HTML5 - rico_LoadBaseLib - rico_Striping - - Boolean values in web.config should be the strings "true" or "1" for true, and "false" or "0" for false. - - - - Initialize all grids on the page - Initialize grids with fixed # of rows first, - then initialize grids with variable # of rows - - - - Set theme to one of the jQuery Themeroller themes. Default is no theme. - Valid values are: - black-tie, blitzer, cupertino, dark-hive, dot-luv, eggplant, excite-bike, flick, - hot-sneaks, humanity, le-frog, mint-choc, overcast, pepper-grinder, redmond, smoothness, - south-street, start, sunny, swanky-purse, trontastic, ui-darkness, ui-lightness, vader - - - - Set theme to one of the Rico themes. Default is no theme. - Valid values are: - coffee-with-milk, grayedout, greenHdg, seaglass, warmfall - - - - Loads the various Javascript, CSS, and image files required to make Rico function. - - - - True if the text should be displayed using a bold font - - + True if the text should be displayed in italics @@ -558,173 +602,129 @@ Rico Container for a collection of Style objects - - - Initial width of the column in pixels. Default is to use SimpleGrid.defaultWidth. - - - - Is the user allowed to sort the column? Default is true. - - - - - Is the user allowed to drag a column value? Default is false. - - - - - Is the user allowed to filter the column? Default is true. - - - + - Javascript code to create a control object, which changes the way the column data is rendered. - The disadvantage of using this approach is that the altered rendering does not get reflected in exports. - A set of controls is defined in ricoLiveGridControls.js or the developer can create their own. + Background image for grid headings and window titles. + Should be left unset, as it is used only for the grayedout theme (in which case it is set automatically). - - + - If the AutoFilter option is enabled for the grid, then filterUI will control how each column is filtered. If filterUI is: + The base Javascript library to load from http://ajax.googleapis.com/ajax/libs/, possible values include: - null or omitted, then no filter is displayed for the column. - 't' - will generate a text box filter and the records being displayed are filtered as the user types. May be followed by a number to indicate the size of the text box (default size is 10). - 's' - will generate a select list filter with all possible column values contained in the list. Populated using a 'select distinct' query if the grid's source is a SQL query. - 'm' - will generate multi-select checklist filter, with a checkbox text to each item. + prototype/1.6/prototype.js + prototype/1.7/prototype.js + jquery/1.3/jquery.min.js + jquery/1.4/jquery.min.js + jquery/1.5/jquery.min.js + jquery/1.6/jquery.min.js + mootools/1.2/mootools-yui-compressed.js + mootools/1.3/mootools-yui-compressed.js + dojo/1.5/dojo/dojo.xd.js + dojo/1.6/dojo/dojo.xd.js + ext-core/3.0/ext-core.js + ext-core/3.1/ext-core.js + Default value is "proto_min", which loads prototype 1.7 from the server control. - - - - This setting allows the filterUI to filter a different column than where it is displayed. - This is particularly useful for dates, where you can show a year selection on an OrderDate date column for example, - but actually have it filter a hidden column OrderYear=year(OrderDate). - - - - - The text content of this column will be included in delete confirmation messages. - - - - - If column is a number, this value can be used to multiply the database value by a factor before displaying it in the grid. - Default is 1. Automatically set to 100 if DataType is percent. - - - - - If column is a number, this is the number of digits displayed to the right of the decimal point. Default is 0. - If DataType is dollar or euro, then decPlaces is automatically set to 2. - - - + - If column is a number, display the value with a thousands separator? Default is true. + Enable Javascript console logging? Useful for debugging. Default is false. - - - - Specifies how negative numbers should be displayed. Possible values: - - L=leading minus (default) - T=trailing minus - P=parentheses - - - + - If column is a number, this string is prepended to the number before display. - Useful for currency symbols. + Enable HTML5 web form elements in browsers that support them. + Default is false because the quality of the HTML5 web form elements is uneven across browsers. - + - If column is a number, this string is appended to the number before display. - Useful for percentages and temperature values. Automatically set to % if DataType is percent. + Best left unset, in which case language will be set automatically based on request's HTTP_ACCEPT_LANGUAGE + However, if you want to present the same locale settings to all users, then you can set this value to force the desired locale. - + - Used to give the column heading a specific style. - In most cases this is not necessary, as the heading will be styled according to the theme. + Load base Javascript library (prototype, jQuery, etc)? + Default is true. + Set to false if library is being loaded another way. In this case, a BaseLib value is still required to indicate + which library Rico should connect to. - + - Database property - set automatically by LiveGrid.GetColumnInfoFromDb() + Apply row striping to LiveGrids? Default is true. Applies only when themes are used. - + - Database property - set automatically by LiveGrid.GetColumnInfoFromDb() + Comma separated list of 2 letter locales that Rico supports. + Do not set unless you have developed your own locale file. - + - Database property - set automatically by LiveGrid.GetColumnInfoFromDb() + URL to load jQuery themes from. + Default is http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/ + Override this value if you have a jQuery theme on your own server. - + - Database property - set automatically by LiveGrid.GetColumnInfoFromDb() + Returns the 2 character string representing the Rico locale file that was actually used on the client. + If there is no match between the requested languages and the available locale files, then english is used. + Only available during the render phase. - + - Database property - set automatically by LiveGrid.GetColumnInfoFromDb() + Load settings from QueryString? true for demo, false for anything else. Default is false. - + - For internal use - - + Load settings from web.config file? Default is false. + If true, then the appSettings section of web.config will be checked for the following keys (which affect the similarly named properties): + + rico_BaseLib + rico_Language + rico_jTheme + rico_rTheme + rico_Logging + rico_HTML5 + rico_LoadBaseLib + rico_Striping + + Boolean values in web.config should be the strings "true" or "1" for true, and "false" or "0" for false. + + - Text displayed in the column heading. + Initialize all grids on the page + Initialize grids with fixed # of rows first, + then initialize grids with variable # of rows - + - Initial width of the column in pixels. Default is to use LiveGrid.defaultWidth. + Set theme to one of the jQuery Themeroller themes. Default is no theme. + Valid values are: + black-tie, blitzer, cupertino, dark-hive, dot-luv, eggplant, excite-bike, flick, + hot-sneaks, humanity, le-frog, mint-choc, overcast, pepper-grinder, redmond, smoothness, + south-street, start, sunny, swanky-purse, trontastic, ui-darkness, ui-lightness, vader - + - Returns an Excel-type number format string based on decPlaces, thouSep, prefix. + Set theme to one of the Rico themes. Default is no theme. + Valid values are: + coffee-with-milk, grayedout, greenHdg, seaglass, warmfall - - - + - Type of data stored in the column. + Loads the various Javascript, CSS, and image files required to make Rico function. - - - - + - Base class for a LiveGrid column - - + Returns the cached ResourceManager instance used by this class. + + - - TrueItem is shown on the entry form (default) - FalseItem is not shown on the form - - - + Overrides the current thread's CurrentUICulture property for all + resource lookups using this strongly typed resource class. + + - Code indicating the ui to be used for data entry - - TAText Area - RRadio button list - RLRadio buttons via lookup (field is a foreign key) - SSelect list - SLSelect list via lookup (field is a foreign key) - CLCustom widget via lookup (field is a foreign key) - NSelect list of distinct column values, use allowed to add new values - BText, non-blank - TText - IInteger - FFloating point number - tinyMCERich text via tinyMCE - DDate - TSTime stamp - HHidden - - + A strongly-typed resource class, for looking up localized strings, etc. + Class to define a SimpleGrid diff --git a/examples/dotnet/photos.aspx b/examples/dotnet/photos.aspx index 1ac0149..16a0a67 100644 --- a/examples/dotnet/photos.aspx +++ b/examples/dotnet/photos.aspx @@ -72,7 +72,8 @@ Base Library: \n"; } @@ -68,7 +92,7 @@ function setLang() { if ($lang2=='en') break; // already included $fname=$transDir."ricoLocale_".$lang2.".js"; if (file_exists($fname)) { - echo ""; + echo "\n"; break; } } @@ -85,14 +109,14 @@ function LoadTheme($theme) { switch ($prefix) { case 'j': requireRicoJS("Themeroller"); - echo ""; + echo "\n"; break; case 'r': requireRicoCSS($theme); break; } if ($grid_striping) { - echo ""; + echo "\n"; } } diff --git a/examples/php/photos.php b/examples/php/photos.php index c4071e1..6b84cb5 100644 --- a/examples/php/photos.php +++ b/examples/php/photos.php @@ -22,7 +22,7 @@ Rico.onLoad( function() { columnSpecs : [{control:imgctl,width:90},,, {type:'datetime'},{width:200}] }; - photoBuffer=new Rico.Buffer.AjaxXML('flickrPhotos.php'); + photoBuffer=new Rico.Buffer.AjaxLoadOnce('flickrPhotos.php'); photoGrid=new Rico.LiveGrid ('photogrid', photoBuffer, opts); photoGrid.menu=new Rico.GridMenu(); diff --git a/examples/php/simplegrid.php b/examples/php/simplegrid.php index 9d9e3ce..9b2ab2e 100644 --- a/examples/php/simplegrid.php +++ b/examples/php/simplegrid.php @@ -21,7 +21,6 @@ Rico.onLoad( function() { columnSpecs : [{width:200},'specQty','specQty','specQty','specQty'] }; ex1=new Rico.SimpleGrid ('ex1', opts); - if (!Rico.isIE) document.getElementById('owc').disabled=true; }); function ExportGridClient(ExportType) { @@ -87,7 +86,6 @@ require "info.php";
-
diff --git a/plugins/asp/LoadRicoClient.asp b/plugins/asp/LoadRicoClient.asp index 1100f69..4f8e9a5 100644 --- a/plugins/asp/LoadRicoClient.asp +++ b/plugins/asp/LoadRicoClient.asp @@ -23,6 +23,7 @@ Public imgDir ' directory containing Rico's image files Public imgHeading ' background image for grid headings and window titles, used in grayedout theme Public BaseLib ' base library - prototype, jquery, etc Public ricoLogging ' enable console logging? +Public HTML5 ' enable console logging? Public grid_striping ' apply row striping to LiveGrids? Public LoadBaseLib ' load base Javascript library (prototype, jQuery, etc)? Public jQuery_theme_path ' url to jqueryui themes @@ -34,6 +35,7 @@ Private Sub Class_Initialize BaseLib="proto_min.js" ' default base library theme="" ricoLogging=false + HTML5=false grid_striping = true LoadBaseLib = true SupportedLangs = "de,es,fr,it,ja,ko,pt,ru,uk,zh" @@ -81,7 +83,14 @@ end Sub ' This is the main method, which creates the Javscript and CSS links Public Sub CreateLinks() - SetConfig + Dim ImgUrl,lang,lang2,i + Dim prefix,themeFile + Response.Write vbLf & "" if LoadBaseLib then if InStr(baseLib,"/") > 0 then Response.Write vbLf & "" @@ -91,31 +100,6 @@ Public Sub CreateLinks() end if requireRicoJS "2" & left(baseLib,3) requireRicoJS "_min" - setLang - requireRicoCSS "rico" - if theme<>"" then LoadTheme -End sub - - -' Create Rico client initialization object -Private sub SetConfig() - Response.Write vbLf & "" -end sub - - -' ------------------------------------------------------------- -' Check languages accepted by browser -' and see if there is a match -' ------------------------------------------------------------- -sub setLang() - dim fso,lang,lang2,fname,i lang=lcase(Request.ServerVariables("HTTP_ACCEPT_LANGUAGE")) arLang=split(lang,",") @@ -127,25 +111,48 @@ sub setLang() exit for end if next -end sub + requireRicoCSS "rico" + if theme<>"" then + prefix=left(theme,1) + themeFile=mid(theme,3) + select case prefix + case "j": + requireRicoJS "Themeroller" + Response.Write vbLf & "" + case "r": + requireRicoCSS themeFile + end select + if grid_striping then Response.Write vbLf & "" + end if -' set theme -' "j-ui-lightness" for a Themeroller theme -' "r-greenHdg" for a native Rico theme -Private sub LoadTheme() - dim prefix,themeFile - prefix=left(theme,1) - themeFile=mid(theme,3) - select case prefix - case "j": - requireRicoJS "Themeroller" - Response.Write vbLf & "" - case "r": - requireRicoCSS themeFile - end select - if grid_striping then Response.Write vbLf & "" -end sub + Response.Write vbLf & "" +End sub Public sub requireRicoJS(filename) diff --git a/ricoClient/css/rico.css b/ricoClient/css/rico.css index 8f7a357..a47efe4 100644 --- a/ricoClient/css/rico.css +++ b/ricoClient/css/rico.css @@ -479,7 +479,7 @@ a.RicoButtonAnchorNative:hover { display:block; } -.ricoTreeContainer, .ricoTree { +.ricoTreeContainer { font-size:70%; white-space:nowrap; } -- 2.20.1