-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
executable file
·26 lines (23 loc) · 849 Bytes
/
Copy pathindex.php
File metadata and controls
executable file
·26 lines (23 loc) · 849 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
ini_set( 'display_startup_errors', 1 );
ini_set( 'display_errors', 1 );
error_reporting( -1 );
error_reporting( E_ALL & ~E_STRICT );
require_once( $_SERVER[ "DOCUMENT_ROOT" ] . "/TemplateWithList.class.php" );
use template\TemplateWithList;
$templateFileName = 'index.tpl';
$templateMap = array(
'%DATE_NOW%' => date( 'd.m.Y' ),
'%TIME_NOW%' => date( 'H:i:s' ),
'%SAMPLE_LIST%' => array(
'%SAMPLE_LIST_ITEM%' => 'item',
'%ITEM_MODE%' => 'mode',
array(
array( 'item' => 45.15, 'mode' => '' ),
array( 'item' => 50.05, 'mode' => 'selected' ),
array( 'item' => 115.20, 'mode' => '' ),
)
)
);
print TemplateWithList::toHtml( $templateFileName, $templateMap );
?>