Work on multicompany module with smarty integration
@ -158,11 +158,15 @@ class Multicompany
|
||||
{
|
||||
global $conf,$langs;
|
||||
|
||||
$smarty->assign('langs', $langs);
|
||||
|
||||
$picto='title.png';
|
||||
if (empty($conf->browser->firefox)) $picto='title.gif';
|
||||
$smarty->assign('title_picto', img_picto('',$picto));
|
||||
$smarty->assign('title_text', $langs->trans('Setup'));
|
||||
$smarty->assign('langs', $langs);
|
||||
|
||||
$smarty->assign('entities',$this->entities);
|
||||
$smarty->assign('img_on',img_picto($langs->trans("Activated"),'on'));
|
||||
$smarty->assign('img_off',img_picto($langs->trans("Disabled"),'on'));
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -20,12 +20,29 @@
|
||||
<!-- BEGIN SMARTY TEMPLATE -->
|
||||
|
||||
<table class="noborder" width="100%">
|
||||
<tr class="liste_titre">
|
||||
<tr class="liste_titre">
|
||||
|
||||
<td>{$langs->trans('Name')}</td>
|
||||
<td>{$langs->trans('Description')}</td>
|
||||
<td align="center">{$langs->trans('Activated')}</td>
|
||||
<td align="center" width="20"> </td>
|
||||
<td>{$langs->trans('Name')}</td>
|
||||
<td align="left">{$langs->trans('Description')}</td>
|
||||
<td align="center">{$langs->trans('Status')}</td>
|
||||
|
||||
{section name=mc loop=$entities}
|
||||
{strip}
|
||||
<tr class="{cycle values="impair,pair"}">
|
||||
<td>{$entities[mc].label}</td>
|
||||
<td align="left"> </td>
|
||||
<td align="center">
|
||||
|
||||
{if $entities[mc].active}
|
||||
{$img_on}
|
||||
{else}
|
||||
{$img_off}
|
||||
{/if}
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
{/strip}
|
||||
{/section}
|
||||
|
||||
</tr></table>
|
||||
|
||||
|
||||
BIN
htdocs/theme/auguria/img/off.png
Normal file
|
After Width: | Height: | Size: 654 B |
BIN
htdocs/theme/auguria/img/on.png
Normal file
|
After Width: | Height: | Size: 670 B |
BIN
htdocs/theme/bluelagoon/img/off.png
Normal file
|
After Width: | Height: | Size: 654 B |
BIN
htdocs/theme/bluelagoon/img/on.png
Normal file
|
After Width: | Height: | Size: 670 B |
BIN
htdocs/theme/eldy/img/off.png
Normal file
|
After Width: | Height: | Size: 654 B |
BIN
htdocs/theme/eldy/img/on.png
Normal file
|
After Width: | Height: | Size: 670 B |
BIN
htdocs/theme/freelug/img/off.png
Normal file
|
After Width: | Height: | Size: 654 B |
BIN
htdocs/theme/freelug/img/on.png
Normal file
|
After Width: | Height: | Size: 670 B |
BIN
htdocs/theme/rodolphe/img/off.png
Normal file
|
After Width: | Height: | Size: 654 B |
BIN
htdocs/theme/rodolphe/img/on.png
Normal file
|
After Width: | Height: | Size: 670 B |
BIN
htdocs/theme/yellow/img/off.png
Normal file
|
After Width: | Height: | Size: 654 B |
BIN
htdocs/theme/yellow/img/on.png
Normal file
|
After Width: | Height: | Size: 670 B |