print $s ? $s . ' ' : ''; print $conf->global->MAIN_LANG_DEFAULT == 'auto' ? $langs->trans("AutoDetectLang") : $langs->trans("Language_" . $conf->global->MAIN_LANG_DEFAULT); print '</td>'; print '<td width="20">'; if ($user->admin && $conf->global->MAIN_LANG_DEFAULT != 'auto') { print info_admin($langs->trans("SubmitTranslation" . ($conf->global->MAIN_LANG_DEFAULT == 'en_US' ? 'ENUS' : ''), $conf->global->MAIN_LANG_DEFAULT), 1); } print '</td>'; print "</tr>"; $var = !$var; print '<tr ' . $bc[$var] . '><td width="35%">' . $langs->trans("EnableMultilangInterface") . '</td><td>' . yn($conf->global->MAIN_MULTILANGS) . '</td>'; print '<td width="20"> </td>'; print "</tr>"; print '</table><br>' . "\n"; // Themes show_theme(null, 0); print '<br>'; // List of search forms to show if (!empty($searchform)) { print '<table class="noborder" width="100%">'; print '<tr class="liste_titre"><td width="35%">' . $langs->trans("PermanentLeftSearchForm") . '</td><td>' . $langs->trans("Activated") . '</td><td> </td></tr>'; $var = true; foreach ($searchform as $key => $value) { $var = !$var; print '<tr ' . $bc[$var] . '><td width="35%">' . $searchformtitle[$key] . '</td><td>' . yn($searchformconst[$key]) . '</td>'; print '<td align="left">'; if (!empty($searchformmodule[$key])) { print $langs->trans("IfModuleEnabled", $langs->transnoentitiesnoconv($searchformmodule[$key])); } print '</td></tr>'; }
remove_calendar_events(); break; case 'publish_calendar': change_calendar(1); break; case 'unpublish_calendar': change_calendar(0); break; ////////////THEME//////////////// ////////////THEME//////////////// case 'add_theme': case 'edit_theme': edit_theme(); break; case 'theme': show_theme(); break; case 'save_theme': case 'apply_theme': save_theme(); break; case 'cancel_theme': cancel_theme(); break; case 'remove_theme': removeTheme(); break; case 'preview_theme': preview_theme(); break; case 'license':
print '</td>'; print '<td width="20">'; if ($user->admin && $conf->global->MAIN_LANG_DEFAULT!='auto') print info_admin($langs->trans("SubmitTranslation",$conf->global->MAIN_LANG_DEFAULT),1); print '</td>'; print "</tr>"; $var=!$var; print '<tr '.$bc[$var].'><td width="35%">'.$langs->trans("EnableMultilangInterface").'</td><td>' . yn($conf->global->MAIN_MULTILANGS) . '</td>'; print '<td width="20"> </td>'; print "</tr>"; print '</table><br>'."\n"; // Themes show_theme('',0); print '<br>'; // Liste des zone de recherches permanentes supportees print '<table class="noborder" width="100%">'; print '<tr class="liste_titre"><td width="35%">'.$langs->trans("PermanentLeftSearchForm").'</td><td>'.$langs->trans("Activated").'</td><td> </td></tr>'; $var=true; foreach ($searchform as $key => $value) { $var=!$var; print '<tr '.$bc[$var].'><td width="35%">'.$searchformtitle[$key].'</td><td>'.yn($searchformconst[$key]).'</td>'; print '<td align="left">'.$langs->trans("IfModuleEnabled",$langs->transnoentitiesnoconv($searchformmodule[$key])); print '</td></tr>'; } print '</table>';
print isset($conf->global->MAIN_LANG_DEFAULT) && $conf->global->MAIN_LANG_DEFAULT == 'auto' ? $langs->trans("AutoDetectLang") : $langs->trans("Language_" . $conf->global->MAIN_LANG_DEFAULT); print '</td>'; print '<td align="left" class="nowrap" width="20%"><input ' . $bc[$var] . ' type="checkbox" disabled ' . (!empty($object->conf->MAIN_LANG_DEFAULT) ? " checked" : "") . '> ' . $langs->trans("UsePersonalValue") . '</td>'; print '<td>'; $s = isset($object->conf->MAIN_LANG_DEFAULT) ? picto_from_langcode($object->conf->MAIN_LANG_DEFAULT) : ''; print $s ? $s . ' ' : ''; print isset($object->conf->MAIN_LANG_DEFAULT) && $object->conf->MAIN_LANG_DEFAULT == 'auto' ? $langs->trans("AutoDetectLang") : (!empty($object->conf->MAIN_LANG_DEFAULT) ? $langs->trans("Language_" . $object->conf->MAIN_LANG_DEFAULT) : ''); print '</td></tr>'; $var = !$var; print '<tr ' . $bc[$var] . '><td>' . $langs->trans("MaxSizeList") . '</td>'; print '<td>' . (!empty($conf->global->MAIN_SIZE_LISTE_LIMIT) ? $conf->global->MAIN_SIZE_LISTE_LIMIT : ' ') . '</td>'; print '<td align="left" class="nowrap" width="20%"><input ' . $bc[$var] . ' type="checkbox" disabled ' . (!empty($object->conf->MAIN_SIZE_LISTE_LIMIT) ? " checked" : "") . '> ' . $langs->trans("UsePersonalValue") . '</td>'; print '<td>' . (!empty($object->conf->MAIN_SIZE_LISTE_LIMIT) ? $object->conf->MAIN_SIZE_LISTE_LIMIT : ' ') . '</td></tr>'; print '</table><br>'; // Skin show_theme($object, 0, true); dol_fiche_end(); print '<div class="tabsAction">'; if (empty($user->admin) && !empty($dolibarr_main_demo)) { print "<a class=\"butActionRefused\" title=\"" . $langs->trans("FeatureDisabledInDemo") . "\" href=\"#\">" . $langs->trans("Modify") . "</a>"; } else { if ($caneditfield || !empty($user->admin)) { print '<a class="butAction" href="' . $_SERVER["PHP_SELF"] . '?action=edit&id=' . $object->id . '">' . $langs->trans("Modify") . '</a>'; } else { print "<a class=\"butActionRefused\" title=\"" . $langs->trans("NotEnoughPermissions") . "\" href=\"#\">" . $langs->trans("Modify") . "</a>"; } } print '</div>'; } dol_fiche_end(); llxFooter();
$s=(isset($fuser->conf->MAIN_LANG_DEFAULT) ? picto_from_langcode($fuser->conf->MAIN_LANG_DEFAULT) : ''); print ($s?$s.' ':''); print (isset($fuser->conf->MAIN_LANG_DEFAULT) && $fuser->conf->MAIN_LANG_DEFAULT=='auto'?$langs->trans("AutoDetectLang"):(! empty($fuser->conf->MAIN_LANG_DEFAULT)?$langs->trans("Language_".$fuser->conf->MAIN_LANG_DEFAULT):'')); print '</td></tr>'; $var=!$var; print '<tr '.$bc[$var].'><td>'.$langs->trans("MaxSizeList").'</td>'; print '<td>'.(! empty($conf->global->MAIN_SIZE_LISTE_LIMIT)?$conf->global->MAIN_SIZE_LISTE_LIMIT:' ').'</td>'; print '<td align="left" nowrap="nowrap" width="20%"><input '.$bc[$var].' type="checkbox" disabled '.(! empty($fuser->conf->MAIN_SIZE_LISTE_LIMIT)?" checked":"").'> '.$langs->trans("UsePersonalValue").'</td>'; print '<td>' . (! empty($fuser->conf->MAIN_SIZE_LISTE_LIMIT)?$fuser->conf->MAIN_SIZE_LISTE_LIMIT:' ') . '</td></tr>'; print '</table><br>'; // Skin show_theme($fuser,0,true); print '</div>'; print '<div class="tabsAction">'; if (empty($user->admin) && ! empty($dolibarr_main_demo)) { print "<a class=\"butActionRefused\" title=\"".$langs->trans("FeatureDisabledInDemo")."\" href=\"#\">".$langs->trans("Modify")."</a>"; } else { if ($user->id == $fuser->id || ! empty($user->admin)) // Si utilisateur edite = utilisateur courant (pas besoin de droits particulier car il s'agit d'une page de modif d'output et non de données) ou si admin { print '<a class="butAction" href="'.$_SERVER["PHP_SELF"].'?action=edit&id='.$fuser->id.'">'.$langs->trans("Modify").'</a>'; } else
function Spider_Video_Player_Themes() { wp_enqueue_script('media-upload'); wp_admin_css('thickbox'); require_once "Theme_functions.php"; // add functions for Spider_Video_Player require_once "Themes_function.html.php"; // add functions for vive Spider_Video_Player if (isset($_GET["task"])) { $task = htmlspecialchars($_GET["task"]); } else { $task = ""; } if (isset($_GET["id"])) { $id = htmlspecialchars($_GET["id"]); } else { $id = 0; } switch ($task) { case 'theme': show_theme(); break; case 'default': $nonce_sp_vid = $_REQUEST['_wpnonce']; if (!wp_verify_nonce($nonce_sp_vid, 'nonce_sp_vid')) { die("Are you sure you want to do this?"); } default_theme($id); show_theme(); break; case 'add_theme': add_theme(); break; case 'Save': if ($id) { check_admin_referer('nonce_sp_vid', 'nonce_sp_vid'); apply_theme($id); } else { check_admin_referer('nonce_sp_vid', 'nonce_sp_vid'); save_theme(); } show_theme(); break; case 'Apply': if ($id) { check_admin_referer('nonce_sp_vid', 'nonce_sp_vid'); apply_theme($id); } else { check_admin_referer('nonce_sp_vid', 'nonce_sp_vid'); save_theme(); } edit_theme($id); break; case 'edit_theme': edit_theme($id); break; case 'remove_theme': $nonce_sp_vid = $_REQUEST['_wpnonce']; if (!wp_verify_nonce($nonce_sp_vid, 'nonce_sp_vid')) { die("Are you sure you want to do this?"); } remove_theme($id); show_theme(); break; default: show_theme(); } }
function Form_maker_Themes() { require_once "Theme_functions.php"; require_once "Themes_function.html.php"; if (!function_exists('print_html_nav')) { require_once "nav_function/nav_html_func.php"; } global $wpdb; if (isset($_GET["task"])) { $task = esc_html($_GET["task"]); } else { $task = ""; } if (isset($_GET["id"])) { $id = (int) $_GET["id"]; } else { $id = 0; } switch ($task) { case 'theme': show_theme(); break; case 'default': default_theme($id); show_theme(); break; case 'add_theme': add_theme(); break; case 'Save': if ($id) { apply_theme($id); } else { save_theme(); } show_theme(); break; case 'Apply': if ($id) { apply_theme($id); } else { save_theme(); $id = $wpdb->get_var("SELECT MAX(id) FROM " . $wpdb->prefix . "formmaker_themes"); } edit_theme($id); break; case 'edit_theme': edit_theme($id); break; case 'remove_theme': remove_theme($id); show_theme(); break; default: show_theme(); } }
function Spider_Video_Player_Themes() { wp_enqueue_script('media-upload'); wp_admin_css('thickbox'); require_once "Theme_functions.php"; // add functions for Spider_Video_Player require_once "Themes_function.html.php"; // add functions for vive Spider_Video_Player if (isset($_GET["task"])) { $task = htmlspecialchars($_GET["task"]); } else { $task = ""; } if (isset($_GET["id"])) { $id = htmlspecialchars($_GET["id"]); } else { $id = 0; } switch ($task) { case 'theme': show_theme(); break; case 'default': default_theme($id); show_theme(); break; case 'add_theme': add_theme(); break; case 'Save': if ($id) { apply_theme($id); } else { save_theme(); } show_theme(); break; case 'Apply': if ($id) { apply_theme($id); } else { save_theme(); } edit_theme($id); break; case 'edit_theme': edit_theme($id); break; case 'remove_theme': remove_theme($id); show_theme(); break; default: show_theme(); } }