MINI MINI MANI MO

Path : /home/lhcar/www/admin/sub02/
File Upload :
Current File : /home/lhcar/www/admin/sub02/write.php

<? include "$DOCUMENT_ROOT/admin/inc/header.php"; ?>
<?
if($idx){
	$row = mysql_fetch_array(mysql_query("SELECT * FROM tow WHERE idx='$idx'"));
	$phone1=explode("-", $row[phone1]);
	$phone2=explode("-", $row[phone2]);
	$tow_mod="modify";
}else{
	$tow_mod="regist";
}
?>

<table width="100%" border="0" cellpadding="0" cellspacing="0" height='100%'>
	<tr>
		<td width='150' height='100%' valign='top'  bgcolor="#ededed">
			<!--레프트메뉴--><? include "$DOCUMENT_ROOT/admin/inc/sub02.php"; ?>
			<!--/레프트메뉴-->		</td>
		<td width='1' bgcolor='#78858c'></td>
		<td align="left" valign='top'><? include "$DOCUMENT_ROOT/admin/inc/qna.php"; ?>
<table width="750" border="0" cellspacing="0" cellpadding="0" align="left" style="margin:20px;">
  <tr> 
    <td height="20" align="left" class="title" style="border-bottom:1px solid #000000"><img src="/admin/img/icon_1.jpg" ALIGN=absmiddle> 
    <strong> 견인현황</strong></td>
    <td align="right" class="title"style="border-bottom:1px solid #000000"><a href="/admin/sub02/list.php?step=&tow_result=2&sear4="><font color="#0066CC">목록보기</font></a></td>
  </tr>
  <tr> 
    <td height="10" colspan="2"></td>
  </tr>
<? if($idx){ ?>
  <tr>
          <td height="20" colspan="2"><?=$row[tow_date]?>/<?=$row[type]?>/<?=$row[start]?>/<?=$row[area]?>/<?=$row[car_num]?>/<?=$row[car_name]?></td>
  </tr>
  <? } ?>
    <tr> 
      <td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0">

<form name="cform" method="post" action="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 width='14%' 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="tow_date" style="width:40%" 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>
                <td width="14%" height="30" align="center" bgcolor="#F6F6F6" style='color:#5e7ea2'><strong>진행사항</strong></td>
                <td width="36%" height="30"  align="left" style="padding-left:10px;"><?=$ArrTowStep[$row[step]]?> / <?=$row[step_name]?></td>
              </tr>
              <tr>
                <td width='14%'  height="30" align="center" bgcolor="#F6F6F6" style='color:#5e7ea2'><strong>구분</strong></td>
                <td width="36%" 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>
                <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 width='14%'  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:100%" value="<?=$row[area]?>"/></td>
              </tr>
              <tr>
                <td width='14%'  height="30" align="center" bgcolor="#F6F6F6" style='color:#5e7ea2'><strong>차량번호</strong></td>
                <td width="36%" height="30"  align="left" style="padding-left:10px;"><input type="text" name="car_num" style="width:90%" value="<?=$row[car_num]?>"/></td>
                <td width='14%'  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" type="text" size="15" maxlength="15" value="<?=$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;"><input type="text" name="car_name" style="width:90%" value="<?=$row[car_name]?>"/></td>
                <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" type="text" size="15" maxlength="15"  value="<?=$row[phone2]?>"/></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:90%" value="<?=$row[custom]?>"/></td>
                <td width="14%" height="30" align="center" bgcolor="#F6F6F6" style='color:#5e7ea2'><strong>상담자</strong></td>
                <td width="36%" height="30"  align="left" style="padding-left:10px;">
				<input type="text" name="seller" style="width:90%" 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:100%; height:160px;"><?=$row[memo]?></textarea></td>
              </tr>
          </table></td>
        </tr>
        <tr>
          <td height="2">&nbsp;</td>
        </tr>
        <tr>
          <td height="5" align="center"> <input name="button2" type="button" class="btn_blue" value="목록보기"  onclick="location.href='list.php'"/> <input name="button" type="button" class="btn_red" value="등록하기"   onclick="document.cform.submit()"/></td>
        </tr>
      </table></td>
    </tr>
</form>
    <tr>
      <td colspan="2">&nbsp;</td>
    </tr>
    <tr>
      <td colspan="2">&nbsp;</td>
    </tr>
    <tr>
      <td colspan="2">&nbsp;</td>
    </tr>
</table>
</td></tr></table>
<? include "$DOCUMENT_ROOT/admin/inc/footer.php"; ?>

OHA YOOOO