class/review.php 1 location
|
@@ 80-86 (lines=7) @@
|
| 77 |
|
* @author Martin <[email protected]> |
| 78 |
|
* @created time :2010-07-22 16:43:23 |
| 79 |
|
*/ |
| 80 |
|
public function CheckReviewExist($hotel_id, $uid) |
| 81 |
|
{ |
| 82 |
|
global $xoopsDB; |
| 83 |
|
$sql = "SELECT * FROM {$xoopsDB->prefix('martin_user_review')} WHERE hotel_id = $hotel_id AND uid = $uid "; |
| 84 |
|
|
| 85 |
|
return is_array($xoopsDB->fetchArray($xoopsDB->query($sql))); |
| 86 |
|
} |
| 87 |
|
|
| 88 |
|
/** |
| 89 |
|
* |
class/room.php 1 location
|
@@ 749-755 (lines=7) @@
|
| 746 |
|
* @param $room_date |
| 747 |
|
* @return bool |
| 748 |
|
*/ |
| 749 |
|
public function CheckExistDate($room_id, $room_date) |
| 750 |
|
{ |
| 751 |
|
global $xoopsDB; |
| 752 |
|
$sql = 'SELECT * FROM ' . $xoopsDB->prefix('martin_room_price') . " WHERE room_id = $room_id and room_date = $room_date "; |
| 753 |
|
|
| 754 |
|
return is_array($xoopsDB->fetchArray($xoopsDB->query($sql))); |
| 755 |
|
} |
| 756 |
|
|
| 757 |
|
/** |
| 758 |
|
* @get max add date |