팁텍 모든 아이콘 출력하는 코드
페이지 정보
본문
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
define("_DOCTYPE_", "DESIGN");
$html_title = "아이콘 목록";
function getDirFiles($dirPath)
{
if ($handle = opendir($dirPath))
{
while (false !== ($file = readdir($handle)))
if ($file != "." && $file != ".." && is_file($dirPath . $file))
$filesArr[] = trim($file);
closedir($handle);
}
return $filesArr;
}
$icons = getDirFiles("./data/member/");
sort($icons);
$tdcount = 4;
echo "<table border=1>";
for ($i=0; $i<(count($icons)/$tdcount); $i++) {
echo "<tr>";
for ($j=0; $j<$tdcount; $j++) {
$k++;
if($icons[$k]) echo "<td><img src='./data/member/$icons[$k]'></td>";
}
echo "</tr>";
}
echo "</table>";
[이 게시물은 까만도둑님에 의해 2004-06-06 22:32:34 자료실(으)로 부터 이동됨]
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
define("_DOCTYPE_", "DESIGN");
$html_title = "아이콘 목록";
function getDirFiles($dirPath)
{
if ($handle = opendir($dirPath))
{
while (false !== ($file = readdir($handle)))
if ($file != "." && $file != ".." && is_file($dirPath . $file))
$filesArr[] = trim($file);
closedir($handle);
}
return $filesArr;
}
$icons = getDirFiles("./data/member/");
sort($icons);
$tdcount = 4;
echo "<table border=1>";
for ($i=0; $i<(count($icons)/$tdcount); $i++) {
echo "<tr>";
for ($j=0; $j<$tdcount; $j++) {
$k++;
if($icons[$k]) echo "<td><img src='./data/member/$icons[$k]'></td>";
}
echo "</tr>";
}
echo "</table>";
[이 게시물은 까만도둑님에 의해 2004-06-06 22:32:34 자료실(으)로 부터 이동됨]
댓글목록
등록된 댓글이 없습니다.