\n"; break; } } self::$lang2 = $i $value) { Client::$$property = $value; } } // This function writes out the required Rico settings in the head section of the html document function renderHead() { if (Client::$checkQueryString) { Client::$BaseLib=$_GET['lib']; Client::$theme=$_GET["theme"]; Client::$Logging=isset($_GET["log"]); Client::$HTML5=isset($_GET["html5"]); } $a=array(); if (Client::$Logging) $a[] = "enableLogging: true"; if (Client::$HTML5) $a[] = "enableHTML5: true"; if (count($a) > 0) { echo "\n\n"; } if (Client::$LoadBaseLib) { if (strpos(Client::$BaseLib,"/") === false) { echo "\n"; } else { echo "\n"; } } requireRicoJS("2" . substr(Client::$BaseLib,0,3)); requireRicoJS("_min"); requireRicoCSS("rico"); Client::SetLocale(); // load theme if (isset(Client::$theme) && strlen(Client::$theme) > 2) { $prefix=substr(Client::$theme,0,1); $themeName=substr(Client::$theme,2); switch ($prefix) { case 'j': requireRicoJS("Themeroller"); echo "\n"; break; case 'r': requireRicoCSS($themeName); break; } if (Client::$Striping) { echo "\n"; } } // write css styles echo "\n"; } function requireRicoJS($filename) { echo "\n"; } function requireRicoCSS($filename) { echo "\n"; } abstract class GridBase { protected $id; // Name of grid Javascript object public function gridVar() { return $this->id . ".grid"; } // Name of grid options Javascript object public function optionsVar() { return $this->id . ".options"; } // If enabled, an additional row is added to the grid header where column filters are placed. // See the EditCol.filterUI property to customize each column's filter. public $AutoFilter = false; // The token in select filters used to indicate "show all values" (default: "___ALL___"). public $FilterAllToken; // if unset, then use column heading width, otherwise this is the default width in pixels public $defaultWidth; // Allow user to resize columns? Default is true. public $allowColResize; // Number of frozen columns on the left (or right if direction=rtl). Default is 0. public $frozenColumns; // Height of one line of text in ems. Default is 1.2, which should be fine for almost all situations. public $RowLineHtEms = 1.2; // Resize grid when browser window is resized? Default is true. public $windowResize; // Specifies when the grid's popup menu should be invoked public $menuEvent; } ?>