Work on multicompany module with smarty integration

This commit is contained in:
Regis Houssin 2009-10-29 11:27:15 +00:00
parent d4e196f53e
commit c346f20477
14 changed files with 28 additions and 7 deletions

View File

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

View File

@ -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">&nbsp;</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">&nbsp;</td>
<td align="center">
{if $entities[mc].active}
{$img_on}
{else}
{$img_off}
{/if}
</td>
</tr>
{/strip}
{/section}
</tr></table>

Binary file not shown.

After

Width:  |  Height:  |  Size: 654 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 670 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 654 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 670 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 654 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 670 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 654 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 670 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 654 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 670 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 654 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 670 B