MINI MINI MANI MO

Path : /home/lhcar/www/inc/
File Upload :
Current File : /home/lhcar/www/inc/popup_02.php

<?
require "$_SERVER[DOCUMENT_ROOT]/config/config.php"; 
include ($_SERVER['DOCUMENT_ROOT']."/_common/common.php");
$connect = dbconn();

	if($loginUsort == "indi" || !$loginUsort){
		movepage("/");
		exit;
	}

if($idx){
	$row = Row_string("SELECT * FROM tow WHERE idx='$idx'");
	$row_i = Row_string("SELECT * FROM tow_image WHERE tow_idx='$idx'");
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>서류등록수정</title>
<link href="/css/style.css" rel="stylesheet" type="text/css" />
<link href="/css/admin.css" rel="stylesheet" type="text/css" />
<script>
function img_del(idx,img){
	if(confirm("삭제 하시겠습니까?")){
		document.getElementById("HiddenFrm").src="/inc/popup_img_del.php?idx="+idx+"&img="+img;
	}
}
function img_ch(img){
		document.getElementById("b_img").src="/data/tow_image/"+img;
}
</script>

</head>
<body>
<iframe name="HiddenFrm" id="HiddenFrm" style="display:none;"></iframe>
<table width="800" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="800" height="215" align="center" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
        <td height="40" colspan="3" align="center" valign="middle" ><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <!--tr>
      	<td height="40" align="left" valign="middle">
          <input type="submit" name="Submit2223322" value="낙찰자용" class="buttona33" onClick="javascript:location.href='/inc/popup_02.php?auct_idx=<?=$auct_idx?>'">
          <input type="submit" name="Submit2223322" value="출품자용" class="button33" onClick="javascript:location.href='/inc/popup_02_2.php?auct_idx=<?=$auct_idx?>'">
         
       </td>
      </tr-->
          <tr>
            <td width="327" height="40" align="left" valign="middle"><strong>⊙ 사진등록</strong> </td>
            <td width="473" height="30" align="left" valign="middle"><strong>차량번호 : <?=$row[car_num]?></strong></td>
          </tr>
          <tr>
            <td height="1" colspan="2" align="left" valign="middle" bgcolor="#CCCCCC"></td>
          </tr>
          <tr>
            <td height="10" colspan="2" align="left" valign="middle" >&nbsp;</td>
          </tr>
        </table></td>
      </tr>
    </table>
        <table width="100%"  style="border-collapse:collapse;" border="1" bordercolor="edecec"  cellspacing="0" cellpadding="0">
          <tr>
            <td width='14%' height="40" align="center" bgcolor="#F6F6F6" style='color:#5e7ea2'><strong>사진등록</strong></td>
            <td width="86%" height="30"  align="left" style="padding-left:10px;">
<form name="cform" method="post" enctype="multipart/form-data" target="HiddenFrm" action="popup_02_save.php">
<input type="hidden" name="idx" value="<?=$idx?>" />
			<input type="file" name="upfile" size=50 style='width:85%'>
            <input type="submit" class="btn_red" value="등록하기" />
</form>
			</td>
          </tr>
          <tr>
            <td  height="500" colspan="2" align="center" bgcolor="#FFFFFF" style='color:#5e7ea2'>
			<? if($row_i[file1]){ ?>
			<img src="/data/tow_image/<?=$row_i[file1]?>" style="max-width:780px;" id="b_img">
			<? } ?>
			</td>
          </tr>
          <tr>
            <td  colspan="2" align="center" bgcolor="#FFFFFF" style="padding:10px"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
			  <td width="69"></td><td width="10"></td><td width="69"></td><td width="10"></td><td width="69"></td><td width="10"></td><td width="69"></td><td width="10"></td><td width="69"></td><td width="10"></td><td width="69"></td><td width="10"></td><td width="69"></td><td width="10"></td><td width="69"></td><td width="10"></td><td width="69"></td><td width="10"></td><td width="69"></td>
              </tr>
              <tr>
<?
for($i=1;$i<=30;$i++){ 
	$filen="file".$i;
	if($row_i[$filen]){
?>
                <td  >
					<table border="0" cellspacing="0" cellpadding="0">
					<tr><td style="border:1px solid #CCCCCC"><img src="/data/tow_image/<?=$row_i[$filen]?>" style="width:69px;;height:50px;cursor:pointer;" onclick="img_ch('<?=$row_i[$filen]?>')" ></td></tr>
					<tr><td height="30" align="center"><font color="#FF0000" onclick="img_del('<?=$idx?>','<?=$i?>');" style="cursor:pointer;">삭제하기</font></td><tr/>
					</table>
				</td>
                
<?
	}
	if($i%10==0){
		echo '</tr><tr>';
	}else{
		echo '<td style="width:10px;">&nbsp;</td>';
	}
}
?>
              </tr>
            </table></td>
          </tr>
        </table>  </tr>
  <tr>
    <td height="20" align="center" valign="top">  
  </tr>
</table>
</body>
</html>

OHA YOOOO