C
|
cgphp 1/7/2013 |
You can add a template variable (http://xlinesoft.com/phprunner/docs/smarty_templates.htm) to the Report editor and assign it the current date. |
S
|
sickacid author 1/7/2013 |
Can U do an example? You can add a template variable (http://xlinesoft.com/phprunner/docs/smarty_templates.htm) to the Report editor and assign it the current date. |
C
|
cgphp 1/7/2013 |
Enter the following code to the "Before display" event: $xt->assign('current_date',now());
{$current_date} |
S
|
sickacid author 1/7/2013 |
I'm sorry, maby I've done the wrong question, it works only on report page, but i need it on the print report page. |
C
|
cgphp 1/7/2013 |
The procedure for the Print page is the same. |
S
|
sickacid author 1/7/2013 |
I've done this after page counter: The procedure for the Print page is the same. |
C
|
cgphp 1/7/2013 |
Did you assign to the variable the date value? |
S
|
sickacid author 1/7/2013 |
In before display i've done this: Did you assign to the variable the date value? |
C
|
cgphp 1/7/2013 |
For the Print Report page, you can use javascript code instead of the template variable. Embed the following JS code directly into the HTML editor where you want to show the current date:
|