$ricoLogging=isset($_GET["log"]);\r
} else {\r
// set your production values here\r
- $ricoLib="prototype"; // base library\r
+ $ricoLib="proto_min.js"; // base library\r
$ricoTheme="j-ui-lightness"; // jquery themes start with j-, rico themes start with r-\r
$ricoLogging=false;\r
}\r
LoadLib($ricoLib, $LoadBaseLib);\r
setLang();\r
LoadTheme($ricoTheme);\r
+WriteStyles();\r
+\r
+\r
+function WriteStyles() {\r
+ global $imgDir,$ricoTheme;\r
+ echo "<style type='text/css'>\n";\r
+ //For Each ctrl As Control In Page.Controls\r
+ // If TypeOf (ctrl) Is GridBase Then writer.Write(CType(ctrl, GridBase).GridRules())\r
+ // If TypeOf (ctrl) Is LiveGrid Then writer.Write(CType(ctrl, LiveGrid).ColumnRules())\r
+ //Next\r
+ if ($ricoTheme=="r-grayedout") {\r
+ echo ".Rico_accTitle, .ricoTitle, table.ricoLiveGrid thead th, table.ricoLiveGrid thead td, tr.ricoLG_hdg td, tr.ricoLG_hdg th {\n";\r
+ echo " background-position: left center;\n";\r
+ echo " background-repeat: repeat-x;\n";\r
+ echo " background-image: url('" . $imgDir . "grayedout.gif');\n";\r
+ echo "}\n";\r
+ }\r
+ echo ".ricoLG_Resize {\n";\r
+ echo " background-repeat: repeat;\n";\r
+ echo " background-image: url('" . $imgDir . "resize.gif');\n";\r
+ echo "}\n";\r
+ echo ".rico-icon {\n";\r
+ echo " background-repeat: no-repeat;\n";\r
+ echo " background-image: url('" . $imgDir . "ricoIcons.gif');\n";\r
+ echo "}\n";\r
+ echo "</style>\n";\r
+}\r
\r
\r
// initialize Rico\r
function SetConfig() {\r
- global $jsDir,$cssDir,$imgDir,$ricoLogging;\r
+ global $ricoLogging;\r
echo "\n<script type='text/javascript'>\n";\r
echo "Rico_CONFIG = {\n";\r
if ($ricoLogging) echo "enableLogging: true,\n";\r
- echo "jsDir: '" . $jsDir . "',\n";\r
- echo "imgResize: '" . $imgDir . "resize.gif',\n";\r
- echo "imgIcons: '" . $imgDir . "ricoIcons.gif'\n";\r
- echo "};";\r
+ echo "};\n";\r
echo "</script>\n";\r
}\r
\r
if ($lang2=='en') break; // already included\r
$fname=$transDir."ricoLocale_".$lang2.".js";\r
if (file_exists($fname)) {\r
- echo "<script src='".$fname."' type='text/javascript'></script>";\r
+ echo "<script src='".$fname."' type='text/javascript'></script>\n";\r
break;\r
} \r
}\r
switch ($prefix) {\r
case 'j':\r
requireRicoJS("Themeroller");\r
- echo "<link type='text/css' rel='Stylesheet' href='" . $jQuery_theme_path . $theme."/jquery-ui.css' />";\r
+ echo "<link type='text/css' rel='Stylesheet' href='" . $jQuery_theme_path . $theme."/jquery-ui.css' />\n";\r
break;\r
case 'r':\r
requireRicoCSS($theme);\r
break;\r
}\r
if ($grid_striping) {\r
- echo "<link type='text/css' rel='stylesheet' href='".$cssDir."striping_".$theme.".css' />";\r
+ echo "<link type='text/css' rel='stylesheet' href='".$cssDir."striping_".$theme.".css' />\n";\r
}\r
}\r
\r