Exemplo n.º 1
0
function addHotelRoomType()
{
    $admin = new HotelRoomType();
    $admin->setValues($_REQUEST);
    if ($admin->newHotelRoomType()) {
        Common::jsonSuccess("Hotel Room Type Added Successfully!");
    } else {
        Common::jsonError("Error");
    }
}
Exemplo n.º 2
0
function updateHotelsStep_3()
{
    $hotelroomtype = new HotelRoomType();
    $_REQUEST['room_type_img'] = Sessions::getRoomImage();
    $hotelroomtype->setValues($_REQUEST);
    //$hotelroomtype->setRoomTypeImg();
    if ($hotelroomtype->newHotelRoomType()) {
        //INFO: Log
        //$temp_room_type = $_REQUEST;
        //$TransactionLog=new TransactionLog($temp_room_type['room_type_hotel_id'],Libs::getKey('hotel_sections','Room Types - Add'),'Insert',Sessions::getMemberId(),'hotel_room_types',$temp_room_type,'');
        //$TransactionLog->log();
        //$temp_room_type=null;
        //INFO: Log//
        $complete = new ProfileCompletion();
        $complete->setHotelStepId($_REQUEST['hotel_step_id']);
        $complete->setHotelStep1(1);
        $complete->updateProfileCompletionStep('4');
        echo $_REQUEST['hotel_step_id'];
        Sessions::setRoomImage("");
        Common::jsonSuccess("");
    } else {
        Common::jsonError("Error");
    }
}
Exemplo n.º 3
0
function updateHotelsStep_3()
{
    $hotelroomtype = new HotelRoomType();
    $hotelroomtype->setValues($_REQUEST);
    if ($hotelroomtype->newHotelRoomType()) {
        $complete = new ProfileCompletion();
        $complete->setHotelStepId($_REQUEST['hotel_step_id']);
        $complete->setHotelStep1(1);
        $complete->updateProfileCompletionStep('4');
        echo $_REQUEST['hotel_step_id'];
        Common::jsonSuccess("");
    } else {
        Common::jsonError("Error");
    }
}