New: On peut voir aperu d'un theme sans valider sons changement
This commit is contained in:
parent
714a3453aa
commit
e82cd15edf
@ -349,7 +349,16 @@ function show_theme($edit=0)
|
||||
print '<td align="center">';
|
||||
$file=$dirtheme."/".$subdir."/thumb.png";
|
||||
if (! file_exists($file)) $file=$dirtheme."/common/nophoto.jpg";
|
||||
print '<table><tr><td><img src="'.$file.'" width="80" height="60"></td></tr><tr><td align="center">';
|
||||
print '<table><tr><td>';
|
||||
if ($edit) print '<a href="'.$_SERVER["PHP_SELF"].($edit?'?action=edit&theme=':'?theme=').$subdir.'" style="font-weight: normal;" alt="'.$langs->trans("Preview").'">';
|
||||
if ($edit)
|
||||
{
|
||||
if ($subdir == $conf->global->MAIN_THEME) $title=$langs->trans("ThemeCurrentlyActive");
|
||||
else $title=$langs->trans("ShowPreview");
|
||||
}
|
||||
print '<img src="'.$file.'" width="80" height="60" border="0" title="'.$title.'">';
|
||||
if ($edit) print '</a>';
|
||||
print '</td></tr><tr><td align="center">';
|
||||
if ($subdir == $conf->global->MAIN_THEME)
|
||||
{
|
||||
print '<input '.($edit?'':'disabled').' type="radio" '.$bc[$var].' style="border: 0px;" checked name="main_theme" value="'.$subdir.'"> <b>'.$subdir.'</b>';
|
||||
|
||||
@ -26,6 +26,8 @@ NotAvailableWhenAjaxDisabled=Not available when Ajax disabled
|
||||
JavascriptDisabled=JavaScript disabled
|
||||
UsePopupCalendar=Use popup for dates input
|
||||
UsePreviewTabs=Use preview tabs
|
||||
ShowPreview=Show preview
|
||||
ThemeCurrentlyActive=Theme currently active
|
||||
NextValue=Next value
|
||||
NextValueForInvoices=Next value (invoices)
|
||||
NextValueForCreditNotes=Next value (credit notes)
|
||||
|
||||
@ -26,6 +26,8 @@ NotAvailableWhenAjaxDisabled=Non disponible quand Ajax d
|
||||
JavascriptDisabled=Javascript désactivé
|
||||
UsePopupCalendar=Utiliser les popups pour la saisie des dates
|
||||
UsePreviewTabs=Afficher les onglets "Aperçu"
|
||||
ShowPreview=Afficher aperçu
|
||||
ThemeCurrentlyActive=Theme actuellement actif
|
||||
NextValue=Prochaine valeur
|
||||
NextValueForInvoices=Prochaine valeur (factures)
|
||||
NextValueForCreditNotes=Prochaine valeur (avoirs)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user