1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
<?php require("inc/configure.php"); require("inc/global.php"); require("inc/checklogin.php"); if ($logged_in == 0){ header('Window-target: _parent'); header('Location: login.php'); exit(); } if (checkObject(16) <> 1){ die("Unauthorized Access"); exit(); }
$quotationno = $_GET['quotationno'];
$sql9 = "select carid from OM_QUOTATION_HDR where quotationno = $quotationno"; $result9 = mysql_query($sql9); $row9 = mysql_fetch_assoc($result9);
$carid = $row9['carid'];
$sql8 = "select caryear, licno, modelno, chassisno from CM_CAR where carid = $carid";
$result8 = mysql_query($sql8); $row8 = mysql_fetch_assoc($result8);
$caryear = $row8['caryear']; $licno = $row8['licno']; $modelno = $row8['modelno']; $chassisno = $row8['chassisno'];
$sql7 = "update OM_QUOTATION_HDR set caryear = '$caryear', licno = '$licno', modelno = '$modelno', chassisno = '$chassisno' where quotationno = $quotationno";
mysql_query($sql7);
header("Location: quotationheader.php?quotationno=$quotationno"); ?>
|