MINI MINI MANI MO

Path : /home/lhcar/www/mobile/
File Upload :
Current File : /home/lhcar/www/mobile/sub0402_write.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' and user_id='".$_SESSION[login_id]."' "));
	$phone1=explode("-", $row[phone1]);
	$phone2=explode("-", $row[phone2]);
	if($row[idx]){
		$tow_mod="modify";
	}
}else{
	$tow_mod="regist";
}
?>

<!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">
<style type="text/css">
<!--
.style8 {font-weight: bold}
-->
</style>
<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;
}
.style3 {color: #da6c00}
.style7 {	color: #FFFFFF;
	font-size: 22px;
	font-weight: bold;
}
-->
</style>
</head>





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

<tr>	
			<td><? include "inc/customer_menu.php"; ?></td>
</tr>
<tr>
	<td>	
			<!-- 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">
<?if(!$tt){$ts2="color: #FF0000;font-weight:bolder;";$ts1="color: #000000";}else{$ts2="color: #FF0000;font-weight:bolder;";$ts1="color: #000000";}?>
											<tr>
												<td width="20"><table align="left">
												  <tr>
												    <td style="padding-left:10px;"><strong>견인현황(기사/영업사원)</strong></td>
											      </tr>
												  </table>
												</td>
										  </tr>
                                            <tr><td height="1" bgcolor="#0066CC"></td></tr>
                                            <tr><td height="10" ></td></tr>
										</table>								  </td>
						      </tr>
	  </table>
	  <!-- navi end-->
	</td>
</tr>

<tr>
  <td>	
			<!-- contents start--><div align="center">
							<table width="98%"  height="54"  border="0" cellpadding="0" cellspacing="0" align="center">
					    <tr>
								  <td height="20" align="center"  ><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                  
                                    <tr>
                                      <td height="3"><table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" >
                                         
                                          <tr>
                                            <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<form name="cform" method="post" action="sub0402_write_save.php" enctype="multipart/form-data" >
<input type="hidden" name="mode" value="<?=$tow_mod?>">
<input type="hidden" name="idx" value="<?=$idx?>">
                                                <tr>
                                                  <td height="5"><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;"><?=$ArrTowStep[$row[step]]?> / <?=$row[step_name]?></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;"><input type="text" name="tow_date" style="width:35%" value="<?=$row[tow_date]?$row[tow_date]:date("Y-m-d");?>"/> 
                                                          <input name="tow_target" type="radio" value="본사" style='vertical-align:middle' <? if($row[tow_target]=="본사") echo "checked"; ?>/>
본사
<input name="tow_target" type="radio" value="영업소" style='vertical-align:middle' <? if($row[tow_target]=="영업소") echo "checked"; ?>/>
영업소</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;"><input name="type" type="radio" value="일반" style='vertical-align:middle' <? if($row[type]=="일반") echo "checked"; ?>/> 일반 <input name="type" type="radio" value="차령" style='vertical-align:middle'  <? if($row[type]=="차령") echo "checked"; ?>/> 차령 <input name="type" type="radio" value="조기" style='vertical-align:middle'  <? if($row[type]=="조기") echo "checked"; ?>/> 조기 <input name="type" type="radio" value="조기(개인)" style='vertical-align:middle'  <? if($row[type]=="조기(개인)") echo "checked"; ?>/> 조기(개인)</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;"><input name="start" type="radio" value="시동가능" style='vertical-align:middle'  <? if($row[start]=="시동가능") echo "checked"; ?>/> 시동가능 <input name="start" type="radio" value="시동불능" style='vertical-align:middle'  <? if($row[start]=="시동불능") echo "checked"; ?>/> 시동불능</td>
                                                      </tr>
                                                      <tr>
                                                        <td  height="30" align="center" bgcolor="#F6F6F6" style='color:#5e7ea2'><strong>견인위치</strong></td>
                                                        <td height="30" colspan="3"  align="left" style="padding:0 10px 0 10px;"><input type="text" name="area" style="width:95%" value="<?=$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;"><input type="text" name="car_num" style="width:95%" value="<?=$row[car_num]?>"/></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;"><input type="text" name="car_name" style="width:95%" value="<?=$row[car_name]?>"/></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;"><input name="phone1_1" type="number" size="5" maxlength="5" style="width:20%" value="<?=$phone1[0]?>"/>
                                      -
                                      <input name="phone1_2" type="number" size="5" style="width:20%" maxlength="5"  value="<?=$phone1[1]?>"/>
                                      -
                                      <input name="phone1_3" type="number" size="5" style="width:20%" maxlength="5"  value="<?=$phone1[2]?>"/></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;"><input name="phone2_1" type="number" size="5" style="width:20%" maxlength="5"  value="<?=$phone2[0]?>"/>
                                      -
                                      <input name="phone2_2" type="number" size="5" style="width:20%" maxlength="5" value="<?=$phone2[1]?>"/>
                                      -
                                      <input name="phone2_3" type="number" size="5" style="width:20%" maxlength="5" value="<?=$phone2[2]?>"/></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;"><input type="text" name="custom" style="width:95%" value="<?=$row[custom]?>"/></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;"><input type="text" name="seller" style="width:95%" value="<?=$row[seller]?$row[seller]:$_SESSION[login_name]?>"/></td>
                                                      </tr>
                                                      <tr>
                                                        <td  height="30" align="center" bgcolor="#F6F6F6" style='color:#5e7ea2'><strong>세부사항</strong></td>
                                                        <td height="30" colspan="3"  align="left" style="padding:5px 10px 5px 10px;"><textarea name="memo" style="width:95%; height:80px;"><?=$row[memo]?></textarea></td>
                                                      </tr>
                                                  </table></td>
                                                </tr>
                                                <tr>
                                                  <td height="2">&nbsp;</td>
                                                </tr>
                                                <tr>
                                                  <td height="5" align="center"><table border="0" cellspacing="0" cellpadding="4">
                                                      <tr>
                                                        <td><a href="sub0402.php"><img src="/img/bt05.jpg" border="0" /></a></td>
                                                        <td style="padding-left:5px;"><img src="/img/w_bt.jpg" onclick="document.cform.submit()"/></td>
                                                      </tr>
                                                    </table></td>
                                                </tr>
</form>
                                            </table></td>
                                          </tr>
                                          <tr>
                                            <td>&nbsp;</td>
                                          </tr>
                                      </table></td>
                                    </tr>
                                  </table></td>
							  </tr>
    </table></div>
	  <!-- contents end-->
  </td>
</tr>

<iframe width=0 height=0 name='hiddenframe' style='display:none;'></iframe>

<div id="btm">
<? include "inc/btm.html"; ?>
</div>
  


OHA YOOOO