오늘본 상품 리스트보기
페이지 정보
작성자 최고관리자 작성일 21-02-10 17:33 조회 13,284 댓글 0본문
###### 상품 보여주는 파일 시작 ######
$old_history = "{$HTTP_COOKIE_VARS[ViewHistory]}";
$new_history = "{$no}:{$row[sPhotoDir]}:{$Maker2}:{$Model2}:{$Grade2}";
if(!eregi($new_history, $old_history)){
if($old_history){
$input_history = $new_history . ";" . $old_history;
} else {
$input_history = $new_history;
}
setCookie ("ViewHistory", $input_history, time()+7200,"/");
}
###### 상품 보여주는 파일 끝 ######
###### 보여주는 파일 시작 ######
<script language="javascript">
<!--
var prdSMR = new Array();
var prdPhotoDir = new Array();
<?
$Vhistory = explode(";", $HTTP_COOKIE_VARS[ViewHistory]);
for($i = 0; $i < sizeof($Vhistory) ; $i++) {
$history_detail = explode (":", $Vhistory[$i]);
if(file_exists("/home/localhost/public_html/photo/{$history_detail[1]}/{$history_detail[0]}.jpg")){
$imgSrc = "http://beautipia.co.kr/photo/{$history_detail[1]}/{$history_detail[0]}.jpg";
} else {
$imgSrc = "http://beautipia.co.kr/img/noimg_s.gif";
}
echo "
prdSMR[{$i}] = \"<a href=javascript:openPopWin('./Detail.html?no={$history_detail[0]}','DetailPop','location=no,scrollbars=yes,toolbar=no,directories=no,menubar=no,resizable=yes,status=no,screenX=10,screenY=10,width=980,height=680')><font color='0062DB'><u>{$history_detail[2]}<br>{$history_detail[3]}<br>{$history_detail[4]}</u></font></a>\";
prdPhotoDir[{$i}] = \"<img src='{$imgSrc}' width='65' height='49' style='cursor:hand' onclick=openPopWin('./Detail.html?no={$history_detail[0]}','DetailPop','location=no,scrollbars=yes,toolbar=no,directories=no,menubar=no,resizable=yes,status=no,screenX=10,screenY=10,width=980,height=680')>\";
";
}
?>
function imgUp()
{
var FirstCnt = parseInt(document.historyForm.up_no.value);
if (FirstCnt == -1){
alert("오늘 본 상품이 존재하지 않습니다.");
}else if (FirstCnt <= 0){
Click_button_up.innerHTML = "<img src='/img/bt_history_prev_a.gif' width='50' height='17' border='0'>";
}else{
var strprdSMR1 = prdSMR[FirstCnt-1];
var strprdSMR2 = prdSMR[FirstCnt];
var strprdSMR3 = prdSMR[FirstCnt+1];
var strprdSMR4 = prdSMR[FirstCnt+2];
var strprdSMR5 = prdSMR[FirstCnt+3];
var strprdPhotoDir1 = prdPhotoDir[FirstCnt-1];
var strprdPhotoDir2 = prdPhotoDir[FirstCnt];
var strprdPhotoDir3 = prdPhotoDir[FirstCnt+1];
var strprdPhotoDir4 = prdPhotoDir[FirstCnt+2];
var strprdPhotoDir5 = prdPhotoDir[FirstCnt+3];
prdSMR0.innerHTML = strprdSMR1;
prdSMR1.innerHTML = strprdSMR2;
prdSMR2.innerHTML = strprdSMR3;
prdSMR3.innerHTML = strprdSMR4;
prdSMR4.innerHTML = strprdSMR5;
prdPhotoDir0.innerHTML = strprdPhotoDir1;
prdPhotoDir1.innerHTML = strprdPhotoDir2;
prdPhotoDir2.innerHTML = strprdPhotoDir3;
prdPhotoDir3.innerHTML = strprdPhotoDir4;
prdPhotoDir4.innerHTML = strprdPhotoDir5;
Click_button_up.innerHTML = "<img src='/img/bt_history_prev_o.gif' width='50' height='17' border='0' style='cursor:hand' OnClick='imgUp()';>";
Click_button_down.innerHTML = "<img id=down_no_img src='/img/bt_history_next_o.gif' width='50' height='17' border='0' style='cursor:hand' OnClick='imgDown()';>";
document.historyForm.up_no.value = FirstCnt-1;
document.historyForm.down_no.value = FirstCnt+3;
}
}
function imgDown()
{
var nLastCnt = parseInt(document.historyForm.down_no.value);
var nMaxCnt = <?=sizeof($Vhistory)?> - 1;
if (nLastCnt == -1)
{
alert("오늘 본 상품이 존재하지 않습니다.");
}
else if (nLastCnt >= nMaxCnt)
{
Click_button_down.innerHTML = "<img id=down_no_img src='/img/bt_history_next_a.gif' width='50' height='17' border='0'>";
}
else
{
var strprdSMR1 = prdSMR[nLastCnt-3];
var strprdSMR2 = prdSMR[nLastCnt-2];
var strprdSMR3 = prdSMR[nLastCnt-1];
var strprdSMR4 = prdSMR[nLastCnt];
var strprdSMR5 = prdSMR[nLastCnt+1];
var strprdPhotoDir1 = prdPhotoDir[nLastCnt-3];
var strprdPhotoDir2 = prdPhotoDir[nLastCnt-2];
var strprdPhotoDir3 = prdPhotoDir[nLastCnt-1];
var strprdPhotoDir4 = prdPhotoDir[nLastCnt];
var strprdPhotoDir5 = prdPhotoDir[nLastCnt+1];
prdSMR0.innerHTML = strprdSMR1;
prdSMR1.innerHTML = strprdSMR2;
prdSMR2.innerHTML = strprdSMR3;
prdSMR3.innerHTML = strprdSMR4;
prdSMR4.innerHTML = strprdSMR5;
prdPhotoDir0.innerHTML = strprdPhotoDir1;
prdPhotoDir1.innerHTML = strprdPhotoDir2;
prdPhotoDir2.innerHTML = strprdPhotoDir3;
prdPhotoDir3.innerHTML = strprdPhotoDir4;
prdPhotoDir4.innerHTML = strprdPhotoDir5;
Click_button_up.innerHTML = "<img src='/img/bt_history_prev_o.gif' width='50' height='17' border='0' style='cursor:hand' OnClick='imgUp()';>";
Click_button_down.innerHTML = "<img id=down_no_img src='/img/bt_history_next_o.gif' width='50' height='17' border='0' style='cursor:hand' OnClick='imgDown()';>";
document.historyForm.up_no.value = nLastCnt-3;
document.historyForm.down_no.value = nLastCnt+1;
}
}
//-->
</script>
<?
if($HTTP_COOKIE_VARS[ViewHistory]){
?>
<table width="165" border="0" cellspacing="0" cellpadding="0" style="margin-left:1;">
<form name="historyForm">
<tr>
<td width="165" height="36" align="center" valign="bottom" background="../img/left_history_img1.gif" style="padding:0 0 6 0;">
<strong><font style="color:2500E1;font-size:9pt;">오늘 본 차량</font></strong>
<font color="919191">(</font> <strong><font style="color:ff0000;font-size:10pt;"><?=sizeof($Vhistory)?></font></strong> <strong><font style="color:FF5A00;font-size:9pt;">대</font></strong> <font color="919191">)</font> </td>
</tr>
<tr>
<td background="/img/left_history_img2.gif"><table width="150" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="29" align="center">
<span id=Click_button_up><img src="/img/bt_history_prev_a.gif" width="50" height="17" border="0"></span></td>
</tr>
<tr><td colspan="2" height="2"></td></tr>
<tr>
<td style="padding:0 0 0 8;"><table width="142" border="0" cellspacing="0" cellpadding="0">
<?
$Vhistory2 = explode(";", $HTTP_COOKIE_VARS[쿠키명]);
for($i = 0; $i < sizeof($Vhistory2) ; $i++) {
$history_detail = explode (":", $Vhistory2[$i]);
if(file_exists("/home/localhost/public_html/photo/{$history_detail[1]}/{$history_detail[0]}.jpg")){
$imgSrc = "http://beautipia.co.kr/photo/{$history_detail[1]}/{$history_detail[0]}.jpg";
} else {
$imgSrc = "http://beautipia.co.kr/img/noimg_s.gif";
}
echo "
<tr>
<td width=\"78\" height=\"54\">
<table width=\"69\" height=\"53\" border=\"0\" cellpadding=\"2\" cellspacing=\"1\" bgcolor=\"#bbbbbb\" OnMouseOver=\"this.bgColor='#000000'\" OnMouseOut=\"this.bgColor='#bbbbbb'\">
<tr>
<td width=\"67\" align=\"center\" valign=\"middle\" bgcolor=\"ffffff\"><span id=prdPhotoDir{$i}><img src=\"{$imgSrc}\" width=\"65\" height=\"49\" style='cursor:hand;' onclick=\"openPopWin('./Detail.html?no={$history_detail[0]}','DetailPop','location=no,scrollbars=yes,toolbar=no,directories=no,menubar=no,resizable=yes,status=no,screenX=10,screenY=10,width=980,height=680')\"></span></td>
</tr>
</table>
</td>
<td valign=\"top\" style=\"font-size:9pt;line-height:13pt;padding:2 0 0 0;\"><span id=prdSMR{$i}><a href=\"javascript:openPopWin('./Detail.html?no={$history_detail[0]}','DetailPop','location=no,scrollbars=yes,toolbar=no,directories=no,menubar=no,resizable=yes,status=no,screenX=10,screenY=10,width=980,height=680')\"><font color=\"0062DB\"><u>{$history_detail[2]}<br>{$history_detail[3]}<br>{$history_detail[4]}</u></font></a></span></td>
</tr>
";
if($i == 4){
break;
} else {
echo "
<!--여백-->
<tr>
<td colspan=\"2\" height=\"10\"></td>
</tr>
<!--/여백-->
";
}
}
if(sizeof($Vhistory2) > 5){
$down_Click_button = "<img id=down_no_img src='/img/bt_history_next_o.gif' width='50' height='17' style='cursor:hand' OnClick='imgDown()' border='0'>";
} else {
$down_Click_button = "<img id=down_no_img src='/img/bt_history_next_a.gif' width='50' height='17' border='0'>";
}
?>
<input type="hidden" name="up_no" value="0">
<input type="hidden" name="down_no" value="<?=$i?>">
</table></td>
</tr>
<tr>
<td height="29" align="center">
<span id=Click_button_down><?=$down_Click_button?></span></td>
</tr>
</table></td>
</tr>
<tr>
<td><img src="/img/left_history_img3.gif"></td>
</tr>
</form>
</table>
<?
} else {
?>
<!--오늘본차량 0대일때..-->
<table width="165" border="0" cellspacing="0" cellpadding="0" style="margin-left:1;">
<tr>
<td width="165" height="36" align="center" valign="bottom" background="../img/left_history_img1.gif" style="padding:0 0 6 0;">
<strong><font style="color:2500E1;font-size:9pt;">오늘 본 차량</font></strong>
<font color="919191">(</font> <strong><font style="color:ff0000;font-size:10pt;">0</font></strong>
<strong><font style="color:FF5A00;font-size:9pt;">대</font></strong> <font color="919191">)</font>
</td>
</tr>
<tr>
<td background="/img/left_history_img2.gif"><table width="150" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="29" align="center">
<img src="/img/bt_history_prev_a.gif" width="50" height="17" border="0"></td>
</tr>
<tr>
<td colspan="2" height="2"></td>
</tr>
<tr>
<td style="padding:0 0 0 6;"><img src="../img/left_history_none.gif"></td>
</tr>
<tr>
<td height="29" align="center">
<img src="../img/bt_history_next_a.gif" width="50" height="17" border="0"></td>
</tr>
</table></td>
</tr>
<tr>
<td><img src="../img/left_history_img3.gif"></td>
</tr>
</table>
<?
}
?>
###### 보여주는 파일 끝 ######
$old_history = "{$HTTP_COOKIE_VARS[ViewHistory]}";
$new_history = "{$no}:{$row[sPhotoDir]}:{$Maker2}:{$Model2}:{$Grade2}";
if(!eregi($new_history, $old_history)){
if($old_history){
$input_history = $new_history . ";" . $old_history;
} else {
$input_history = $new_history;
}
setCookie ("ViewHistory", $input_history, time()+7200,"/");
}
###### 상품 보여주는 파일 끝 ######
###### 보여주는 파일 시작 ######
<script language="javascript">
<!--
var prdSMR = new Array();
var prdPhotoDir = new Array();
<?
$Vhistory = explode(";", $HTTP_COOKIE_VARS[ViewHistory]);
for($i = 0; $i < sizeof($Vhistory) ; $i++) {
$history_detail = explode (":", $Vhistory[$i]);
if(file_exists("/home/localhost/public_html/photo/{$history_detail[1]}/{$history_detail[0]}.jpg")){
$imgSrc = "http://beautipia.co.kr/photo/{$history_detail[1]}/{$history_detail[0]}.jpg";
} else {
$imgSrc = "http://beautipia.co.kr/img/noimg_s.gif";
}
echo "
prdSMR[{$i}] = \"<a href=javascript:openPopWin('./Detail.html?no={$history_detail[0]}','DetailPop','location=no,scrollbars=yes,toolbar=no,directories=no,menubar=no,resizable=yes,status=no,screenX=10,screenY=10,width=980,height=680')><font color='0062DB'><u>{$history_detail[2]}<br>{$history_detail[3]}<br>{$history_detail[4]}</u></font></a>\";
prdPhotoDir[{$i}] = \"<img src='{$imgSrc}' width='65' height='49' style='cursor:hand' onclick=openPopWin('./Detail.html?no={$history_detail[0]}','DetailPop','location=no,scrollbars=yes,toolbar=no,directories=no,menubar=no,resizable=yes,status=no,screenX=10,screenY=10,width=980,height=680')>\";
";
}
?>
function imgUp()
{
var FirstCnt = parseInt(document.historyForm.up_no.value);
if (FirstCnt == -1){
alert("오늘 본 상품이 존재하지 않습니다.");
}else if (FirstCnt <= 0){
Click_button_up.innerHTML = "<img src='/img/bt_history_prev_a.gif' width='50' height='17' border='0'>";
}else{
var strprdSMR1 = prdSMR[FirstCnt-1];
var strprdSMR2 = prdSMR[FirstCnt];
var strprdSMR3 = prdSMR[FirstCnt+1];
var strprdSMR4 = prdSMR[FirstCnt+2];
var strprdSMR5 = prdSMR[FirstCnt+3];
var strprdPhotoDir1 = prdPhotoDir[FirstCnt-1];
var strprdPhotoDir2 = prdPhotoDir[FirstCnt];
var strprdPhotoDir3 = prdPhotoDir[FirstCnt+1];
var strprdPhotoDir4 = prdPhotoDir[FirstCnt+2];
var strprdPhotoDir5 = prdPhotoDir[FirstCnt+3];
prdSMR0.innerHTML = strprdSMR1;
prdSMR1.innerHTML = strprdSMR2;
prdSMR2.innerHTML = strprdSMR3;
prdSMR3.innerHTML = strprdSMR4;
prdSMR4.innerHTML = strprdSMR5;
prdPhotoDir0.innerHTML = strprdPhotoDir1;
prdPhotoDir1.innerHTML = strprdPhotoDir2;
prdPhotoDir2.innerHTML = strprdPhotoDir3;
prdPhotoDir3.innerHTML = strprdPhotoDir4;
prdPhotoDir4.innerHTML = strprdPhotoDir5;
Click_button_up.innerHTML = "<img src='/img/bt_history_prev_o.gif' width='50' height='17' border='0' style='cursor:hand' OnClick='imgUp()';>";
Click_button_down.innerHTML = "<img id=down_no_img src='/img/bt_history_next_o.gif' width='50' height='17' border='0' style='cursor:hand' OnClick='imgDown()';>";
document.historyForm.up_no.value = FirstCnt-1;
document.historyForm.down_no.value = FirstCnt+3;
}
}
function imgDown()
{
var nLastCnt = parseInt(document.historyForm.down_no.value);
var nMaxCnt = <?=sizeof($Vhistory)?> - 1;
if (nLastCnt == -1)
{
alert("오늘 본 상품이 존재하지 않습니다.");
}
else if (nLastCnt >= nMaxCnt)
{
Click_button_down.innerHTML = "<img id=down_no_img src='/img/bt_history_next_a.gif' width='50' height='17' border='0'>";
}
else
{
var strprdSMR1 = prdSMR[nLastCnt-3];
var strprdSMR2 = prdSMR[nLastCnt-2];
var strprdSMR3 = prdSMR[nLastCnt-1];
var strprdSMR4 = prdSMR[nLastCnt];
var strprdSMR5 = prdSMR[nLastCnt+1];
var strprdPhotoDir1 = prdPhotoDir[nLastCnt-3];
var strprdPhotoDir2 = prdPhotoDir[nLastCnt-2];
var strprdPhotoDir3 = prdPhotoDir[nLastCnt-1];
var strprdPhotoDir4 = prdPhotoDir[nLastCnt];
var strprdPhotoDir5 = prdPhotoDir[nLastCnt+1];
prdSMR0.innerHTML = strprdSMR1;
prdSMR1.innerHTML = strprdSMR2;
prdSMR2.innerHTML = strprdSMR3;
prdSMR3.innerHTML = strprdSMR4;
prdSMR4.innerHTML = strprdSMR5;
prdPhotoDir0.innerHTML = strprdPhotoDir1;
prdPhotoDir1.innerHTML = strprdPhotoDir2;
prdPhotoDir2.innerHTML = strprdPhotoDir3;
prdPhotoDir3.innerHTML = strprdPhotoDir4;
prdPhotoDir4.innerHTML = strprdPhotoDir5;
Click_button_up.innerHTML = "<img src='/img/bt_history_prev_o.gif' width='50' height='17' border='0' style='cursor:hand' OnClick='imgUp()';>";
Click_button_down.innerHTML = "<img id=down_no_img src='/img/bt_history_next_o.gif' width='50' height='17' border='0' style='cursor:hand' OnClick='imgDown()';>";
document.historyForm.up_no.value = nLastCnt-3;
document.historyForm.down_no.value = nLastCnt+1;
}
}
//-->
</script>
<?
if($HTTP_COOKIE_VARS[ViewHistory]){
?>
<table width="165" border="0" cellspacing="0" cellpadding="0" style="margin-left:1;">
<form name="historyForm">
<tr>
<td width="165" height="36" align="center" valign="bottom" background="../img/left_history_img1.gif" style="padding:0 0 6 0;">
<strong><font style="color:2500E1;font-size:9pt;">오늘 본 차량</font></strong>
<font color="919191">(</font> <strong><font style="color:ff0000;font-size:10pt;"><?=sizeof($Vhistory)?></font></strong> <strong><font style="color:FF5A00;font-size:9pt;">대</font></strong> <font color="919191">)</font> </td>
</tr>
<tr>
<td background="/img/left_history_img2.gif"><table width="150" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="29" align="center">
<span id=Click_button_up><img src="/img/bt_history_prev_a.gif" width="50" height="17" border="0"></span></td>
</tr>
<tr><td colspan="2" height="2"></td></tr>
<tr>
<td style="padding:0 0 0 8;"><table width="142" border="0" cellspacing="0" cellpadding="0">
<?
$Vhistory2 = explode(";", $HTTP_COOKIE_VARS[쿠키명]);
for($i = 0; $i < sizeof($Vhistory2) ; $i++) {
$history_detail = explode (":", $Vhistory2[$i]);
if(file_exists("/home/localhost/public_html/photo/{$history_detail[1]}/{$history_detail[0]}.jpg")){
$imgSrc = "http://beautipia.co.kr/photo/{$history_detail[1]}/{$history_detail[0]}.jpg";
} else {
$imgSrc = "http://beautipia.co.kr/img/noimg_s.gif";
}
echo "
<tr>
<td width=\"78\" height=\"54\">
<table width=\"69\" height=\"53\" border=\"0\" cellpadding=\"2\" cellspacing=\"1\" bgcolor=\"#bbbbbb\" OnMouseOver=\"this.bgColor='#000000'\" OnMouseOut=\"this.bgColor='#bbbbbb'\">
<tr>
<td width=\"67\" align=\"center\" valign=\"middle\" bgcolor=\"ffffff\"><span id=prdPhotoDir{$i}><img src=\"{$imgSrc}\" width=\"65\" height=\"49\" style='cursor:hand;' onclick=\"openPopWin('./Detail.html?no={$history_detail[0]}','DetailPop','location=no,scrollbars=yes,toolbar=no,directories=no,menubar=no,resizable=yes,status=no,screenX=10,screenY=10,width=980,height=680')\"></span></td>
</tr>
</table>
</td>
<td valign=\"top\" style=\"font-size:9pt;line-height:13pt;padding:2 0 0 0;\"><span id=prdSMR{$i}><a href=\"javascript:openPopWin('./Detail.html?no={$history_detail[0]}','DetailPop','location=no,scrollbars=yes,toolbar=no,directories=no,menubar=no,resizable=yes,status=no,screenX=10,screenY=10,width=980,height=680')\"><font color=\"0062DB\"><u>{$history_detail[2]}<br>{$history_detail[3]}<br>{$history_detail[4]}</u></font></a></span></td>
</tr>
";
if($i == 4){
break;
} else {
echo "
<!--여백-->
<tr>
<td colspan=\"2\" height=\"10\"></td>
</tr>
<!--/여백-->
";
}
}
if(sizeof($Vhistory2) > 5){
$down_Click_button = "<img id=down_no_img src='/img/bt_history_next_o.gif' width='50' height='17' style='cursor:hand' OnClick='imgDown()' border='0'>";
} else {
$down_Click_button = "<img id=down_no_img src='/img/bt_history_next_a.gif' width='50' height='17' border='0'>";
}
?>
<input type="hidden" name="up_no" value="0">
<input type="hidden" name="down_no" value="<?=$i?>">
</table></td>
</tr>
<tr>
<td height="29" align="center">
<span id=Click_button_down><?=$down_Click_button?></span></td>
</tr>
</table></td>
</tr>
<tr>
<td><img src="/img/left_history_img3.gif"></td>
</tr>
</form>
</table>
<?
} else {
?>
<!--오늘본차량 0대일때..-->
<table width="165" border="0" cellspacing="0" cellpadding="0" style="margin-left:1;">
<tr>
<td width="165" height="36" align="center" valign="bottom" background="../img/left_history_img1.gif" style="padding:0 0 6 0;">
<strong><font style="color:2500E1;font-size:9pt;">오늘 본 차량</font></strong>
<font color="919191">(</font> <strong><font style="color:ff0000;font-size:10pt;">0</font></strong>
<strong><font style="color:FF5A00;font-size:9pt;">대</font></strong> <font color="919191">)</font>
</td>
</tr>
<tr>
<td background="/img/left_history_img2.gif"><table width="150" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="29" align="center">
<img src="/img/bt_history_prev_a.gif" width="50" height="17" border="0"></td>
</tr>
<tr>
<td colspan="2" height="2"></td>
</tr>
<tr>
<td style="padding:0 0 0 6;"><img src="../img/left_history_none.gif"></td>
</tr>
<tr>
<td height="29" align="center">
<img src="../img/bt_history_next_a.gif" width="50" height="17" border="0"></td>
</tr>
</table></td>
</tr>
<tr>
<td><img src="../img/left_history_img3.gif"></td>
</tr>
</table>
<?
}
?>
###### 보여주는 파일 끝 ######
댓글목록 0
등록된 댓글이 없습니다.