MINI MINI MANI MO

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

<?
require_once "../_common/common.php";
include $_SERVER['DOCUMENT_ROOT'].'/_config/global.php';
include $_SERVER['DOCUMENT_ROOT'].'/_config/_class/phpfun.class.php';
$phpfun = new phpfun();
$SID = session_id();
companyUpOnly();

if($idx){
	$row = mysql_fetch_array(mysql_query("SELECT * FROM tow WHERE idx='$idx'"));
	$row_i = mysql_fetch_array(mysql_query("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">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="format-detection" content="telephone=no">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, target-densitydpi=medium-dpi">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<link rel="stylesheet" type="text/css" href="css/style.css">
<link href="css/scale.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="http://<?=str_replace('m.','www.',$_SERVER['SERVER_NAME']) ?>/data/tow_image/"+img;
}
</script>

<title>사진등록수정</title>
<iframe name="HiddenFrm" id="HiddenFrm" style="display:none;"></iframe>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="100%" height="215" align="center" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0"> 
        <tr>
        <td width="30%" height="40" 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 height="40" align="left" valign="middle"><strong>⊙ 사진등록</strong> </td>
            <td width="20%" align="right" valign="middle"><a href="javascript:self.close();">창닫기</a></td>
          </tr>
          <tr>
            <td height="1" colspan="2" align="left" valign="middle" bgcolor="#CCCCCC"></td>
          </tr>
          <tr>
            <td height="30" colspan="2" align="center" valign="middle" ><strong>차량번호 : <?=$row[car_num]?></strong></td>
          </tr>
        </table></td>
      </tr>
    </table>
    <table width="100%"  style="border-collapse:collapse;" border="1" bordercolor="edecec"  cellspacing="0" cellpadding="0">
          <tr>
            <td height="40" align="center" style='color:#5e7ea2'>
<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" id="uf" style='width:60%;border:1px solid #666666'>
              <input type="button" style="BORDER: #7FA8C4 1px solid; background-color : #edf1f6; font-family:'맑은 고딕'; font-size: 9pt; color: #165899; padding:0 6px 0 6px; height:26px; cursor:pointer;" value="찾아보기" onclick="document.getElementById('uf').click();" />
              <input type="submit" style="BORDER: #ff0000 1px solid; background-color : #ffe3e7; font-family:'맑은 고딕'; font-size: 9pt; color: #ff0000;  padding:0 6px 0 6px; height:26px; cursor:pointer;" value="등록하기" >
</form>
			</td>
          </tr>
          <tr>
            <td align="center" bgcolor="#FFFFFF" style='color:#5e7ea2; padding:10px'>
			<? if($row_i[file1]){ ?>
			<img src="http://<?=str_replace('m.','www.',$_SERVER['SERVER_NAME']) ?>/data/tow_image/<?=$row_i[file1]?>" style="max-width:100%;" id="b_img">
			<? } ?>
			</td>
          </tr>
          <tr>
            <td  height="30" align="center" bgcolor="#FFFFFF" style="padding:10px">
<div style="width:94%;display:none;position:absolute;" id="b_div"><img src="/data/tow_image/<?=$row_i[file1]?>" id="b_img" onclick="img_close();" style="max-width:100%;"></div>
										<table width="95%" border="0" cellspacing="0" cellpadding="0">
										<tr><td width="49%"></td><td width="2%"></td><td width="49%">
										</tr>
										<tr>

<?
for($i=1;$i<=30;$i++){ 
	$filen="file".$i;
	if($row_i[$filen]){
?>
										<td width="49%">
										<table width="100%" border="0" cellspacing="0" cellpadding="0">
										  <tr>
											<td  height="100" style="border:1px solid #CCCCCC"><img src="http://<?=str_replace('m.','www.',$_SERVER['SERVER_NAME']) ?>/data/tow_image/<?=$row_i[$filen]?>" style="width:100%;" onclick="img_ch('<?=$row_i[$filen]?>')" /></td>
										  </tr>
										  <tr>
											<td height="30" align="center" ><font color="#0066CC" onclick="img_ch('<?=$row_i[$filen]?>')">미리보기</font> | <font color="#FF0000" onclick="img_del('<?=$idx?>','<?=$i?>');">삭제하기</font></td>
										  </tr>
										</table>
										</td>
                                <?
	}
	if($i%2==0){
		echo '</tr><tr>';
	}else{
		echo '<td width="2%"></td>';
	}
}
?>

										</tr>
										</table>
			</td>
          </tr>
        </table>  </tr>
  <tr>
    <td height="20" align="center" valign="top">  
  </tr>
</table>
</body>
</html>

OHA YOOOO