about summary refs log tree commit diff stats
path: root/wiki/lib/images/fileicons/index.php
blob: 09b6c9df81b4c7f4fa0f11e380a7d57eda79c1d3 (plain) (blame)
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
    <title>filetype icons</title>

    <style type="text/css">
        body {
            background-color: #ccc;
            font-family: Arial;
        }

        .box {
            width: 200px;
            float:left;
            padding: 0.5em;
            margin: 0;
        }

        .white {
            background-color: #fff;
        }

        .black {
            background-color: #000;
        }
    </style>

</head>
<body>

<div class="white box">
<?php
foreach (glob('*.png') as $img) {
    echo '<img src="'.$img.'" alt="'.$img.'" title="'.$img.'" /> ';
}
?>
</div>

<div class="black box">
<?php
foreach (glob('*.png') as $img) {
    echo '<img src="'.$img.'" alt="'.$img.'" title="'.$img.'" /> ';
}
?>
</div>

<br style="clear: left" />

<div class="white box">
    <?php
    foreach (glob('32x32/*.png') as $img) {
        echo '<img src="'.$img.'" alt="'.$img.'" title="'.$img.'" /> ';
    }
    ?>
</div>

<div class="black box">
    <?php
    foreach (glob('32x32/*.png') as $img) {
        echo '<img src="'.$img.'" alt="'.$img.'" title="'.$img.'" /> ';
    }
    ?>
</div>


</body>
</html>