최근 게시물에서 글자 배열을 바꿀려고 합니다, 정보
최근 게시물에서 글자 배열을 바꿀려고 합니다,본문
최근게시물에서....
뿌려질 내용에 글자 배열을 센터 말고 왼쪽 정렬 하려는데 잘 모르겟네여...
아시는분 계신가요??
http://madeinweb.co.kr/~ff498
latest.skin.php 파일 내용
<?
for ($i=0; $i<count($list); $i++)
{
$title = get_text($list[$i][wr_subject]);
$content = cut_str(strip_tags($list[$i][wr_content]),110,"...");
// 태그 웹표준으로 변경
$content = str_replace("<P>", "", $content);
$content = str_replace("</P>", "", $content);
$content = str_replace("<BR>", "", $content);
$img = "$g4[path]/data/file/$bo_table/".urlencode($list[$i][file][0][file]);
if (!file_exists($img) || !$list[$i][file][0][file])
$img = "$latest_skin_path/img/no_image.gif";
$href = "$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id={$list[$i][wr_id]}";
$upday = cut_str($list[$i][wr_datetime], 10, "");
$tmp = explode("-", $upday);
$upday = $tmp[0]."년 ".$tmp[1]."월 ".$tmp[2]."일";
echo "
<div style='float:left;'>
<a href='$href'>
<img src='{$img}' class='imgBoxContent1' alt='' />
</a>
</div>
<div style='float:left;' class='ctview1'>
<a href='$href'>
<b>{$list[$i][subject]}</b> {$list[$i]['comment_cnt']}
<br />
<span>$content</span>
</a>
<div class='ctviewDate1'>($upday) </div>
</div>
<div style='clear:both; margin:5px;'></div>
";
}
?>
<? if (count($list) == 0) { ?>
<div>게시물이 없습니다.</div>
<? } ?>
입니다....
뿌려질 내용에 글자 배열을 센터 말고 왼쪽 정렬 하려는데 잘 모르겟네여...
아시는분 계신가요??
http://madeinweb.co.kr/~ff498
latest.skin.php 파일 내용
<?
for ($i=0; $i<count($list); $i++)
{
$title = get_text($list[$i][wr_subject]);
$content = cut_str(strip_tags($list[$i][wr_content]),110,"...");
// 태그 웹표준으로 변경
$content = str_replace("<P>", "", $content);
$content = str_replace("</P>", "", $content);
$content = str_replace("<BR>", "", $content);
$img = "$g4[path]/data/file/$bo_table/".urlencode($list[$i][file][0][file]);
if (!file_exists($img) || !$list[$i][file][0][file])
$img = "$latest_skin_path/img/no_image.gif";
$href = "$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id={$list[$i][wr_id]}";
$upday = cut_str($list[$i][wr_datetime], 10, "");
$tmp = explode("-", $upday);
$upday = $tmp[0]."년 ".$tmp[1]."월 ".$tmp[2]."일";
echo "
<div style='float:left;'>
<a href='$href'>
<img src='{$img}' class='imgBoxContent1' alt='' />
</a>
</div>
<div style='float:left;' class='ctview1'>
<a href='$href'>
<b>{$list[$i][subject]}</b> {$list[$i]['comment_cnt']}
<br />
<span>$content</span>
</a>
<div class='ctviewDate1'>($upday) </div>
</div>
<div style='clear:both; margin:5px;'></div>
";
}
?>
<? if (count($list) == 0) { ?>
<div>게시물이 없습니다.</div>
<? } ?>
입니다....
댓글 전체
위에서 부터 센터 정렬이 있어서 그런거 같으신대요
요렇게
<div style='float:left;' class='ctview1' align="left">
요렇게
<div class='ctviewDate1' align="left">
바꿔죠보세요
요렇게
<div style='float:left;' class='ctview1' align="left">
요렇게
<div class='ctviewDate1' align="left">
바꿔죠보세요
탑스쿨님 저렇게 고치니 에러뜨는데요 ㅜㅜ