New: On peut voir aperu d'un theme sans valider sons changement

This commit is contained in:
Laurent Destailleur 2007-08-08 14:40:04 +00:00
parent 714a3453aa
commit e82cd15edf
3 changed files with 14 additions and 1 deletions

View File

@ -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>';

View File

@ -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)

View File

@ -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)