@@ 139-151 (lines=13) @@ | ||
136 | ${$k} = $v; |
|
137 | } |
|
138 | ||
139 | if ($hotelservicetype->isNew()) { |
|
140 | $sql = sprintf("INSERT INTO %s ( |
|
141 | service_type_id, |
|
142 | service_type_name |
|
143 | ) VALUES ( |
|
144 | NULL, |
|
145 | %s |
|
146 | )", $this->db->prefix('martin_hotel_service_type'), $this->db->quoteString($service_type_name)); |
|
147 | } else { |
|
148 | $sql = sprintf("UPDATE %s SET |
|
149 | service_type_name = %s |
|
150 | WHERE service_type_id = %u", $this->db->prefix('martin_hotel_service_type'), $this->db->quoteString($service_type_name), $service_type_id); |
|
151 | } |
|
152 | //echo $sql;exit; |
|
153 | if (false != $force) { |
|
154 | $result = $this->db->queryF($sql); |
@@ 341-353 (lines=13) @@ | ||
338 | ${$k} = $v; |
|
339 | } |
|
340 | ||
341 | if ($order->isNew()) { |
|
342 | $sql = sprintf("INSERT INTO %s ( |
|
343 | order_type_id, |
|
344 | order_type_name |
|
345 | ) VALUES ( |
|
346 | NULL, |
|
347 | %s |
|
348 | )", $this->db->prefix('martin_hotel_order_type'), $this->db->quoteString($order_type_name)); |
|
349 | } else { |
|
350 | $sql = sprintf("UPDATE %s SET |
|
351 | order_type_name = %s |
|
352 | WHERE order_type_id = %u", $this->db->prefix('martin_hotel_order_type'), $this->db->quoteString($order_type_name), $order_type_id); |
|
353 | } |
|
354 | //echo $sql;exit; |
|
355 | if (false != $force) { |
|
356 | $result = $this->db->queryF($sql); |