no. it's not that.
But I've try to do it in report template in javascript but I don't know how to get variable for "zmienna":
var zmienna=ROW.CASES_DATE_RECEIVED_FEES_C;
I don't know javascript - I've just copied and changed code from examples found on google.
HTML Code:
<!-- BEGIN: rows -->
<table cellpadding="0" cellspacing="0" width="100%" border="0" class="listView">
<tr height="20">
<td align="center" scope="col" class="listViewThS1" nowrap><slot>Case Number</a></slot></td>
<td align="center" scope="col" class="listViewThS1" nowrap><slot>Client Name</slot></td>
<td align="center" scope="col" class="listViewThS1" nowrap><slot>MY DATE</slot></td>
<td align="center" scope="col" class="listViewThS1" nowrap><slot>Graphic element</slot></td>
</tr>
<!-- BEGIN: row -->
<tr height="20" onmouseover="setPointer(this, '{ROW.CASES_ID}', 'over', '{BG_COLOR}', '{BG_HILITE}', '{BG_CLICK}');" onmouseout="setPointer(this, '{ROW.CASES_ID}', 'out', '{BG_COLOR}', '{BG_HILITE}', '{BG_CLICK}');" onmousedown="setPointer(this, '{ROW.CASES_ID}', 'click', '{BG_COLOR}', '{BG_HILITE}', '{BG_CLICK}');">
<td width"10%" class="{ROW_COLOR}S1" bgcolor="{BG_COLOR}"><slot><a href="{SITE_URL}/index.php?action=DetailView&module=Cases&record={ROW.CASES_ID}" class="listViewTdLinkS1">{ROW.CASES_NAME}</a></slot></td>
<td width"10%" class="{ROW_COLOR}S1" bgcolor="{BG_COLOR}"><slot>{ROW.CASES_ACCOUNT_NAME}</slot></td>
<td width"10%" class="{ROW_COLOR}S1" bgcolor="{BG_COLOR}"><slot>{ROW.CASES_DATE_RECEIVED_FEES_C}</slot></td>
<script type="text/javascript">
var d=new Date();
d.setDate (d.getDate() - 7);
var day=d.getDate();
var month=d.getMonth() + 1;
var year=d.getFullYear();
var dzien=(year + "-" + month + "-" + day);
var zmienna=ROW.CASES_DATE_RECEIVED_FEES_C;
if (zmienna > dzien) {
document.write("<td width\"10%\" class=\"{ROW_COLOR}S1\" bgcolor=\"{BG_COLOR}\"><img src=\"/img/pusty.jpg\" width=\"10\" height=\"10\" /></td>");
}
else {
document.write("<td width\"10%\" class=\"{ROW_COLOR}S1\" bgcolor=\"{BG_COLOR}\"><img src=\"/img/pusty.jpg\" width=\"10\" height=\"10\" /></td>");
}
</script>
</tr>
<tr>
<td colspan="20" class="listViewHRS1"></td>
</tr>
<!-- END: row -->
</table>
<!-- END: rows -->
Bookmarks