standby_view.php 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  1. <?php
  2. include $_SERVER['DOCUMENT_ROOT'].'/common/lib/comm.php';
  3. include $_SERVER['DOCUMENT_ROOT'].'/common/user_chk_m.php';
  4. $HEADER_LOC = 'main';
  5. $nav_title = "입찰대기";
  6. $list_url = "standby_list.php";
  7. $s_cd_user = $_SESSION['s_cd_user'];
  8. $cd_sale = $_REQUEST['cd_sale'];
  9. $ds_status_sale = 'E0';
  10. $mp = "30"; //set top nav
  11. $bViewCar = true; //: 차 내용
  12. $bViewSuccess = false; //: 낙찰 내용
  13. $bViewTender = false; //: 입찰업체 내용
  14. $bViewBtn = true; //: 버튼&실행 내용
  15. $bViewContract = false; //: 계약 내용
  16. //차량 정보는 여기서 가져오도록 수정
  17. $sql ="SELECT
  18. a.*
  19. , b.nm_model
  20. , d.nm_brand
  21. , getCode('car_master','ds_type',a.ds_type) as nm_type
  22. , getCode('car_master','ds_year',a.ds_year) as nm_year
  23. , getCode('car_master','ds_open',a.ds_open) as nm_open
  24. , getCode('car_master','ds_sales',a.ds_sales) as nm_sales
  25. , getCode('car_master','ds_transmission',a.ds_transmission) as nm_transmission
  26. , getCode('car_master','ds_oil',a.ds_oil) as nm_oil
  27. , getCode('car_master','ds_accident',a.ds_accident) as nm_accident
  28. , getCode('sale_master','ds_usertype',s.ds_usertype) as nm_usertype
  29. , getCode('member_master','ds_area',s.ds_area) as nm_area
  30. , getCode('member_master','ds_area',s.ds_area_user) as nm_area_user
  31. , getCode('sale_master','ds_status',s.ds_status) as nm_status
  32. , getRemainTime(".LIMIT_TIME_TENDER.", s.dt_approve, now()) as time_limit_tender
  33. , s.nm_name nm_name_sale
  34. , s.ds_status ds_status_sale
  35. , s.nm_hp nm_hp_sale
  36. , s.nm_email nm_email_sale
  37. , s.ds_area ds_area_sale
  38. , s.nm_recommend nm_recommend_sale
  39. , s.nm_cont_return nm_cont_return_sale
  40. , s.nm_file_chk1 nm_file_chk1_sale
  41. , s.nm_file_chk2 nm_file_chk2_sale
  42. , s.nm_file_chk3 nm_file_chk3_sale
  43. , s.nm_file_chk4 nm_file_chk4_sale
  44. , s.nm_file_chk5 nm_file_chk5_sale
  45. , s.ds_sale_period ds_sale_period
  46. , s.nm_cont_return nm_cont_return
  47. , s.ds_tradein ds_tradein
  48. , s.ds_buy_method ds_buy_method
  49. , s.ds_auction_time ds_auction_time
  50. , aap.nm_name aap_nm_name
  51. FROM sale_master s
  52. inner join car_master a on (s.cd_car = a.cd_car)
  53. left outer join car_model b on (a.cd_model = b.cd_model)
  54. left outer join car_brand d on (a.cd_brand = d.cd_brand)
  55. left outer join aap_master aap on (aap.cd_dealer = s.cd_aap_dealer)
  56. WHERE s.cd_sale='$cd_sale'
  57. AND s.cd_user = '$s_cd_user'
  58. AND s.is_staff = 'N'
  59. AND s.ds_delind = 'N'";
  60. // echo $sql;
  61. // exit;
  62. $col=mysql_fetch_array(mysql_query($sql));
  63. if (!empty($col['cd_car'])){
  64. $cd_car = $col['cd_car'];
  65. $cd_model = $col['cd_model'];
  66. $cd_brand = $col['cd_brand'];
  67. $ds_logo = $col['ds_logo'];
  68. $cd_category = $col['cd_category'];
  69. $cd_grade = $col['cd_grade'];
  70. $cd_model_sub = $col['cd_model_sub'];
  71. $ds_cate = $col['ds_cate'];
  72. $ds_type = $col['ds_type'];
  73. $ds_year = $col['ds_year'];
  74. $nm_name = $col['nm_name'];
  75. $nm_price = $col['nm_price'];
  76. $nm_mileage = $col['nm_mileage'];
  77. $ds_driving_system = $col['ds_driving_system'];
  78. $ds_transmission = $col['ds_transmission'];
  79. $nm_file_list = $col['nm_file_list'];
  80. $nm_file_main = $col['nm_file_main'];
  81. $nm_file_report = $col['nm_file_report'];
  82. $nm_file_report_back = $col['nm_file_report_back'];
  83. $nm_file_front = $col['nm_file_front'];
  84. $nm_file_back = $col['nm_file_back'];
  85. $nm_file_side1 = $col['nm_file_side1'];
  86. $nm_file_side2 = $col['nm_file_side2'];
  87. $nm_file_dashboard = $col['nm_file_dashboard'];
  88. $ds_oil = $col['ds_oil'];
  89. $nm_gearbox = $col['nm_gearbox'];
  90. $nm_color = $col['nm_color'];
  91. $nm_incolor = $col['nm_incolor'];
  92. $ds_accident = $col['ds_accident'];
  93. $nm_cont_accident = $col['nm_cont_accident'];
  94. $nm_regdate = $col['nm_regdate'];
  95. $ds_sales = $col['ds_sales'];
  96. $nm_btitle = $col['nm_btitle'];
  97. $nm_stitle = $col['nm_stitle'];
  98. $nm_ltitle = $col['nm_ltitle'];
  99. $nm_cont = $col['nm_cont'];
  100. $nm_cont_pac = $col['nm_cont_pac'];
  101. $nm_cont_detail = $col['nm_cont_detail'];
  102. $nm_desc = $col['nm_desc'];
  103. $nm_guide = $col['nm_guide'];
  104. $ds_open = $col['ds_open'];
  105. $ds_status = $col['ds_status'];
  106. $dt_insert = $col['dt_insert'];
  107. $nm_insert = $col['nm_insert'];
  108. $dt_update = $col['dt_update'];
  109. $nm_update = $col['nm_update'];
  110. $ds_delind = $col['ds_delind'];
  111. $nm_number = $col['nm_number'];
  112. $nm_cc = $col['nm_cc'];
  113. $ds_trade = $col['ds_trade'];
  114. $ds_main = $col['ds_main'];
  115. $nm_regdate_yyyy = $col['nm_regdate_yyyy'];
  116. $nm_regdate_mm = $col['nm_regdate_mm'];
  117. $nm_regdate_dd = $col['nm_regdate_dd'];
  118. $ds_sale_period = $col['ds_sale_period'];
  119. $nm_brand = $col['nm_brand'];
  120. $nm_model = $col['nm_model'];
  121. $nm_model_sub = $col['nm_model_sub'];
  122. $nm_grade = $col['nm_grade'];
  123. $nm_year = $col['nm_year'];
  124. $nm_type = $col['nm_type'];
  125. $nm_open = $col['nm_open'];
  126. $nm_sales = $col['nm_sales'];
  127. $nm_transmission = $col['nm_transmission'];
  128. $nm_oil = $col['nm_oil'];
  129. $nm_usertype = $col['nm_usertype'];
  130. $nm_accident = $col['nm_accident'];
  131. $nm_area = $col['nm_area'];
  132. $nm_name_sale = $col['nm_name_sale'];
  133. $ds_status_sale = $col['ds_status_sale'];
  134. $nm_hp_sale = $col['nm_hp_sale'];
  135. $nm_email_sale = $col['nm_email_sale'];
  136. $ds_area_sale = $col['ds_area_sale'];
  137. $nm_area_user = $col['nm_area_user'];
  138. $ds_business_num = $col['ds_business_num'];
  139. $nm_recommend_sale = $col['nm_recommend_sale'];
  140. $nm_cont_return_sale = $col['nm_cont_return_sale'];
  141. $ds_accident_check = $col['ds_accident_check'];
  142. $ds_damage_check = $col['ds_damage_check'];
  143. //보험처리
  144. $nm_act_chgno = $col['nm_act_chgno'];
  145. $nm_act_chgnm = $col['nm_act_chgnm'];
  146. $nm_act_s1 = $col['nm_act_s1'];
  147. $nm_act_s2 = $col['nm_act_s2'];
  148. $nm_act_s3 = $col['nm_act_s3'];
  149. $nm_act_s4 = $col['nm_act_s4'];
  150. $nm_act_my = $col['nm_act_my'];
  151. $nm_act_my_amt = $col['nm_act_my_amt'];
  152. $nm_act_other = $col['nm_act_other'];
  153. $nm_act_other_amt = $col['nm_act_other_amt'];
  154. $nm_act_searchdt = $col['nm_act_searchdt'];
  155. $nm_act_cnt = $col['nm_act_cnt'];
  156. $nm_act_general_spec = $col['nm_act_general_spec'];
  157. $nm_act_use_record = $col['nm_act_use_record'];
  158. $nm_act_use_record_lend = $col['nm_act_use_record_lend'];
  159. $nm_act_use_record_biz = $col['nm_act_use_record_biz'];
  160. $nm_act_use_record_official = $col['nm_act_use_record_official'];
  161. $nm_act_ins_loss = $col['nm_act_ins_loss'];
  162. $nm_act_ins_wet = $col['nm_act_ins_wet'];
  163. $nm_act_ins_robbery = $col['nm_act_ins_robbery'];
  164. $nm_file_act = $col['nm_file_act'];
  165. $nm_act_yn = $col['nm_act_yn'];
  166. $nm_cont_return = $col['nm_cont_return'];
  167. $aap_nm_name = $col['aap_nm_name'];
  168. $cd_car_history = $col['cd_car_history'];
  169. $time_limit_tender = $col['time_limit_tender'];
  170. $ds_tradein = $col['ds_tradein'];
  171. $ds_buy_method = $col['ds_buy_method'];
  172. $ds_auction_time = $col['ds_auction_time'];
  173. /*
  174. $arr_nm_info1 = explode("-",$nm_info1);
  175. if(count($arr_nm_info1) == 3){
  176. $nm_info11 = $arr_nm_info1[0];
  177. $nm_info12 = $arr_nm_info1[1];
  178. $nm_info13 = $arr_nm_info1[2];
  179. }else{
  180. $nm_info11 = "";
  181. $nm_info12 = "";
  182. $nm_info13 = "";
  183. }
  184. $arr_nm_info3 = explode("@",$nm_info3);
  185. if(count($arr_nm_info3) == 2){
  186. $nm_info31 = $arr_nm_info3[0];
  187. $nm_info32 = $arr_nm_info3[1];
  188. }else{
  189. $nm_info31 = "";
  190. $nm_info32 = "";
  191. }
  192. $nm_info3 = $col[nm_info3];
  193. */
  194. }else{
  195. AlertBack("지정되지않은 요청입니다");
  196. }
  197. list($nm_hp_sale1, $nm_hp_sale2, $nm_hp_sale3) = explode("-", $nm_hp_sale);
  198. ?>
  199. <?php include("../include/inc_header.php") ?>
  200. <main class="pb123">
  201. <section>
  202. <div class="sub--top--visual">
  203. <div class="contents--inner">
  204. <h2><?=$STitle?></h2>
  205. <p>이차조아에서는 사고 이력 조회 후 최고가 내차를 판매할 수 있습니다.</p>
  206. </div>
  207. </div>
  208. </section>
  209. <section>
  210. <div class="top--nav--wrap">
  211. <div class="contents--inner">
  212. <?php
  213. $sale_nav_title = '입찰대기';
  214. include_once("inc_sale_nav.php");
  215. ?>
  216. </div>
  217. </div>
  218. </section>
  219. <?php
  220. if($bViewCar){
  221. include("./inc_ViewCar.php");
  222. }
  223. if($bViewSuccess){
  224. include("./inc_ViewSuccess.php");
  225. }
  226. if($bViewContract){
  227. include("./inc_ViewContract.php");
  228. }
  229. if($bViewTender){
  230. include("./inc_ViewTender.php");
  231. }
  232. if($bViewBtn){
  233. include("./inc_ViewBtn.php");
  234. }
  235. ?>
  236. </main>
  237. <?php include("inc_Popup.php") ?>
  238. <?php include("../include/inc_footer.php") ?>