MINI MINI MANI MO

Path : /home/lhcar/www/mobile/
File Upload :
Current File : /home/lhcar/www/mobile/order_view.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();

?>
<?
	$arr_towresult=array('','대기','진행','종결');
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'"));
	$row_sales = mysql_fetch_array(mysql_query("SELECT * FROM salesperson WHERE idx='".$row[sales_idx]."'"));
	$row_client = mysql_fetch_array(mysql_query("SELECT * FROM client WHERE idx='".$row[client_idx]."'"));
	$row_agent = mysql_fetch_array(mysql_query("SELECT * FROM client_agent WHERE idx='".$row[agent_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">
<title>(주)인천폐차사업소</title>
<head>


<link rel="stylesheet" type="text/css" href="css/style.css">
<link href="css/scale.css" rel="stylesheet" type="text/css">

<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style>
<script>
function img_down(idx,img){
		document.getElementById("HiddenFrm").src="/inc/popup_img_down.php?idx="+idx+"&img="+img;
}
function img_ch(img){
		document.getElementById("b_div").style.display="block";
		document.getElementById("b_img").src="http://<?=str_replace('m.','www.',$_SERVER['SERVER_NAME']) ?>/data/tow_image/"+img;
}
function img_close(){
		document.getElementById("b_div").style.display="none";
}
</script>

</head>





<div id="top">
<? include "inc/sub_top.html"; ?>
</div>
<? include "inc/customer_menu.php"; ?>

			<!-- navi start-->

							
							
							<table id="navi"  width="100%"  height="60"  border="0" cellpadding="0" cellspacing="0" align="center">
				  <tr>	
									<td>
										<table width="100%" border="0" cellpadding="0" cellspacing="0" align="center">
											<tr>
												<td align="left" style="padding-left:10px;">오더등록 > <strong>오더등록내용</strong></td>
										  </tr>
                                            <tr><td height="1" bgcolor="#000000"></td></tr>
                                            <tr><td height="10" ></td></tr>
										</table>								  </td>
						      </tr>
	  </table>
	 
     <div align="center">
							<table width="98%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td height="20" align="center" style="color:#FF0000">대기상태에서만 수정하기가 가능합니다</td>
                  </tr>
                  <tr>
                    <td height="23" valign="top">
					
<div id="printField" align="center">

					<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" >

                      <tr>
                        <td height="40"><input name="button4" type="button" 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="사진등록수정"    onclick="window.open('/inc/popup_03.php?idx=<?=$idx?>','auction','width=900, height=1000, scrollbars=yes');"/></td>
                        <td align="right"><a href="order_list.php"><font color="#000000">목록보기</font></a>
					 
<? if($row[step]=="1"){ ?>
					 | <a href="order.php?idx=<?=$idx?>"><font color="#ff0000">수정하기</font></a>
<? } ?>
					 </td>
                      </tr>
                      <tr>
                        <td colspan="2"><table width="100%"  style="border-collapse:collapse;" border="1" bordercolor="c6d0dd"  cellspacing="0" cellpadding="0">
									<tr>
                                    <td height="30" align="center" bgcolor="#F6F6F6" style='color:#5e7ea2'><strong>등록일</strong></td>
                                    <td height="30"  align="left" style="padding-left:10px;"><?=substr($row[regdate],0,10)?></td>
                                  </tr>
                                  <tr>
                                    <td height="30" align="center" bgcolor="#F6F6F6" style='color:#5e7ea2'><strong>진행상태</strong></td>
                                    <td height="30"  align="left" style="padding-left:10px;"><?=$arr_towresult[$row[tow_result]]?></td>
                                  </tr>
                                  <tr>
                                    <td width='25%' height="30" align="center" bgcolor="#F6F6F6" style='color:#5e7ea2'><strong>견인일시</strong></td>
                                    <td width="75%" height="30"  align="left" style="padding-left:10px;"><?=$row[tow_date]?> <?=$row[tow_target]?></td>
									</tr>
									<tr>
                                    <td height="30" align="center" bgcolor="#F6F6F6" style='color:#5e7ea2'><strong>운송(견인)</strong></td>
                                    <td height="30" align="left" style="padding-left:10px;"><?=$ArrTowStep[$row[step]]?> / <?=$row[step_name]?></td>
                                  </tr>
                                  <tr>
                                    <td height="30" align="center" bgcolor="#F6F6F6" style='color:#5e7ea2'><strong>구분</strong></td>
                                    <td height="30" align="left" style="padding-left:10px;"><?=$row[type]?></td>
									</tr>
									<tr>
                                    <td height="30" align="center" bgcolor="#F6F6F6" style='color:#5e7ea2'><strong>운행(시동)</strong></td>
                                    <td height="30" align="left" style="padding-left:10px;"><?=$row[start]?></td>
                                  </tr>
                                  <tr>
                                    <td height="30" align="center" bgcolor="#F6F6F6" style='color:#5e7ea2'><strong>견인위치</strong></td>
                                    <td height="30"  align="left" style="padding-left:10px;"><?=$row[area]?></td>
                                  </tr>
                                  <tr>
                                    <td height="30" align="center" bgcolor="#F6F6F6" style='color:#5e7ea2'><strong>차량번호</strong></td>
                                    <td height="30"  align="left" style="padding-left:10px;"><?=$row[car_num]?></td>
									</tr>
									<tr>
                                    <td height="30" align="center" bgcolor="#F6F6F6" style='color:#5e7ea2'><strong>차주Tel</strong></td>
                                    <td height="30" align="left" style="padding-left:10px; color:#000000"><?=$row[phone1]?></td>
                                  </tr>
                                  <tr>
                                    <td height="30" align="center" bgcolor="#F6F6F6" style='color:#5e7ea2'><strong>차명(모델명)</strong></td>
                                    <td height="30"  align="left" style="padding-left:10px;"><?=$row[car_name]?></td>
									</tr>
									<tr>
                                    <td height="30" align="center" bgcolor="#F6F6F6" style='color:#5e7ea2'><strong>년식</strong></td>
                                    <td height="30" align="left" style="padding-left:10px; color:#000000"><?=$row[car_year]?></td>
                                  </tr>
									<tr>
                                    <td height="30" align="center" bgcolor="#F6F6F6" style='color:#5e7ea2'><strong>영업사원</strong></td>
                                    <td height="30" align="left" style="padding-left:10px; color:#000000"><?=$row_sales[s_name]?></td>
                                  </tr>
									<tr>
                                    <td  height="30" align="center" bgcolor="#F6F6F6" style='color:#5e7ea2'><strong>상담(등록)자</strong></td>
                                    <td height="30"  align="left" style="padding-left:10px;"><?=$row[seller]?></td>
                                  </tr>
                                  <tr>
                                    <td  height="30" align="center" bgcolor="#F6F6F6" style='color:#5e7ea2'><strong>거래처</strong></td>
                                    <td height="30"  align="left" style="padding-left:10px;"><?=$row_client[c_name]?>
                            ㅣ
                            <?=$row_agent[a_name]?>
                            ㅣ
                            <?=$row_agent[a_phone]?>
                            ㅣ
                            <?=$row_agent[a_etc]?></td>
									</tr>
                                  <tr>
                                    <td  height="30" align="center" bgcolor="#F6F6F6" style='color:#5e7ea2'><strong>세부사항</strong></td>
                                    <td height="30" align="left" style="padding:10px;"><?=$row[memo]?></td>
                                  </tr>
                                  <tr>
                                    <td  height="30" colspan="2" 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_down('<?=$idx?>','<?=$row_i[$filen]?>');">다운로드</font></td>
										  </tr>
										</table>
										</td>
                                <?
	}
	if($i%2==0){
		echo '</tr><tr>';
	}else{
		echo '<td width="2%"></td>';
	}
}
?>

										</tr>
										</table>
									</td>
                                  </tr>
                        </table></td>
        </tr>
                          <tr>
                          <td height="60" colspan="2" align="center"><a href="order_list.php"><img src="/img/bt05.jpg" /></a></td>
                      </tr>
                        </table>
					  </div>
	  <!-- contents end-->
  </td>
</tr>
</table>
</div>
<div id="btm">
<? include "inc/btm.html"; ?>
</div>
  


OHA YOOOO