수정후 09listmain.php입니다..

<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

define("_DOCTYPE_", "countlist");

include "09.lib.php";

// 신청수량이 한정수량을 넘었거나 신청일시가 아니라면 select 하지 않는다.
$sql = " select *
from $cfg[gg_gongoo_table]
where gg_hanjeong_qty > gg_request_qty
and NOW() between gg_fr_datetime and gg_to_datetime
order by gg_sequence, gg_id desc ";
$result = sql_query($sql);

$html_title = "공구상품 목록";
include "head.inc2.php";

echo "<table width=100%>\n";
$colwidth = (int)(100 / $cfg[list_mod]);
for ($i=0; $i<$cfg[list_mod]; $i++) {
echo "<col width='{$colwidth}%'></col>\n";
}
echo "<tr>\n";

for ($i=0; $gg=mysql_fetch_array($result); $i++) {
if (($i%$cfg[list_mod] == 0) && ($i > 0)) {
echo "</tr><tr><td colspan='$cfg[list_mod]' height=10></td></tr><tr>";
}

$var[hyunjaega] = _gg_get_hyunjaega($gg[gg_id], $gg[gg_sijakga], $gg[gg_mokpyoga], $gg[gg_mokpyo_qty], $gg[gg_request_qty]);

echo "
<td valign=top height=100%>
<table width=100% height=100% cellspacing=1 cellpadding=0 background='$cfg[gg_dir]/tableborder.gif'><tr><td class='cssbgcolor1'>
<table width=100% height=100%>
<td align=left><a href='./?doc=$cfg[gg_dir]/09.php&gg_id=$gg[gg_id]'><img src='$cfg[gg_dir]/img/$gg[gg_simg]' width=80 height=65 border=0></a></td>
<td>      $gg[gg_subject]<br><span style='width:10px'></span> * 시중가 : ".number_format($gg[gg_sijungga])."원<br>
<span style='width:10px'></span> * <span class='cssstress'>현재가 : ".number_format($var[hyunjaega])."원</span><br>
<span style='width:10px'></span> * 신청수량 : {$gg[gg_request_qty]}{$gg[gg_danwi]} / ".number_format($gg[gg_hanjeong_qty])."{$gg[gg_danwi]}</td>
<tr><td></td></tr>
</table>
</td></tr></table>
</td>
";
}

if ($i == 0) {
echo "<td height=100 align=center>진행중인 공동구매 상품이 없습니다.</td>";
} else {
// 나머지 td 를 colspan 으로 채운다.
$cnt = $cfg[list_mod] - ($i % $cfg[list_mod]);
if ($cnt < $cfg[list_mod]) {
$width = $colwidth * $cnt;
echo "<td colspan=$cnt width='{$width}%'></td>";
}
}
?>
</tr>
</table>

<?
include "tail.inc.php";
?>
|

댓글 3개

잘됩니다...^^/
www.cooltoy.co.kr
감사합니다...
인제 모양이 제대로 나오네요...휴
제홈에 list 파일 올렸습니다. 참고 하세요.
공동구매 최신등록상품이 가로로 계속 출력되는데,경매최신글처럼 세로로
나와야 되는데,이건 어디서 바꾸나요?
출력되는 상품갯수도 지정해줘야 되는데,어딘지 모르겠습니다..
병원가서,어머니퇴원시키구,다시 오겠습니다..=.=
댓글을 작성하시려면 로그인이 필요합니다.

그누3질답

+
제목 글쓴이 날짜 조회
22년 전 조회 433
22년 전 조회 391
22년 전 조회 437
22년 전 조회 470
22년 전 조회 441
22년 전 조회 513
22년 전 조회 755
22년 전 조회 476
22년 전 조회 677
22년 전 조회 325
22년 전 조회 457
22년 전 조회 333
22년 전 조회 384
22년 전 조회 498
22년 전 조회 379
22년 전 조회 451
22년 전 조회 318
22년 전 조회 628
22년 전 조회 605
22년 전 조회 584