dealer_tender_view0203.php 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725
  1. <?php
  2. include $_SERVER['DOCUMENT_ROOT'].'/common/lib/comm.php';
  3. include $_SERVER['DOCUMENT_ROOT'].'/common/dealer_chk.php';
  4. ?>
  5. <? include("../include/inc_top.php") ?>
  6. <? include("../include/inc_header.php") ?>
  7. <section id="wrap">
  8. <section id="visual" class="visual_mypage">
  9. <h2>마이페이지</h2>
  10. <p>쉽고 간편한 내차팔기, 견적산출, 최종 매각까지 어떤 수수료도 요구하지 않습니다.</p>
  11. </section>
  12. <section id="content">
  13. <ul class="location">
  14. <li><a href="/" class="home">홈</a></li>
  15. <li><span class="depth1">마이페이지</span>
  16. <ul class="sub_depth">
  17. <li><a href="#">마이페이지</a></li>
  18. <li><a href="#">입찰정보</a></li>
  19. <li><a href="#">차량정보</a></li>
  20. <li><a href="#">문의내역</a></li>
  21. </ul>
  22. </li>
  23. <li><span class="depth2">딜러</span></li>
  24. </ul>
  25. <? include("./inc_menu_dealer.php") ?>
  26. <?
  27. $s_cd_dealer = $_SESSION['s_cd_dealer'];
  28. $s_cd_dealer_p = $_SESSION['s_cd_dealer_p'];
  29. $s_ds_type = $_SESSION['s_ds_type'];
  30. $s_ds_status_p = $_SESSION['s_ds_status_p'];
  31. if($s_ds_type == "D0"){ //딜러
  32. $sql_ds_type = " cd_dealer_p = '$s_cd_dealer' ";
  33. }else{ //딜러-관리자
  34. $sql_ds_type = " cd_dealer = '$s_cd_dealer' ";
  35. }
  36. $rq_ds_status = $_REQUEST['ds_status']; //요청받은 상태값 : request ds_status (naming request->rq, response->rs)
  37. if($rq_ds_status == "E0"){
  38. $nm_title = "입찰대기 리스트";
  39. }else if($rq_ds_status == "F0"){
  40. $nm_title = "입찰중 리스트";
  41. }else if($rq_ds_status == "Z0"){
  42. $nm_title = "낙찰 리스트";
  43. }else if($rq_ds_status == "ZS"){
  44. $nm_title = "구매확정 리스트";
  45. }
  46. $cd_sale = $_REQUEST["cd_sale"];
  47. $sql ="SELECT
  48. a.*
  49. , b.nm_model
  50. , c.nm_grade
  51. , d.nm_brand
  52. , e.nm_model_sub
  53. , getCode('car_master','ds_type',a.ds_type) as nm_type
  54. , getCode('car_master','ds_year',a.ds_year) as nm_year
  55. , getCode('car_master','ds_open',a.ds_open) as nm_open
  56. , getCode('car_master','ds_sales',a.ds_sales) as nm_sales
  57. , getCode('car_master','ds_transmission',a.ds_transmission) as nm_transmission
  58. , getCode('car_master','ds_oil',a.ds_oil) as nm_oil
  59. , getCode('car_master','ds_accident',a.ds_accident) as nm_accident
  60. , getCode('sale_master','ds_usertype',s.ds_usertype) as nm_usertype
  61. , getCode('member_master','ds_area',s.ds_area) as nm_area
  62. , getCode('sale_master','ds_status',s.ds_status) as nm_status
  63. , s.nm_name nm_name_sale
  64. , s.ds_status ds_status_sale
  65. , s.nm_hp nm_hp_sale
  66. , s.nm_email nm_email_sale
  67. , s.ds_area ds_area_sale
  68. , s.nm_recommend nm_recommend_sale
  69. , s.nm_cont_return nm_cont_return_sale
  70. , getRemainTime(".LIMIT_TIME_TENDER.", s.dt_approve, now()) as time_limit_tender
  71. FROM sale_master s
  72. inner join car_master a
  73. on (s.cd_car = a.cd_car)
  74. left outer join car_model b
  75. on (a.cd_model = b.cd_model)
  76. left outer join car_grade c
  77. on (a.cd_grade = c.cd_grade)
  78. left outer join car_brand d
  79. on (a.cd_brand = d.cd_brand)
  80. left outer join car_model_sub e
  81. on (a.cd_model_sub = e.cd_model_sub)
  82. WHERE s.cd_sale='$cd_sale' ";
  83. $col=mysql_fetch_array(mysql_query($sql));
  84. if (!empty($col[cd_car])){
  85. $cd_car = $col[cd_car];
  86. $cd_model = $col[cd_model];
  87. $cd_brand = $col[cd_brand];
  88. $ds_logo = $col[ds_logo];
  89. $cd_category = $col[cd_category];
  90. $cd_grade = $col[cd_grade];
  91. $ds_cate = $col[ds_cate];
  92. $ds_type = $col[ds_type];
  93. $ds_year = $col[ds_year];
  94. $nm_name = $col[nm_name];
  95. $nm_price = $col[nm_price];
  96. $nm_mileage = $col[nm_mileage];
  97. $ds_driving_system = $col[ds_driving_system];
  98. $ds_transmission = $col[ds_transmission];
  99. $nm_file_list = $col[nm_file_list];
  100. $nm_file_main = $col[nm_file_main];
  101. $nm_file_report = $col[nm_file_report];
  102. $nm_file_report_back = $col[nm_file_report_back];
  103. $nm_file_front = $col[nm_file_front];
  104. $nm_file_back = $col[nm_file_back];
  105. $nm_file_side1 = $col[nm_file_side1];
  106. $nm_file_side2 = $col[nm_file_side2];
  107. $nm_file_dashboard = $col[nm_file_dashboard];
  108. $ds_oil = $col[ds_oil];
  109. $nm_gearbox = $col[nm_gearbox];
  110. $nm_color = $col[nm_color];
  111. $nm_incolor = $col[nm_incolor];
  112. $ds_accident = $col[ds_accident];
  113. $nm_cont_accident = $col[nm_cont_accident];
  114. $nm_regdate = $col[nm_regdate];
  115. $ds_sales = $col[ds_sales];
  116. $nm_btitle = $col[nm_btitle];
  117. $nm_stitle = $col[nm_stitle];
  118. $nm_ltitle = $col[nm_ltitle];
  119. $nm_cont = $col[nm_cont];
  120. $nm_guide = $col[nm_guide];
  121. $ds_open = $col[ds_open];
  122. $ds_status = $col[ds_status];
  123. $dt_insert = $col[dt_insert];
  124. $nm_insert = $col[nm_insert];
  125. $dt_update = $col[dt_update];
  126. $nm_update = $col[nm_update];
  127. $ds_delind = $col[ds_delind];
  128. $nm_number = $col[nm_number];
  129. $nm_cc = $col[nm_cc];
  130. $ds_trade = $col[ds_trade];
  131. $ds_main = $col[ds_main];
  132. $nm_regdate_yyyy = $col[nm_regdate_yyyy];
  133. $nm_regdate_mm = $col[nm_regdate_mm];
  134. $nm_regdate_dd = $col[nm_regdate_dd];
  135. $nm_brand = $col[nm_brand];
  136. $nm_model = $col[nm_model];
  137. $nm_model_sub = $col[nm_model_sub];
  138. $nm_grade = $col[nm_grade];
  139. $nm_year = $col[nm_year];
  140. $nm_type = $col[nm_type];
  141. $nm_open = $col[nm_open];
  142. $nm_sales = $col[nm_sales];
  143. $nm_transmission = $col[nm_transmission];
  144. $nm_oil = $col[nm_oil];
  145. $nm_usertype = $col[nm_usertype];
  146. $nm_accident = $col[nm_accident];
  147. $nm_area = $col[nm_area];
  148. $nm_name_sale = $col[nm_name_sale];
  149. $ds_status_sale = $col[ds_status_sale];
  150. $nm_hp_sale = $col[nm_hp_sale];
  151. $nm_email_sale = $col[nm_email_sale];
  152. $ds_area_sale = $col[ds_area_sale];
  153. $nm_recommend_sale = $col[nm_recommend_sale];
  154. $nm_cont_return_sale = $col[nm_cont_return_sale];
  155. $time_limit_tender = $col[time_limit_tender];
  156. //보험처리
  157. $nm_act_chgno = $col[nm_act_chgno];
  158. $nm_act_chgnm = $col[nm_act_chgnm];
  159. $nm_act_s1 = $col[nm_act_s1];
  160. $nm_act_s2 = $col[nm_act_s2];
  161. $nm_act_s3 = $col[nm_act_s3];
  162. $nm_act_s4 = $col[nm_act_s4];
  163. $nm_act_my = $col[nm_act_my];
  164. $nm_act_my_amt = $col[nm_act_my_amt];
  165. $nm_act_other = $col[nm_act_other];
  166. $nm_act_other_amt = $col[nm_act_other_amt];
  167. $nm_act_searchdt = $col[nm_act_searchdt];
  168. $nm_act_cnt = $col[nm_act_cnt];
  169. $nm_act_general_spec = $col[nm_act_general_spec];
  170. $nm_act_use_record = $col[nm_act_use_record];
  171. $nm_act_use_record_lend = $col[nm_act_use_record_lend];
  172. $nm_act_use_record_biz = $col[nm_act_use_record_biz];
  173. $nm_act_use_record_official = $col[nm_act_use_record_official];
  174. $nm_act_ins_loss = $col[nm_act_ins_loss];
  175. $nm_act_ins_wet = $col[nm_act_ins_wet];
  176. $nm_act_ins_robbery = $col[nm_act_ins_robbery];
  177. $nm_file_act = $col[nm_file_act];
  178. $nm_act_yn = $col[nm_act_yn];
  179. $ds_g1_01 = $col[ds_g1_01];
  180. $ds_g1_02 = $col[ds_g1_02];
  181. $ds_g1_03 = $col[ds_g1_03];
  182. $ds_g1_04 = $col[ds_g1_04];
  183. $ds_g1_05 = $col[ds_g1_05];
  184. $ds_g2_01 = $col[ds_g2_01];
  185. $ds_g2_02 = $col[ds_g2_02];
  186. $ds_g2_03 = $col[ds_g2_03];
  187. $ds_g2_04 = $col[ds_g2_04];
  188. $ds_g2_05 = $col[ds_g2_05];
  189. $ds_g3_01 = $col[ds_g3_01];
  190. $ds_g3_02 = $col[ds_g3_02];
  191. $ds_g3_03 = $col[ds_g3_03];
  192. $ds_g3_04 = $col[ds_g3_04];
  193. $ds_g3_05 = $col[ds_g3_05];
  194. $ds_g4_01 = $col[ds_g4_01];
  195. $ds_g4_02 = $col[ds_g4_02];
  196. $ds_g4_03 = $col[ds_g4_03];
  197. $ds_g4_04 = $col[ds_g4_04];
  198. $ds_g4_05 = $col[ds_g4_05];
  199. /*
  200. $arr_nm_info1 = explode("-",$nm_info1);
  201. if(count($arr_nm_info1) == 3){
  202. $nm_info11 = $arr_nm_info1[0];
  203. $nm_info12 = $arr_nm_info1[1];
  204. $nm_info13 = $arr_nm_info1[2];
  205. }else{
  206. $nm_info11 = "";
  207. $nm_info12 = "";
  208. $nm_info13 = "";
  209. }
  210. $arr_nm_info3 = explode("@",$nm_info3);
  211. if(count($arr_nm_info3) == 2){
  212. $nm_info31 = $arr_nm_info3[0];
  213. $nm_info32 = $arr_nm_info3[1];
  214. }else{
  215. $nm_info31 = "";
  216. $nm_info32 = "";
  217. }
  218. $nm_info3 = $col[nm_info3];
  219. */
  220. }else{
  221. AlertBack("지정되지않은 요청입니다");
  222. }
  223. ?>
  224. <h3><?=$nm_title?></h3>
  225. <div class="car_model">
  226. <? if($ds_status_sale == "E0" || $ds_status_sale == "F0"){ ?>
  227. <p class="fr">입찰 마감 시간 : <em><?=$time_limit_tender?></em></p>
  228. <? } ?>
  229. </div>
  230. <table class="tbl_h">
  231. <colgroup>
  232. <col width="16%">
  233. <col width="34%">
  234. <col width="16%">
  235. <col width="*">
  236. </colgroup>
  237. <!--tr>
  238. <th>이름</th>
  239. <td>홍**</td>
  240. <th>회원</th>
  241. <td>비회원</td>
  242. </tr>
  243. <tr>
  244. <th>연락처</th>
  245. <td>010-****-****</td>
  246. <th>아이디</th>
  247. <td>dkjslfslfskg;ls@naver.com</td>
  248. </tr>
  249. <tr>
  250. <th>주소</th>
  251. <td>서울마포구 서교동*****</td>
  252. <th>판매지역</th>
  253. <td>서울</td>
  254. </tr-->
  255. <tr>
  256. <th>차량번호</th>
  257. <td><?=$nm_number?></td>
  258. <th>제조사</th>
  259. <td><?=$nm_brand?></td>
  260. </tr>
  261. <tr>
  262. <th>모델</th>
  263. <td><?=$nm_model?></td>
  264. <th>세부모델</th>
  265. <td><?=$nm_model_sub?></td>
  266. </tr>
  267. <tr>
  268. <th>등급</th>
  269. <td><?=$nm_grade?></td>
  270. <th>연식(최초등록일)</th>
  271. <td><?=$nm_regdate_yyyy."년 ".$nm_regdate_mm."월"?></td>
  272. </tr>
  273. <tr>
  274. <th>형식연도</th>
  275. <td><?=$nm_year?>년</td>
  276. <th>배기량</th>
  277. <td><?=$nm_cc?>cc</td>
  278. </tr>
  279. <tr>
  280. <th>변속기</th>
  281. <td><?=$nm_transmission?></td>
  282. <th>연료</th>
  283. <td><?=$nm_oil?></td>
  284. </tr>
  285. <tr>
  286. <th>색상</th>
  287. <td><?=$nm_color?></td>
  288. <th>주행거리</th>
  289. <td><?=$nm_mileage?>km</td>
  290. </tr>
  291. <tr>
  292. <th>사고유무</th>
  293. <td colspan="3"><?=$nm_accident?>
  294. &nbsp;<?=$nm_cont_accident?></td>
  295. <!--th>추천인</th>
  296. <td><?= ($nm_recommend_sale == "") ? "없음":$nm_recommend_sale ?></td-->
  297. </tr>
  298. <tr>
  299. <th>옵션</th>
  300. <td colspan="3"><?=$nm_cont?></td>
  301. </tr>
  302. <tr>
  303. <th>필수사진</th>
  304. <td colspan="3">
  305. <ul class="photo_list">
  306. <li>
  307. <img src="<?=UPLOAD_PATH_CAR?>nm_file_main/ratio/<?=$nm_file_front?>" onclick="viewPhoto('<?=UPLOAD_PATH_CAR?>nm_file_main/ratio/<?=$nm_file_front?>')">
  308. <span>차량전면</span>
  309. </li>
  310. <li>
  311. <img src="<?=UPLOAD_PATH_CAR?>nm_file_main/ratio/<?=$nm_file_back?>" onclick="viewPhoto('<?=UPLOAD_PATH_CAR?>nm_file_main/ratio/<?=$nm_file_back?>')">
  312. <span>차량후면</span>
  313. </li>
  314. <li>
  315. <img src="<?=UPLOAD_PATH_CAR?>nm_file_main/ratio/<?=$nm_file_side1?>" onclick="viewPhoto('<?=UPLOAD_PATH_CAR?>nm_file_main/ratio/<?=$nm_file_side1?>')">
  316. <span>운전석 측면</span>
  317. </li>
  318. <li>
  319. <img src="<?=UPLOAD_PATH_CAR?>nm_file_main/ratio/<?=$nm_file_side2?>" onclick="viewPhoto('<?=UPLOAD_PATH_CAR?>nm_file_main/ratio/<?=$nm_file_side2?>')">
  320. <span>조수석 측면</span>
  321. </li>
  322. <li>
  323. <img src="<?=UPLOAD_PATH_CAR?>nm_file_main/ratio/<?=$nm_file_dashboard?>" onclick="viewPhoto('<?=UPLOAD_PATH_CAR?>nm_file_main/ratio/<?=$nm_file_dashboard?>')">
  324. <span>계기판</span>
  325. </li>
  326. </ul>
  327. </td>
  328. </tr>
  329. <tr>
  330. <th>추가사진</th>
  331. <td colspan="3">
  332. <ul class="photo_list">
  333. <?
  334. if(!empty($col[cd_car])){
  335. $r = mysql_query("SELECT * FROM car_file WHERE cd_car = '$cd_car' and ds_type='' and ds_delind='N' Order by no_sort asc , cd_car ASC ");
  336. $i=1;
  337. while($imgs = mysql_fetch_array($r)) {
  338. ?>
  339. <li><img src="<?=UPLOAD_PATH_CAR?><?=$imgs[cd_car]?>_detail/<?=$imgs[nm_file]?>" onclick="viewPhoto('<?=UPLOAD_PATH_CAR?><?=$imgs[cd_car]?>_detail/<?=$imgs[nm_file]?>')"></li>
  340. <?
  341. }
  342. }else{
  343. ?>
  344. <?
  345. }
  346. ?>
  347. </ul>
  348. </td>
  349. </tr>
  350. <tr>
  351. <th>담당자코멘트</th>
  352. <td colspan="3"><?=$nm_guide?></td>
  353. </tr>
  354. </table>
  355. <h3>사고이력정보</h3>
  356. <table class="tbl_h">
  357. <colgroup>
  358. <col width="16%">
  359. <col width="*">
  360. </colgroup>
  361. <tr>
  362. <th>차량번호 변경</th>
  363. <td><?=$nm_act_chgno?> 회</td>
  364. </tr>
  365. <tr>
  366. <th>소유자 변경</th>
  367. <td><?=$nm_act_chgnm?> 회</td>
  368. </tr>
  369. <tr>
  370. <th>자동차 보험 특수 사고</th>
  371. <td>전손 : <?=$nm_act_s1?>회 / 침수전손 : <?=$nm_act_s2?>회 / 침수분손 : <?=$nm_act_s3?>회 / 도난 : <?=$nm_act_s4?>회</td>
  372. </tr>
  373. <tr>
  374. <th>보험사고 (내차피해)</th>
  375. <td><?=$nm_act_my?> 회(<?=$nm_act_my_amt?> 원)</td>
  376. </tr>
  377. <tr>
  378. <th>보험사고 (타차가해)</th>
  379. <td><?=$nm_act_other?> 회(<?=$nm_act_other_amt?> 원)</td>
  380. </tr>
  381. <!--tr>
  382. <th>사고이력 조회일</th>
  383. <td>2018-12-05 </td>
  384. </tr-->
  385. </table>
  386. <div class="btn_right">
  387. <a href="#" class="button" onclick="openLayer('car'); return false;">사고이력 정보 조회 보기</a>
  388. </div>
  389. <!-- layer popup -->
  390. <div class="layer_popup car_popup">
  391. <h3>중고차 보험처리 이력정보 보고서</h3>
  392. <p class="close">레이어팝업닫기</p>
  393. <div class="scr_cont">
  394. <h4>중고차 사고이력 요약 정보</h4>
  395. <table class="tbl_data">
  396. <colgroup>
  397. <col width="35%">
  398. <col width="*">
  399. </colgroup>
  400. <tr>
  401. <th>자동차 일반사양</th>
  402. <td><?=$nm_act_general_spec?></td>
  403. </tr>
  404. <tr>
  405. <th>자동차 용도이력</th>
  406. <td><?=$nm_act_use_record?></td>
  407. </tr>
  408. <tr>
  409. <th>자동차 번호 / 소유자 변경횟수</th>
  410. <td><?=$nm_act_chgno?> 회 / <?=$nm_act_chgnm?> 회</td>
  411. </tr>
  412. <tr>
  413. <th>자동차보험 특수 사고이력(전손, 침수, 도난)</th>
  414. <td>전손 : <?=$nm_act_s1?>, 도난 : <?=$nm_act_s4?>, 침수(전손 : <?=$nm_act_s2?>, 분손 : <?=$nm_act_s3?>)</td>
  415. </tr>
  416. <tr>
  417. <th>보험사고이력(내차 피해)</th>
  418. <td><?=$nm_act_my?> 회, <?=$nm_act_my_amt?> 원</td>
  419. </tr>
  420. <tr>
  421. <th>보험사고이력(타차 피해)</th>
  422. <td><?=$nm_act_other?> 회, <?=$nm_act_other_amt?> 원</td>
  423. </tr>
  424. </table>
  425. <p class="notice01">자동차보험 사고기록이 없었다고 해서 반드시 무사고라고 할 수는 없습니다.</p>
  426. <h5>1. 자동차 용도 이력정보</h5>
  427. <table class="tbl_data">
  428. <colgroup>
  429. <col width="35%">
  430. <col width="*">
  431. </colgroup>
  432. <tr>
  433. <th>대여용도 사용이력(렌터카)</th>
  434. <td><?=$nm_act_use_record_lend?></td>
  435. </tr>
  436. <tr>
  437. <th>영업용도 사용이력</th>
  438. <td><?=$nm_act_use_record_biz?></td>
  439. </tr>
  440. <tr>
  441. <th>관용용도 사용이력</th>
  442. <td><?=$nm_act_use_record_official?></td>
  443. </tr>
  444. </table>
  445. <p class="notice02">과거 자동차번호 변경기록을 모두 검색하여 제공하는 것으로 대여용(렌트카), 영업용(택시 등)으로 사용된 적이 있는지 확인할 수 있습니다.</p>
  446. <h5>2. 자동차보험 특수 사고 이력 정보</h5>
  447. <table class="tbl_data">
  448. <colgroup>
  449. <col width="35%">
  450. <col width="*">
  451. </colgroup>
  452. <tr>
  453. <th>전손 보험사고</th>
  454. <td><?=$nm_act_ins_loss?></td>
  455. </tr>
  456. <tr>
  457. <th>침수 보험사고</th>
  458. <td><?=$nm_act_ins_wet?></td>
  459. </tr>
  460. <tr>
  461. <th>도난 보험사고</th>
  462. <td><?=$nm_act_ins_robbery?></td>
  463. </tr>
  464. </table>
  465. <table class="tbl_data2">
  466. <colgroup>
  467. <col width="20%">
  468. <col width="20%">
  469. <col width="20%">
  470. <col width="20%">
  471. <col width="20%">
  472. </colgroup>
  473. <thead>
  474. <tr>
  475. <th>사고일자</th>
  476. <th>부품</th>
  477. <th>공임</th>
  478. <th>도장</th>
  479. <th>총 수리비용</th>
  480. </tr>
  481. </thead>
  482. <h5>3. 보험사고 이력정보 : 내차 피해</h5>
  483. <tbody>
  484. <tr>
  485. <th><?=$ds_g1_01?></th>
  486. <td><?=$ds_g1_02?>원</td>
  487. <td><?=$ds_g1_03?>원</td>
  488. <td><?=$ds_g1_04?>원</td>
  489. <td><?=$ds_g1_05?>원</td>
  490. </tr>
  491. <tr>
  492. <th><?=$ds_g2_01?></th>
  493. <td><?=$ds_g2_02?>원</td>
  494. <td><?=$ds_g2_03?>원</td>
  495. <td><?=$ds_g2_04?>원</td>
  496. <td><?=$ds_g2_05?>원</td>
  497. </tr>
  498. <tr>
  499. <th><?=$ds_g3_01?></th>
  500. <td><?=$ds_g3_02?>원</td>
  501. <td><?=$ds_g3_03?>원</td>
  502. <td><?=$ds_g3_04?>원</td>
  503. <td><?=$ds_g3_05?>원</td>
  504. </tr>
  505. <tr>
  506. <th><?=$ds_g4_01?></th>
  507. <td><?=$ds_g4_02?>원</td>
  508. <td><?=$ds_g4_03?>원</td>
  509. <td><?=$ds_g4_04?>원</td>
  510. <td><?=$ds_g4_05?>원</td>
  511. </tr>
  512. </tbody>
  513. </table>
  514. <!--h5>4. 보험사고 이력정보 : 타차 가해</h5>
  515. <table class="tbl_data2">
  516. <colgroup>
  517. <col width="20%">
  518. <col width="20%">
  519. <col width="20%">
  520. <col width="20%">
  521. <col width="20%">
  522. </colgroup>
  523. <thead>
  524. <tr>
  525. <th>사고일자</th>
  526. <th>부품</th>
  527. <th>공임</th>
  528. <th>도장</th>
  529. <th>총 수리비용</th>
  530. </tr>
  531. </thead>
  532. <tbody>
  533. <tr>
  534. <th>2017-05-27</th>
  535. <td>857,610원</td>
  536. <td>857,610원</td>
  537. <td>857,610원</td>
  538. <td>857,610원</td>
  539. </tr>
  540. <tr>
  541. <th>2017-05-27</th>
  542. <td>857,610원</td>
  543. <td>857,610원</td>
  544. <td>857,610원</td>
  545. <td>857,610원</td>
  546. </tr>
  547. </tbody>
  548. </table>
  549. <ul class="notice03">
  550. <li>중고차 사고 이력정보 서비스는 자동차 보험을 취급하는 14개 손해보험사의 자동차 보험수리비 지급기록(1996년 이후)에 근거하여 제공하고 있습니다.<br>
  551. 따라서 다음과 같은 경우에는 중고차 사고 이력정보 서비스를 제공할 수 없습니다.</li>
  552. <li>
  553. <ol>
  554. <li>사고가 있었다하더라도 보험회사에 사전신고를 하지 않고 자비로 처리한 경우,<br>
  555. 사고신고를 하였더라도 면책, 취소 등의 사유로 보험금이 지급되지 않은경우,<br>
  556. 사고신고 후 자비로 처리한 경우입니다.</li>
  557. <li>사고가 있었다하더라도 종합보험, 즉 자기차량담보나 대물배상담보의 자동차 보험에 가입하지 않아서 자동차 보험으로 수리비용을 청구하지 못한 경우<br>
  558. (단, 이경우라도 타인 자동차보험에서 보상받은 경우에는 사고정보 제공가능)</li>
  559. <li>자동차보험이 아니 운수공제(택시공제, 화물공제, 버스공제 등)에 가입되어 운수공제로부터 자동차의 피해에 대한 손해를 보상받은 경우 등</li>
  560. </ol>
  561. </li>
  562. <li>본 중고차 사고이력정보는 중고차 품질확인을 위한 보조정보이며 결정적인 판단 자료로 사용되어서는 아니됩니다. 따라서 정밀한 중고차 품질확인을<br>
  563. 원하시면 차량진단 전문업체의 진단을 받아보시기 바랍니다.</li>
  564. <li>※ 보험개발원(www.kidi.or.kr)은 보험입법 제 176조에 의하여 설립된 보험요율산출기관이며,<br>
  565. 중고차사고이력정보서비스(www.carhistory.or.kr)는 보험업법시행령 제86조 제1호 근거하여 제공합니다. </li>
  566. </ul>
  567. <p class="sign"><img src="/img/img_sign.gif"></p-->
  568. </div>
  569. </div>
  570. <!-- // layer popup -->
  571. <?
  572. $sql ="select count(*) cnt, max(case when ".$sql_ds_type." then nm_price else 0 end) nm_price_max from tender_master where cd_sale = $cd_sale ";
  573. $col1=mysql_fetch_array(mysql_query($sql));
  574. ?>
  575. <div class="bidding_board<? if($col1[nm_price_max]>0) { ?> ty2<? } ?>">
  576. <dl>
  577. <dt>입찰 진행 중</dt>
  578. <dd><strong><?=$col1[cnt]?></strong>명의 딜러가 입찰하였습니다.</dd>
  579. </dl>
  580. <?
  581. if($col1[nm_price_max]>0) {
  582. ?>
  583. <p>나의 입찰가는 <strong><?=$col1[nm_price_max]?></strong>만원입니다.</p>
  584. <?
  585. }
  586. ?>
  587. </div>
  588. <?
  589. //select count(*) cnt_tender, sum(case when cd_dealer = '55' then 1 else 0 end) cnt_tender_dealer from tender_master where ds_delind ='N' and cd_sale = '73' and cd_dealer_p = '52'
  590. // $cd_tender = @mysql_result(mysql_query("select cd_tender from tender_master where ds_delind ='N' and cd_sale = '$cd_sale' and cd_dealer = '$s_cd_dealer' "),0,0);
  591. $cd_tender = mysql_fetch_array(mysql_query("select count(*) cnt_tender, sum(case when cd_dealer = '$s_cd_dealer' then 1 else 0 end) cnt_tender_dealer from tender_master where ds_delind ='N' and cd_sale = '$cd_sale' and cd_dealer_p = '$s_cd_dealer_p' "));
  592. //입찰하기 : 입찰대기건/부관리자/현재미입찰건(부관리자본인)
  593. // if($rq_ds_status == "E0" && $s_ds_type == "D1" && empty($cd_tender) && $time_limit_tender != "0분"){ //딜러-관리자
  594. //입찰하기 : 입찰대기건/부관리자/소속딜러입찰건1건이하일경우만(2건이상일경우제한)/현재미입찰건(부관리자본인)/소속총괄관리자 관리자에게 승인 받은 경우
  595. if($rq_ds_status == "E0" && $s_ds_type == "D1" && ($cd_tender[cnt_tender] < 2 && $cd_tender[cnt_tender_dealer] == 0) && $time_limit_tender != "0분" && $s_ds_status_p == "Z0"){ //딜러-관리자
  596. ?>
  597. <div class="btn_right">
  598. <a href="#" class="button" onclick="openLayer('price'); return false;">입찰하기</a>
  599. <!-- a href="#" class="button">목록가기</a -->
  600. </div>
  601. <!-- layer_popup -->
  602. <div class="layer_popup price_popup">
  603. <div class="popup_wrap">
  604. <p class="msg">
  605. 내 입찰금액은<br>
  606. <input type="text" class="inp_txt" style="width:355px;" name="nm_price_pop" id="nm_price_pop"> 만원입니다.
  607. <span class="sub_txt">(※ 입력 예시 : 1500만원일 경우 1500입력, 500만원일 경우 500입력)</span>
  608. </p>
  609. <div class="btn_center">
  610. <a href="#" class="button" id="btn_write">입찰하기</a>
  611. </div>
  612. <!-- p class="msg2">입찰금액은<br><strong>2500</strong>만원입니다.</p>
  613. <div class="btn_center">
  614. <a href="#" class="button">확인</a>
  615. <a href="#" class="button gray" onclick="closeLayer('price'); return false;">취소</a>
  616. </div -->
  617. </div>
  618. <div class="close">레이어팝업 닫기</div>
  619. </div>
  620. <!-- // layer_popup -->
  621. <form id="frmForm" name="frmForm" method="post" action="./dealer_proc.php">
  622. <input type="hidden" name="mode" id="mode" value="Tender"/>
  623. <input type="hidden" name="cd_sale" id="cd_sale" value="<?=$cd_sale?>"/>
  624. <input type="hidden" name="nm_price" id="nm_price"/>
  625. </form>
  626. <script language="javascript" type="text/javascript">
  627. var ds_mode ="<?=$mode?>";
  628. $(document).ready(function() {
  629. $("#btn_write").bind("click",function(){
  630. var fieldlist = [["nm_price_pop","입찰금액"]]
  631. if (!fnCheckForm(fieldlist)){
  632. return false;
  633. }
  634. $("#nm_price").val($("#nm_price_pop").val());
  635. var c = confirm("처리하시겠습니까?");
  636. if(c){
  637. $("#frmForm").submit();
  638. }else{
  639. return false;
  640. }
  641. });
  642. });
  643. </script>
  644. <?
  645. }
  646. ?>
  647. <!-- layer popup3 -->
  648. <div class="layer_popup photo_popup">
  649. <div class="popup_wrap">
  650. <img src="/img/sell/ic_car_photo1.png" id="photoBig">
  651. </div>
  652. <div class="close" onclick="closeLayer('photo');">레이어팝업 닫기</div>
  653. </div>
  654. <!-- // layer popup3 -->
  655. </div>
  656. <script laguage="javascript" type="text/javascript">
  657. function viewPhoto(arg1){
  658. $("#photoBig").attr("src", arg1);
  659. openLayer('photo'); return false;
  660. }
  661. </script>
  662. </section>
  663. </section>
  664. <? include("../include/inc_footer.php") ?>
  665. <? include("../include/inc_bottom.php") ?>
  666. <?
  667. mysql_close($connect);
  668. ?>