--- /dev/null
+<?php
+
+if (!defined("_ECRIRE_INC_VERSION")) return;
+
+define('_DIR_JQUERYUI_JS','javascript/jquery-ui-1.8.16/ui/');
+define('_DIR_JQUERYUI_CSS','javascript/jquery-ui-1.8.16/themes/');
+
+/**
+ * Fonction pour lister les ss-repertoires de themes/ de jQuery UI
+ * retourne: array('rep1'=>'rep1','rep2'=>'rep2',...'no_css'=>'ne pas charger les CSS...')
+ *
+ */
+function jqueryui_array_themes() {
+ $Tthemes = array();
+ if ($pointeur = opendir(find_in_path(_DIR_JQUERYUI_CSS))) {
+ while (false !== ($rep = readdir($pointeur))) {
+ if ($rep != "." AND $rep != ".." AND $rep != ".svn" AND is_dir(find_in_path(_DIR_JQUERYUI_CSS).$rep)) {
+ $Tthemes[$rep] = $rep;
+ }
+ }
+ closedir($pointeur);
+ }
+ if(!defined('_JQUERYUI_FORCER_CSS'))
+ $Tthemes['no_css'] = _T('jqueryui:cfg_no_css');
+ return $Tthemes;
+}
+
+?>
\ No newline at end of file