첨부파일 이미지로 리스트 만들기(\skin\latest 의 스킨) 정보
첨부파일 이미지로 리스트 만들기(\skin\latest 의 스킨)관련링크
http://www.xmltudy.net
182회 연결
본문
<table width=98% cellpadding=0 cellspacing=0 align=center>
<colgroup width=14>
<colgroup>
<colgroup width=37>
<colgroup width=14>
<tr>
<td width=20 height=35><img src="/images/icon/ico_3.gif" border=0></td>
<td><strong><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><?=$board[bo_subject]?></a></strong></td>
<td width=80 align=right><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'>more</a></td>
</tr>
<tr>
<td colspan=3 align=center>
<?
$data_path = $g4[path]."/data/file/$bo_table";
$thumb_path = $data_path.'/thumb';
$sql = " select bf_file,bf_width,bf_no,wr_id from $g4[board_file_table]
where bo_table = '$bo_table' order by wr_id desc limit 0, $rows
";
//echo $sql."<br>";
unset($file);
$result = sql_query($sql);
$j=0;
while($row=mysql_fetch_row($result)){
${"file"}[$j][bf_file] = $row[0];
${"file"}[$j][bf_width] = $row[1];
${"file"}[$j][bf_no] = $row[2];
${"file"}[$j][wr_id] = $row[3];
$j++;
}
//echo "<pre>";
//print_r($file);
//echo "</pre>";
//echo count($file);
for ($j=0; $j<=count($file); $j++) {
if ($file[$j][bf_file]){
?>
<a href="<?=$data_path."/logo_".$file[$j][bf_file]?>" title="" rel="lightbox"><IMG id="userImg1<?=$file[$j][bf_no].$file[$j][wr_id]?>" src='<?=$data_path."/logo_".$file[$j][bf_file]?>' width=150 height=100 border=0 style='border:1px solid #999999;' hspace=4 vspace=4></a>
<?
}
}
?>
</td>
</tr>
</table>
위같이 스킨에; 넣으면 첨부파일로만 리슨트를만들 수 있습니다.
<colgroup width=14>
<colgroup>
<colgroup width=37>
<colgroup width=14>
<tr>
<td width=20 height=35><img src="/images/icon/ico_3.gif" border=0></td>
<td><strong><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><?=$board[bo_subject]?></a></strong></td>
<td width=80 align=right><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'>more</a></td>
</tr>
<tr>
<td colspan=3 align=center>
<?
$data_path = $g4[path]."/data/file/$bo_table";
$thumb_path = $data_path.'/thumb';
$sql = " select bf_file,bf_width,bf_no,wr_id from $g4[board_file_table]
where bo_table = '$bo_table' order by wr_id desc limit 0, $rows
";
//echo $sql."<br>";
unset($file);
$result = sql_query($sql);
$j=0;
while($row=mysql_fetch_row($result)){
${"file"}[$j][bf_file] = $row[0];
${"file"}[$j][bf_width] = $row[1];
${"file"}[$j][bf_no] = $row[2];
${"file"}[$j][wr_id] = $row[3];
$j++;
}
//echo "<pre>";
//print_r($file);
//echo "</pre>";
//echo count($file);
for ($j=0; $j<=count($file); $j++) {
if ($file[$j][bf_file]){
?>
<a href="<?=$data_path."/logo_".$file[$j][bf_file]?>" title="" rel="lightbox"><IMG id="userImg1<?=$file[$j][bf_no].$file[$j][wr_id]?>" src='<?=$data_path."/logo_".$file[$j][bf_file]?>' width=150 height=100 border=0 style='border:1px solid #999999;' hspace=4 vspace=4></a>
<?
}
}
?>
</td>
</tr>
</table>
위같이 스킨에; 넣으면 첨부파일로만 리슨트를만들 수 있습니다.
추천
0
0
댓글 1개
좋습니다