projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Version change for PR#23, fixed dbinstall.php for it to work.
[timetracker.git]
/
WEB-INF
/
templates
/
reports.tpl
diff --git
a/WEB-INF/templates/reports.tpl
b/WEB-INF/templates/reports.tpl
index
696142b
..
ce804dc
100644
(file)
--- a/
WEB-INF/templates/reports.tpl
+++ b/
WEB-INF/templates/reports.tpl
@@
-149,7
+149,7
@@
function handleCheckboxes() {
{$forms.reportForm.open}
<div style="padding: 0 0 10 0;">
{$forms.reportForm.open}
<div style="padding: 0 0 10 0;">
- <table border="0"
bgcolor="#efefef" width="720
">
+ <table border="0"
class="divider
">
<tr>
<td>
<table cellspacing="1" cellpadding="3" border="0">
<tr>
<td>
<table cellspacing="1" cellpadding="3" border="0">
@@
-167,9
+167,9
@@
function handleCheckboxes() {
<tr>
<td valign="top" colspan="2" align="center">
<table border="0" cellpadding="3">
<tr>
<td valign="top" colspan="2" align="center">
<table border="0" cellpadding="3">
-{if ((
in_array('cl', explode(',', $user->plugins)
) && !($user->isClient() && $user->client_id)) || ($custom_fields && $custom_fields->fields[0] && $custom_fields->fields[0]['type'] == CustomFields::TYPE_DROPDOWN))}
+{if ((
$user->isPluginEnabled('cl'
) && !($user->isClient() && $user->client_id)) || ($custom_fields && $custom_fields->fields[0] && $custom_fields->fields[0]['type'] == CustomFields::TYPE_DROPDOWN))}
<tr>
<tr>
- {if
in_array('cl', explode(',', $user->plugins)
) && !($user->isClient() && $user->client_id)}<td><b>{$i18n.label.client}</b></td>{else}<td> </td>{/if}
+ {if
$user->isPluginEnabled('cl'
) && !($user->isClient() && $user->client_id)}<td><b>{$i18n.label.client}</b></td>{else}<td> </td>{/if}
<td> </td>
{if ($custom_fields && $custom_fields->fields[0] && $custom_fields->fields[0]['type'] == CustomFields::TYPE_DROPDOWN)}<td><b>{$i18n.label.option}</b></td>{else}<td> </td>{/if}
</tr>
<td> </td>
{if ($custom_fields && $custom_fields->fields[0] && $custom_fields->fields[0]['type'] == CustomFields::TYPE_DROPDOWN)}<td><b>{$i18n.label.option}</b></td>{else}<td> </td>{/if}
</tr>
@@
-197,7
+197,7
@@
function handleCheckboxes() {
{/if}
</tr>
{/if}
{/if}
</tr>
{/if}
-{if
in_array('iv', explode(',', $user->plugins)
)}
+{if
$user->isPluginEnabled('iv'
)}
<tr>
<td><b>{$i18n.form.time.billable}</b></td>
<td> </td>
<tr>
<td><b>{$i18n.form.time.billable}</b></td>
<td> </td>
@@
-236,12
+236,12
@@
function handleCheckboxes() {
<tr>
<td colspan="3">
<table border="0" width="100%">
<tr>
<td colspan="3">
<table border="0" width="100%">
-{if
in_array('cl', explode(',', $user->plugins)) || in_array('iv', explode(',', $user->plugins)
)}
+{if
$user->isPluginEnabled('cl') || $user->isPluginEnabled('iv'
)}
<tr>
<tr>
- {if
in_array('cl', explode(',', $user->plugins)
)}
+ {if
$user->isPluginEnabled('cl'
)}
<td width="25%"><label>{$forms.reportForm.chclient.control} {$i18n.label.client}</label></td>
{/if}
<td width="25%"><label>{$forms.reportForm.chclient.control} {$i18n.label.client}</label></td>
{/if}
- {if ($user->canManageTeam() || $user->isClient()) &&
in_array('iv', explode(',', $user->plugins)
)}
+ {if ($user->canManageTeam() || $user->isClient()) &&
$user->isPluginEnabled('iv'
)}
<td width="25%"><label>{$forms.reportForm.chinvoice.control} {$i18n.label.invoice}</label></td>
{/if}
</tr>
<td width="25%"><label>{$forms.reportForm.chinvoice.control} {$i18n.label.invoice}</label></td>
{/if}
</tr>
@@
-278,7
+278,7
@@
function handleCheckboxes() {
</table>
<div style="padding: 10 0 10 0;">
</table>
<div style="padding: 10 0 10 0;">
- <table border="0"
bgcolor="#efefef" width="720
">
+ <table border="0"
class="divider
">
<tr>
<td align="center">
<table cellspacing="1" cellpadding="3" border="0">
<tr>
<td align="center">
<table cellspacing="1" cellpadding="3" border="0">