File: test.html

package info (click to toggle)
raintpl 3.1.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 888 kB
  • sloc: php: 1,555; javascript: 683; makefile: 8
file content (28 lines) | stat: -rw-r--r-- 929 bytes parent folder | download | duplicates (3)
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
27
28
<!DOCTYPE html>
<html lang="en">
    <head>
        <title>Test</title>
        <link rel="stylesheet" href="style.css" type="text/css" />
    </head>
    <body>

        <h3>Loop <font color="red">NEST</font> example with associative array</h3>
    <tt>
        <ul> 
            <li>ID _ Name _ Color</li> 
            {loop="$user"}
            <li class="color{$counter%2+1}">{$key}) - {$value.name|strtoupper} - {$value.color} 
                {if="!empty($value.orders)"} 
                <ul> 
                    {loop="$value.orders"}
                    <li>{$value1.name} - {$key1} - {$counter1} - {$counter} - {$key} - {function str_replace(array('sn','rf','fsd'), '',$value.order_id)} - {$value.order_id} - {$value.order_name}</li> 
                    {/loop} 
                </ul> 
                {/if} 
            </li>
            {/loop} 
        </ul> 
    </tt> 

</body>
</html>