2009-06-30 09:22:30 +00:00
|
|
|
<?php
|
2009-06-30 09:29:51 +00:00
|
|
|
/**
|
|
|
|
* This will show a nice table of all the icons used by phpLDAPadmin.
|
|
|
|
* @package phpLDAPadmin
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
*/
|
2009-06-30 09:22:30 +00:00
|
|
|
?>
|
2009-06-30 09:29:51 +00:00
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<link rel="stylesheet" href="../style.css" media="screen" />
|
|
|
|
</head>
|
2009-06-30 09:22:30 +00:00
|
|
|
<body>
|
|
|
|
<h3 class="title">phpLDAPadmin icons</h3>
|
|
|
|
<br />
|
|
|
|
<center>
|
|
|
|
<?php
|
|
|
|
|
|
|
|
$dir = opendir( '.' );
|
|
|
|
while( ( $file = readdir( $dir ) ) !== false ) {
|
|
|
|
if( $file == '.' || $file == '..' )
|
|
|
|
continue;
|
|
|
|
if( ! preg_match( '/\.png$/', $file ) )
|
|
|
|
continue;
|
|
|
|
if( $file == 'phpLDAPadmin_logo1.png' )
|
|
|
|
continue;
|
|
|
|
$files[ filesize( $file ) . '_' . $file ] = $file;
|
|
|
|
}
|
|
|
|
|
2009-06-30 09:29:51 +00:00
|
|
|
sort( $files );
|
2009-06-30 09:22:30 +00:00
|
|
|
|
2009-06-30 09:29:51 +00:00
|
|
|
$cell_style = "color: #888; text-align:center; padding: 10px; padding-bottom: 20px; vertical-align: bottom;";
|
2009-06-30 09:22:30 +00:00
|
|
|
$counter = 0;
|
2009-06-30 09:29:51 +00:00
|
|
|
print "<center><b>The " . count( $files ) . " icons used by phpLDAPadmin</b></center>";
|
|
|
|
echo "<table style=\"font-family: arial; font-size: 12px;\">";
|
|
|
|
echo "<tr>";
|
2009-06-30 09:22:30 +00:00
|
|
|
foreach( $files as $file ) {
|
2009-06-30 09:29:51 +00:00
|
|
|
if( $counter % 6 == 0 ) {
|
|
|
|
echo "</tr>\n";
|
|
|
|
flush();
|
|
|
|
echo "<tr>";
|
|
|
|
}
|
2009-06-30 09:22:30 +00:00
|
|
|
$counter++;
|
2009-06-30 09:29:51 +00:00
|
|
|
echo '<td style="' . $cell_style . '"><img title="' . htmlspecialchars( $file ) . '" src="' . htmlspecialchars( $file ) . '" /><br />';
|
|
|
|
echo "$file</td>\n";
|
2009-06-30 09:22:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
?>
|
|
|
|
</center>
|
|
|
|
</body>
|
|
|
|
</html>
|