경매 시간 연장 때문에..도와주세요 정보
경매 시간 연장 때문에..도와주세요본문
한스닷 님의 경매 스킨 - http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=118518&sca=&sfl=wr_subject%7C%7Cwr_content&stx=+%EA%B2%BD%EB%A7%A4
을 이용하여 경매를 만들려 하는데.
예를 들어 1분정도 남앗을때 입찰을 하면 남은시간이 2분으로 증가하려고 해요.
아직 코딩에 서툴러서 어디를 손봐야되는지 모르겟습니다.
현재 소스는
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$token = md5(uniqid(rand(), true));
set_session("ss_token", $token);
// 최고가
$sql = " select * from $g4[auction_table] where bo_table = '$bo_table' and wr_id = '$wr_id' order by point desc ";
$full = sql_fetch($sql);
// 입찰 포인트를 합산
$sql = " select sum(point) as point from $g4[auction_table] where bo_table = '$bo_table' and wr_id = '$wr_id' ";
$total = sql_fetch($sql);
include_once("$board_skin_path/auction.lib.php");
include_once("$board_skin_path/config.php");
include_once "$g4[path]/thumbEngine/dq_thumb_engine2.php";
$info = get_info_auction($wr_id);
//$end_time = strtotime($info[end_datetime])-$g4[server_time];
// 경매진행중 -> 종료시간이 지났을 때 -> 경매종료 및 낙찰자업데이트
if ($info[end_datetime] <= $g4[time_ymdhis])
{
sql_query(" update $write_table set wr_6='$member[mb_id]', wr_7='$view[wr_7]', wr_13 = '2', wr_20='$member[mb_id]' where wr_id = '$wr_id' ");
sql_query($sql);
}
if ($view['wr_2'] <= $view['wr_7'] ) {
$sql = " update $write_table set wr_13 = '2',wr_6='$member[mb_id]' where wr_id = '$wr_id' ";
sql_query($sql);
}
?>
<?//=$info[end_datetime]?>
<?//=$g4[time_ymdhis]?>
<style type="text/css">
/* defalut */
#auction_view * {margin:0; padding:0;}
#auction_view li {list-style:none;}
#auction_view .auto {margin:0 auto;}
#auction_view .clr {clear:both; font-size:0px;}
/* bbs view auction */
#bbs_view_auction {clear:both; margin-top:5px; padding:5px 0 0 0; border:1px solid #dddddd; height:100%;}
#bbs_view_auction dl {clear:both;}
#bbs_view_auction dt {width:120px; padding:3px 0 3px 10px; float:left;}
#bbs_view_auction dd {padding:3px 10px 3px 0; float:left;}
#bbs_view_auction dt .t {font-weight:bold; line-height:14px; font-size:12px; color:#505050; font-family:dotum,돋움;}
#bbs_view_auction dd .t {line-height:14px; font-size:12px; color:#505050; font-family:dotum,돋움;}
/* bbs view auction2 */
#bbs_view_auction2 {clear:both; margin-top:5px; padding:5px 0 0 0; border:1px solid #dddddd; height:100%;}
#bbs_view_auction2 dl {clear:both;}
#bbs_view_auction2 dt {width:120px; padding:3px 0 3px 10px; float:left;}
#bbs_view_auction2 dd {padding:3px 10px 3px 0; float:left;}
#bbs_view_auction2 dt .t {font-weight:bold; line-height:14px; font-size:12px; color:#505050; font-family:dotum,돋움;}
#bbs_view_auction2 dd .p {font-weight:bold; line-height:14px; font-size:12px; color:#ff3300; font-family:dotum,돋움;}
#bbs_view_auction2 dd .c {font-weight:bold; line-height:14px; font-size:12px; color:#3a72a9; font-family:dotum,돋움;}
#bbs_view_auction2 dd .m {font-weight:bold; line-height:14px; font-size:12px; color:#009520; font-family:dotum,돋움;}
/* bbs view auction3 */
#bbs_view_auction3 {clear:both; margin-top:5px; padding:5px 0 0 0; border:1px solid #dddddd; height:100%;}
#bbs_view_auction3 dl {clear:both;}
#bbs_view_auction3 dd {padding:3px 10px 3px 10px;}
#bbs_view_auction3 dd .t {line-height:14px; font-size:12px; color:#505050; font-family:dotum,돋움;}
/* bbs view auction4 */
#bbs_view_auction4 {clear:both; margin-top:5px; padding:5px 0 0 0; border:1px solid #dddddd; height:100%;}
#bbs_view_auction4 dl {clear:both;}
#bbs_view_auction4 dt {width:120px; padding:3px 0 3px 10px; float:left;}
#bbs_view_auction4 dd {padding:3px 10px 3px 0; float:left;}
#bbs_view_auction4 dt .t {font-weight:bold; line-height:14px; font-size:12px; color:#505050; font-family:dotum,돋움;}
#bbs_view_auction4 dd .t {font-weight:bold; line-height:14px; font-size:12px; color:#ff9000; font-family:dotum,돋움;}
/* bbs view auction5 */
#bbs_view_auction5 {clear:both; margin-top:5px; padding:5px 0 0 0; border:1px solid #dddddd; height:100%; float:center;}
#bbs_view_auction5 dl {clear:both;}
#bbs_view_auction5 dt {width:300px; padding:10px 0 3px 10px;}
#bbs_view_auction5 dd {padding:3px 10px 3px 0;}
#bbs_view_auction5 dt .t {font-weight:bold; line-height:14px; font-size:12px; color:#505050; font-family:dotum,돋움;}
#bbs_view_auction5 dd .t {line-height:14px; font-size:12px; color:#505050; font-family:dotum,돋움;}
/* bbs view auction6 */
#bbs_view_auction6 {clear:both; margin-top:5px; padding:5px 0 0 0; border:1px solid #dddddd; height:100%;}
#bbs_view_auction6 dl {clear:both;}
#bbs_view_auction6 dt {width:300px; padding:10px 0 3px 10px; float:left;}
#bbs_view_auction6 dd {padding:3px 10px 3px 0; float:left;}
#bbs_view_auction6 dt .t {font-weight:bold; line-height:14px; font-size:12px; color:#505050; font-family:dotum,돋움;}
#bbs_view_auction6 dd .t {line-height:14px; font-size:12px; color:#505050; font-family:dotum,돋움;}
#bbs_view_auction6 dd .p {font-weight:bold; line-height:14px; font-size:12px; color:#ff3300; font-family:dotum,돋움;}
#bbs_view_auction6 dd .c {font-weight:bold; line-height:14px; font-size:12px; color:#3a72a9; font-family:dotum,돋움;}
#bbs_view_auction6 dd .m {font-weight:bold; line-height:14px; font-size:12px; color:#009520; font-family:dotum,돋움;}
/**입찰페이지 금액잇풋 스타일**/
.input_ipchal_price {
width:120px;
height:20px;
border-width:1;
text-decoration: none;
text-align:right;
border: 5px solid #0899c8;
background-repeat:no-repeat;
padding:5px 5px 0 0;
font-size:10pt;
color:black;
font-weight:bold;
font-family:맑은 고딕, 돋움;
}
.input_ipchal_price2 {
width:30px;
height:20px;
border-width:1;
text-decoration: none;
text-align:right;
border: 5px solid #0899c8;
background-repeat:no-repeat;
padding:5px 5px 0 0;
font-size:10pt;
color:black;
font-weight:bold;
font-family:맑은 고딕, 돋움;
}
.input_ipchal_price3 {
width:289px;
height:20px;
border-width:1;
text-decoration: none;
text-align:right;
border: 5px solid #0899c8;
background-repeat:no-repeat;
padding:5px 5px 0 0;
font-size:10pt;
color:black;
font-weight:bold;
font-family:맑은 고딕, 돋움;
}
.smfont1 {font-size:11px; color:#555555; font-family:dotum,돋움;}
.smfont2 {font-weight:bold; line-height:14px; font-size:12px; color:#009520; font-family:dotum,돋움;}
.smfont4 { font-size:14pt; color:red; font-weight:bold; font-family:맑은 고딕, 돋움;}
.smfont5 { font-size:14pt; color:black; font-weight:bold; font-family:맑은 고딕, 돋움;}
.smfont6 { font-size:14pt; color:#3366cc; font-weight:bold; font-family:맑은 고딕, 돋움;}
.smfont7 { font-size:12pt; color:black; font-weight:bold; font-family:맑은 고딕, 돋움;}
.smfont8 { font-size:12pt; color:black; font-family:맑은 고딕, 돋움;}
.smfont9 {font-weight:bold; line-height:14px; font-size:12px; color:#3a72a9; font-family:dotum,돋움;}
.current { font:bold 11px tahoma; color:#E15916; }
</style>
<script>
function chgImg( imgname, dnimgname, imgdesc ) {
var LureExp = /<br>/gi;
document.gallery_img.src=imgname;
}
</script>
<script>
function obxTabPage(sizex , sizey, cssHead){
if(!cssHead) this.cssHead='';
else this.cssHead=cssHead;
document.write(
'<table cellpadding="0" cellspacing="0" style="table-layout:fixed;padding:1;height:'+sizey+';width:'+sizex+'">' +
'<tr><td class=TP_'+this.cssHead+'_NCELL width=*> </td></tr>'+
'<tr><td class=TP_'+this.cssHead+'_CONTENT1 width=100%> </td></tr>'+
'</table>'
);
this.height=sizey;
this.width=sizex;
var tables=document.getElementsByTagName("table");
this.table=tables[tables.length-1];
this.titleRow=this.table.rows[0];
this.nullCell = this.titleRow.cells[0];
this.contentRow = this.table.rows[1];
this.contentCell = this.contentRow.cells[0];
this.item= new Object();
this.length=0;
var re=new RegExp("\\bobxtp=(\\w+)\\b",'i');
if(location.search.match(re)) this.defaultView = RegExp.$1;
this.addStart= function (id,title,idx,action) {
var iIndex=(idx) ? idx-1 : this.length;
this.item[id] = this.titleRow.insertCell(iIndex);
this.item[id].className='TP_'+this.cssHead+'_CELL';
this.item[id].parentObject=this;
this.item[id].onclick=Function("this.parentObject.show('"+id+"');");
if(action) this.item[id].action = action;
this.item[id].height=25;
this.item[id].innerHTML=title;
document.write('<div style="display:none;width:100%;height:100%">');
var divs=document.getElementsByTagName("div");
this.item[id].content = divs[divs.length-1];
this.item[id].content.className='TP_'+this.cssHead+'_CONTENT2';
this.DrawingID=id;
this.length++;
this.contentCell.colSpan=this.length+1;
}
this.addEnd = function () {
document.write("</div></div>");
this.contentCell.appendChild(this.item[this.DrawingID].content);
if(!this.LastShownItemID) this.show(this.DrawingID,1);
else if(this.defaultView==this.DrawingID) this.show(this.defaultView,1);
}
this.show = function (id,runtime){
if (this.LastShownItemID) this.hide(this.LastShownItemID);
this.LastShownItemID = id;
this.item[id].className='TP_'+this.cssHead+'_SCELL';
this.item[id].content.style.display='';
if(this.item[id].action) {
try{eval(this.item[id].action);}catch(e){}}
}
this.hide = function (id){
this.item[id].className='TP_'+this.cssHead+'_CELL';;
this.item[id].content.style.display="none";
}
}
</script>
<script language="JavaScript">
<!--
function change(html){
text1.innerHTML=html
}
//-->
</script>
<style>
.tp_test_nCell{border-bottom: 0px solid #cccccc;}
.tp_test_Content1{border: 0px solid #cccccc;border-top-width:0;padding:0px}
.tp_test_Content2{font:12px 돋움;}
.tp_test_Cell{
padding-top:5;
font:13px 돋움;
background:url('<?=$board_skin_path?>/img/tp_unselect.png') no-repeat 50%;
height:29;
width:100;
text-align:center;
cursor:pointer;
cursor:hand;
}
.tp_test_sCell{
padding-top:5;
font:13px 돋움;
background-image:url('<?=$board_skin_path?>/img/tp_select.png');
background-position: 50%;
background-repeat: no-repeat;
height:29;
width:100;
text-align:center;
cursor:pointer;
cursor:hand;
}
td.05{
border-bottom:1px solid #c9c9c9;
border-right:1px solid #c9c9c9;
border-left:1px solid #c9c9c9;
border-top:1px solid #c9c9c9;
font-size:12px;
}
tr.01 {background-color:#F7F8F9}
td.01 {text-align:right; padding:0 10 0 0}
td.02 {background-color:#FFFFFF}
td.03 {background-color:#6B7783}
td.04 {font-weight:bold; color:603000; background-color:#FFFFFF}
</style>
<!-- 게시글 보기 시작 -->
<table width="980" align="center" cellpadding="0" cellspacing="0"><tr><td>
<div style="clear:both; height:30px;">
<!-- 링크 버튼 -->
<div style="float:right;">
<?
ob_start();
?>
<? if ($copy_href) { echo "<a href=\"$copy_href\"><img src='$board_skin_path/img/btn_copy.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($move_href) { echo "<a href=\"$move_href\"><img src='$board_skin_path/img/btn_move.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($search_href) { echo "<a href=\"$search_href\"><img src='$board_skin_path/img/btn_list_search.gif' border='0' align='absmiddle'></a> "; } ?>
<? echo "<a href=\"$list_href\"><img src='$board_skin_path/img/btn_list.gif' border='0' align='absmiddle'></a> "; ?>
<? if ($update_href) { echo "<a href=\"$update_href\"><img src='$board_skin_path/img/btn_modify.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($delete_href) { echo "<a href=\"$delete_href\"><img src='$board_skin_path/img/btn_delete.gif' border='0' align='absmiddle'></a> "; } ?>
<?// if ($reply_href) { echo "<a href=\"$reply_href\"><img src='$board_skin_path/img/btn_reply.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($write_href) { echo "<a href=\"$write_href\"><img src='$board_skin_path/img/btn_write.gif' border='0' align='absmiddle'></a> "; } ?>
<?
$link_buttons = ob_get_contents();
ob_end_flush();
?>
</div>
</div>
<!--//-->
<table width="960" cellpadding="0" cellspacing="0" bgcolor="#f4f4f4" align="center" >
<tr>
<td bgcolor="ffffff"><table width="100%" cellpadding="0" cellspacing="0" bgcolor="ffffff" >
<tr>
<td height="1" bgcolor="cccccc"></td>
</tr>
<tr>
<td bgcolor="ffffff"><table width="100%" >
<tr valign="top" align="center">
<? if ($view[file][0][view]) {?><td width="560" >
<table width="550" border="0" cellspacing="0" cellpadding="0" >
<tr>
<td valign="top"> <?
for ($i=0; $i<=9; $i++) {
$image[$i] = "$g4[path]/data/file/$bo_table/".$view[file][$i][file];
$thumimg[$i]="<img src =$image[$i] width=140 height=120 border=0 onclick=\"view('$image[$i]')\" style=cursor:hand>";
}
?>
</td>
</tr>
<tr>
<td valign="top">
<table width="570" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="570" height="570" background="<?=$board_skin_path?>/img/photo_bg.gif" align="center" valign="middle">
<table cellpadding="0" cellspacing="0">
<tr>
<td bgcolor="ffffff">
<? if ($view[file][0][file]) {?>
<!-- 상세화면에서 큰이미지 안띄우려면 이부분의 onClick 부분을 수정해야 함. //-->
<img src=<?=$image[0]?> name=gallery_img width=480 height=480 border=0 style=vertical-align: middle;cursor:pointer; onClick="OpenWin('<?=$board_skin_path?>/slideshow.php?bo_table=<?=$bo_table?>&wr_id=<?=$wr_id?>',900,570); return false;" border=0 value=0>
<? } else {?>
<img src="<?=$board_skin_path?>/img/noimge.gif" border=0>
<? } ?></a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td valign="top"> <table align="center">
<tr>
<td><?=$view[file][0][content]?></td>
</tr>
</table></td>
</tr>
<tr>
<td valign="top" align="center"><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" width="100%"><? if ($view[file][0][file]) {?>
<a href=# <? echo "onMouseOver=\"chgImg( '".$image[0]."','".$image[0]."','".ereg_replace("(\r\n|\n|\r)", "<br>", strip_tags($content) )."' );\"" ?>> <img src="<?=$image[0]?>" width="50" height="43" align="absmiddle" border="0"></a>
<? }?>
<? if ($view[file][1][file]) {?>
<a href=# <? echo "onMouseOver=\"chgImg( '".$image[1]."','".$image[1]."','".ereg_replace("(\r\n|\n|\r)", "<br>", strip_tags($content) )."' );\"" ?>> <img src="<?=$image[1]?>" width="50" height="43" align="absmiddle" border="0"></a>
<? }?>
<? if ($view[file][2][file]) {?>
<a href=# <? echo "onMouseOver=\"chgImg( '".$image[2]."','".$image[2]."','".ereg_replace("(\r\n|\n|\r)", "<br>", strip_tags($content) )."' );\"" ?>> <img src="<?=$image[2]?>" width="50" height="43" align="absmiddle" border="0"></a>
<? }?>
<? if ($view[file][3][file]) {?>
<a href=# <? echo "onMouseOver=\"chgImg( '".$image[3]."','".$image[3]."','".ereg_replace("(\r\n|\n|\r)", "<br>", strip_tags($content) )."' );\"" ?>> <img src="<?=$image[3]?>" width="50" height="43" align="absmiddle" border="0"></a>
<? }?>
<? if ($view[file][4][file]) {?>
<a href=# <? echo "onMouseOver=\"chgImg( '".$image[4]."','".$image[4]."','".ereg_replace("(\r\n|\n|\r)", "<br>", strip_tags($content) )."' );\"" ?>> <img src="<?=$image[4]?>" width="50" height="43" align="absmiddle" border="0"></a>
<? }?>
<? if ($view[file][5][file]) {?>
<a href=# <? echo "onMouseOver=\"chgImg( '".$image[5]."','".$image[5]."','".ereg_replace("(\r\n|\n|\r)", "<br>", strip_tags($content) )."' );\"" ?>> <img src="<?=$image[5]?>" width="50" height="43" align="absmiddle" border="0"></a>
<? }?>
<? if ($view[file][6][file]) {?>
<a href=# <? echo "onMouseOver=\"chgImg( '".$image[6]."','".$image[6]."','".ereg_replace("(\r\n|\n|\r)", "<br>", strip_tags($content) )."' );\"" ?>> <img src="<?=$image[6]?>" width="50" height="43" align="absmiddle" border="0"></a>
<? }?>
<? if ($view[file][7][file]) {?>
<a href=# <? echo "onMouseOver=\"chgImg( '".$image[7]."','".$image[7]."','".ereg_replace("(\r\n|\n|\r)", "<br>", strip_tags($content) )."' );\"" ?>> <img src="<?=$image[7]?>" width="50" height="43" align="absmiddle" border="0"></a>
<? }?>
<? if ($view[file][8][file]) {?>
<a href=# <? echo "onMouseOver=\"chgImg( '".$image[8]."','".$image[8]."','".ereg_replace("(\r\n|\n|\r)", "<br>", strip_tags($content) )."' );\"" ?>> <img src="<?=$image[8]?>" width="50" height="43" align="absmiddle" border="0"></a>
<? }?>
<? if ($view[file][9][file]) {?>
<a href=# <? echo "onMouseOver=\"chgImg( '".$image[9]."','".$image[9]."','".ereg_replace("(\r\n|\n|\r)", "<br>", strip_tags($content) )."' );\"" ?>> <img src="<?=$image[9]?>" width="50" height="43" align="absmiddle" border="0"></a>
<? }?>
</td>
</tr>
</table><? }?></td>
</tr>
<tr>
<td valign="top"><table width="550" cellpadding="2" cellspacing="1" bgcolor="#EAEAEA" align="center">
<tr bgcolor="#FFFFFF">
<td ></td>
<td ></td>
<td ></td>
<td ></td>
<br></tr>
</table>
</td>
</tr>
<tr>
<td valign="top"><br></td>
</tr>
<tr>
<td valign="top"><br></td>
</tr>
<!--//상세정보시작//-->
<td style="padding-left:15px;">
<table width="550" cellpadding="0" cellspacing="0" bgcolor="ffffff" align="left" >
<tr bgcolor="cccccc">
<td bgcolor="f5f7f1" class="blue" width="105" height="30"><b>작가명/미술품명</b></td>
<td width="305" colspan="3" bgcolor="ffffff">
<p><?=$view[ca_name]?> / <?=$view[subject]?></p> </td>
</tr>
<tr>
<td colspan="2" style="height:1px; background-color:#e4eff5;"></td>
</tr>
<tr bgcolor="cccccc">
<td width="105" height="30" bgcolor="f5f7f1" class="blue"><b>제작년도</b></td>
<td width="100" bgcolor="ffffff"><?=$write[wr_18]?><!--. <?=$ext5_00?>--></td>
</tr>
<tr>
<td colspan="2" style="height:1px; background-color:#e4eff5;"></td>
</tr>
<tr bgcolor="cccccc">
<td width="105" height="30" bgcolor="f5f7f1" class="blue"><b>추정가</b></td>
<td bgcolor="ffffff"><?=$ext5_05?>~<?=$ext5_07?>
원</td>
</tr>
<tr>
<td colspan="2" style="height:1px; background-color:#e4eff5;"></td>
</tr>
<tr bgcolor="cccccc">
<td width="105" height="30" bgcolor="f5f7f1" class="blue"><b>작품크기</b></td>
<td bgcolor="ffffff"><?=$ext5_02?><!--X<?=$ext5_08?>-->
</td>
</tr>
<tr>
<td colspan="2" style="height:1px; background-color:#e4eff5;"></td>
</tr>
<tr bgcolor="cccccc">
<td width="105" height="30" bgcolor="f5f7f1" class="blue"><b>액자상태</b></td>
<td bgcolor="ffffff"><?=$ext5_04?></td>
</tr>
<tr>
<td colspan="2" style="height:1px; background-color:#e4eff5;"></td>
</tr>
</table>
</td>
<!--//상제정보끝//-->
<? if ($is_admin && $super[point] ) { ?>
<div style="padding:10px; border:1px solid #ddd; margin-top:10px;">
(1위: <?=number_format($super[point])?> 원, <?=number_format($super[count])?> 건)
<?
foreach($super_mb_id as $mb_id) {
$mb = get_member($mb_id);
echo get_sideview($mb[mb_id], $mb[mb_nick], $mb[mb_email], $mb[mb_homepage]);
}
?>
</div>
<? } ?>
</td>
</tr>
<tr>
<td valign="top"><br></td>
</tr>
</table>
</td>
<td valign="top"><table style="width:380;">
<tr style="height:35px;background-color:#ffffff;" ><td>
<div style="float:left; margin-top:6px;">
<img src="<?=$board_skin_path?>/img/icon_date.gif" align=absmiddle border='0'><span style="color:#888888;"> Lot. <?=$wr_id?></span>
조회 : <?=number_format($view[wr_hit])?>
<!--img src="<?=$board_skin_path?>/img/icon_date.gif" align=absmiddle border='0'><span style="color:#888888;">차량번호 : <?//=$ext5_02?>번</span-->
<img src="<?=$board_skin_path?>/img/icon_date.gif" align=absmiddle border='0'>
<span style="color:#888888;">최초등록일 : <?=date("y-m-d H:i", strtotime($view[wr_datetime]))?></span>
</div>
</tr>
</td>
<tr>
<td>
<table style="width:100%; background-color:#ebf4fd;">
<tr>
<td style="padding:8px;">
<? if ($view[ca_name]) { ?></font><b><font class="smfont6">[<?=$view[ca_name]?>]</font></b><? }else{ ?> <? } ?> <font class="smfont5"><b><?=$view[subject]?></b>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table style="width:100%; background-color:#f9fdff; line-height:20px;">
<tr style="height:40px;">
<td style="padding-left:10px; width:100px" bgcolor="f5f7f1"><b>추정가</b></td>
<td class="smfont4_1"><?=$ext5_05?>원 ~ <?=$ext5_07?>원</td>
</tr>
<tr>
<td colspan="2" style="height:1px; background-color:#e4eff5;"></td>
</tr>
<tr style="height:40px;">
<td style="padding-left:10px;" bgcolor="f5f7f1"><b>응찰자수</b></td>
<td>
<table>
<tr>
<td><span class="smfont9" ><?=number_format($view['wr_3']);?> 건 참여</span></td>
<td style="padding-left:10px;"><? if ($g4['time_ymdhis'] >= $view['wr_9']) { ?><a href="javascript:bidding_list();" onfocus="this.blur();"><img src="<?=$board_skin_path?>/img/btn_bidding_list.gif" border="0"></a><? } ?></td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2" style="height:1px; background-color:#e4eff5;"></td>
</tr>
<tr style="height:40px;">
<td style="padding-left:10px;" bgcolor="f5f7f1"><b>경매시작일시</b></td>
<td><?=date("Y년 m월 d일 H시 i분", strtotime($view['wr_9']));?></td>
</tr>
<tr>
<td colspan="2" style="height:1px; background-color:#e4eff5;"></td>
</tr>
<tr style="height:40px;">
<td style="padding-left:10px;" bgcolor="f5f7f1"><b>경매종료일시</b></td>
<td><?=date("Y년 m월 d일 H시 i분", strtotime($view['wr_1']));?></td>
</tr>
<tr>
<td colspan="2" style="height:1px; background-color:#e4eff5;"></td>
</tr>
<tr style="height:40px;">
<td style="padding-left:10px;" bgcolor="f5f7f1"><b>남은시간</b></td>
<td><font color="#999999">
<table cellpadding='0' cellspacing='0'><tr><td>
<? if ($view['wr_13'] == '2') { ?>
<span class='current'>경매종료</span>
<? } else { ?>
<? if ($g4['time_ymdhis'] < $view['wr_9']) { echo "<span class='t'>경매 시작 전</span>"; } else { ?>
<?
$endtime = strtotime($view['wr_1']) - $g4['server_time'];
$auc_id = "eTime_id".$view['wr_id'];
$auc_tmp = $view['wr_id'];
// 작다면
if ($endtime <= '0') {
$endtime = "0";
}
?>
<span id="<?=$auc_id?>" style="color:#ff3300; font-weight:bold; height:16px; font-size:12px;"></span>
<script type="text/javascript">
var eTime<?=$auc_tmp?> = <?=$endtime?>;
rTimer<?=$auc_tmp?>("<?=$auc_id?>");
sTimer<?=$auc_tmp?> = setInterval('rTimer<?=$auc_tmp?>("<?=$auc_id?>")', 1000);
function rTimer<?=$auc_tmp?>(id)
{
var Timer = document.getElementById(id);
dd = Math.floor(eTime<?=$auc_tmp?>/(60*60*24));
hh = Math.floor((eTime<?=$auc_tmp?>%(60*60*24))/(60*60));
mm = Math.floor(((eTime<?=$auc_tmp?>%(60*60*24))%(60*60))/60);
ii = Math.floor((((eTime<?=$auc_tmp?>%(60*60*24))%(60*60))%60));
var str = "";
if (dd > 0) str += dd + "일 ";
if (hh > 0) str += hh + "시간 ";
if (mm > 0) str += mm + "분 ";
str += ii + "초 ";
//Timer.style.color = "red";
//Timer.style.fontWeight = "bold";
Timer.innerHTML = str;
eTime<?=$auc_tmp?>--;
// 종료
if (eTime<?=$auc_tmp?> < 0) {
Timer.innerHTML = "경매종료";
//clearInterval(sTimer<?=$auc_tmp?>);
}
}
</script>
<? } ?>
<? } ?>
</td></tr></table>
</td>
</tr>
<tr>
<td colspan="2" style="height:1px; background-color:#e4eff5;"></td>
</tr>
<tr style="height:40px;">
<td style="padding-left:10px;" bgcolor="f5f7f1"><b>경매상태</b></td>
<td><span class="smfont2"><? if ($g4['time_ymdhis'] >= $view['wr_1'] || $view['wr_13']== '2') { echo "경매종료"; } else if ($g4['time_ymdhis'] < $view['wr_9']) { echo "경매 시작 전"; } else { echo "입찰가능"; } ?></span></td>
</tr>
<tr>
<td colspan="2" style="height:1px; background-color:#e4eff5;"></td>
</tr>
<tr style="height:40px;">
<td style="padding-left:10px;" bgcolor="f5f7f1"><b>응찰가능 최저가 / 응찰시작가</b></td>
<td><span class="smfont2"><font class="smfont4"><b><?=number_format($view[wr_11])?>원</b></font></span></td>
<!-- 기존꺼 <td><span class="smfont2"><font class="smfont4"><b><?=number_format($view[wr_11]+$view[wr_12])?>원</b></font></span></td>-->
</tr>
<tr>
<td colspan="2" style="height:1px; background-color:#e4eff5;"></td>
</tr>
<tr style="height:40px;">
<td style="padding-left:10px;"bgcolor="f5f7f1"><b>현재가</b></td>
<td><span class="smfont2"> <?=number_format($full['point']);?>원</span></td>
</tr>
<tr>
<td colspan="2" style="height:1px; background-color:#e4eff5;"></td>
</tr>
<tr style="height:40px;">
<td style="padding-left:10px;"bgcolor="f5f7f1"><b>응찰단위가</b></td>
<td><span class="smfont2"> <?=number_format($view[wr_12])?>원</span></td>
</tr>
<tr>
<td colspan="2" style="height:1px; background-color:#e4eff5;"></td>
</tr>
<tr style="height:40px;">
<td style="padding-left:10px;"bgcolor="f5f7f1"><b>현재낙찰<? if (!$view['wr_6']) { ?>예정 <? } ?>가격</span> / 경매상태</b></td>
<td style="padding:5px 0;"><span class="smfont2"><?=number_format($full['point']);?>원</span>
</td>
</tr>
<tr>
<td colspan="2" style="height:1px; background-color:#e4eff5;"></td>
</tr>
<tr style="height:40px;">
<td style="padding-left:10px;" bgcolor="f5f7f1"><b>배송방법/지역</b></td>
<td><span class="smfont2"> <?=$ext5_06?></span></td>
</tr>
<tr>
<td colspan="2" style="height:1px; background-color:#e4eff5;"></td>
</tr>
<tr style="height:40px;">
<td style="padding-left:10px;" bgcolor="f5f7f1"><b>배송비</b></td>
<td><span class="smfont2"><?=$view[wr_17]?></span></td>
</tr>
<tr>
<td colspan="2" style="height:1px; background-color:#e4eff5;"></td>
</tr>
<tr style="height:40px;">
<td style="padding-left:10px;" bgcolor="f5f7f1"><b>결제수단</b></td>
<td><span class="smfont2"><?=$ext5_09?></td>
</tr>
<tr>
<td colspan="2" style="height:1px; background-color:#e4eff5;"></td>
</tr>
</table>
</table>
<!--//-->
<div id="auction_view" align="center">
<form method="post" name="formAuction" onSubmit="return submitAuction();" style="margin:0px;">
<input type="hidden" name="bo_table" value="<?=$bo_table?>">
<input type="hidden" name="wr_id" value="<?=$wr_id?>">
<input type="hidden" name="listStyle" value="<?=$listStyle?>">
<div id="bbs_view_auction5" align="center">
<dl>
<dt>
<?
// 경매가 종료 되었을 때
if ($g4['time_ymdhis'] >= $view['wr_1'] || $write['wr_2'] <= $write['wr_7']) {
// 낙찰자 있을 경우
if ($view['wr_6']) {
// 사이드뷰
echo "<script language=\"javascript\" src=\"$g4[path]/js/sideview.js\"></script>\n";
// 낙찰자
$mb = get_member($view['wr_6']);
// 닉네임
$nick = get_sideview($mb['mb_id'], $mb['mb_nick'], $mb['mb_email'], $mb['mb_homepage']);
echo "<b>낙찰자</b> : {$nick} <b>낙찰가</b> : ".number_format($view['wr_7'])." 원";
}
// 낙찰자가 없을경우
else if ($view['wr_6']) {
echo "낙찰자가 없습니다.";
} else {
echo "집계중입니다.";
}
}
// 경매 시작 전
else if ($g4['time_ymdhis'] < $view['wr_9']) {
echo "<div style='padding-bottom:10px;'>경매 시작 전 입니다.</div>";
} else {
// 경매 진행 중
if ($view['wr_10'] == '3') {
// 최대 금액에 입찰단위가 $view[wr_12]를 더한다.
if ($view['wr_3'] == '0') {
// $fullpoint = $view['wr_11'] + $view[wr_12];
$fullpoint = $view['wr_11'];
} else {
$fullpoint = $full['point'] + $view[wr_12];
}
}
echo "<input type='text' name='point' id='point' value='".$fullpoint."' required numeric itemname='입찰가격' style=' border:3px solid #e5025b; width:100px; text-align:right; padding-right:10px;' readonly> 원을 입찰하겠습니다.";
}
?>
</dt>
<dd>
<? if ($view['wr_13'] == '2') { ?>
<? } else { ?>
<?
$sql = "SELECT count(*) as ryan_cnt FROM g4_write_auction_tender WHERE wr_id = '{$wr_id }' and mb_id ='{$member[mb_id] }'";
$result = mysql_query($sql);
$result_cnt = mysql_fetch_array($result);
if($member[mb_level] >= 2 and $result_cnt[ryan_cnt] == 0) {
include("$board_skin_path/ryan_hp.php");
}
else {
?>
<? if ($g4['time_ymdhis'] < $view['wr_1'] && $g4['time_ymdhis'] >= $view['wr_9'] || $view['wr_2'] > $view['wr_7']) { ?><input type="image" src="<?=$board_skin_path?>/img/btn_bid.gif" border="0" onfocus="this.blur();"><? } ?>
<? } ?>
<? if ($g4['time_ymdhis'] >= $view['wr_9']) { ?><a href="javascript:bidding_list();" onfocus="this.blur();"><img src="<?=$board_skin_path?>/img/btn_bidview.gif" border="0"></a><? } ?>
<!-- <? if ($scrap_href) { echo "<a href=\"javascript:;\" onclick=\"win_scrap('$scrap_href');\"><img src='$board_skin_path/img/btn_scrap.gif' border='0' align='absmiddle'></a> "; } ?>
<? } ?>-->
<br><br>회원만 입찰에 참여할 수 있습니다.<br>
*작품 상태 확인은 응찰자의 책임이며 오프라인 전시를 통해 직접 확인하시기 바랍니다.
<br>낙찰 이후에는 환불 및 취소 할 수 없으므로 신중한 응찰 바랍니다.
<br><font color='red'>*응찰 하신 후에는 반드시 하단의 새로고침을 버튼을 클릭하셔서 응찰현황을 확인하시기 바랍니다.</font>
<br><br><input type="button" value="새로고침" onclick="document.location.reload();"><br><br>
</dd><div class="clr"></div>
</dl>
</div>
</form>
<div style="height:3px; background:url(<?=$board_skin_path?>/img/title_shadow.gif) repeat-x; line-height:1px; font-size:1px;"></div>
<table border=0 cellpadding=0 cellspacing=0 width=100%>
<?
// 가변 파일
$cnt = 0;
for ($i=0; $i<count($view[file]); $i++) {
if ($view[file][$i][source] && !$view[file][$i][view]) {
$cnt++;
echo "<tr><td height=30 background=\"$board_skin_path/img/view_dot.gif\">";
echo " <img src='{$board_skin_path}/img/icon_file.gif' align=absmiddle border='0'>";
echo "<a href=\"javascript:file_download('{$view[file][$i][href]}', '{$view[file][$i][source]}');\" title='{$view[file][$i][content]}'>";
echo " <span style=\"color:#888;\">{$view[file][$i][source]} ({$view[file][$i][size]})</span>";
echo " <span style=\"color:#ff6600; font-size:11px;\">[{$view[file][$i][download]}]</span>";
echo " <span style=\"color:#d3d3d3; font-size:11px;\">DATE : {$view[file][$i][datetime]}</span>";
echo "</a></td></tr>";
}
}
?>
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<div id=writeContents style="margin:20px 0 20px 0;">
<iframe width="0" height="0" id="auctioniframe" name="auctioniframe" style="display:none;"></iframe>
<script type="text/javascript">
function submitAuction()
{
if (!g4_is_member) {
alert("로그인 후 이용하세요.");
return;
}
var f = document.formAuction;
if (!f.point.value) {
alert("포인트를 입력해주세요.");
f.point.focus();
return;
}
if (confirm("입찰하시겠습니까?")) {
f.action = "<?=$board_skin_path?>/bidding.php";
f.target = "auctioniframe";
f.submit();
}
}
function tender_list()
{
tender_list_win = window.open("<?=$board_skin_path?>/bidding_list.php?bo_table=<?=$bo_table?>&wr_id=<?=$wr_id?>","tender_list","width=500, height=500, scrollbars=1");
tender_list_win.focus();
}
function bidding_list()
{
win_open("<?=$board_skin_path?>/bidding_list.php?bo_table=<?=$bo_table?>&wr_id=<?=$wr_id?>", "bidding_list", "width=500, height=500, scrollbars=1");
}
function right_now() {
if (!confirm("즉시구매가로 즉시낙찰하겠습니까?."))
return;
location.href='<?=$board_skin_path?>/right_now.php?bo_table=<?=$bo_table?>&wr_id=<?=$wr_id?>&point=<?=$view[wr_2]?>';
}
</script>
</div>
</td>
</tr>
</table>
<!-- //좀더 부가 정보//-->
<table width="980" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td style="padding-left:20px;"height="200" valign="top"> <!-- 내용 출력 -->
<span id="writeContents"><?=$view[content];?></span></td>
<?//echo $view[rich_content]; // 과 같은 코드를 사용할 경우?>
<!-- 테러 태그 방지용 --></xml></xmp><a href=""></a><a href=''></a>
<? if ($nogood_href) {?>
<div style="width:72px; height:55px; background:url(<?=$board_skin_path?>/img/good_bg.gif) no-repeat; text-align:center; float:right;">
<div style="color:#888; margin:7px 0 5px 0;">비추천 : <?=number_format($view[wr_nogood])?></div>
<div><a href="<?=$nogood_href?>" target="hiddenframe"><img src="<?=$board_skin_path?>/img/icon_nogood.gif" border='0' align="absmiddle"></a></div>
</div>
<? } ?>
<? if ($good_href) {?>
<div style="width:72px; height:55px; background:url(<?=$board_skin_path?>/img/good_bg.gif) no-repeat; text-align:center; float:right;">
<div style="color:#888; margin:7px 0 5px 0;"><span style='color:crimson;'>추천 : <?=number_format($view[wr_good])?></span></div>
<div><a href="<?=$good_href?>" target="hiddenframe"><img src="<?=$board_skin_path?>/img/icon_good.gif" border='0' align="absmiddle"></a></div>
</div>
<? } ?>
</tr>
</table>
<?
// 코멘트 입출력
include_once("./view_comment.php");
?>
<div style="height:1px; line-height:1px; font-size:1px; background-color:#ddd; clear:both;"> </div>
<div style="clear:both; height:43px;">
<div style="float:left; margin-top:10px;">
<? if ($next_href) { echo "<a href=\"$next_href\" title=\"$prev_wr_subject\"><img src='$board_skin_path/img/btn_prev.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($prev_href) { echo "<a href=\"$prev_href\" title=\"$next_wr_subject\"><img src='$board_skin_path/img/btn_next.gif' border='0' align='absmiddle'></a> "; } ?>
</div>
<!-- 링크 버튼 -->
<div style="float:right; margin-top:10px;">
<?=$link_buttons?>
</div>
</div>
<div style="height:2px; line-height:1px; font-size:1px; background-color:#dedede; clear:both;"> </div>
</td></tr></table><br>
<script language="JavaScript">
function file_download(link, file) {
<? if ($board[bo_download_point] < 0) { ?>if (confirm("'"+file+"' 파일을 다운로드 하시면 포인트가 차감(<?=number_format($board[bo_download_point])?>점)됩니다.\n\n포인트는 게시물당 한번만 차감되며 다음에 다시 다운로드 하셔도 중복하여 차감하지 않습니다.\n\n그래도 다운로드 하시겠습니까?"))<?}?>
document.location.href=link;
}
</script>
<script language="JavaScript" src="<?="$g4[path]/js/board.js"?>"></script>
<script language="JavaScript">
window.onload=function() {
resizeBoardImage(<?=(int)$board[bo_image_width]?>);
drawFont();
}
</script>
<!-- 게시글 보기 끝 -->
<script language="JavaScript">
// HTML 로 넘어온 <img ... > 태그의 폭이 테이블폭보다 크다면 테이블폭을 적용한다.
function resize_image()
{
var target = document.getElementsByName('target_resize_image[]');
var image_width = parseInt('<?=$board[bo_image_width]?>');
var image_height = 0;
for(i=0; i<target.length; i++) {
// 원래 사이즈를 저장해 놓는다
target[i].tmp_width = target[i].width;
target[i].tmp_height = target[i].height;
// 이미지 폭이 테이블 폭보다 크다면 테이블폭에 맞춘다
if(target[i].width > image_width) {
image_height = parseFloat(target[i].width / target[i].height)
target[i].width = image_width;
target[i].height = parseInt(image_width / image_height);
}
}
}
window.onload = resize_image;
var getCode = "";
var certEnd = 0; // 이부분 자바스크립트 전역변수 - 1이면 인증이 완료된거. 이 값만 가지고 다음을 처리 할지 말지 구분하면 된다이~~
</script>
이거 입니다. 조언부탁드리겟습니다[__]
을 이용하여 경매를 만들려 하는데.
예를 들어 1분정도 남앗을때 입찰을 하면 남은시간이 2분으로 증가하려고 해요.
아직 코딩에 서툴러서 어디를 손봐야되는지 모르겟습니다.
현재 소스는
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$token = md5(uniqid(rand(), true));
set_session("ss_token", $token);
// 최고가
$sql = " select * from $g4[auction_table] where bo_table = '$bo_table' and wr_id = '$wr_id' order by point desc ";
$full = sql_fetch($sql);
// 입찰 포인트를 합산
$sql = " select sum(point) as point from $g4[auction_table] where bo_table = '$bo_table' and wr_id = '$wr_id' ";
$total = sql_fetch($sql);
include_once("$board_skin_path/auction.lib.php");
include_once("$board_skin_path/config.php");
include_once "$g4[path]/thumbEngine/dq_thumb_engine2.php";
$info = get_info_auction($wr_id);
//$end_time = strtotime($info[end_datetime])-$g4[server_time];
// 경매진행중 -> 종료시간이 지났을 때 -> 경매종료 및 낙찰자업데이트
if ($info[end_datetime] <= $g4[time_ymdhis])
{
sql_query(" update $write_table set wr_6='$member[mb_id]', wr_7='$view[wr_7]', wr_13 = '2', wr_20='$member[mb_id]' where wr_id = '$wr_id' ");
sql_query($sql);
}
if ($view['wr_2'] <= $view['wr_7'] ) {
$sql = " update $write_table set wr_13 = '2',wr_6='$member[mb_id]' where wr_id = '$wr_id' ";
sql_query($sql);
}
?>
<?//=$info[end_datetime]?>
<?//=$g4[time_ymdhis]?>
<style type="text/css">
/* defalut */
#auction_view * {margin:0; padding:0;}
#auction_view li {list-style:none;}
#auction_view .auto {margin:0 auto;}
#auction_view .clr {clear:both; font-size:0px;}
/* bbs view auction */
#bbs_view_auction {clear:both; margin-top:5px; padding:5px 0 0 0; border:1px solid #dddddd; height:100%;}
#bbs_view_auction dl {clear:both;}
#bbs_view_auction dt {width:120px; padding:3px 0 3px 10px; float:left;}
#bbs_view_auction dd {padding:3px 10px 3px 0; float:left;}
#bbs_view_auction dt .t {font-weight:bold; line-height:14px; font-size:12px; color:#505050; font-family:dotum,돋움;}
#bbs_view_auction dd .t {line-height:14px; font-size:12px; color:#505050; font-family:dotum,돋움;}
/* bbs view auction2 */
#bbs_view_auction2 {clear:both; margin-top:5px; padding:5px 0 0 0; border:1px solid #dddddd; height:100%;}
#bbs_view_auction2 dl {clear:both;}
#bbs_view_auction2 dt {width:120px; padding:3px 0 3px 10px; float:left;}
#bbs_view_auction2 dd {padding:3px 10px 3px 0; float:left;}
#bbs_view_auction2 dt .t {font-weight:bold; line-height:14px; font-size:12px; color:#505050; font-family:dotum,돋움;}
#bbs_view_auction2 dd .p {font-weight:bold; line-height:14px; font-size:12px; color:#ff3300; font-family:dotum,돋움;}
#bbs_view_auction2 dd .c {font-weight:bold; line-height:14px; font-size:12px; color:#3a72a9; font-family:dotum,돋움;}
#bbs_view_auction2 dd .m {font-weight:bold; line-height:14px; font-size:12px; color:#009520; font-family:dotum,돋움;}
/* bbs view auction3 */
#bbs_view_auction3 {clear:both; margin-top:5px; padding:5px 0 0 0; border:1px solid #dddddd; height:100%;}
#bbs_view_auction3 dl {clear:both;}
#bbs_view_auction3 dd {padding:3px 10px 3px 10px;}
#bbs_view_auction3 dd .t {line-height:14px; font-size:12px; color:#505050; font-family:dotum,돋움;}
/* bbs view auction4 */
#bbs_view_auction4 {clear:both; margin-top:5px; padding:5px 0 0 0; border:1px solid #dddddd; height:100%;}
#bbs_view_auction4 dl {clear:both;}
#bbs_view_auction4 dt {width:120px; padding:3px 0 3px 10px; float:left;}
#bbs_view_auction4 dd {padding:3px 10px 3px 0; float:left;}
#bbs_view_auction4 dt .t {font-weight:bold; line-height:14px; font-size:12px; color:#505050; font-family:dotum,돋움;}
#bbs_view_auction4 dd .t {font-weight:bold; line-height:14px; font-size:12px; color:#ff9000; font-family:dotum,돋움;}
/* bbs view auction5 */
#bbs_view_auction5 {clear:both; margin-top:5px; padding:5px 0 0 0; border:1px solid #dddddd; height:100%; float:center;}
#bbs_view_auction5 dl {clear:both;}
#bbs_view_auction5 dt {width:300px; padding:10px 0 3px 10px;}
#bbs_view_auction5 dd {padding:3px 10px 3px 0;}
#bbs_view_auction5 dt .t {font-weight:bold; line-height:14px; font-size:12px; color:#505050; font-family:dotum,돋움;}
#bbs_view_auction5 dd .t {line-height:14px; font-size:12px; color:#505050; font-family:dotum,돋움;}
/* bbs view auction6 */
#bbs_view_auction6 {clear:both; margin-top:5px; padding:5px 0 0 0; border:1px solid #dddddd; height:100%;}
#bbs_view_auction6 dl {clear:both;}
#bbs_view_auction6 dt {width:300px; padding:10px 0 3px 10px; float:left;}
#bbs_view_auction6 dd {padding:3px 10px 3px 0; float:left;}
#bbs_view_auction6 dt .t {font-weight:bold; line-height:14px; font-size:12px; color:#505050; font-family:dotum,돋움;}
#bbs_view_auction6 dd .t {line-height:14px; font-size:12px; color:#505050; font-family:dotum,돋움;}
#bbs_view_auction6 dd .p {font-weight:bold; line-height:14px; font-size:12px; color:#ff3300; font-family:dotum,돋움;}
#bbs_view_auction6 dd .c {font-weight:bold; line-height:14px; font-size:12px; color:#3a72a9; font-family:dotum,돋움;}
#bbs_view_auction6 dd .m {font-weight:bold; line-height:14px; font-size:12px; color:#009520; font-family:dotum,돋움;}
/**입찰페이지 금액잇풋 스타일**/
.input_ipchal_price {
width:120px;
height:20px;
border-width:1;
text-decoration: none;
text-align:right;
border: 5px solid #0899c8;
background-repeat:no-repeat;
padding:5px 5px 0 0;
font-size:10pt;
color:black;
font-weight:bold;
font-family:맑은 고딕, 돋움;
}
.input_ipchal_price2 {
width:30px;
height:20px;
border-width:1;
text-decoration: none;
text-align:right;
border: 5px solid #0899c8;
background-repeat:no-repeat;
padding:5px 5px 0 0;
font-size:10pt;
color:black;
font-weight:bold;
font-family:맑은 고딕, 돋움;
}
.input_ipchal_price3 {
width:289px;
height:20px;
border-width:1;
text-decoration: none;
text-align:right;
border: 5px solid #0899c8;
background-repeat:no-repeat;
padding:5px 5px 0 0;
font-size:10pt;
color:black;
font-weight:bold;
font-family:맑은 고딕, 돋움;
}
.smfont1 {font-size:11px; color:#555555; font-family:dotum,돋움;}
.smfont2 {font-weight:bold; line-height:14px; font-size:12px; color:#009520; font-family:dotum,돋움;}
.smfont4 { font-size:14pt; color:red; font-weight:bold; font-family:맑은 고딕, 돋움;}
.smfont5 { font-size:14pt; color:black; font-weight:bold; font-family:맑은 고딕, 돋움;}
.smfont6 { font-size:14pt; color:#3366cc; font-weight:bold; font-family:맑은 고딕, 돋움;}
.smfont7 { font-size:12pt; color:black; font-weight:bold; font-family:맑은 고딕, 돋움;}
.smfont8 { font-size:12pt; color:black; font-family:맑은 고딕, 돋움;}
.smfont9 {font-weight:bold; line-height:14px; font-size:12px; color:#3a72a9; font-family:dotum,돋움;}
.current { font:bold 11px tahoma; color:#E15916; }
</style>
<script>
function chgImg( imgname, dnimgname, imgdesc ) {
var LureExp = /<br>/gi;
document.gallery_img.src=imgname;
}
</script>
<script>
function obxTabPage(sizex , sizey, cssHead){
if(!cssHead) this.cssHead='';
else this.cssHead=cssHead;
document.write(
'<table cellpadding="0" cellspacing="0" style="table-layout:fixed;padding:1;height:'+sizey+';width:'+sizex+'">' +
'<tr><td class=TP_'+this.cssHead+'_NCELL width=*> </td></tr>'+
'<tr><td class=TP_'+this.cssHead+'_CONTENT1 width=100%> </td></tr>'+
'</table>'
);
this.height=sizey;
this.width=sizex;
var tables=document.getElementsByTagName("table");
this.table=tables[tables.length-1];
this.titleRow=this.table.rows[0];
this.nullCell = this.titleRow.cells[0];
this.contentRow = this.table.rows[1];
this.contentCell = this.contentRow.cells[0];
this.item= new Object();
this.length=0;
var re=new RegExp("\\bobxtp=(\\w+)\\b",'i');
if(location.search.match(re)) this.defaultView = RegExp.$1;
this.addStart= function (id,title,idx,action) {
var iIndex=(idx) ? idx-1 : this.length;
this.item[id] = this.titleRow.insertCell(iIndex);
this.item[id].className='TP_'+this.cssHead+'_CELL';
this.item[id].parentObject=this;
this.item[id].onclick=Function("this.parentObject.show('"+id+"');");
if(action) this.item[id].action = action;
this.item[id].height=25;
this.item[id].innerHTML=title;
document.write('<div style="display:none;width:100%;height:100%">');
var divs=document.getElementsByTagName("div");
this.item[id].content = divs[divs.length-1];
this.item[id].content.className='TP_'+this.cssHead+'_CONTENT2';
this.DrawingID=id;
this.length++;
this.contentCell.colSpan=this.length+1;
}
this.addEnd = function () {
document.write("</div></div>");
this.contentCell.appendChild(this.item[this.DrawingID].content);
if(!this.LastShownItemID) this.show(this.DrawingID,1);
else if(this.defaultView==this.DrawingID) this.show(this.defaultView,1);
}
this.show = function (id,runtime){
if (this.LastShownItemID) this.hide(this.LastShownItemID);
this.LastShownItemID = id;
this.item[id].className='TP_'+this.cssHead+'_SCELL';
this.item[id].content.style.display='';
if(this.item[id].action) {
try{eval(this.item[id].action);}catch(e){}}
}
this.hide = function (id){
this.item[id].className='TP_'+this.cssHead+'_CELL';;
this.item[id].content.style.display="none";
}
}
</script>
<script language="JavaScript">
<!--
function change(html){
text1.innerHTML=html
}
//-->
</script>
<style>
.tp_test_nCell{border-bottom: 0px solid #cccccc;}
.tp_test_Content1{border: 0px solid #cccccc;border-top-width:0;padding:0px}
.tp_test_Content2{font:12px 돋움;}
.tp_test_Cell{
padding-top:5;
font:13px 돋움;
background:url('<?=$board_skin_path?>/img/tp_unselect.png') no-repeat 50%;
height:29;
width:100;
text-align:center;
cursor:pointer;
cursor:hand;
}
.tp_test_sCell{
padding-top:5;
font:13px 돋움;
background-image:url('<?=$board_skin_path?>/img/tp_select.png');
background-position: 50%;
background-repeat: no-repeat;
height:29;
width:100;
text-align:center;
cursor:pointer;
cursor:hand;
}
td.05{
border-bottom:1px solid #c9c9c9;
border-right:1px solid #c9c9c9;
border-left:1px solid #c9c9c9;
border-top:1px solid #c9c9c9;
font-size:12px;
}
tr.01 {background-color:#F7F8F9}
td.01 {text-align:right; padding:0 10 0 0}
td.02 {background-color:#FFFFFF}
td.03 {background-color:#6B7783}
td.04 {font-weight:bold; color:603000; background-color:#FFFFFF}
</style>
<!-- 게시글 보기 시작 -->
<table width="980" align="center" cellpadding="0" cellspacing="0"><tr><td>
<div style="clear:both; height:30px;">
<!-- 링크 버튼 -->
<div style="float:right;">
<?
ob_start();
?>
<? if ($copy_href) { echo "<a href=\"$copy_href\"><img src='$board_skin_path/img/btn_copy.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($move_href) { echo "<a href=\"$move_href\"><img src='$board_skin_path/img/btn_move.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($search_href) { echo "<a href=\"$search_href\"><img src='$board_skin_path/img/btn_list_search.gif' border='0' align='absmiddle'></a> "; } ?>
<? echo "<a href=\"$list_href\"><img src='$board_skin_path/img/btn_list.gif' border='0' align='absmiddle'></a> "; ?>
<? if ($update_href) { echo "<a href=\"$update_href\"><img src='$board_skin_path/img/btn_modify.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($delete_href) { echo "<a href=\"$delete_href\"><img src='$board_skin_path/img/btn_delete.gif' border='0' align='absmiddle'></a> "; } ?>
<?// if ($reply_href) { echo "<a href=\"$reply_href\"><img src='$board_skin_path/img/btn_reply.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($write_href) { echo "<a href=\"$write_href\"><img src='$board_skin_path/img/btn_write.gif' border='0' align='absmiddle'></a> "; } ?>
<?
$link_buttons = ob_get_contents();
ob_end_flush();
?>
</div>
</div>
<!--//-->
<table width="960" cellpadding="0" cellspacing="0" bgcolor="#f4f4f4" align="center" >
<tr>
<td bgcolor="ffffff"><table width="100%" cellpadding="0" cellspacing="0" bgcolor="ffffff" >
<tr>
<td height="1" bgcolor="cccccc"></td>
</tr>
<tr>
<td bgcolor="ffffff"><table width="100%" >
<tr valign="top" align="center">
<? if ($view[file][0][view]) {?><td width="560" >
<table width="550" border="0" cellspacing="0" cellpadding="0" >
<tr>
<td valign="top"> <?
for ($i=0; $i<=9; $i++) {
$image[$i] = "$g4[path]/data/file/$bo_table/".$view[file][$i][file];
$thumimg[$i]="<img src =$image[$i] width=140 height=120 border=0 onclick=\"view('$image[$i]')\" style=cursor:hand>";
}
?>
</td>
</tr>
<tr>
<td valign="top">
<table width="570" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="570" height="570" background="<?=$board_skin_path?>/img/photo_bg.gif" align="center" valign="middle">
<table cellpadding="0" cellspacing="0">
<tr>
<td bgcolor="ffffff">
<? if ($view[file][0][file]) {?>
<!-- 상세화면에서 큰이미지 안띄우려면 이부분의 onClick 부분을 수정해야 함. //-->
<img src=<?=$image[0]?> name=gallery_img width=480 height=480 border=0 style=vertical-align: middle;cursor:pointer; onClick="OpenWin('<?=$board_skin_path?>/slideshow.php?bo_table=<?=$bo_table?>&wr_id=<?=$wr_id?>',900,570); return false;" border=0 value=0>
<? } else {?>
<img src="<?=$board_skin_path?>/img/noimge.gif" border=0>
<? } ?></a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td valign="top"> <table align="center">
<tr>
<td><?=$view[file][0][content]?></td>
</tr>
</table></td>
</tr>
<tr>
<td valign="top" align="center"><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" width="100%"><? if ($view[file][0][file]) {?>
<a href=# <? echo "onMouseOver=\"chgImg( '".$image[0]."','".$image[0]."','".ereg_replace("(\r\n|\n|\r)", "<br>", strip_tags($content) )."' );\"" ?>> <img src="<?=$image[0]?>" width="50" height="43" align="absmiddle" border="0"></a>
<? }?>
<? if ($view[file][1][file]) {?>
<a href=# <? echo "onMouseOver=\"chgImg( '".$image[1]."','".$image[1]."','".ereg_replace("(\r\n|\n|\r)", "<br>", strip_tags($content) )."' );\"" ?>> <img src="<?=$image[1]?>" width="50" height="43" align="absmiddle" border="0"></a>
<? }?>
<? if ($view[file][2][file]) {?>
<a href=# <? echo "onMouseOver=\"chgImg( '".$image[2]."','".$image[2]."','".ereg_replace("(\r\n|\n|\r)", "<br>", strip_tags($content) )."' );\"" ?>> <img src="<?=$image[2]?>" width="50" height="43" align="absmiddle" border="0"></a>
<? }?>
<? if ($view[file][3][file]) {?>
<a href=# <? echo "onMouseOver=\"chgImg( '".$image[3]."','".$image[3]."','".ereg_replace("(\r\n|\n|\r)", "<br>", strip_tags($content) )."' );\"" ?>> <img src="<?=$image[3]?>" width="50" height="43" align="absmiddle" border="0"></a>
<? }?>
<? if ($view[file][4][file]) {?>
<a href=# <? echo "onMouseOver=\"chgImg( '".$image[4]."','".$image[4]."','".ereg_replace("(\r\n|\n|\r)", "<br>", strip_tags($content) )."' );\"" ?>> <img src="<?=$image[4]?>" width="50" height="43" align="absmiddle" border="0"></a>
<? }?>
<? if ($view[file][5][file]) {?>
<a href=# <? echo "onMouseOver=\"chgImg( '".$image[5]."','".$image[5]."','".ereg_replace("(\r\n|\n|\r)", "<br>", strip_tags($content) )."' );\"" ?>> <img src="<?=$image[5]?>" width="50" height="43" align="absmiddle" border="0"></a>
<? }?>
<? if ($view[file][6][file]) {?>
<a href=# <? echo "onMouseOver=\"chgImg( '".$image[6]."','".$image[6]."','".ereg_replace("(\r\n|\n|\r)", "<br>", strip_tags($content) )."' );\"" ?>> <img src="<?=$image[6]?>" width="50" height="43" align="absmiddle" border="0"></a>
<? }?>
<? if ($view[file][7][file]) {?>
<a href=# <? echo "onMouseOver=\"chgImg( '".$image[7]."','".$image[7]."','".ereg_replace("(\r\n|\n|\r)", "<br>", strip_tags($content) )."' );\"" ?>> <img src="<?=$image[7]?>" width="50" height="43" align="absmiddle" border="0"></a>
<? }?>
<? if ($view[file][8][file]) {?>
<a href=# <? echo "onMouseOver=\"chgImg( '".$image[8]."','".$image[8]."','".ereg_replace("(\r\n|\n|\r)", "<br>", strip_tags($content) )."' );\"" ?>> <img src="<?=$image[8]?>" width="50" height="43" align="absmiddle" border="0"></a>
<? }?>
<? if ($view[file][9][file]) {?>
<a href=# <? echo "onMouseOver=\"chgImg( '".$image[9]."','".$image[9]."','".ereg_replace("(\r\n|\n|\r)", "<br>", strip_tags($content) )."' );\"" ?>> <img src="<?=$image[9]?>" width="50" height="43" align="absmiddle" border="0"></a>
<? }?>
</td>
</tr>
</table><? }?></td>
</tr>
<tr>
<td valign="top"><table width="550" cellpadding="2" cellspacing="1" bgcolor="#EAEAEA" align="center">
<tr bgcolor="#FFFFFF">
<td ></td>
<td ></td>
<td ></td>
<td ></td>
<br></tr>
</table>
</td>
</tr>
<tr>
<td valign="top"><br></td>
</tr>
<tr>
<td valign="top"><br></td>
</tr>
<!--//상세정보시작//-->
<td style="padding-left:15px;">
<table width="550" cellpadding="0" cellspacing="0" bgcolor="ffffff" align="left" >
<tr bgcolor="cccccc">
<td bgcolor="f5f7f1" class="blue" width="105" height="30"><b>작가명/미술품명</b></td>
<td width="305" colspan="3" bgcolor="ffffff">
<p><?=$view[ca_name]?> / <?=$view[subject]?></p> </td>
</tr>
<tr>
<td colspan="2" style="height:1px; background-color:#e4eff5;"></td>
</tr>
<tr bgcolor="cccccc">
<td width="105" height="30" bgcolor="f5f7f1" class="blue"><b>제작년도</b></td>
<td width="100" bgcolor="ffffff"><?=$write[wr_18]?><!--. <?=$ext5_00?>--></td>
</tr>
<tr>
<td colspan="2" style="height:1px; background-color:#e4eff5;"></td>
</tr>
<tr bgcolor="cccccc">
<td width="105" height="30" bgcolor="f5f7f1" class="blue"><b>추정가</b></td>
<td bgcolor="ffffff"><?=$ext5_05?>~<?=$ext5_07?>
원</td>
</tr>
<tr>
<td colspan="2" style="height:1px; background-color:#e4eff5;"></td>
</tr>
<tr bgcolor="cccccc">
<td width="105" height="30" bgcolor="f5f7f1" class="blue"><b>작품크기</b></td>
<td bgcolor="ffffff"><?=$ext5_02?><!--X<?=$ext5_08?>-->
</td>
</tr>
<tr>
<td colspan="2" style="height:1px; background-color:#e4eff5;"></td>
</tr>
<tr bgcolor="cccccc">
<td width="105" height="30" bgcolor="f5f7f1" class="blue"><b>액자상태</b></td>
<td bgcolor="ffffff"><?=$ext5_04?></td>
</tr>
<tr>
<td colspan="2" style="height:1px; background-color:#e4eff5;"></td>
</tr>
</table>
</td>
<!--//상제정보끝//-->
<? if ($is_admin && $super[point] ) { ?>
<div style="padding:10px; border:1px solid #ddd; margin-top:10px;">
(1위: <?=number_format($super[point])?> 원, <?=number_format($super[count])?> 건)
<?
foreach($super_mb_id as $mb_id) {
$mb = get_member($mb_id);
echo get_sideview($mb[mb_id], $mb[mb_nick], $mb[mb_email], $mb[mb_homepage]);
}
?>
</div>
<? } ?>
</td>
</tr>
<tr>
<td valign="top"><br></td>
</tr>
</table>
</td>
<td valign="top"><table style="width:380;">
<tr style="height:35px;background-color:#ffffff;" ><td>
<div style="float:left; margin-top:6px;">
<img src="<?=$board_skin_path?>/img/icon_date.gif" align=absmiddle border='0'><span style="color:#888888;"> Lot. <?=$wr_id?></span>
조회 : <?=number_format($view[wr_hit])?>
<!--img src="<?=$board_skin_path?>/img/icon_date.gif" align=absmiddle border='0'><span style="color:#888888;">차량번호 : <?//=$ext5_02?>번</span-->
<img src="<?=$board_skin_path?>/img/icon_date.gif" align=absmiddle border='0'>
<span style="color:#888888;">최초등록일 : <?=date("y-m-d H:i", strtotime($view[wr_datetime]))?></span>
</div>
</tr>
</td>
<tr>
<td>
<table style="width:100%; background-color:#ebf4fd;">
<tr>
<td style="padding:8px;">
<? if ($view[ca_name]) { ?></font><b><font class="smfont6">[<?=$view[ca_name]?>]</font></b><? }else{ ?> <? } ?> <font class="smfont5"><b><?=$view[subject]?></b>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table style="width:100%; background-color:#f9fdff; line-height:20px;">
<tr style="height:40px;">
<td style="padding-left:10px; width:100px" bgcolor="f5f7f1"><b>추정가</b></td>
<td class="smfont4_1"><?=$ext5_05?>원 ~ <?=$ext5_07?>원</td>
</tr>
<tr>
<td colspan="2" style="height:1px; background-color:#e4eff5;"></td>
</tr>
<tr style="height:40px;">
<td style="padding-left:10px;" bgcolor="f5f7f1"><b>응찰자수</b></td>
<td>
<table>
<tr>
<td><span class="smfont9" ><?=number_format($view['wr_3']);?> 건 참여</span></td>
<td style="padding-left:10px;"><? if ($g4['time_ymdhis'] >= $view['wr_9']) { ?><a href="javascript:bidding_list();" onfocus="this.blur();"><img src="<?=$board_skin_path?>/img/btn_bidding_list.gif" border="0"></a><? } ?></td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2" style="height:1px; background-color:#e4eff5;"></td>
</tr>
<tr style="height:40px;">
<td style="padding-left:10px;" bgcolor="f5f7f1"><b>경매시작일시</b></td>
<td><?=date("Y년 m월 d일 H시 i분", strtotime($view['wr_9']));?></td>
</tr>
<tr>
<td colspan="2" style="height:1px; background-color:#e4eff5;"></td>
</tr>
<tr style="height:40px;">
<td style="padding-left:10px;" bgcolor="f5f7f1"><b>경매종료일시</b></td>
<td><?=date("Y년 m월 d일 H시 i분", strtotime($view['wr_1']));?></td>
</tr>
<tr>
<td colspan="2" style="height:1px; background-color:#e4eff5;"></td>
</tr>
<tr style="height:40px;">
<td style="padding-left:10px;" bgcolor="f5f7f1"><b>남은시간</b></td>
<td><font color="#999999">
<table cellpadding='0' cellspacing='0'><tr><td>
<? if ($view['wr_13'] == '2') { ?>
<span class='current'>경매종료</span>
<? } else { ?>
<? if ($g4['time_ymdhis'] < $view['wr_9']) { echo "<span class='t'>경매 시작 전</span>"; } else { ?>
<?
$endtime = strtotime($view['wr_1']) - $g4['server_time'];
$auc_id = "eTime_id".$view['wr_id'];
$auc_tmp = $view['wr_id'];
// 작다면
if ($endtime <= '0') {
$endtime = "0";
}
?>
<span id="<?=$auc_id?>" style="color:#ff3300; font-weight:bold; height:16px; font-size:12px;"></span>
<script type="text/javascript">
var eTime<?=$auc_tmp?> = <?=$endtime?>;
rTimer<?=$auc_tmp?>("<?=$auc_id?>");
sTimer<?=$auc_tmp?> = setInterval('rTimer<?=$auc_tmp?>("<?=$auc_id?>")', 1000);
function rTimer<?=$auc_tmp?>(id)
{
var Timer = document.getElementById(id);
dd = Math.floor(eTime<?=$auc_tmp?>/(60*60*24));
hh = Math.floor((eTime<?=$auc_tmp?>%(60*60*24))/(60*60));
mm = Math.floor(((eTime<?=$auc_tmp?>%(60*60*24))%(60*60))/60);
ii = Math.floor((((eTime<?=$auc_tmp?>%(60*60*24))%(60*60))%60));
var str = "";
if (dd > 0) str += dd + "일 ";
if (hh > 0) str += hh + "시간 ";
if (mm > 0) str += mm + "분 ";
str += ii + "초 ";
//Timer.style.color = "red";
//Timer.style.fontWeight = "bold";
Timer.innerHTML = str;
eTime<?=$auc_tmp?>--;
// 종료
if (eTime<?=$auc_tmp?> < 0) {
Timer.innerHTML = "경매종료";
//clearInterval(sTimer<?=$auc_tmp?>);
}
}
</script>
<? } ?>
<? } ?>
</td></tr></table>
</td>
</tr>
<tr>
<td colspan="2" style="height:1px; background-color:#e4eff5;"></td>
</tr>
<tr style="height:40px;">
<td style="padding-left:10px;" bgcolor="f5f7f1"><b>경매상태</b></td>
<td><span class="smfont2"><? if ($g4['time_ymdhis'] >= $view['wr_1'] || $view['wr_13']== '2') { echo "경매종료"; } else if ($g4['time_ymdhis'] < $view['wr_9']) { echo "경매 시작 전"; } else { echo "입찰가능"; } ?></span></td>
</tr>
<tr>
<td colspan="2" style="height:1px; background-color:#e4eff5;"></td>
</tr>
<tr style="height:40px;">
<td style="padding-left:10px;" bgcolor="f5f7f1"><b>응찰가능 최저가 / 응찰시작가</b></td>
<td><span class="smfont2"><font class="smfont4"><b><?=number_format($view[wr_11])?>원</b></font></span></td>
<!-- 기존꺼 <td><span class="smfont2"><font class="smfont4"><b><?=number_format($view[wr_11]+$view[wr_12])?>원</b></font></span></td>-->
</tr>
<tr>
<td colspan="2" style="height:1px; background-color:#e4eff5;"></td>
</tr>
<tr style="height:40px;">
<td style="padding-left:10px;"bgcolor="f5f7f1"><b>현재가</b></td>
<td><span class="smfont2"> <?=number_format($full['point']);?>원</span></td>
</tr>
<tr>
<td colspan="2" style="height:1px; background-color:#e4eff5;"></td>
</tr>
<tr style="height:40px;">
<td style="padding-left:10px;"bgcolor="f5f7f1"><b>응찰단위가</b></td>
<td><span class="smfont2"> <?=number_format($view[wr_12])?>원</span></td>
</tr>
<tr>
<td colspan="2" style="height:1px; background-color:#e4eff5;"></td>
</tr>
<tr style="height:40px;">
<td style="padding-left:10px;"bgcolor="f5f7f1"><b>현재낙찰<? if (!$view['wr_6']) { ?>예정 <? } ?>가격</span> / 경매상태</b></td>
<td style="padding:5px 0;"><span class="smfont2"><?=number_format($full['point']);?>원</span>
</td>
</tr>
<tr>
<td colspan="2" style="height:1px; background-color:#e4eff5;"></td>
</tr>
<tr style="height:40px;">
<td style="padding-left:10px;" bgcolor="f5f7f1"><b>배송방법/지역</b></td>
<td><span class="smfont2"> <?=$ext5_06?></span></td>
</tr>
<tr>
<td colspan="2" style="height:1px; background-color:#e4eff5;"></td>
</tr>
<tr style="height:40px;">
<td style="padding-left:10px;" bgcolor="f5f7f1"><b>배송비</b></td>
<td><span class="smfont2"><?=$view[wr_17]?></span></td>
</tr>
<tr>
<td colspan="2" style="height:1px; background-color:#e4eff5;"></td>
</tr>
<tr style="height:40px;">
<td style="padding-left:10px;" bgcolor="f5f7f1"><b>결제수단</b></td>
<td><span class="smfont2"><?=$ext5_09?></td>
</tr>
<tr>
<td colspan="2" style="height:1px; background-color:#e4eff5;"></td>
</tr>
</table>
</table>
<!--//-->
<div id="auction_view" align="center">
<form method="post" name="formAuction" onSubmit="return submitAuction();" style="margin:0px;">
<input type="hidden" name="bo_table" value="<?=$bo_table?>">
<input type="hidden" name="wr_id" value="<?=$wr_id?>">
<input type="hidden" name="listStyle" value="<?=$listStyle?>">
<div id="bbs_view_auction5" align="center">
<dl>
<dt>
<?
// 경매가 종료 되었을 때
if ($g4['time_ymdhis'] >= $view['wr_1'] || $write['wr_2'] <= $write['wr_7']) {
// 낙찰자 있을 경우
if ($view['wr_6']) {
// 사이드뷰
echo "<script language=\"javascript\" src=\"$g4[path]/js/sideview.js\"></script>\n";
// 낙찰자
$mb = get_member($view['wr_6']);
// 닉네임
$nick = get_sideview($mb['mb_id'], $mb['mb_nick'], $mb['mb_email'], $mb['mb_homepage']);
echo "<b>낙찰자</b> : {$nick} <b>낙찰가</b> : ".number_format($view['wr_7'])." 원";
}
// 낙찰자가 없을경우
else if ($view['wr_6']) {
echo "낙찰자가 없습니다.";
} else {
echo "집계중입니다.";
}
}
// 경매 시작 전
else if ($g4['time_ymdhis'] < $view['wr_9']) {
echo "<div style='padding-bottom:10px;'>경매 시작 전 입니다.</div>";
} else {
// 경매 진행 중
if ($view['wr_10'] == '3') {
// 최대 금액에 입찰단위가 $view[wr_12]를 더한다.
if ($view['wr_3'] == '0') {
// $fullpoint = $view['wr_11'] + $view[wr_12];
$fullpoint = $view['wr_11'];
} else {
$fullpoint = $full['point'] + $view[wr_12];
}
}
echo "<input type='text' name='point' id='point' value='".$fullpoint."' required numeric itemname='입찰가격' style=' border:3px solid #e5025b; width:100px; text-align:right; padding-right:10px;' readonly> 원을 입찰하겠습니다.";
}
?>
</dt>
<dd>
<? if ($view['wr_13'] == '2') { ?>
<? } else { ?>
<?
$sql = "SELECT count(*) as ryan_cnt FROM g4_write_auction_tender WHERE wr_id = '{$wr_id }' and mb_id ='{$member[mb_id] }'";
$result = mysql_query($sql);
$result_cnt = mysql_fetch_array($result);
if($member[mb_level] >= 2 and $result_cnt[ryan_cnt] == 0) {
include("$board_skin_path/ryan_hp.php");
}
else {
?>
<? if ($g4['time_ymdhis'] < $view['wr_1'] && $g4['time_ymdhis'] >= $view['wr_9'] || $view['wr_2'] > $view['wr_7']) { ?><input type="image" src="<?=$board_skin_path?>/img/btn_bid.gif" border="0" onfocus="this.blur();"><? } ?>
<? } ?>
<? if ($g4['time_ymdhis'] >= $view['wr_9']) { ?><a href="javascript:bidding_list();" onfocus="this.blur();"><img src="<?=$board_skin_path?>/img/btn_bidview.gif" border="0"></a><? } ?>
<!-- <? if ($scrap_href) { echo "<a href=\"javascript:;\" onclick=\"win_scrap('$scrap_href');\"><img src='$board_skin_path/img/btn_scrap.gif' border='0' align='absmiddle'></a> "; } ?>
<? } ?>-->
<br><br>회원만 입찰에 참여할 수 있습니다.<br>
*작품 상태 확인은 응찰자의 책임이며 오프라인 전시를 통해 직접 확인하시기 바랍니다.
<br>낙찰 이후에는 환불 및 취소 할 수 없으므로 신중한 응찰 바랍니다.
<br><font color='red'>*응찰 하신 후에는 반드시 하단의 새로고침을 버튼을 클릭하셔서 응찰현황을 확인하시기 바랍니다.</font>
<br><br><input type="button" value="새로고침" onclick="document.location.reload();"><br><br>
</dd><div class="clr"></div>
</dl>
</div>
</form>
<div style="height:3px; background:url(<?=$board_skin_path?>/img/title_shadow.gif) repeat-x; line-height:1px; font-size:1px;"></div>
<table border=0 cellpadding=0 cellspacing=0 width=100%>
<?
// 가변 파일
$cnt = 0;
for ($i=0; $i<count($view[file]); $i++) {
if ($view[file][$i][source] && !$view[file][$i][view]) {
$cnt++;
echo "<tr><td height=30 background=\"$board_skin_path/img/view_dot.gif\">";
echo " <img src='{$board_skin_path}/img/icon_file.gif' align=absmiddle border='0'>";
echo "<a href=\"javascript:file_download('{$view[file][$i][href]}', '{$view[file][$i][source]}');\" title='{$view[file][$i][content]}'>";
echo " <span style=\"color:#888;\">{$view[file][$i][source]} ({$view[file][$i][size]})</span>";
echo " <span style=\"color:#ff6600; font-size:11px;\">[{$view[file][$i][download]}]</span>";
echo " <span style=\"color:#d3d3d3; font-size:11px;\">DATE : {$view[file][$i][datetime]}</span>";
echo "</a></td></tr>";
}
}
?>
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<div id=writeContents style="margin:20px 0 20px 0;">
<iframe width="0" height="0" id="auctioniframe" name="auctioniframe" style="display:none;"></iframe>
<script type="text/javascript">
function submitAuction()
{
if (!g4_is_member) {
alert("로그인 후 이용하세요.");
return;
}
var f = document.formAuction;
if (!f.point.value) {
alert("포인트를 입력해주세요.");
f.point.focus();
return;
}
if (confirm("입찰하시겠습니까?")) {
f.action = "<?=$board_skin_path?>/bidding.php";
f.target = "auctioniframe";
f.submit();
}
}
function tender_list()
{
tender_list_win = window.open("<?=$board_skin_path?>/bidding_list.php?bo_table=<?=$bo_table?>&wr_id=<?=$wr_id?>","tender_list","width=500, height=500, scrollbars=1");
tender_list_win.focus();
}
function bidding_list()
{
win_open("<?=$board_skin_path?>/bidding_list.php?bo_table=<?=$bo_table?>&wr_id=<?=$wr_id?>", "bidding_list", "width=500, height=500, scrollbars=1");
}
function right_now() {
if (!confirm("즉시구매가로 즉시낙찰하겠습니까?."))
return;
location.href='<?=$board_skin_path?>/right_now.php?bo_table=<?=$bo_table?>&wr_id=<?=$wr_id?>&point=<?=$view[wr_2]?>';
}
</script>
</div>
</td>
</tr>
</table>
<!-- //좀더 부가 정보//-->
<table width="980" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td style="padding-left:20px;"height="200" valign="top"> <!-- 내용 출력 -->
<span id="writeContents"><?=$view[content];?></span></td>
<?//echo $view[rich_content]; // 과 같은 코드를 사용할 경우?>
<!-- 테러 태그 방지용 --></xml></xmp><a href=""></a><a href=''></a>
<? if ($nogood_href) {?>
<div style="width:72px; height:55px; background:url(<?=$board_skin_path?>/img/good_bg.gif) no-repeat; text-align:center; float:right;">
<div style="color:#888; margin:7px 0 5px 0;">비추천 : <?=number_format($view[wr_nogood])?></div>
<div><a href="<?=$nogood_href?>" target="hiddenframe"><img src="<?=$board_skin_path?>/img/icon_nogood.gif" border='0' align="absmiddle"></a></div>
</div>
<? } ?>
<? if ($good_href) {?>
<div style="width:72px; height:55px; background:url(<?=$board_skin_path?>/img/good_bg.gif) no-repeat; text-align:center; float:right;">
<div style="color:#888; margin:7px 0 5px 0;"><span style='color:crimson;'>추천 : <?=number_format($view[wr_good])?></span></div>
<div><a href="<?=$good_href?>" target="hiddenframe"><img src="<?=$board_skin_path?>/img/icon_good.gif" border='0' align="absmiddle"></a></div>
</div>
<? } ?>
</tr>
</table>
<?
// 코멘트 입출력
include_once("./view_comment.php");
?>
<div style="height:1px; line-height:1px; font-size:1px; background-color:#ddd; clear:both;"> </div>
<div style="clear:both; height:43px;">
<div style="float:left; margin-top:10px;">
<? if ($next_href) { echo "<a href=\"$next_href\" title=\"$prev_wr_subject\"><img src='$board_skin_path/img/btn_prev.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($prev_href) { echo "<a href=\"$prev_href\" title=\"$next_wr_subject\"><img src='$board_skin_path/img/btn_next.gif' border='0' align='absmiddle'></a> "; } ?>
</div>
<!-- 링크 버튼 -->
<div style="float:right; margin-top:10px;">
<?=$link_buttons?>
</div>
</div>
<div style="height:2px; line-height:1px; font-size:1px; background-color:#dedede; clear:both;"> </div>
</td></tr></table><br>
<script language="JavaScript">
function file_download(link, file) {
<? if ($board[bo_download_point] < 0) { ?>if (confirm("'"+file+"' 파일을 다운로드 하시면 포인트가 차감(<?=number_format($board[bo_download_point])?>점)됩니다.\n\n포인트는 게시물당 한번만 차감되며 다음에 다시 다운로드 하셔도 중복하여 차감하지 않습니다.\n\n그래도 다운로드 하시겠습니까?"))<?}?>
document.location.href=link;
}
</script>
<script language="JavaScript" src="<?="$g4[path]/js/board.js"?>"></script>
<script language="JavaScript">
window.onload=function() {
resizeBoardImage(<?=(int)$board[bo_image_width]?>);
drawFont();
}
</script>
<!-- 게시글 보기 끝 -->
<script language="JavaScript">
// HTML 로 넘어온 <img ... > 태그의 폭이 테이블폭보다 크다면 테이블폭을 적용한다.
function resize_image()
{
var target = document.getElementsByName('target_resize_image[]');
var image_width = parseInt('<?=$board[bo_image_width]?>');
var image_height = 0;
for(i=0; i<target.length; i++) {
// 원래 사이즈를 저장해 놓는다
target[i].tmp_width = target[i].width;
target[i].tmp_height = target[i].height;
// 이미지 폭이 테이블 폭보다 크다면 테이블폭에 맞춘다
if(target[i].width > image_width) {
image_height = parseFloat(target[i].width / target[i].height)
target[i].width = image_width;
target[i].height = parseInt(image_width / image_height);
}
}
}
window.onload = resize_image;
var getCode = "";
var certEnd = 0; // 이부분 자바스크립트 전역변수 - 1이면 인증이 완료된거. 이 값만 가지고 다음을 처리 할지 말지 구분하면 된다이~~
</script>
이거 입니다. 조언부탁드리겟습니다[__]
댓글 전체