[auction]글도 최신글로 받자.... 정보
일반 [auction]글도 최신글로 받자....
본문
아래의 내용은
7쟁이// 님을 위해서
일단 복사를 해서 아무이름이나 지정 저장을 하세요
샵 폴더에 업로드하신다음
다음과 같이 호출하세요..
http://www.yourdomain.com/?doc=shop/아무이름[auction_latest.php]
이렇게 하시면 됩니다....^^
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
define("_DOCTYPE_", "DESIGN");
include "./$cfg[shop_dir]/shop.lib.php";
$html_title = "경매";
$rows = 5;
?>
<table width=100% cellpadding=0 cellspacing=0>
<?
$sql = " select * from $cfg[table_auction]
order by au_id desc limit 0, $rows ";
$result = sql_query($sql);
for ($i=0; $row = mysql_fetch_array($result); $i++) {
$list[$i] = $row;
// 낙찰 수량을 얻는다
$sum_nakchal_qty = get_nakchal_qty($list[$i][au_id]);
// 모두 낙찰되었다면 종료
if ($list[$i][au_juksiga] && $sum_nakchal_qty == $list[$i][au_qty]) {
$ing = '<font color=crimson><b>모집 마감<b></font>';
} else if ($now > $list[$i][au_to_datetime]) {
$ing = '<font color=crimson><b>모집 마감<b></font>';
} else {
$ing = '<font color=blue><b>모집 중</b></font>';
}
echo "
<tr height=22>
<td><font color=green> → <a href='./?doc=$cfg[shop_dir]/auctiondetail.php&au_id={$list[$i][au_id]}'><b><font color=green>{$list[$i][au_subject]}</font></b></a></font></td>
<td>$ing</td>
</tr>";
}//$row의 끝
if (count($list) == 0) { echo "<tr><td colspan=2 align=center height=50>자료가 없습니다.</td></tr>"; }
echo "</table>";
?>
[이 게시물은 관리자님에 의해 2003-11-25 11:46:16 그샵팁텍(으)로 부터 이동됨]
7쟁이// 님을 위해서
일단 복사를 해서 아무이름이나 지정 저장을 하세요
샵 폴더에 업로드하신다음
다음과 같이 호출하세요..
http://www.yourdomain.com/?doc=shop/아무이름[auction_latest.php]
이렇게 하시면 됩니다....^^
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
define("_DOCTYPE_", "DESIGN");
include "./$cfg[shop_dir]/shop.lib.php";
$html_title = "경매";
$rows = 5;
?>
<table width=100% cellpadding=0 cellspacing=0>
<?
$sql = " select * from $cfg[table_auction]
order by au_id desc limit 0, $rows ";
$result = sql_query($sql);
for ($i=0; $row = mysql_fetch_array($result); $i++) {
$list[$i] = $row;
// 낙찰 수량을 얻는다
$sum_nakchal_qty = get_nakchal_qty($list[$i][au_id]);
// 모두 낙찰되었다면 종료
if ($list[$i][au_juksiga] && $sum_nakchal_qty == $list[$i][au_qty]) {
$ing = '<font color=crimson><b>모집 마감<b></font>';
} else if ($now > $list[$i][au_to_datetime]) {
$ing = '<font color=crimson><b>모집 마감<b></font>';
} else {
$ing = '<font color=blue><b>모집 중</b></font>';
}
echo "
<tr height=22>
<td><font color=green> → <a href='./?doc=$cfg[shop_dir]/auctiondetail.php&au_id={$list[$i][au_id]}'><b><font color=green>{$list[$i][au_subject]}</font></b></a></font></td>
<td>$ing</td>
</tr>";
}//$row의 끝
if (count($list) == 0) { echo "<tr><td colspan=2 align=center height=50>자료가 없습니다.</td></tr>"; }
echo "</table>";
?>
[이 게시물은 관리자님에 의해 2003-11-25 11:46:16 그샵팁텍(으)로 부터 이동됨]
추천
0
0
댓글 전체
우선 감사하구요^^
아쉬운점이 있다면 그림이랑 글이 같이나오면 좋겠네요..
어차피 샾분위기가 그러니까요^^
갑성님 약간의 압력 들어갑니다^^히히
아쉬운점이 있다면 그림이랑 글이 같이나오면 좋겠네요..
어차피 샾분위기가 그러니까요^^
갑성님 약간의 압력 들어갑니다^^히히