car_info_car_history_view.php 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <?php
  2. include $_SERVER['DOCUMENT_ROOT'].'/common/lib/comm.php';
  3. // include $_SERVER['DOCUMENT_ROOT'].'/common/auth_chk.php';
  4. header("Content-Type: text/html; charset=utf-8");
  5. $cd_car_history = $_GET['cd_car_history'];
  6. if(empty($cd_car_history)) {
  7. echo '해당 자료가 없습니다.';
  8. exit;
  9. }
  10. // $OWNER_NM = "염수환";
  11. // $VHRNO = "37저4633";
  12. include_once($_SERVER['DOCUMENT_ROOT']."/common/lib/class.carhistory.php");
  13. $r = mysql_query("SELECT s.*
  14. FROM car_history_master s
  15. where cd_car_history = '$cd_car_history'
  16. and ds_type = 'user'
  17. LIMIT 1");
  18. $history_col = mysql_fetch_array($r);
  19. if(empty($history_col['cd_car_history'])) {
  20. echo '해당 자료가 없습니다.';
  21. exit;
  22. }
  23. $r000 = $history_col["r000"];
  24. $r001 = $history_col["r001"];
  25. $r002 = $history_col["r002"];
  26. $r003 = $history_col["r003"];
  27. $r004 = $history_col["r004"];
  28. $r005 = $history_col["r005"];
  29. $r101 = $history_col["r101"];
  30. $r102 = $history_col["r102"];
  31. $r103 = $history_col["r103"];
  32. $r104 = $history_col["r104"];
  33. $r105 = $history_col["r105"];
  34. $r106 = $history_col["r106"];
  35. $r107 = $history_col["r107"];
  36. $r108 = $history_col["r108"];
  37. $r109 = $history_col["r109"];
  38. $r111 = $history_col["r111"];
  39. $r401 = $history_col["r401"];
  40. $r402 = $history_col["r402"];
  41. $r403 = $history_col["r403"];
  42. $r404 = $history_col["r404"];
  43. $r405 = $history_col["r405"];
  44. $r406_01 = $history_col["r406_01"];
  45. $r407 = $history_col["r407"];
  46. $r408_01 = $history_col["r408_01"];
  47. $r409 = $history_col["r409"];
  48. $r410_01 = $history_col["r410_01"];
  49. $r201 = $history_col["r201"];
  50. $r202 = $history_col["r202"];
  51. $r203 = $history_col["r203"];
  52. $r204 = $history_col["r204"];
  53. $r205 = $history_col["r205"];
  54. $r510 = $history_col["r510"];
  55. $r511_01 = $history_col["r511_01"];
  56. $r501 = $history_col["r501"];
  57. $r502 = $history_col["r502"];
  58. $r301 = $history_col["r301"];
  59. $r302 = $history_col["r302"];
  60. $r303 = $history_col["r303"];
  61. $r601 = $history_col["r601"];
  62. $r602 = $history_col["r602"];
  63. $r701 = $history_col["r701"];
  64. //차량 보험처리 이력 전체 정보
  65. if(isset($_REQUEST['device']) && $_REQUEST['device'] == 'm') {
  66. include_once($_SERVER['DOCUMENT_ROOT'].'/common/inc/inc_car_history_m.php');
  67. }else {
  68. include_once($_SERVER['DOCUMENT_ROOT'].'/common/inc/inc_car_history.php');
  69. }
  70. exit;
  71. ?>