MINI MINI MANI MO

Path : /home/lhcar/www/mobile/
File Upload :
Current File : /home/lhcar/www/mobile/order.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($loginUsort != "superadmin" && $loginUsort != "admin" && $loginUsort != "company2"){
		movepage("/");
		exit;
	}

$pw = mysql_fetch_array(mysql_query("SELECT * FROM woojung_member WHERE userId='".$_SESSION[login_id]."' and dTel !='Y' "));
if($idx){
	$row = mysql_fetch_array(mysql_query("SELECT * FROM tow WHERE idx='$idx' and user_id='".$_SESSION[login_id]."' and step='1' "));
	if(!$row[idx]){ 
		err_msg("수정 불가능 합니다.");
		exit;
	}
	$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>




<iframe name="gufrm" style="display:none;" src=""></iframe>

<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="#0066CC"></td></tr>
                                            <tr><td height="10" ></td></tr>
										</table>								  </td>
						      </tr>
	  </table>
	  <!-- navi end-->
			<!-- 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?>">
<input type="hidden" name="sales_idx" value="<?=$pw[team_code]?>">
                                                <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;"><?=$row[regdate]?substr($row[regdate],0,10):date("Y-m-d")?></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="tow_result" type="radio" style='vertical-align:middle;' value="1" checked>
                                                        대기</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 type="text" name="tow_target" style="width:35%" value="<?=$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;"><input name="step" type="radio" style='vertical-align:middle' 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>차주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>차명(모델명)</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>년식</strong></td>
                                                        <td height="30"  align="left" style="padding-left:10px;"><input type="text" name="car_year" style="width:35%" value="<?=$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;"><?=$_SESSION["login_name"]?> <?=$pw[pcs]?></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;"><?=$_SESSION["login_name"]?></td>
                                                      </tr>
                                                      <tr>
                                                        <td  height="30" align="center" bgcolor="#F6F6F6" style='color:#5e7ea2'><strong>거래처<br />
(둘중선택)</strong></td>
                                                        <td height="30"  align="left" style="padding:5px 0 5px 10px;"><input name="tow_step" type="radio" style='vertical-align:middle' value="1" <? if($row[tow_step]=="1") echo "checked"; ?>/> <select name="client_idx"  style="height:28px;" onchange="si_chk2(this);">
                        <option value="">::거래처::</option>
<?
	$sql_s=mysql_query("select * from client where sales_idx='$pw[team_code]' and c_del!='Y'");
	while($data_s=mysql_fetch_array($sql_s)){
?>
              <option value="<?=$data_s[idx]?>" <? if($data_s[idx]==$row[client_idx]) echo "selected"; ?>><?=$data_s[c_name]?></option>
<?
	}
?>
                      </select>
					  <select name="agent_idx" style="height:28px;" >
                        <option value="">::담당자::</option>
<?
if($row[client_idx]){
	$sql_s=mysql_query("select * from client_agent where client_idx='$row[client_idx]' and a_del!='Y'");
	while($data_s=mysql_fetch_array($sql_s)){
?>
              <option value="<?=$data_s[idx]?>" <? if($data_s[idx]==$row[agent_idx]) echo "selected"; ?>><?=$data_s[a_name]?></option>
<?
	}
}
?>
                      </select><br />
<input name="tow_step" type="radio" style='vertical-align:middle' value="2" <? if(!$idx||$row[tow_step]=="2") echo "checked"; ?>/> <input type="text" name="custom" style="width:88%; margin-top:3px" value="<?=$row[custom]?>"/></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="order_list.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>
 </table>
<iframe width=0 height=0 name='hiddenframe' style='display:none;'></iframe>

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


OHA YOOOO