MINI MINI MANI MO
<?php
require "$_SERVER[DOCUMENT_ROOT]/config/config.php";
include ($_SERVER['DOCUMENT_ROOT']."/_common/common.php");
$connect = dbconn();
$pic = $_GET[pic];
$idx = $_GET[idx];
$info = mysql_fetch_array(mysql_query("SELECT * FROM woojung_part WHERE wc_idx = '$idx'"));
$cate1=mysql_fetch_array(mysql_query("select * from cate2 where idx='".$info[wc_made]."'"));
$cate3=mysql_fetch_array(mysql_query("select * from cate3 where idx='".$info[wc_trans]."'"));
if($pic)
{
$wc_car_img1 = explode("/",$info["wc_img_".$pic]);
$defaultFile = "/data/".$wc_car_img1[0];
}
?>
<script type="text/javascript">
function picView2(pic) {
if(pic) {
//picDisplay2.innerHTML = "<img src='"+pic+"' onload=\"if(this.width > 600){this.style.width=600}else{this.style.width=this.width}\" onclick=\"self.close()\" style=\"cursor:pointer;\"/>";
document.getElementById('ZoomImg').src = pic;
} else {
picDisplay2.innerHTML = "<img src='../images/noImage_auction.gif' onclick=\"self.close()\" />";
}
}
function ReSizeImg(){
var obj = document.getElementById('zoomimg');
var width = 600;
var height = 500;
if(obj.width > width){
obj.style.width=width;
}else{
obj.style.width=obj.width;
}
if(obj.height > height){
obj.style.height=height;
}else{
obj.style.height=obj.height;
}
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr" />
<title>È®´ëº¸±â</title>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
.style1 {
color: #666666;
font-weight: bold;
}
-->
</style></head>
<link href="../css/style.css" rel="stylesheet" type="text/css" />
<link rel='stylesheet' href='/admin/counter/_style.css' type='text/css'>
<body topmargin=0 leftmargin=0>
<table width="802" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="40" align="center"><table width="800" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<td width="70" height="27" align="center" valign="middle" bgcolor="f5f5f5" style="padding-right: 5px; padding-top: 2px;"><span class="style1">NO</span></td>
<td width="196" height="27" align="left" bgcolor="#FFFFFF" style="padding-left:3px;"><?=$info[wc_orderno]?></td>
<td width="70" align="center" bgcolor="f5f5f5" style="padding-left:3px;"><span class="style1">Á¦Á¶,Â÷¸í</span></td>
<td width="196" align="left" bgcolor="#FFFFFF" style="padding-left:3px;"><?=$cate1[name]?>/<?=$info[wc_model]?></td>
</tr>
<tr>
<td width="70" height="27" align="center" valign="middle" bgcolor="f5f5f5" style="padding-right: 5px; padding-top: 2px;"><span class="style1">ºÎǰ±¸ºÐ</span></td>
<td width="196" height="27" align="left" bgcolor="#FFFFFF" style="padding-left:3px;"><?=$cate3[name]?> > <?=$info[wc_fual]?></td>
<td width="70" align="center" bgcolor="f5f5f5" style="padding-left:3px;"><span class="style1">³â½Ä</span></td>
<td width="196" align="left" bgcolor="#FFFFFF" style="padding-left:3px;"><?if($info[wc_age])?>
<?=substr($info[wc_age],0,4)?>
³â</td>
</tr>
</table></td>
</tr>
<tr>
<td align="center" valign="top"><table width="802" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" background="../images/action_pop_bg.gif">
<tr>
<td width="700" height="300" align="center" valign="middle"><table width="800" height="600" border="0" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<td align="center" bgcolor="#FFFFFF"><div id='picDisplay'><img src="<?=$defaultFile?>" id="ZoomImg" style="cursor:pointer" onload="ReSizeImg()" /></div></td>
</tr>
</table></td>
</tr>
<tr>
<td height="5" align="center" valign="middle"></td>
</tr>
</table></td>
</tr>
<tr>
<td align="center"><table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<?
for($i=1; $i<=8; $i++) {
$fileName = $info["wc_img_".$i];
$real_name = explode('/', $fileName);
if(strlen($real_name[0]) == 0)
{
$fileName = '';
$script = "";
}
else
{
$fileName = $site_u[home_url]."/data/".$real_name[0];
$script = " onMouseOver=\"picView2('$fileName')\" class='hand'";
}
?>
<td width="84" height="53" align="center" valign="top">
<? if($fileName){ ?>
<img src="<?=$fileName?>" name="bt01" width="50" height="40" border="0" id="bt" <?=$script?>>
<? } ?>
</td>
<td width="1px"></td>
<?
if($i%12 == 0){
echo "</tr>
<tr>";
}
}
?>
</tr>
</table></td>
</tr>
</table>
<table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="640" height="20" align="left" valign="middle" style="padding-left:3px;"><span class="style1"></span></td>
<td width="60" align="right" valign="middle"><a href="#">
<input type="submit" name="button2" id="button2" value="â´Ý±â" class="button33" style="cursor:pointer; background-color:#FFFFFF; color:#084573; border:#636563 1px solid; padding:5 3 3 3; font-weight:bold" onClick="javascript:self.close();"/>
</a></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
OHA YOOOO