You can subscribe to this list here.
2007 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(2) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2008 |
Jan
|
Feb
(58) |
Mar
(126) |
Apr
(96) |
May
(42) |
Jun
(59) |
Jul
(80) |
Aug
(95) |
Sep
(99) |
Oct
(137) |
Nov
(54) |
Dec
(138) |
2009 |
Jan
(174) |
Feb
(83) |
Mar
(36) |
Apr
(22) |
May
(16) |
Jun
(11) |
Jul
(7) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <ken...@us...> - 2009-02-13 18:06:14
|
Revision: 1237 http://andro.svn.sourceforge.net/andro/?rev=1237&view=rev Author: kendowns Date: 2009-02-13 18:06:09 +0000 (Fri, 13 Feb 2009) Log Message: ----------- Changes for Release Candidate 1 docs Modified Paths: -------------- trunk/andro/lib/androLib.php Modified: trunk/andro/lib/androLib.php =================================================================== --- trunk/andro/lib/androLib.php 2009-02-13 18:05:09 UTC (rev 1236) +++ trunk/andro/lib/androLib.php 2009-02-13 18:06:09 UTC (rev 1237) @@ -28,16 +28,16 @@ # Prefix: gp # # ============================================================== -/****h* PHP-API/Get-Post-Variables +/****h* PHP API/GET and POST Variables * * NAME -* Get-Post-Variables +* GET and POST Variables * * FUNCTION -* The Get-Post Variables functions allow you to retrieve +* This family of PHP functions allows you to retrieve * HTTP Request parameters. * -* Andromeda has a special system for obtaining Get-Post +* Andromeda has a special system for obtaining GET and POST * variables. When you request a variable, it checks first * in the $_GET superglobal and next in the $_POST superglobal. * This frees the programmer from having to track these two @@ -46,7 +46,7 @@ ****** */ -/****f* Get-Post-Variables/gp +/****f* GET and POST Variables/gp * * NAME * gp @@ -57,8 +57,8 @@ * in case the requested variable does not exist. * * INPUTS -* string $key - Requested variable name -* string $vardefault - value to return if the variable does not exist +* * string - Requested variable name +* * string - value to return if the variable does not exist * * RETURNS * mixed - either the value of the variable if it was passed @@ -81,7 +81,7 @@ } /******/ -/****f* Get-Post-Variables/gpExists +/****f* GET and POST Variables/gpExists * * NAME * gpExists @@ -104,7 +104,7 @@ } /******/ -/*---f* Get-Post-Variables/hgp +/*---f* GET and POST Variables/hgp * * NAME * hgp @@ -132,7 +132,7 @@ } /*---**/ -/*---f* Get-Post-Variables/rowFromgp +/*---f* GET and POST Variables/rowFromgp * * NAME * rowFromgp @@ -156,7 +156,7 @@ } /*---**/ -/*---f* Get-Post-Variables/removetrailingnewlines +/*---f* GET and POST Variables/removetrailingnewlines * * NAME * removetrailingnewlines @@ -181,14 +181,25 @@ } /*---**/ -/****f* Get-Post-Variables/aFromgp +/****f* GET and POST Variables/aFromgp * * NAME * aFromgp * * FUNCTION -* Deprecated - function was named wrong +* The PHP function aFromGP captures zero or more GET/POST +* variables and returns an associative array. The function +* is called by provided a prefix string. Every GET/POST +* variable whose name begins with that prefix is captured +* and returned. The keys in the associative array do not +* contain the prefix, the prefix is stripped. * +* INPUTS +* string prefix +* +* RETURNS +* associative array +* ******/ function aFromgp($prefix) { $strlen = strlen($prefix); @@ -201,20 +212,21 @@ return $row; } -/****f* Get-Post-Variables/gpSet +/****f* GET and POST Variables/gpSet * * NAME * gpSet * * FUNCTION -* The PHP function gpSet assigns the value provied to the variable in the -* Get/Post parameters that has the provided name. If the variable doesn't -* exist, this function creates a new variable with the provided name -* and value. +* The PHP function gpSet 'fakes' a GET/POST variable, making it +* appear as if it had beent sent from the browser. The first +* parameter names the variable, the second parameter is the value. +* If the named parameter actually came from the browser, the +* browser's value will be overwritten. * * INPUTS -* string $key - Name of variable -* mixed $value - Value to assign +* string $key - Name of variable +* mixed $value - Value to assign * * SOURCE */ @@ -223,7 +235,7 @@ } /******/ -/****f* Get-Post-Variables/gpSetFromArray +/****f* GET and POST Variables/gpSetFromArray * * NAME * gpSetFromArray @@ -248,7 +260,7 @@ } /******/ -/*---f* Get-Post-Variables/gpUnSet +/*---f* GET and POST Variables/gpUnSet * * NAME * gpUnSet @@ -269,7 +281,7 @@ } /*---**/ -/*---f* Get-Post-Variables/gpUnsetPrefix +/*---f* GET and POST Variables/gpUnsetPrefix * * NAME * gpUnsetPrefix @@ -293,7 +305,7 @@ } /*---**/ -/*---f* Get-Post-Variables/gpControls +/*---f* GET and POST Variables/gpControls * * NAME * gpControls @@ -312,7 +324,7 @@ } /*---**/ -/*---f* Get-Post-Variables/rowFromgpInputs +/*---f* GET and POST Variables/rowFromgpInputs * * NAME * rowFromgpInputs @@ -358,7 +370,7 @@ * INPUTS */ -/*---f* Get-Post-Variables/gpToSession +/*---f* GET and POST Variables/gpToSession * * NAME * gpToSession @@ -381,10 +393,10 @@ # Add elements to the JSON RETURN ARRAY # ============================================================== // KFD X4 -/****h* PHP-API/JSON-Returns +/****h* PHP API/JSON Returns * * NAME -* JSON-Returns +* JSON Returns * * FUNCTION * JSON-Return functions are used to save certain variables for later processing. Usually these @@ -393,14 +405,17 @@ * ******/ -/****f* JSON-Returns/x6Error +/****f* JSON Returns/x6Error * * NAME * x6Error * * FUNCTION -* Saves an error for later processing * +* Saves an error to be sent to the browser. Once the complete JSON +* call is returned to the browser, errors are displayed in an alert +* and processing is stopped. +* * INPUTS * string $parm1 - the error to save * @@ -412,7 +427,7 @@ } /******/ -/*---f* JSON-Returns/x6Notice +/*---f* JSON Returns/x6Notice * * NAME * x6Notice @@ -431,7 +446,7 @@ } /*---**/ -/*---f* JSON-Returns/x6Print_r +/*---f* JSON Returns/x6Print_r * * NAME * x6Print_r @@ -453,13 +468,15 @@ } /*---**/ -/****f* JSON-Returns/x6Debug +/****f* JSON Returns/x6Debug * * NAME * x6Debug * * FUNCTION -* The PHP function x4Debug saves debug information for later processing +* The PHP function x6Debug saves a debug datum to be returned to +* the browser. The browser takes no action with these items, they +* are meant to be inspected using Firebug or a similar tool. * * INPUTS * string $parm1 - the debug info to save @@ -472,13 +489,13 @@ } /******/ -/****f* JSON-Returns/x6DebugClean +/*f* JSON Returns/x6DebugClean * * NAME * x6DebugClean * * FUNCTION -* The PHP function x4DebugClean saves debug information and sends it back +* The PHP function x6DebugClean saves debug information and sends it back * to the browser in a JSON call. This routine differes from x6Debug * because this method also clears out newlines and compresses whitespace. * @@ -503,17 +520,20 @@ x4Debug($parm1); } -/****f* JSON-Returns/x6HTML +/****f* JSON Returns/x6HTML * * NAME * x6HTML * * FUNCTION -* The PHP function x4HTML is used to save the provided html for later processing. +* The PHP function x6HTML is saves the HTML fragment to be sent +* back to the browser. The first parameter names the ID of the +* element whose HTML is to be replaced, and the second parameter +* contains the HTML. * * INPUTS -* string $parm1 - the html tag -* string $parm2 - the html value +* * string $parm1 - the html id +* * string $parm2 - the html value * * SOURCE */ @@ -534,7 +554,7 @@ * string $parm1 variable */ -/****f* JSON-Returns/x4HtmlDump +/*f* JSON Returns/x4HtmlDump * * NAME * x4HtmlDump @@ -562,18 +582,23 @@ * string $parm1 script to store */ -/****f* JSON-Returns/x6Script +/****f* JSON Returns/x6Script * * NAME * x6Script * * FUNCTION -* The PHP function x4Script strips the <script> and </script> tags from $parm1 and -* save the script for later processing. Can pass parameter -* either with <script> tags or without: function is flexible. +* The PHP function x6Script stores a script fragment to be returned +* to the browser. If this is called during normal page processing, +* it is equivalant to a call to jqDocReady. If it is called on a +* JSON call, the script is returned to the browser and executed if +* there are no errors. * +* This function strips the <script> and </script> tags from $parm1 and +* so that you can include the script tags if you like. +* * INPUTS -* string $parm1 - var to dump +* string - the javascript to execute. * * SOURCE */ @@ -599,17 +624,19 @@ * mixed $data */ -/****f* JSON-Returns/x6Data +/****f* JSON Returns/x6Data * * NAME * x6Data * * FUNCTION -* The PHP function x4Data JSON encodes the data to be saved as javascript for later processing. +* The PHP function x6Data takes a variable and sends it to the +* browser. After the page is loaded, or the JSON call is processed, +* the data will appear as a property of the x6.data object. * * INPUTS -* string $name - name of data -* string $data - the data itself +* * string - name of data element +* * mixed - the value or array * * SOURCE */ @@ -642,7 +669,7 @@ * string json encoded string */ -/****f* JSON-Returns/json_encode_safe +/****f* JSON Returns/json_encode_safe * * NAME * json_encode_safe @@ -755,10 +782,10 @@ # ============================================================== // KFD X4 -/****h* PHP-API/HTML-Generation +/****h* PHP API/HTML Generation * * NAME -* HTML-Generation +* HTML Generation * * FUNCTION * Andromeda uses an object oriented html system in order to prevent the mix of php and html code @@ -773,7 +800,7 @@ * ******/ -/****f* HTML-Generation/hSizepx +/****f* HTML Generation/hSizepx * * NAME * hSizepx @@ -781,10 +808,13 @@ * FUNCTION * The PHP function hSizepx computes a width by examining the size cookie. * It assumes that the baseline is 1024, and returns a string of the form -* "999px" that is scaled up or down based. +* "999px" that is scaled up or down based on what skin the user is +* actually using. * +* This function returns a string with 'px' appended. +* * INPUTS -* number $x1024 - Size in 1024x768 mode +* number - Size in 1024x768 mode * * SOURCE */ @@ -796,9 +826,35 @@ } /******/ -/****f* HTML-Generation/html +/****f* HTML Generation/hSize * * NAME +* hSize +* +* FUNCTION +* The PHP function hSizepx computes a width by examining the size cookie. +* It assumes that the baseline is 1024, and returns number that is +* scaled up or down based on what skin the user is +* actually using. +* +* +* INPUTS +* number - Size in 1024x768 mode +* +* SOURCE +*/ +function hSize($x1024) { + $app = $GLOBALS['AG']['application']; + $size = a($_REQUEST,$app."_size",'1024'); + $final = intval(($x1024 * $size)/1024); + return $final.'px'; +} +/******/ + + +/****f* HTML Generation/html +* +* NAME * html * * FUNCTION @@ -848,7 +904,7 @@ return $retval; } -/****f* HTML-Generation/htmlMacroTop +/****f* HTML Generation/htmlMacroTop * * NAME * htmlMacroTop @@ -875,7 +931,7 @@ } -/****f* HTML-Generation/htmlMacroGridWithData +/****f* HTML Generation/htmlMacroGridWithData * * NAME * htmlMacroGridWithData @@ -957,7 +1013,7 @@ */ -/****c* HTML-Generation/androHtml +/****c* HTML Generation/androHtml * * NAME * androHtml @@ -2433,7 +2489,7 @@ -/****c* HTML-Generation/androHtmlTabs +/****c* HTML Generation/androHtmlTabs * * NAME * androHtmlTabs @@ -2624,7 +2680,7 @@ } -/****c* HTML-Generation/androHtmlTable +/****c* HTML Generation/androHtmlTable * * NAME * androHtmlTable @@ -2731,7 +2787,7 @@ } } -/****c* HTML-Generation/androHtmlGrid +/****c* HTML Generation/androHtmlGrid * * NAME * androHtmlGrid @@ -3246,7 +3302,7 @@ } } -/****c* HTML-Generation/androHtmlDetail +/****c* HTML Generation/androHtmlDetail * * NAME * androHtmlDetail @@ -3481,7 +3537,7 @@ } -/****c* HTML-Generation/androHtmlxrefs +/****c* HTML Generation/androHtmlxrefs * * NAME * androHtmlxrefs @@ -3613,7 +3669,7 @@ * string $page page of form (used to create action attribute) */ -/****f* HTML-Generation/htmlForm +/****f* HTML Generation/htmlForm * * NAME * htmlForm @@ -3655,7 +3711,7 @@ * androHtml object oriented input html */ -/****f* HTML-Generation/input +/****f* HTML Generation/input * * NAME * input @@ -4082,7 +4138,7 @@ * or comma-list of columns. */ -/****f* HTML-Generation/projection +/****f* HTML Generation/projection * * NAME * projection @@ -4195,7 +4251,7 @@ return $columns; } -/****f* HTML-Generation/inputsTabLoop +/****f* HTML Generation/inputsTabLoop * * NAME * inputsTabLoop @@ -4244,7 +4300,7 @@ } } -/****f* HTML-Generation/inputFixupByType +/****f* HTML Generation/inputFixupByType * * NAME * inputFixupByType @@ -4279,7 +4335,7 @@ # # These routines produce little snippet values # ============================================================== -/****f* HTML-Generation/hprint_r +/****f* HTML Generation/hprint_r * * NAME * hprint_r @@ -4303,7 +4359,7 @@ } /******/ -/****f* HTML-Generation/hx +/****f* HTML Generation/hx * * NAME * hx @@ -4648,7 +4704,7 @@ # SECTION: All SQL Generation # # ============================================================== -/****h* PHP-API/SQL-Generation +/*h* PHP API/SQL-Generation * * NAME * SQL Generation @@ -4661,7 +4717,7 @@ */ -/****f* SQL-Generation/SQL_FORMAT +/*f* SQL-Generation/SQL_FORMAT * * NAME * SQL_FORMAT @@ -4802,7 +4858,7 @@ } } -/****f* SQL-Generation/SQLFC +/*f* SQL-Generation/SQLFC * * NAME * SQLFC @@ -4821,7 +4877,7 @@ function SQLFC($value) { return SQL_Format('char',$value); } /******/ -/****f* SQL-Generation/SQLFN +/*f* SQL-Generation/SQLFN * * NAME * SQLFN @@ -4840,7 +4896,7 @@ function SQLFN($value) { return SQL_Format('numb',$value); } /******/ -/****f* SQL-Generation/SQLFD +/*f* SQL-Generation/SQLFD * * NAME * SQLFD @@ -4859,7 +4915,7 @@ function SQLFD($value) { return SQL_Format('date',$value); } /******/ -/****f* SQL-Generation/SQLFDT +/*f* SQL-Generation/SQLFDT * * NAME * SQLFDT @@ -4878,7 +4934,7 @@ function SQLFDT($value) { return SQL_Format('dtime',$value); } /******/ -/****f* SQL-Generation/sqlFilter +/*f* SQL-Generation/sqlFilter * * NAME * sqlFilter @@ -5071,7 +5127,7 @@ } } -/****f* SQL-Generation/sqlOrderBy +/*f* SQL-Generation/sqlOrderBy * * NAME * sqlOrderBy @@ -5113,7 +5169,7 @@ // ================================================================== // Joomla Compatibility Functions // ================================================================== -/****h* PHP-API/Joomla-Compatibility +/*h* PHP API/Joomla-Compatibility * * NAME * Joomla Compatibility @@ -5131,7 +5187,7 @@ ****** */ -/****f* Joomla-Compatibility/JoomlaCompatibility +/*f* Joomla-CompatibilityJoomlaCompatibility * * NAME * JoomlaCompatibility @@ -5260,7 +5316,7 @@ */ function mosShowHead() { return ''; } -/****f* Joomla-Compatibility/mosCountModules +/*f* Joomla-CompatibilitymosCountModules * * NAME * mosCountModules @@ -5294,7 +5350,7 @@ } } -/****f* Joomla-Compatibility/mosLoadModules +/*f* Joomla-CompatibilitymosLoadModules * * NAME * mosLoadModules @@ -5333,7 +5389,7 @@ } } -/****f* Joomla-Compatibility/mosPathWay +/*f* Joomla-CompatibilitymosPathWay * * NAME * mosPathWay @@ -5353,7 +5409,7 @@ //echo "mosPathway"; } -/****f* Joomla-Compatibility/mosMainBody +/*f* Joomla-CompatibilitymosMainBody * * NAME * mosMainBody @@ -5367,7 +5423,7 @@ ehStandardContent(); } -/****f* Joomla-Compatibility/tmpPathInsert +/*f* Joomla-CompatibilitytmpPathInsert * * NAME * tmpPathInsert @@ -5392,7 +5448,7 @@ return scriptPath(); } -/****f* PHP-API/scriptPath +/*f* PHP API/scriptPath * * NAME * scriptPath @@ -5420,7 +5476,7 @@ return $path; } -/****f* Joomla-Compatibility/ampReplace +/*f* Joomla-CompatibilityampReplace * * NAME * ampReplace @@ -5440,7 +5496,7 @@ return str_replace("&","&",$input); } -/****f* Joomla-Compatibility/sefRelToAbs +/*f* Joomla-CompatibilitysefRelToAbs * * NAME * sefRelToAbs @@ -5462,7 +5518,7 @@ } /******/ -/****f* Joomla-Compatibility/fwModuleMenuRight +/*f* Joomla-CompatibilityfwModuleMenuRight * * NAME * fwModuleMenuRight @@ -5570,10 +5626,10 @@ // ------------------------------------------------------------------ -/****h* PHP-API/Session-Handling +/****h* PHP API/Session Handling * * NAME -* Session-Handling +* Session Handling * * FUNCTION * Andromeda provides wrappers for accessing session variables. The @@ -5604,7 +5660,7 @@ * ******/ -/****f* Session-Handling/SessionGet +/****f* Session Handling/SessionGet * * NAME * SessionGet @@ -5637,7 +5693,7 @@ } /******/ -/****f* Session-Handling/SessionSet +/****f* Session Handling/SessionSet * * NAME * SessionSet @@ -5664,7 +5720,7 @@ /******/ -/****f* Session-Handling/SessionUnSet +/****f* Session Handling/SessionUnSet * * NAME * SessionUnSet @@ -5688,7 +5744,7 @@ } /******/ -/****f* Session-Handling/SessionReset +/****f* Session Handling/SessionReset * * NAME * SessionReset @@ -5713,7 +5769,7 @@ } } -/****f* Session-Handling/SessionUnSet_Prefix +/****f* Session Handling/SessionUnSet_Prefix * * NAME * SessionUnSet_Prefix @@ -5734,7 +5790,7 @@ # SECTION: GLOBAL VARIABLES # # ================================================================== -/****h* PHP-API/Global-Variables +/****h* PHP API/Global Variables * * NAME * Global_Variables @@ -5744,16 +5800,16 @@ * retrieve PHP global variables without risking a collission with * framework global variables. * -* Use PHP-API/vgaSet to set a variable, and PHP-API/vgaGet +* Use PHP API/vgaSet to set a variable, and PHP API/vgaGet * to retrieve a variable. * -* The framework uses the corresponding functions PHP-API/vgfSet -* and PHP-API/vgfGet. +* The framework uses the corresponding functions PHP API/vgfSet +* and PHP API/vgfGet. * ****** */ -/****f* Global-Variables/vgaGet +/****f* Global Variables/vgaGet * * NAME * vgaGet @@ -5779,7 +5835,7 @@ } /******/ -/****f* Global-Variables/vgaSet +/****f* Global Variables/vgaSet * * NAME * vgaSet @@ -5803,7 +5859,7 @@ } /******/ -/****f* Global-Variables/vgfGet +/****f* Global Variables/vgfGet * * NAME * vgfGet @@ -5863,7 +5919,7 @@ } } -/****f* Global-Variables/vgfSet +/****f* Global Variables/vgfSet * * NAME * vgfSet @@ -6007,7 +6063,7 @@ * $stackname string */ -/*---h* PHP-API/Stack-Functions +/*---h* PHP API/Stack-Functions * * NAME * Stack-Functions @@ -6086,7 +6142,7 @@ // ------------------------------------------------------------------ // Routines to assemble return values // ------------------------------------------------------------------ -/*---h* PHP-API/Ajax-Return-Assembly +/*---h* PHP API/Ajax-Return-Assembly * * NAME * Ajax-Return-Assembly @@ -6219,10 +6275,10 @@ // ------------------------------------------------------------------ // Data Dictionary Routines // ------------------------------------------------------------------ -/****h* PHP-API/Data-Dictionary-Routines +/****h* PHP API/Data Dictinary Routines * * NAME -* Data-Dictionary-Routines +* Data Dictinary Routines * * FUNCTION * Data dictionaries are one of the most important aspects of andromeda. Following the philosophy that @@ -6234,7 +6290,7 @@ * ******/ -/*---f* Data-Dictionary-Routines/DD_EnsureREf +/*---f* Data Dictinary Routines/DD_EnsureREf * * NAME * DD_EnsureREf @@ -6274,7 +6330,7 @@ ); } -/****f* Data-Dictionary-Routines/ddTable +/****f* Data Dictinary Routines/ddTable * * NAME * ddTable @@ -6427,7 +6483,7 @@ return $tabdd; } -/****f* Data-Dictionary-Routines/ddView +/****f* Data Dictinary Routines/ddView * * NAME * ddView @@ -6484,7 +6540,7 @@ return $tabx['viewname']; } -/****f* Data-Dictionary-Routines/ddUserPerm +/****f* Data Dictinary Routines/ddUserPerm * * NAME * ddUserPerm @@ -6561,7 +6617,7 @@ return false; } -/*---f* Data-Dictionary-Routines/DD_TableProperty +/*---f* Data Dictinary Routines/DD_TableProperty * * NAME * DD_TableProperty @@ -6599,7 +6655,7 @@ return explode(",",$ret); } -/*---f* Data-Dictionary-Routines/DDTable_IDResolve +/*---f* Data Dictinary Routines/DDTable_IDResolve * * NAME * DDTable_IDResolve @@ -6660,7 +6716,7 @@ } } -/*---f* Data-Dictionary-Routines/DD_ColInsertsOK +/*---f* Data Dictinary Routines/DD_ColInsertsOK * * NAME * DD_ColInsertsOK @@ -6720,7 +6776,7 @@ return in_array($aid,$automations); } -/*---f* Data-Dictionary-Routines/DDColumnWritable +/*---f* Data Dictinary Routines/DDColumnWritable * * NAME * DDColumnWritable @@ -7079,7 +7135,7 @@ parent:System Log Functions */ // ------------------------------------------------------------------ -/****h* PHP-API/System-Log-Functions +/****h* PHP API/System Log Functions * * NAME * System Log Functions @@ -7104,7 +7160,7 @@ ****** */ -/****f* System-Log-Functions/SysLogOpen +/****f* System Log Functions/SysLogOpen * * NAME * SysLogOpen @@ -7152,7 +7208,7 @@ return $syslog; } -/****f* System-Log-Functions/SysLogEntry +/****f* System Log Functions/SysLogEntry * * NAME * SysLogEntry @@ -7179,7 +7235,7 @@ } } -/****f* System-Log-Functions/SysLogClose +/****f* System Log Functions/SysLogClose * * NAME * SysLogClose @@ -7225,7 +7281,7 @@ parent:Hidden Variables */ // ------------------------------------------------------------------ -/****h* PHP-API/Hidden-Variables +/*h* PHP API/Hidden-Variables * * NAME * Hidden-Variables @@ -7253,7 +7309,7 @@ * string $val Variable value */ -/****f* Hidden-Variables/Hidden +/*f* Hidden-Variables/Hidden * * NAME * Hidden @@ -7298,7 +7354,7 @@ * array $row */ -/****f* Hidden-Variables/hiddenFromTable +/*f* Hidden-Variables/HiddenFromTable * * NAME * hiddenFromTable @@ -7338,7 +7394,7 @@ parent:Context Variables */ // ------------------------------------------------------------------ -/*---h* PHP-API/Context-Variables +/*---h* PHP API/Context-Variables * * NAME * Context Variables @@ -8972,7 +9028,7 @@ parent:Template Level HTML */ // ------------------------------------------------------------------ -/****h* PHP-API/Template-Level-HTML +/*h* PHP API/Template-Level-HTML * * NAME * Template-Level-HTML @@ -9395,7 +9451,7 @@ // HTTP Functions // ================================================================== // ================================================================== -/****h* PHP-API/HTTP-Functions +/*h* PHP API/HTTP-Functions * * NAME * HTTP-Functions @@ -9413,7 +9469,7 @@ ****** */ -/****h* HTTP-Functions/httpWebPagePath +/*h* HTTP-Functions/httpWebPagePath * * NAME * httpWebPagePath @@ -9447,7 +9503,7 @@ .$x; } -/****f* HTTP-Functions/httpWebSite +/*f* HTTP-Functions/httpWebSite * * NAME * httpWebSite @@ -9465,7 +9521,7 @@ return 'http://'.$_SERVER['HTTP_HOST']; } -/****f* HTTP-Functions/httpHeadersForDownload +/*f* HTTP-Functions/httpHeadersForDownload * * NAME * httpHeadersForDownload @@ -13408,9 +13464,20 @@ // and put up some HTML allowing the user to enter values manually, // which makes for a great interactive testing system. // ================================================================== -/****f* PHP-API/EmailSend +/****h* PHP API/Email Functions * * NAME +* Email functions +* +* PURPOSE +* +* There are two email functions, both of which send emails. +* One of them is to send plaintext emails, the other sends +* HTML emails. +******/ +/****f* Email Functions/EmailSend +* +* NAME * emailSend * * PURPOSE @@ -13443,7 +13510,7 @@ ); } -/****f* PHP-API/EmailSendHTML +/****f* Email Functions/EmailSendHTML * * NAME * emailSendHTML This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ken...@us...> - 2009-02-13 18:05:12
|
Revision: 1236 http://andro.svn.sourceforge.net/andro/?rev=1236&view=rev Author: kendowns Date: 2009-02-13 18:05:09 +0000 (Fri, 13 Feb 2009) Log Message: ----------- Changes For Release Candidate 1 Docs Modified Paths: -------------- trunk/andro/clib/x6.js Modified: trunk/andro/clib/x6.js =================================================================== --- trunk/andro/clib/x6.js 2009-02-12 18:37:06 UTC (rev 1235) +++ trunk/andro/clib/x6.js 2009-02-13 18:05:09 UTC (rev 1236) @@ -180,7 +180,7 @@ \* **************************************************************** */ -/****M* Javascript-API/Date-Extensions +/****M* Javascript API/Date-Extensions * * NAME * Date-Extensions @@ -227,7 +227,7 @@ /******/ -/****M* Javascript-API/String-Extensions +/****M* Javascript API/String-Extensions * * NAME * String-Extensions @@ -515,7 +515,7 @@ X6 Object \* **************************************************************** */ -/****o* Javascript-API/x6 +/****o* Javascript API/x6 * * NAME * x6 @@ -1818,10 +1818,10 @@ if(readCookie('log_Warn') ==1) x6.console.enableWarn = true; if(readCookie('log_Error')==1) x6.console.enableError = true; -/****O* Javascript-API/x6dialogs +/****O* Javascript API/x6dialogs * * NAME -* Javascript-API/x6dialogs +* Javascript API/x6dialogs * * FUNCTION * The two Javascript dialogs x6dialogs.alert and @@ -2113,7 +2113,7 @@ } } -/****O* Javascript-API/x6bb +/****O* Javascript API/x6bb * NAME * x6bb * @@ -2241,7 +2241,7 @@ } -/****O* Javascript-API/x6events +/****O* Javascript API/x6events * * NAME * x6events @@ -4049,7 +4049,7 @@ \* **************************************************************** */ -/****O* Javascript-API/x6plugins +/****O* Javascript API/x6plugins * * NAME * x6plugins This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ken...@us...> - 2009-02-12 18:37:09
|
Revision: 1235 http://andro.svn.sourceforge.net/andro/?rev=1235&view=rev Author: kendowns Date: 2009-02-12 18:37:06 +0000 (Thu, 12 Feb 2009) Log Message: ----------- Added Paths: ----------- releases/2009.02.12/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ken...@us...> - 2009-02-12 18:36:06
|
Revision: 1234 http://andro.svn.sourceforge.net/andro/?rev=1234&view=rev Author: kendowns Date: 2009-02-12 18:36:02 +0000 (Thu, 12 Feb 2009) Log Message: ----------- Purge out old interim releases. Removed Paths: ------------- releases/2009.01.21.5/ releases/2009.01.22/ releases/2009.01.23/ releases/2009.01.24/ releases/2009.01.27/ releases/2009.01.28/ releases/2009.01.29/ releases/2009.01.30/ releases/2009.02.02/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ken...@us...> - 2009-02-12 18:35:21
|
Revision: 1233 http://andro.svn.sourceforge.net/andro/?rev=1233&view=rev Author: kendowns Date: 2009-02-12 18:35:17 +0000 (Thu, 12 Feb 2009) Log Message: ----------- Small tweak to x6select. Modified Paths: -------------- trunk/andro/clib/x6.js Modified: trunk/andro/clib/x6.js =================================================================== --- trunk/andro/clib/x6.js 2009-02-11 17:19:10 UTC (rev 1232) +++ trunk/andro/clib/x6.js 2009-02-12 18:35:17 UTC (rev 1233) @@ -3963,7 +3963,7 @@ maxWidth=15; } else { - var maxWidth=0; + var maxWidth=$(this.div).find('#x6head'+x).width(); $(this.tbody).find('div.x6col'+x).each( function() { if($(this).width() > maxWidth) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ken...@us...> - 2009-02-11 17:19:13
|
Revision: 1232 http://andro.svn.sourceforge.net/andro/?rev=1232&view=rev Author: kendowns Date: 2009-02-11 17:19:10 +0000 (Wed, 11 Feb 2009) Log Message: ----------- Three small fixes. Added Paths: ----------- releases/2009.02.11/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ken...@us...> - 2009-02-11 17:18:29
|
Revision: 1231 http://andro.svn.sourceforge.net/andro/?rev=1231&view=rev Author: kendowns Date: 2009-02-11 17:18:26 +0000 (Wed, 11 Feb 2009) Log Message: ----------- Corrections to x6select: column widths, and assignment of value to input. Modified Paths: -------------- trunk/andro/clib/x6.js Modified: trunk/andro/clib/x6.js =================================================================== --- trunk/andro/clib/x6.js 2009-02-11 17:17:20 UTC (rev 1230) +++ trunk/andro/clib/x6.js 2009-02-11 17:18:26 UTC (rev 1231) @@ -3756,7 +3756,7 @@ if(this.div) { var row = $(this.tbody).find('.hilight>div:first'); if(row.length > 0) { - $(inp).val($(row).html()); + $(inp).val($(row).html().htmlEdit()); } } }, @@ -3924,7 +3924,7 @@ //$(this.input).prop( // {value:this.parentNode.firstChild.innerHTML} //); - $(this.input).val(this.firstChild.innerHTML); + $(this.input).val(this.firstChild.innerHTML.htmlEdit()); x6inputs.afterBlurner(this.input); x6inputs.x6select.hide(); setTimeout( @@ -3959,9 +3959,23 @@ var totalWidth = 0; var colCount = $(this.tbody).find('div.x6selrow:last div').length; for(var x = 0; x<= colCount; x++) { - var width = $(this.div).find('#x6head'+x).width(); - totalWidth+=width+8; - $(this.div).find('.tbody .x6col'+x).width(width); + if(x==colCount) { + maxWidth=15; + } + else { + var maxWidth=0; + $(this.tbody).find('div.x6col'+x).each( + function() { + if($(this).width() > maxWidth) + maxWidth = $(this).width(); + } + ); + } + //var width = $(this.div).find('#x6head'+x).width(); + totalWidth+=maxWidth+8; + //$(this.div).find('.tbody .x6col'+x).width(width); + $(this.div).find('.tbody .x6col'+x).width(maxWidth); + $(this.div).find('#x6head'+x).width(maxWidth); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ken...@us...> - 2009-02-11 17:17:24
|
Revision: 1230 http://andro.svn.sourceforge.net/andro/?rev=1230&view=rev Author: kendowns Date: 2009-02-11 17:17:20 +0000 (Wed, 11 Feb 2009) Log Message: ----------- Fixed conditional in input generation that was using = instead of == Modified Paths: -------------- trunk/andro/lib/androLib.php Modified: trunk/andro/lib/androLib.php =================================================================== --- trunk/andro/lib/androLib.php 2009-02-09 21:03:09 UTC (rev 1229) +++ trunk/andro/lib/androLib.php 2009-02-11 17:17:20 UTC (rev 1230) @@ -2962,7 +2962,7 @@ $this->colStyles['div.cell_'.$column_id.' input'] ="width: {$iWidth}px; $cssExtra"; } - else if($type_id = 'mime-f') { + else if($type_id == 'mime-f') { $iWidth -= x6cssdefine('bodyfs','12px')*.67*20; $this->colStyles['div.cell_'.$column_id.' input'] ="width: {$iWidth}px; $cssExtra"; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ken...@us...> - 2009-02-09 21:03:16
|
Revision: 1229 http://andro.svn.sourceforge.net/andro/?rev=1229&view=rev Author: kendowns Date: 2009-02-09 21:03:09 +0000 (Mon, 09 Feb 2009) Log Message: ----------- Added Paths: ----------- releases/2009.02.09/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ken...@us...> - 2009-02-09 21:02:32
|
Revision: 1228 http://andro.svn.sourceforge.net/andro/?rev=1228&view=rev Author: kendowns Date: 2009-02-09 21:02:23 +0000 (Mon, 09 Feb 2009) Log Message: ----------- Put in little feature, that will likely be undocumented for awhile, that makes any androHTML element scrollable. Did for specific client, will consider what to do with it later. Modified Paths: -------------- trunk/andro/lib/androLib.php Modified: trunk/andro/lib/androLib.php =================================================================== --- trunk/andro/lib/androLib.php 2009-02-09 21:00:28 UTC (rev 1227) +++ trunk/andro/lib/androLib.php 2009-02-09 21:02:23 UTC (rev 1228) @@ -1912,6 +1912,13 @@ $this->hp['x6firstFocus']='Y'; } + # KFD BLUNT WEAPON. This really is meant for very simple + # elements where you just make it scrollable + function scrollable($height='') { + $this->addStyle('overflow-y: scroll'); + $this->addStyle("height: $height"); + } + /****m* androHtml/TbodyRows * @@ -1926,7 +1933,7 @@ * array $options - striping options * ******/ - function TbodyRows($rows,$options=array()) { + function &TbodyRows($rows,$options=array()) { $rowIdPrefix='row_'; $stripe = $stripe1 = $stripe2 = $stripe3 = 0; if(a($options,'stripe',0)>0) { @@ -2066,8 +2073,8 @@ * androHtmlDetail * ******/ - function &addDetail($table_id,$complete=false,$height=300) { - $newDetail = new androHTMLDetail($table_id,$complete,$height); + function &addDetail($table_id,$complete=false,$height=300,$p='') { + $newDetail = new androHTMLDetail($table_id,$complete,$height,$p); $this->addChild($newDetail); return $newDetail; } @@ -3314,7 +3321,6 @@ $colsFK[$chd] = $par; } } - # Put in a div that will be the inner box # This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ken...@us...> - 2009-02-09 21:00:31
|
Revision: 1227 http://andro.svn.sourceforge.net/andro/?rev=1227&view=rev Author: kendowns Date: 2009-02-09 21:00:28 +0000 (Mon, 09 Feb 2009) Log Message: ----------- 1) Removed temporary hack limiting number of child tabs. 2) If 'table_id_par' and 'pre_*' vars are passed to a conventional screen, various FETCHES and defaults from the parent table are populated on new rows. Modified Paths: -------------- trunk/andro/lib/androX6.php Modified: trunk/andro/lib/androX6.php =================================================================== --- trunk/andro/lib/androX6.php 2009-02-06 17:16:03 UTC (rev 1226) +++ trunk/andro/lib/androX6.php 2009-02-09 21:00:28 UTC (rev 1227) @@ -828,6 +828,30 @@ # ******************************************************************* # =================================================================== function profile_conventional() { + # KFD 2/9/09, new feature for Jeff/wholdist. If "table_id_par" + # was passed in, load a certain row from the parent + # table into the bulletin board. Specifically this + # is so the table can act like a child table + # w/respect to loading FETCH and FETCHDEF values. + # Maybe we'll do more with it later. + $tid_par = gp('table_id_par',''); + if( $tid_par <> '' ) { + $ddpar = ddTable($tid_par); + $pks = explode(',',$ddpar['pks']); + $aWhere = array(); + foreach($pks as $pk) { + $type_id = $ddpar['flat'][$pk]['type_id']; + if( ($pkval=gp('pre_'.$pk))<>'') { + $aWhere[] = $pk .'='.SQL_Format($type_id,$pkval); + } + } + $sql = 'select * from '.ddView($tid_par).' where ' + .implode('AND',$aWhere); + $row = sql_oneRow($sql); + x6Script("x6bb.fwSet('dbRow_$tid_par',".json_encode($row).')'); + } + + # Grab the data dictionary for this table $dd = $this->dd; $table_id = $this->dd['table_id']; @@ -863,6 +887,9 @@ # Begin with title and tabs $top->h('h1',$dd['description']); + if(method_exists($this,'insert_belowh1')) { + $this->insert_belowh1($top); + } $options = array('x6profile'=>'conventional','x6table'=>$table_id); $tabs = $top->addTabs('tabs_'.$table_id,$hpane1,$options); $lookup = $tabs->addTab('Lookup'); @@ -897,7 +924,7 @@ # because otherwise the programmer would have selected # a different profile. # - $divDetail = $detail->addDetail($dd['table_id'],true,$hdetail); + $divDetail = $detail->addDetail($dd['table_id'],true,$hdetail,$tid_par); $divDetail->addCustomButtons($this->customButtons()); $divDetail->ap['xTabSelector'] = $tabs->ul->hp['id']; $divDetail->ap['xTabIndex'] = 1; @@ -922,10 +949,6 @@ # KFD 1/2/09. If x6display is 'none', skip it if(trim(arr($info,'x6display',''))=='none') continue; - # KFD 1/28/09, Hardcoded hack to limit entries. - # Will have to come out eventually. - if($idx++ > 6) continue; - $tc = $top->addTableController($child); $tc->hp['x6tablepar'] = $table_id; $tab = $tabKids->addTab($info['description']); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ken...@us...> - 2009-02-06 17:16:05
|
Revision: 1226 http://andro.svn.sourceforge.net/andro/?rev=1226&view=rev Author: kendowns Date: 2009-02-06 17:16:03 +0000 (Fri, 06 Feb 2009) Log Message: ----------- Added Paths: ----------- releases/2009.02.06/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ken...@us...> - 2009-02-06 17:14:33
|
Revision: 1225 http://andro.svn.sourceforge.net/andro/?rev=1225&view=rev Author: kendowns Date: 2009-02-06 17:14:31 +0000 (Fri, 06 Feb 2009) Log Message: ----------- Corrected sequence of output for final material at end of page. The problem this fixes only appears when you use the (as yet) undocumented detail editing on 1:m screens. Modified Paths: -------------- trunk/andro/lib/androHTMLFoot.php Modified: trunk/andro/lib/androHTMLFoot.php =================================================================== --- trunk/andro/lib/androHTMLFoot.php 2009-02-06 17:13:28 UTC (rev 1224) +++ trunk/andro/lib/androHTMLFoot.php 2009-02-06 17:14:31 UTC (rev 1225) @@ -20,49 +20,6 @@ jqDocReady('$("#'.$f.'").focus()'); } - -# ===================================================================== -# -# Old-fashioned pre-x4 pre-jquery way to set focus. -# Don't ever use this! It will be deprecated -# sooner or later. -# -# ===================================================================== -$jqdr = vgfGet('jqDocReady',array()); -if(count($jqdr)>0) { - ?> - <script type="text/javascript"> - $(document).ready(function() { -<?php echo implode("\n",$jqdr)?> - }); - </script> - <?php -} -/* Original way pre 7/25/08, before we deprecated - elementadd() -$jqueryDocumentReady = ElementImplode('jqueryDocumentReady'); -if($jqueryDocumentReady<>'') { - ?> - <script type="text/javascript"> - $(document).ready(function() { - <?php echo $jqueryDocumentReady?> - }); - </script> - <?php -} -*/ - -if(configGet('deprecated','Y')=='Y') { - $scriptend = ElementImplode('scriptend'); - if($scriptend<>'') { - ?> - <script type="text/javascript"> - <?php echo $scriptend?> - </script> - <?php - } -} - # ------------------------------------------------------------- # Put out some invisible divs that are used for modals, # popups and so forth @@ -100,25 +57,57 @@ ?> </div> <?php - # KFD 12/31/08. Restrict the query log to people who have - # set the cookie and are in the 'debuggers' group - $debugging = inGroup('debugging'); - $cookie = arr($_COOKIE,'log_Server',0); - if($debugging && $cookie) { - echo( '<br /><div class="androQueryLog">' ); - echo( '<div class="androQueryLogTitle"> - <div style="float:left;height:20px;">Query Log</div><div style="float:right;height:20px;cursor:pointer;" onclick="showHide(\'androQueryLogItems\');">Show/Hide</div></div>' ); - echo( '<div class="androQueryLogItems" id="androQueryLogItems">' ); - foreach ( $GLOBALS['AG']['dbg']['sql'] as $key=>$line ) { - echo( '<div class="androQueryLogItem" style="width:auto;"><strong>Query:</strong> ' - .'<div><pre style="max-width:100%;">'.$line['sql'].'</pre></div> - <div><strong>Execution time:</strong>' .number_format( $line['time'],4 ) .'</div> - <div onclick="showHide(\'stack-' .$key .'\');" style="cursor:pointer;">More Details</div>' ); - echo( '<div style="display:none;" id="stack-' .$key .'">' ); - echo "<strong>Execution Stack:</strong><pre>" - .$line['stack']."</pre></div>"; - echo "</div>"; - } - echo( '</div></div>' ); +# KFD 12/31/08. Restrict the query log to people who have +# set the cookie and are in the 'debuggers' group +$debugging = inGroup('debugging'); +$cookie = arr($_COOKIE,'log_Server',0); +if($debugging && $cookie) { + echo( '<br /><div class="androQueryLog">' ); + echo( '<div class="androQueryLogTitle"> + <div style="float:left;height:20px;">Query Log</div><div style="float:right;height:20px;cursor:pointer;" onclick="showHide(\'androQueryLogItems\');">Show/Hide</div></div>' ); + echo( '<div class="androQueryLogItems" id="androQueryLogItems">' ); + foreach ( $GLOBALS['AG']['dbg']['sql'] as $key=>$line ) { + echo( '<div class="androQueryLogItem" style="width:auto;"><strong>Query:</strong> ' + .'<div><pre style="max-width:100%;">'.$line['sql'].'</pre></div> + <div><strong>Execution time:</strong>' .number_format( $line['time'],4 ) .'</div> + <div onclick="showHide(\'stack-' .$key .'\');" style="cursor:pointer;">More Details</div>' ); + echo( '<div style="display:none;" id="stack-' .$key .'">' ); + echo "<strong>Execution Stack:</strong><pre>" + .$line['stack']."</pre></div>"; + echo "</div>"; } + echo( '</div></div>' ); +} + + +# ===================================================================== +# +# Old-fashioned pre-x4 pre-jquery way to set focus. +# Don't ever use this! It will be deprecated +# sooner or later. +# +# ===================================================================== +$jqdr = vgfGet('jqDocReady',array()); +if(count($jqdr)>0) { + ?> + <script type="text/javascript"> + $(document).ready(function() { +<?php echo implode("\n",$jqdr)?> + }); + </script> + <?php +} + +if(configGet('deprecated','Y')=='Y') { + $scriptend = ElementImplode('scriptend'); + if($scriptend<>'') { + ?> + <script type="text/javascript"> + <?php echo $scriptend?> + </script> + <?php + } +} ?> + + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ken...@us...> - 2009-02-06 17:13:30
|
Revision: 1224 http://andro.svn.sourceforge.net/andro/?rev=1224&view=rev Author: kendowns Date: 2009-02-06 17:13:28 +0000 (Fri, 06 Feb 2009) Log Message: ----------- Added another spot where 'xdefsrc' is set on inputs. Allows all fetches to show up automatically on new rows in child table edits on 1:m screens. Modified Paths: -------------- trunk/andro/lib/androLib.php Modified: trunk/andro/lib/androLib.php =================================================================== --- trunk/andro/lib/androLib.php 2009-02-06 17:12:41 UTC (rev 1223) +++ trunk/andro/lib/androLib.php 2009-02-06 17:13:28 UTC (rev 1224) @@ -2344,7 +2344,7 @@ $this->hp['on'.$event] = "$fname(this)"; } foreach($this->functions as $name=>$snippet) { - jqDocReady("x6.byId('{$this->hp['id']}').$name = $snippet"); + jqDocReady("x6.byId('{$this->hp['id']}').$name = ".$snippet); } # KFD 10/7/08 if data has been attached, send it as json @@ -3337,6 +3337,9 @@ } } + # Define this outside the loop, it is used to make + # xdefsrc inside of the loop + $fetches = array('fetchdef','fetch','distribute'); $options = array( 'xTabGroup'=>'ddisp_'.$table_id ); @@ -3361,8 +3364,19 @@ ) ); } - + # KFD 2/4/09. If this is in the fetch family, set its + # xdefsrc + $autoid=strtolower($dd['flat'][$col]['automation_id']); + if(in_array($autoid,$fetches)) { + $xoptions = array_merge( + $options + ,array('attributes'=>array( + 'xdefsrc'=>strtolower($dd['flat'][$col]['auto_formula']) + )) + ); + } + $this->addTRInput($dd,$col,$xoptions); $x6ba = trim(arr($dd['flat'][$col],'x6breakafter','')); if($x6ba=='column') { @@ -3954,11 +3968,18 @@ # options array $atts = arr($options,'attributes',array()); #if(count($atts)>0) x6data($column_id,$atts); + + # KFD 2/5/09 modified so only specific situations are readonly + $readonlies=array('fetch','distribute'); + $autoid =arr($colinfo,'automation_id',''); + $tfko =arr($colinfo,'table_id_fko' ,''); foreach($atts as $name=>$value) { $input->hp[$name]=$value; if($name=='xdefsrc') { - $input->hp['xRoIns'] = 'Y'; - $input->hp['xRoUpd'] = 'Y'; + if(in_array($autoid,$readonlies) || $tfko <> '') { + $input->hp['xRoIns'] = 'Y'; + $input->hp['xRoUpd'] = 'Y'; + } } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ken...@us...> - 2009-02-06 17:12:44
|
Revision: 1223 http://andro.svn.sourceforge.net/andro/?rev=1223&view=rev Author: kendowns Date: 2009-02-06 17:12:41 +0000 (Fri, 06 Feb 2009) Log Message: ----------- Support for custom buttons on detail edits on 1:m screens. Modified Paths: -------------- trunk/andro/lib/androX6.php Modified: trunk/andro/lib/androX6.php =================================================================== --- trunk/andro/lib/androX6.php 2009-02-06 17:11:46 UTC (rev 1222) +++ trunk/andro/lib/androX6.php 2009-02-06 17:12:41 UTC (rev 1223) @@ -933,7 +933,19 @@ $tab->ap['x6table' ] = $child; if($info['x6childwrites']=='detail') { + # Create the basic detail $modal = new androHTMLDetail($child,true,700,$table_id); + + # Now see if we need to add buttons + if(file_exists(fsDirtop()."application/x6$child.php")) { + include_once(fsDirtop()."application/x6$child.php"); + $childClass = 'x6'.$child; + $objChild = new $childClass; + $custom = $objChild->customButtons(); + $modal->addCustomButtons($custom); + } + + # Tell framework to add it to the output. addModal($modal); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ken...@us...> - 2009-02-06 17:11:49
|
Revision: 1222 http://andro.svn.sourceforge.net/andro/?rev=1222&view=rev Author: kendowns Date: 2009-02-06 17:11:46 +0000 (Fri, 06 Feb 2009) Log Message: ----------- Added more keys to the do-not-propagate list, simplified the x6.json.inputs() routine to remove old x2 and x4 clutter, and to send back all values, not just changed values. Modified Paths: -------------- trunk/andro/clib/x6.js Modified: trunk/andro/clib/x6.js =================================================================== --- trunk/andro/clib/x6.js 2009-02-04 02:52:45 UTC (rev 1221) +++ trunk/andro/clib/x6.js 2009-02-06 17:11:46 UTC (rev 1222) @@ -681,6 +681,7 @@ // Make list of keys to stop no matter what var stopThem = [ 'CtrlF5', 'F10' ]; + var stopThem = [ ]; var noPropagate = [ 'CtrlS', 'CtrlN', 'CtrlI', 'CtrlD', @@ -690,7 +691,8 @@ 'DownArrow','UpArrow', 'ShiftDownArrow','ShiftUpArrow', 'Ctrl0','Ctrl1','Ctrl2','Ctrl3','Ctrl4', - 'Ctrl5','Ctrl6','Ctrl7','Ctrl8','Ctrl9' + 'Ctrl5','Ctrl6','Ctrl7','Ctrl8','Ctrl9', + 'F1','F2','F3','F4','F6','F7','F8','F9','F10' ]; // Set a flag now. If user hit ESC, we are trying @@ -1349,14 +1351,6 @@ */ inputs: function(obj,direct) { if(direct==null) direct=false; - if(obj==null) { - if(x6.byId('x4Top')!=null) { - obj = x6.byId('x4Top'); - } - else { - obj = $('.x6main')[0]; - } - } if(typeof(obj)=='string') { if(obj.indexOf('input')==-1) { var jqObjects = $(obj).find(':input'); @@ -1369,33 +1363,7 @@ var jqObjects = $(obj).find(":input"); } jqObjects.each( function() { - if(direct) - var id = 'x4c_'+x6.p(this,'xColumnId'); - else - var id = this.id; - - - if(this.type=='checkbox') { - if(this.checked) { - x6.json.addParm(id,'Y'); - } - else { - x6.json.addParm(id,'N'); - } - } - else { - if(typeof(x6)=='undefined') { - if($(this).prop('value')!='') { - x6.json.addParm(id,$(this).prop('value')); - } - } - else { - var zOrig = x6.p(this,'zOriginalValue','').trim(); - if($(this).prop('value').trim()!=zOrig) { - x6.json.addParm(id,$(this).prop('value')); - } - } - } + x6.json.addParm(this.id,$(this).val()); }); }, /******/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ken...@us...> - 2009-02-04 02:52:48
|
Revision: 1221 http://andro.svn.sourceforge.net/andro/?rev=1221&view=rev Author: kendowns Date: 2009-02-04 02:52:45 +0000 (Wed, 04 Feb 2009) Log Message: ----------- Added Paths: ----------- apps/finance/releases/2009.02.03/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ken...@us...> - 2009-02-04 02:51:57
|
Revision: 1220 http://andro.svn.sourceforge.net/andro/?rev=1220&view=rev Author: kendowns Date: 2009-02-04 02:51:50 +0000 (Wed, 04 Feb 2009) Log Message: ----------- Added Paths: ----------- releases/2009.02.03/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ken...@us...> - 2009-02-04 02:51:19
|
Revision: 1219 http://andro.svn.sourceforge.net/andro/?rev=1219&view=rev Author: kendowns Date: 2009-02-04 02:51:10 +0000 (Wed, 04 Feb 2009) Log Message: ----------- Allow fallback to x2 processing from within x6. Modified Paths: -------------- trunk/andro/lib/index_hidden.php Modified: trunk/andro/lib/index_hidden.php =================================================================== --- trunk/andro/lib/index_hidden.php 2009-02-04 02:50:45 UTC (rev 1218) +++ trunk/andro/lib/index_hidden.php 2009-02-04 02:51:10 UTC (rev 1219) @@ -658,6 +658,18 @@ # So we default to the conventional profile. if($x6method=='x6main' && $x6class=='androX6') { $x6method = 'profile_conventional'; + + # KFD 2/2/09. Allow fallback to x2 processing. If the + # app is set for it, and a file exists, call + # that instead + if(configGet('x6_x2','N')=='Y') { + if(file_exists(fsDirTop().'application/'.$x6page.'.php')) { + include_once('x_table2.php'); + include_once($x6page.'.php'); + $x6class = $x6page; + $x6method= "main"; + } + } } # Now everything is resolved. We know what class to instantiate This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ken...@us...> - 2009-02-04 02:50:48
|
Revision: 1218 http://andro.svn.sourceforge.net/andro/?rev=1218&view=rev Author: kendowns Date: 2009-02-04 02:50:45 +0000 (Wed, 04 Feb 2009) Log Message: ----------- Added a flag, "x6_x2". If Y, when a page is called and there is no x6 page, it will invoke an x2 page if it can find it. Modified Paths: -------------- trunk/andro/lib/andro_universal.add Modified: trunk/andro/lib/andro_universal.add =================================================================== --- trunk/andro/lib/andro_universal.add 2009-02-04 02:49:56 UTC (rev 1217) +++ trunk/andro/lib/andro_universal.add 2009-02-04 02:50:45 UTC (rev 1218) @@ -515,6 +515,11 @@ description: Public Default Template; flagcarry: N; } +column x6_x2 { + type_id: cbool; + description: Use x2 file if found and no x6 file; + flagcarry: N; +} column x6_group { type_id: vchar; colprec: 40; @@ -629,7 +634,7 @@ auth_net_login_id; auth_net_tran_key; } column { - x6_template; x6_group; x6_jssource; + x6_template; x6_x2; x6_group; x6_jssource; } } table configapp { @@ -693,7 +698,7 @@ column description { suffix: _x6; description: X6 Settings; } projection x6 { column { - flag_x6; x6_template; x6_group; x6_jssource; + flag_x6; x6_x2; x6_template; x6_group; x6_jssource; } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ken...@us...> - 2009-02-04 02:50:00
|
Revision: 1217 http://andro.svn.sourceforge.net/andro/?rev=1217&view=rev Author: kendowns Date: 2009-02-04 02:49:56 +0000 (Wed, 04 Feb 2009) Log Message: ----------- Fixed links on welcome page to go to new documentation urls Modified Paths: -------------- trunk/andro/application/x_welcome.php Modified: trunk/andro/application/x_welcome.php =================================================================== --- trunk/andro/application/x_welcome.php 2009-02-02 17:18:06 UTC (rev 1216) +++ trunk/andro/application/x_welcome.php 2009-02-04 02:49:56 UTC (rev 1217) @@ -84,7 +84,7 @@ If you want to start programming a new application right away, <a target="_blank" href= - "http://www.andromeda-project.org/pages/cms/creating+an+application.html" + "http://www.andromeda-project.org/creatinganapplication.html" >The instructions are here</a>, or you can just <a href="?gp_page=applications&gp_mode=ins">define a new application here.</a> <br/> @@ -109,23 +109,17 @@ All Andromeda applications start with a database specification. These specifications are more powerful than anything else out there, -and you will want learn the Andromeda way to +and you will want learn the Andromeda's <a target="_blank" href= -"http://www.andromeda-project.org/pages/cms/database+programming.html" ->Define a Database</a>, and if you don't want to read the primer, you -can start with the <a target="_blank" href= -"http://www.andromeda-project.org/pages/cms/a+starter+database+specification.html" ->Sample Specification</a>. +"http://www.andromeda-project.org/databaseprogramming.html" +>Database Programming</a> language. <br/> <br/> Once you are ready to try some custom pages, you are ready to look at <a target="_blank" href= -"http://www.andromeda-project.org/pages/cms/Web+Programming" ->Web Programming</a>, and if you want to dive into your first page, the -instructions for <a target="_blank" href= -"http://www.andromeda-project.org/pages/cms/Pages%2C+Classes+and+Tables" ->Where to put the file and what to put in it.</a> +"http://www.andromeda-project.org/webprogramming.html" +>Web Programming</a>. </div> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ken...@us...> - 2009-02-02 17:18:09
|
Revision: 1216 http://andro.svn.sourceforge.net/andro/?rev=1216&view=rev Author: kendowns Date: 2009-02-02 17:18:06 +0000 (Mon, 02 Feb 2009) Log Message: ----------- Various fixes from prior few days. Added Paths: ----------- releases/2009.02.02/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ken...@us...> - 2009-02-02 17:17:11
|
Revision: 1215 http://andro.svn.sourceforge.net/andro/?rev=1215&view=rev Author: kendowns Date: 2009-02-02 17:17:09 +0000 (Mon, 02 Feb 2009) Log Message: ----------- fixed bug with app_nopage not having any effect. Modified Paths: -------------- trunk/andro/lib/index_hidden.php Modified: trunk/andro/lib/index_hidden.php =================================================================== --- trunk/andro/lib/index_hidden.php 2009-02-02 16:22:08 UTC (rev 1214) +++ trunk/andro/lib/index_hidden.php 2009-02-02 17:17:09 UTC (rev 1215) @@ -368,7 +368,7 @@ # may have come in, such as gp_dropdown, which causes # this to be ignored. # -if(gp('x4Page')=='' && gp('gp_page')=='') { +if(gp('x4Page')=='' && gp('gp_page')=='' &&gp('x6page')=='') { if(function_exists('app_nopage')) { app_nopage(); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ken...@us...> - 2009-02-02 16:22:17
|
Revision: 1214 http://andro.svn.sourceforge.net/andro/?rev=1214&view=rev Author: kendowns Date: 2009-02-02 16:22:08 +0000 (Mon, 02 Feb 2009) Log Message: ----------- Fix to xref save. Modified Paths: -------------- trunk/andro/lib/androX6.php Modified: trunk/andro/lib/androX6.php =================================================================== --- trunk/andro/lib/androX6.php 2009-02-02 16:21:39 UTC (rev 1213) +++ trunk/andro/lib/androX6.php 2009-02-02 16:22:08 UTC (rev 1214) @@ -583,7 +583,7 @@ function checkboxSave() { $row = aFromGP('cbval_'); x6Data('row',$row); - $table_id = gp('x6table'); + $table_id = gp('x6page'); if(gp('checked')=='true') { SQLX_Insert($table_id,$row); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ken...@us...> - 2009-02-02 16:21:43
|
Revision: 1213 http://andro.svn.sourceforge.net/andro/?rev=1213&view=rev Author: kendowns Date: 2009-02-02 16:21:39 +0000 (Mon, 02 Feb 2009) Log Message: ----------- fix to saving users in groups -- underlying issue was fix to x6ref save. Modified Paths: -------------- trunk/andro/clib/x6.js Modified: trunk/andro/clib/x6.js =================================================================== --- trunk/andro/clib/x6.js 2009-01-30 21:06:25 UTC (rev 1212) +++ trunk/andro/clib/x6.js 2009-02-02 16:21:39 UTC (rev 1213) @@ -6373,7 +6373,7 @@ // Here we have all of the values we need to make // a literal command to the back to either insert // or delete a row. - var json = new x6JSON('x6table',args.x6table); + var json = new x6JSON('x6page',args.x6table); json.addParm('x6action','checkboxSave'); json.addParm('checked',inp.checked); json.addParm('cbval_'+args.pkl,args.pkvalleft); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |