36 global $conf, $langs, $db;
39 require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formother.class.php';
43 $dirskins = array(
'/includes/ckeditor/ckeditor/skins');
44 if (!empty($conf->modules_parts[
'theme']))
46 foreach ($conf->modules_parts[
'theme'] as $reldir)
48 $dirskins = array_merge($dirskins, (array) ($reldir.
'theme'));
51 $dirskins = array_unique($dirskins);
55 if (empty($conf->global->FCKEDITOR_SKIN)) $selected_theme =
'moono-lisa';
56 else $selected_theme = $conf->global->FCKEDITOR_SKIN;
61 print '<table class="noborder centpercent">';
66 print '<tr class="liste_titre"><th width="35%">'.$langs->trans(
"DefaultSkin").
'</th>';
67 print '<th class="right">';
68 $url =
'http://ckeditor.com/addons/skins/all';
74 print '<tr class="oddeven">';
75 print '<td>'.$langs->trans(
"ThemeDir").
'</td>';
77 foreach ($dirskins as $dirskin)
79 echo
'"'.$dirskin.
'" ';
85 print '<tr class="oddeven"><td colspan="'.$colspan.
'">';
87 print '<table class="nobordernopadding" width="100%"><tr><td><div class="center">';
90 foreach ($dirskins as $dir)
98 $handle = opendir($dirskin);
99 if (is_resource($handle))
101 while (($subdir = readdir($handle)) !==
false)
103 if (is_dir($dirskin.
"/".$subdir) && substr($subdir, 0, 1) <>
'.'
104 && substr($subdir, 0, 3) <>
'CVS' && !preg_match(
'/common|phones/i', $subdir))
107 if ($conf->global->MAIN_FEATURES_LEVEL < 2 && preg_match(
'/_dev$/i', $subdir))
continue;
108 if ($conf->global->MAIN_FEATURES_LEVEL < 1 && preg_match(
'/_exp$/i', $subdir))
continue;
110 print '<div class="inline-block" style="margin-top: 10px; margin-bottom: 10px; margin-right: 20px; margin-left: 20px;">';
111 if ($subdir == $selected_theme)
113 print '<input '.($edit ?
'' :
'disabled').
' type="radio" '.$bc[$var].
' style="border: 0px;" checked name="fckeditor_skin" value="'.$subdir.
'"> <b>'.$subdir.
'</b>';
115 print '<input '.($edit ?
'' :
'disabled').
' type="radio" '.$bc[$var].
' style="border: 0px;" name="fckeditor_skin" value="'.$subdir.
'"> '.$subdir;
126 print '</div></td></tr></table>';
show_skin($fuser, $edit=0)
Show list of ckeditor's themes.
dol_buildpath($path, $type=0, $returnemptyifnotfound=0)
Return path of url or filesystem.
print
Draft customers invoices.