{/foreach}
// Mandatory top option for project dropdown.
-empty_label_project = '{$i18n.dropdown.select|escape:'javascript'}';
+empty_label_project = "{$i18n.dropdown.select|escape:'javascript'}";
// The fillProjectDropdown function populates the project combo box with
// projects associated with a selected client (client id is passed here as id).
<td>{$forms.expensesForm.onBehalfUser.control}</td>
</tr>
{/if}
-{if in_array('cl', explode(',', $user->plugins))}
+{if $user->isPluginEnabled('cl')}
<tr>
- <td align="right">{$i18n.label.client}{if in_array('cm', explode(',', $user->plugins))} (*){/if}:</td>
+ <td align="right">{$i18n.label.client}{if $user->isPluginEnabled('cm')} (*){/if}:</td>
<td>{$forms.expensesForm.client.control}</td>
</tr>
{/if}
</tr>
<tr>
<td align="right">{$i18n.label.cost} (*):</td>
- <td>{$forms.expensesForm.cost.control} {$user->currency|escape:'html'}</td>
+ <td>{$forms.expensesForm.cost.control} {$user->currency|escape}</td>
</tr>
</table>
</td>
{if $expense_items}
<table border="0" cellpadding="3" cellspacing="1" width="100%">
<tr>
- {if in_array('cl', explode(',', $user->plugins))}
+ {if $user->isPluginEnabled('cl')}
<td width="20%" class="tableHeader">{$i18n.label.client}</td>
{/if}
{if ($smarty.const.MODE_PROJECTS == $user->tracking_mode || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)}
</tr>
{foreach $expense_items as $item}
<tr bgcolor="{cycle values="#f5f5f5,#ccccce"}">
- {if in_array('cl', explode(',', $user->plugins))}
- <td valign='top'>{$item.client|escape:'html'}</td>
+ {if $user->isPluginEnabled('cl')}
+ <td valign="top">{$item.client|escape}</td>
{/if}
{if ($smarty.const.MODE_PROJECTS == $user->tracking_mode || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)}
- <td valign='top'>{$item.project|escape:'html'}</td>
+ <td valign="top">{$item.project|escape}</td>
{/if}
- <td valign='top'>{$item.item|escape:'html'}</td>
- <td valign='top' align='right'>{$item.cost}</td>
- <td valign='top' align='center'>{if $item.invoice_id} {else}<a href='expense_edit.php?id={$item.id}'>{$i18n.label.edit}</a>{/if}</td>
+ <td valign="top">{$item.item|escape}</td>
+ <td valign="top" align="right">{$item.cost}</td>
+ <td valign="top" align="center">{if $item.invoice_id} {else}<a href='expense_edit.php?id={$item.id}'>{$i18n.label.edit}</a>{/if}</td>
</tr>
{/foreach}
</table>
<table border="0" cellpadding="3" cellspacing="1" width="100%">
<tr>
- <td nowrap align="right">{$i18n.label.day_total}: {$user->currency|escape:'html'} {$day_total}</td>
+ <td nowrap align="right">{$i18n.label.day_total}: {$user->currency|escape} {$day_total}</td>
</tr>
</table>
{/if}